/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: var(--primary-color); /* Inherits from shared.css, which is #0A1931 */
}

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: #0A1931; /* Primary brand color for dark background */
  color: #ffffff;
  overflow: hidden;
  min-height: 500px;
}

.page-contact__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.3; /* Subtle background image */
  overflow: hidden;
}

.page-contact__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-contact__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.page-contact__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700; /* Auxiliary color for emphasis */
  font-weight: bold;
}

.page-contact__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

/* General Section Styles */
.page-contact__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Auxiliary color for emphasis */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-contact__section-description {
  font-size: 1.1em;
  color: #f0f0f0; /* Default light text for dark sections */
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

.page-contact__light-bg .page-contact__section-description,
.page-contact__light-bg .page-contact__method-text,
.page-contact__light-bg .page-contact__email-link,
.page-contact__light-bg .page-contact__phone-link,
.page-contact__light-bg .page-contact__faq-title,
.page-contact__light-bg .page-contact__faq-answer p,
.page-contact__light-bg .page-contact__faq-link,
.page-contact__light-bg .page-contact__location-address,
.page-contact__light-bg .page-contact__location-hours {
  color: #333333; /* Dark text for light background sections */
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  box-sizing: border-box; /* Ensure padding and border are included in the element's total width and height */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-contact__btn-primary {
  background-color: #FFD700; /* Auxiliary color */
  color: #0A1931; /* Dark text for bright button */
  border-color: #FFD700;
  margin: 10px;
}

.page-contact__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-contact__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Auxiliary color for text */
  border-color: #FFD700;
  margin: 10px;
}

.page-contact__btn-secondary:hover {
  background-color: #FFD700;
  color: #0A1931;
}

/* Info Section - Contact Methods */
.page-contact__info-section {
  padding: 60px 20px;
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text for light section */
}

.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: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: #333333;
}

.page-contact__method-card:hover {
  transform: translateY(-10px);
}

.page-contact__method-icon {
  width: 100%; /* Ensure image fills card width */
  height: auto;
  max-height: 200px; /* Limit height */
  object-fit: contain; /* Ensure image is fully visible */
  margin-bottom: 20px;
  border-radius: 5px;
}

.page-contact__method-title {
  font-size: 1.8em;
  color: #0A1931; /* Primary color for titles */
  margin-bottom: 15px;
}

.page-contact__method-text {
  font-size: 1em;
  margin-bottom: 20px;
}

.page-contact__email-link,
.page-contact__phone-link {
  color: #0A1931;
  text-decoration: underline;
  font-weight: bold;
}

.page-contact__email-link:hover,
.page-contact__phone-link:hover {
  color: #FFD700;
}

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

.page-contact__social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #0A1931;
    color: #FFD700;
    font-size: 0.9em;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-contact__social-icon:hover {
    background-color: #FFD700;
    color: #0A1931;
}


/* Form Section */
.page-contact__form-section {
  padding: 60px 20px;
  background-color: #0A1931; /* Dark background */
  color: #f0f0f0; /* Light text */
  text-align: center;
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 40px auto;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #555;
  border-radius: 5px;
  background-color: #1a2a44; /* Darker input background */
  color: #f0f0f0;
  font-size: 1em;
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: #aaa;
}

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

.page-contact__form-textarea {
  resize: vertical;
}

.page-contact__form-submit-btn {
  width: auto;
  margin-top: 20px;
  display: block; /* Make button full width on small screens */
  margin-left: auto;
  margin-right: auto;
}

.page-contact__form-image {
  width: 100%;
  height: auto;
  max-width: 600px;
  margin-top: 40px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 60px 20px;
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text */
  text-align: center;
}

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

.page-contact__faq-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #eee;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #0A1931; /* Primary color for question */
  transition: background-color 0.3s ease;
}

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

.page-contact__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFD700;
}

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

.page-contact__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  background-color: #ffffff;
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 20px 25px;
}

.page-contact__faq-answer p {
  margin-bottom: 15px;
  color: #555;
}

.page-contact__faq-link {
  display: inline-block;
  color: #FFD700; /* Auxiliary color */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-contact__faq-link:hover {
  color: #0A1931;
  text-decoration: underline;
}

.page-contact__faq-image {
  width: 100%;
  height: auto;
  max-width: 600px;
  margin-top: 40px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Location Section */
.page-contact__location-section {
    padding: 60px 20px;
    background-color: #0A1931; /* Dark background */
    color: #f0f0f0; /* Light text */
    text-align: center;
}

.page-contact__location-details {
    margin-top: 40px;
    font-size: 1.1em;
}

.page-contact__location-address,
.page-contact__location-hours {
    margin-bottom: 10px;
    color: #f0f0f0;
}

.page-contact__map-placeholder {
    margin-top: 40px;
    background-color: #223355; /* Placeholder color for map */
    border-radius: 10px;
    overflow: hidden;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.page-contact__map-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* CTA Section */
.page-contact__cta-section {
  padding: 60px 20px;
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text */
  text-align: center;
}

.page-contact__cta-content {
  max-width: 800px;
}

.page-contact__cta-title {
  font-size: 2.5em;
  color: #0A1931; /* Primary color for titles */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-contact__cta-description {
  font-size: 1.1em;
  color: #555;
  margin-bottom: 40px;
}

.page-contact__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px; /* Space between buttons */
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 2.8em;
  }
  .page-contact__section-title,
  .page-contact__cta-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top */
  }
  .page-contact__hero-title {
    font-size: 2.2em;
  }
  .page-contact__hero-description {
    font-size: 1em;
  }

  .page-contact__section-title,
  .page-contact__cta-title {
    font-size: 1.8em;
  }
  .page-contact__section-description,
  .page-contact__hero-description,
  .page-contact__cta-description,
  .page-contact__method-text,
  .page-contact__faq-answer p,
  .page-contact__location-address,
  .page-contact__location-hours {
    font-size: 0.95em;
  }

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

  .page-contact__form-input,
  .page-contact__form-textarea,
  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  /* Mobile image and container responsiveness */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__contact-form,
  .page-contact__faq-list,
  .page-contact__location-section,
  .page-contact__hero-content,
  .page-contact__cta-content,
  .page-contact__hero-image-wrapper,
  .page-contact__map-placeholder,
  .page-contact__method-card,
  .page-contact__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-contact__hero-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }

  /* Specific padding adjustment for hero content */
  .page-contact__hero-content {
      padding-left: 15px;
      padding-right: 15px;
  }

  /* FAQ specific mobile styles */
  .page-contact__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-contact__faq-answer {
    padding: 0 20px;
  }
  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-contact__hero-title {
    font-size: 1.8em;
  }
  .page-contact__section-title,
  .page-contact__cta-title {
    font-size: 1.5em;
  }
  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
  }
}