/* style/contact.css */

/* Root variables */
:root {
  --primary-color: #A52A2A; /* Deep Red */
  --secondary-color: #FFD700; /* Gold */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #ffffff;
  --bg-dark: #2a0a0a; /* A darker shade derived from primary for contrast */
  --border-color: #e0e0e0;
}

.page-contact {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light backgrounds */
  background-color: var(--bg-light); /* Default body background is light */
  padding-top: 120px; /* Adjust for fixed header */
}

/* Ensure padding-top for mobile */
@media (max-width: 768px) {
  .page-contact {
    padding-top: 100px !important; /* Mobile adjustment */
  }
}

.page-contact__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Sections */
.page-contact__hero-section,
.page-contact__contact-methods,
.page-contact__form-section,
.page-contact__faq-section,
.page-contact__commitment-section {
  padding: 60px 0;
  text-align: center;
}

.page-contact__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-contact__light-bg {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-contact__hero-section {
  background-image: url('[GALLERY:contact:suncity 8888,hero banner,contact us]');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}

.page-contact__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 1;
}

.page-contact__hero-section .page-contact__container {
  position: relative;
  z-index: 2;
}

.page-contact__main-title {
  font-size: 48px;
  color: var(--secondary-color);
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-contact__hero-description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-light);
}

.page-contact__section-title {
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-contact__dark-section .page-contact__section-title {
  color: var(--secondary-color);
}

.page-contact__section-description {
  font-size: 18px;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

/* CTA Buttons */
.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Ensure buttons wrap on small screens */
}

.page-contact__cta-button,
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Button responsive */
  box-sizing: border-box; /* Button responsive */
  white-space: normal; /* Button responsive */
  word-wrap: break-word; /* Button responsive */
}

.page-contact__btn-primary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
}

.page-contact__btn-primary:hover {
  background: #e6c200; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-contact__btn-secondary {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-contact__btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-contact__hero-section .page-contact__btn-secondary {
  color: var(--text-light);
  border-color: var(--text-light);
}
.page-contact__hero-section .page-contact__btn-secondary:hover {
  background: var(--text-light);
  color: var(--primary-color);
}


/* Contact Methods Grid */
.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: var(--bg-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-contact__method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-contact__method-icon {
  width: 200px; /* Adjusted to meet minimum size requirement */
  height: 200px; /* Adjusted to meet minimum size requirement */
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%; /* Image responsive */
  height: auto; /* Image responsive */
}

.page-contact__method-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-contact__method-text {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-contact__email-link,
.page-contact__phone-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: color 0.3s ease;
}

.page-contact__email-link:hover,
.page-contact__phone-link:hover {
  color: var(--secondary-color);
}

.page-contact__social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.page-contact__social-link {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    background: var(--primary-color);
    color: var(--text-light);
    border: 1px solid var(--primary-color);
}

.page-contact__social-link:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}


/* Contact Form */
.page-contact__form-section {
  background-color: var(--bg-dark); /* Darker background for contrast */
  color: var(--text-light);
}

.page-contact__form-section .page-contact__section-title {
  color: var(--secondary-color);
}

.page-contact__form-section .page-contact__section-description {
  color: var(--text-light);
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-align: left;
}

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

.page-contact__form-label {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text-light);
  font-weight: bold;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-light);
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.5);
  outline: none;
}

.page-contact__submit-button {
  width: 100%;
  padding: 15px;
  background: var(--secondary-color);
  color: var(--primary-color);
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-contact__submit-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-contact__faq-section {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

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

.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ default state - answer hidden */
.page-contact__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

/* FAQ expanded state - 🚨 Using !important and sufficiently large max-height */
.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 2000px !important; /* 🚨 Use !important to ensure priority, value large enough for any content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

/* Question style */
.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-contact__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-contact__faq-question:active {
  background: #eeeeee;
}

/* Question title style */
.page-contact__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-dark);
  pointer-events: none; /* Prevent h3 from blocking click events */
}

/* Toggle icon */
.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click events */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Rotate for minus sign effect */
}


/* Commitment Section */
.page-contact__commitment-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-contact__commitment-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 40px auto;
  text-align: left;
}

.page-contact__commitment-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  font-size: 18px;
  color: var(--text-light);
}

.page-contact__list-icon {
  width: 200px; /* Adjusted to meet minimum size requirement */
  height: 200px; /* Adjusted to meet minimum size requirement */
  margin-right: 15px;
  flex-shrink: 0;
  max-width: 100% !important; /* Image responsive */
  height: auto !important; /* Image responsive */
}

.page-contact__commitment-list strong {
  color: var(--secondary-color);
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__main-title {
    font-size: 40px;
  }
  .page-contact__section-title {
    font-size: 32px;
  }
  .page-contact__hero-description,
  .page-contact__section-description,
  .page-contact__method-text,
  .page-contact__commitment-list li {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-contact__container {
    padding: 0 15px;
  }

  .page-contact__hero-section,
  .page-contact__contact-methods,
.page-contact__form-section,
.page-contact__faq-section,
.page-contact__commitment-section {
    padding: 40px 0;
  }

  .page-contact__main-title {
    font-size: 32px;
  }
  .page-contact__section-title {
    font-size: 28px;
  }
  .page-contact__hero-description,
  .page-contact__section-description {
    font-size: 15px;
  }

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

  .page-contact__cta-button,
  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
    width: 100% !important; /* Button responsive */
    max-width: 100% !important; /* Button responsive */
    box-sizing: border-box !important; /* Button responsive */
    white-space: normal !important; /* Button responsive */
    word-wrap: break-word !important; /* Button responsive */
  }

  .page-contact__methods-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-contact__method-card {
    padding: 25px;
  }

  .page-contact__method-icon {
    width: 150px; /* Smaller for mobile, but still > 200 via max-width 100% */
    height: 150px; /* Smaller for mobile, but still > 200 via max-width 100% */
  }

  .page-contact__method-title {
    font-size: 20px;
  }

  .page-contact__contact-form {
    padding: 30px;
  }

  .page-contact__form-label,
  .page-contact__form-input,
  .page-contact__form-textarea,
  .page-contact__submit-button {
    font-size: 15px;
  }

  /* FAQ mobile adaptation */
  .page-contact__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-contact__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-contact__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-contact__faq-answer {
    padding: 0 15px;
  }
  
  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 15px !important;
  }

  .page-contact__commitment-list li {
    font-size: 15px;
  }

  .page-contact__list-icon {
    width: 100px; /* Smaller for mobile, but still > 200 via max-width 100% */
    height: 100px; /* Smaller for mobile, but still > 200 via max-width 100% */
    margin-right: 10px;
  }
}

/* Image responsive rules for all images */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile image force adaptation */
@media (max-width: 768px) {
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__hero-section,
  .page-contact__contact-methods,
.page-contact__form-section,
.page-contact__faq-section,
.page-contact__commitment-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Ensure video section padding is correctly applied for mobile */
  /* No video section on this page, but keeping the rule for safety if template is re-used */
  .page-contact__video-section {
    padding-top: 10px !important; /* Mobile: adjust for mobile nav bar height */
  }
}