/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Main text color */
  background-color: #0A0A0A; /* Overall background */
}

/* Container for consistent content width */
.page-contact__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

/* Section Titles */
.page-contact__main-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  color: #FFF6D6;
  text-align: center;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.3;
  color: #FFF6D6;
  text-align: center;
  margin-bottom: 20px;
}

.page-contact__section-description {
  font-size: 1.1rem;
  color: rgba(255, 246, 214, 0.8);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Card Titles */
.page-contact__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #F2C14E;
  margin-bottom: 15px;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-contact__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for bright button */
  border: none;
}

.page-contact__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-contact__btn-secondary {
  background: transparent;
  color: #F2C14E;
  border: 2px solid #F2C14E;
}

.page-contact__btn-secondary:hover {
  background: #F2C14E;
  color: #111111;
}

/* Hero Section */
.page-contact__hero-section {
  background: linear-gradient(135deg, #F2C14E, #FFD36B); /* Brand color gradient */
  padding-bottom: 60px; /* Adjust padding as needed */
  position: relative;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-contact__hero-section .page-contact__container {
  display: flex;
  flex-direction: column; /* Default to column for mobile-first, desktop will be column with image below content */
  align-items: center;
  gap: 40px;
}

.page-contact__hero-content {
  text-align: center;
  color: #111111; /* Dark text for light background */
  max-width: 800px;
}

.page-contact__hero-content .page-contact__main-title {
  color: #111111;
}

.page-contact__hero-content .page-contact__hero-description {
  color: rgba(17, 17, 17, 0.8);
}

.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%; /* Ensure full width for container */
  max-width: 500px; /* Limit button group width */
  box-sizing: border-box;
  overflow: hidden;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Match container max-width */
  margin-top: 40px; /* Space between content and image */
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Minimum image size */
  min-height: 200px;
}

/* Contact Methods Section */
.page-contact__contact-methods-section {
  padding: 80px 0;
  background-color: #0A0A0A;
}

.page-contact__methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-contact__method-card {
  background-color: #111111; /* Card Background */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.page-contact__method-card p {
  color: rgba(255, 246, 214, 0.7);
  margin-bottom: 25px;
}

/* Contact Form Section */
.page-contact__form-section {
  padding: 80px 0;
  background-color: #0A0A0A;
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 40px auto 0 auto;
  padding: 30px;
  background-color: #111111; /* Card Background */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-contact__form-group {
  margin-bottom: 20px;
}

.page-contact__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #FFF6D6;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #3A2A12;
  border-radius: 8px;
  background-color: #0A0A0A;
  color: #FFF6D6;
  font-size: 1rem;
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: rgba(255, 246, 214, 0.5);
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: #F2C14E;
  box-shadow: 0 0 0 3px rgba(242, 193, 78, 0.3);
}

.page-contact__contact-form .page-contact__btn-primary {
  width: auto;
  display: block;
  margin-top: 30px;
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 80px 0;
  background-color: #0A0A0A;
}

.page-contact__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-contact__faq-item {
  background-color: #111111; /* Card Background */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #111111;
  color: #FFF6D6;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
  background-color: #1a1a1a;
}

.page-contact__faq-question h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #FFF6D6;
}

.page-contact__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: #F2C14E;
  transition: transform 0.3s ease;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  transform: rotate(45deg);
}

.page-contact__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: rgba(255, 246, 214, 0.7);
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 1000px !important; /* Use !important to override */
  padding: 15px 25px 25px 25px;
}

.page-contact__faq-answer p {
  margin: 0;
  font-size: 1rem;
}

.page-contact__faq-answer a {
  color: #F2C14E;
  text-decoration: none;
}

.page-contact__faq-answer a:hover {
  text-decoration: underline;
}

/* CTA Section */
.page-contact__cta-section {
  padding: 80px 0;
  background-color: #F2C14E; /* Dark section uses brand color as background */
  color: #111111; /* Dark text for light background */
}

.page-contact__cta-section .page-contact__section-title {
  color: #111111;
}

.page-contact__cta-section .page-contact__section-description {
  color: rgba(17, 17, 17, 0.8);
}

.page-contact__cta-section .page-contact__cta-buttons {
  margin-top: 40px;
}

.page-contact__cta-section .page-contact__btn-primary {
  background: #111111; /* Dark background for primary button */
  color: #FFF6D6; /* Light text */
}

.page-contact__cta-section .page-contact__btn-primary:hover {
  background: #333333;
}

.page-contact__cta-section .page-contact__btn-secondary {
  border-color: #111111;
  color: #111111;
}

.page-contact__cta-section .page-contact__btn-secondary:hover {
  background: #111111;
  color: #F2C14E;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__hero-section .page-contact__container {
    flex-direction: column;
    text-align: center;
  }

  .page-contact__hero-image-wrapper {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-contact__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-contact__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }

  .page-contact__hero-section {
    padding-bottom: 40px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile: use shared offset */
  }
  
  .page-contact__hero-content {
    padding: 0 15px;
  }

  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__methods-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .page-contact__contact-form {
    padding: 20px;
    margin-left: 15px;
    margin-right: 15px;
  }

  .page-contact__faq-question {
    padding: 15px 20px;
  }

  .page-contact__faq-question h3 {
    font-size: 1.1rem;
  }

  .page-contact__faq-toggle {
    font-size: 1.5rem;
  }

  .page-contact__faq-answer {
    padding: 0 20px;
  }
  
  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 10px 20px 20px 20px;
  }

  /* All images must be responsive */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* All containers with images must be responsive */
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Ensure no image filters are used */
.page-contact img {
  filter: none;
}

/* Ensure content area images are not too small */
.page-contact__contact-methods-section img,
.page-contact__form-section img,
.page-contact__faq-section img,
.page-contact__cta-section img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover; /* Ensure images fill their space nicely */
}

/* Text contrast for general elements on dark background */
.page-contact p,
.page-contact li {
  color: #FFF6D6; /* Ensure light text on dark background */
}

/* Specific overrides for sections with different backgrounds */
.page-contact__hero-section .page-contact__hero-description,
.page-contact__cta-section p {
  color: rgba(17, 17, 17, 0.8); /* Dark text on light background */
}
.page-contact__cta-section a {
  color: #111111; /* Dark text for light background */
}