/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
  background-color: #0a0a0a; /* Dark background from shared.css body */
  color: #ffffff; /* Light text for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px;
  padding: 100px 20px;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background-color: #C80000; /* Main brand color as background */
}

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent dark overlay for text readability */
  padding: 30px;
  border-radius: 10px;
}

.page-contact__hero-title {
  font-size: 3.5em;
  color: #FFD700; /* Auxiliary color for title */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-contact__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4; /* Slightly transparent to allow text readability */
  z-index: 1;
}

/* Section Titles and Descriptions */
.page-contact__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-contact__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-primary {
  background-color: #FFD700; /* Auxiliary color for primary button */
  color: #C80000; /* Main brand color for text */
  border: 2px solid #FFD700;
}

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

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

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

/* Contact Info Section */
.page-contact__info-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Slightly lighter dark background */
}

.page-contact__contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-contact__method-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  color: #ffffff; /* Ensure light text on dark card background */
}

.page-contact__method-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-contact__method-text {
  font-size: 1.1em;
  color: #cccccc;
  margin-bottom: 25px;
  flex-grow: 1;
}

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

.page-contact__contact-form {
  max-width: 700px;
  margin: 50px auto 0 auto;
  background-color: rgba(0, 0, 0, 0.4); /* Dark overlay for form elements */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #FFD700;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  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 {
  outline: none;
  border-color: #FFD700;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

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

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

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

.page-contact__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 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: rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
  color: #FFD700;
}

.page-contact__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.page-contact__faq-title {
  font-size: 1.25em;
  margin: 0;
  color: #FFD700;
}

.page-contact__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  transition: transform 0.3s ease;
  color: #FFD700;
}

.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: #cccccc;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 25px;
}

.page-contact__faq-answer p {
  margin: 0;
  font-size: 1.1em;
  color: #cccccc;
}

/* Location Section */
.page-contact__location-section {
  padding: 80px 0;
  background-color: #C80000;
}

.page-contact__location-details {
  max-width: 700px;
  margin: 50px auto 30px auto;
  text-align: center;
  font-size: 1.1em;
  color: #ffffff;
}

.page-contact__location-details p {
  margin-bottom: 10px;
}

.page-contact__text-link {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-contact__text-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.page-contact__location-map-image {
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  max-width: 100%; /* Ensure responsiveness */
  height: auto;
  object-fit: cover;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 3em;
  }
  .page-contact__section-title {
    font-size: 2em;
  }
  .page-contact__method-title {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    min-height: 400px;
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top */
  }
  .page-contact__hero-content {
    padding: 20px;
  }
  .page-contact__hero-title {
    font-size: 2.2em;
  }
  .page-contact__hero-description {
    font-size: 1em;
  }
  .page-contact__section-title {
    font-size: 1.8em;
  }
  .page-contact__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-contact__contact-methods {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-contact__contact-form,
  .page-contact__faq-list {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px;
  }
  .page-contact__faq-question {
    padding: 15px 20px;
  }
  .page-contact__faq-title {
    font-size: 1.1em;
  }
  .page-contact__faq-answer {
    padding: 0 20px;
  }
  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 15px 20px;
  }
  .page-contact__location-details {
    font-size: 1em;
  }

  /* Image 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__hero-content,
  .page-contact__contact-form,
  .page-contact__faq-list,
  .page-contact__location-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  /* Button responsiveness */
  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact a[class*="button"],
  .page-contact a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 10px; /* Space between stacked buttons */
  }
  .page-contact__contact-methods {
    padding-left: 0;
    padding-right: 0;
  }
  .page-contact__method-card {
    margin-bottom: 15px;
  }
  .page-contact__contact-methods > div {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-contact__contact-form .page-contact__btn-primary {
    margin-top: 20px; /* Space after form fields */
  }
}

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

/* Color contrast enforcement based on body background #0a0a0a (dark) */
.page-contact {
  color: #ffffff; /* Light text for dark body background */
}

.page-contact__dark-bg {
  color: #ffffff; /* Deep dark background, so white text */
}

.page-contact__light-bg {
  /* This class is not explicitly used for backgrounds in this page,
     but if it were, it would need dark text. */
  color: #333333;
  background: #ffffff;
}

.page-contact__method-card,
.page-contact__faq-item {
  color: #ffffff; /* Ensure light text on these dark-themed cards */
}

.page-contact__form-label,
.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: #FFD700; /* Labels and placeholders can use auxiliary color */
}

.page-contact__form-input,
.page-contact__form-textarea {
  color: #ffffff; /* User input text should be light */
}