/* Contact Page Styles */

/* Basic Reset and Body Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: #333;
  background: #fafafa;
}

/* Footer Protection - Ensure footer styles aren't overridden */
.footer-section {
  position: relative !important;
  z-index: 10 !important;
}

.footer-bg {
  position: relative !important;
}

.footer-title {
  padding-top: 50px !important;
  color: #D4AF37 !important;
  margin-bottom: 1.5rem !important;
}

/* Typography */
.hero-title, .section-title, .contact-title, .sidebar-title {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  color: #8B4513;
}

/* Hero Section */
.contact-hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  background: linear-gradient(rgba(139,69,19,0.4), rgba(139,69,19,0.4)), 
              url('https://images.pexels.com/photos/35467017/pexels-photo-35467017.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: #fff;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  z-index: 1;
}

.hero-content {
  text-align: center;
  color: white;
  z-index: 2;
  position: relative;
}

.hero-title {
  font-size: 4rem;
  font-weight: 400;
  margin-bottom: 2rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

.hero-btn {
  display: inline-block;
  background: #D4AF37;
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid #D4AF37;
}

.hero-btn:hover {
  background: transparent;
  color: #D4AF37;
  text-decoration: none;
}

/* Contact Section */
.contact-section {
  padding: 100px 0;
  background: white;
  position: relative;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 2px,
    rgba(212, 175, 55, 0.03) 2px,
    rgba(212, 175, 55, 0.03) 4px
  );
  pointer-events: none;
}

/* Contact Cards */
.contact-card {
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
  transition: all 0.3s ease;
  height: 100%;
  opacity: 0;
  transform: translateY(30px);
  position: relative;
  z-index: 2;
}

.contact-card.animate {
  opacity: 1;
  transform: translateY(0);
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  border-color: rgba(212, 175, 55, 0.4);
}

.contact-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #8B4513, #D4AF37);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: white;
}

.contact-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #8B4513;
}

.contact-text {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.contact-text a {
  color: #8B4513;
  text-decoration: none;
  font-weight: 500;
}

.contact-text a:hover {
  color: #D4AF37;
}

.contact-link {
  display: inline-block;
  background: #D4AF37;
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.contact-link:hover {
  background: #8B4513;
  color: white;
  text-decoration: none;
}

/* Contact Form Container */
.contact-form-container {
  background: #ffffff;
  border-radius: 20px;
  padding: 60px 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
  position: relative;
  z-index: 2;
  margin-top: 60px;
}

.contact-form-container::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: 15px;
  pointer-events: none;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-style: italic;
  color: #8B4513;
  position: relative;
  z-index: 2;
  font-weight: 300;
  letter-spacing: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #666;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
  font-style: italic;
}

/* Form Styles */
.contact-form {
  position: relative;
  z-index: 2;
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #8B4513;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: 10px;
  font-size: 1rem;
  color: #333;
  background: white;
  transition: all 0.3s ease;
  font-family: 'Open Sans', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #D4AF37;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.checkbox-group label {
  margin: 0;
  color: #666;
  font-weight: 400;
  cursor: pointer;
}

.submit-btn {
  background: linear-gradient(135deg, #8B4513, #D4AF37);
  color: white;
  padding: 15px 40px;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Contact Sidebar */
.contact-sidebar {
  background: rgba(212, 175, 55, 0.05);
  padding: 40px 30px;
  border-radius: 15px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.sidebar-title {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: #8B4513;
}

.sidebar-feature {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
}

.sidebar-feature.animate {
  opacity: 1;
  transform: translateX(0);
}

.sidebar-feature i {
  color: #D4AF37;
  font-size: 1.5rem;
  margin-top: 5px;
  flex-shrink: 0;
}

.sidebar-feature h5 {
  color: #8B4513;
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.sidebar-feature p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.social-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
}

.social-section h5 {
  color: #8B4513;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #8B4513, #D4AF37);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  color: white;
}

/* Contact Stats */
.contact-stats {
  margin-top: 80px;
  padding: 60px 0;
  background: rgba(212, 175, 55, 0.05);
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.stat-item {
  padding: 20px;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: #8B4513;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1.1rem;
  color: #666;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* FAQ Section */
.faq-section {
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(139,69,19,0.05), rgba(212,175,55,0.05));
}

.faq-container {
  margin-top: 3rem;
}

.faq-item {
  background: white;
  border-radius: 15px;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.faq-question {
  padding: 25px 30px;
  cursor: pointer;
  display: flex;
  justify-content: between;
  align-items: center;
  background: white;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: rgba(212, 175, 55, 0.05);
}

.faq-question h5 {
  color: #8B4513;
  margin: 0;
  font-size: 1.2rem;
  flex: 1;
}

.faq-question i {
  color: #D4AF37;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  margin-left: 20px;
}

.faq-answer {
  padding: 0 30px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background: rgba(212, 175, 55, 0.02);
}

.faq-item.active .faq-answer {
  padding: 0 30px 25px;
}

.faq-answer p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .contact-form-container {
    padding: 40px 20px;
  }
  
  .contact-sidebar {
    margin-top: 40px;
    position: static;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 12px 15px;
  }
  
  .submit-btn {
    width: 100%;
    justify-content: center;
  }
  
  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .contact-card {
    padding: 30px 20px;
  }
  
  .contact-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .faq-question {
    padding: 20px;
  }
  
  .faq-answer {
    padding: 0 20px;
  }
  
  .faq-item.active .faq-answer {
    padding: 0 20px 20px;
  }
}

/* Animation Delays */
.contact-card:nth-child(1) { transition-delay: 0.1s; }
.contact-card:nth-child(2) { transition-delay: 0.2s; }
.contact-card:nth-child(3) { transition-delay: 0.3s; }

.sidebar-feature:nth-child(1) { transition-delay: 0.1s; }
.sidebar-feature:nth-child(2) { transition-delay: 0.2s; }
.sidebar-feature:nth-child(3) { transition-delay: 0.3s; }
.sidebar-feature:nth-child(4) { transition-delay: 0.4s; }

.faq-item:nth-child(1) { transition-delay: 0.1s; }
.faq-item:nth-child(2) { transition-delay: 0.2s; }
.faq-item:nth-child(3) { transition-delay: 0.3s; }
.faq-item:nth-child(4) { transition-delay: 0.4s; }
.faq-item:nth-child(5) { transition-delay: 0.5s; }

/* Form Focus Effects */
.form-group.focused label {
  color: #D4AF37;
}

.form-group.focused input,
.form-group.focused select,
.form-group.focused textarea {
  border-color: #D4AF37;
}

/* Additional Footer Protection for Contact Page */
.footer-section * {
  position: relative;
}

.footer-bg {
  background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), 
              url('../images/footer.png') top/cover fixed !important;
}

.footer-text {
  color: #e0e0e0 !important;
  line-height: 1.8 !important;
  font-size: 1rem !important;
  margin-bottom: 1rem !important;
}

.footer-contact-item {
  display: flex !important;
  align-items: center !important;
  margin-bottom: 0.8rem !important;
}

.footer-contact-item i {
  color: #D4AF37 !important;
  margin-right: 10px !important;
  width: 20px !important;
  text-align: center !important;
}

.footer-bottom {
  border-top: 1px solid rgba(212, 175, 55, 0.3) !important;
  margin-top: 3rem !important;
  padding-top: 2rem !important;
  text-align: center !important;
}

.footer-bottom-text {
  color: #ccc !important;
  font-size: 0.9rem !important;
  margin: 0 !important;
}

.social-link {
  display: inline-block !important;
  width: 40px !important;
  height: 40px !important;
  background: rgba(212, 175, 55, 0.2) !important;
  color: #D4AF37 !important;
  text-align: center !important;
  line-height: 40px !important;
  border-radius: 50% !important;
  margin: 0 5px !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
}

.social-link:hover {
  background: #D4AF37 !important;
  color: white !important;
  transform: translateY(-3px) !important;
  text-decoration: none !important;
}
