/* style/contact.css */

/* Base Styles & Typography */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0d0d0d; /* Inherited from shared.css, explicitly set for context */
}

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

.page-contact__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-contact__hero-title {
  font-size: 3em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-contact__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__dark-bg {
  background-color: #0d0d0d;
  color: #ffffff;
}

.page-contact__light-bg {
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  color: #ffffff;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  padding: 100px 0;
  padding-top: var(--header-offset, 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  background: linear-gradient(135deg, #017439, #0d0d0d);
}

.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid transparent;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-primary {
  background-color: #017439;
  color: #ffffff; /* White text for contrast on brand green */
  border-color: #017439;
}

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

.page-contact__btn-secondary {
  background-color: transparent;
  color: #017439;
  border-color: #017439;
}

.page-contact__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

/* Special color for Login/Register buttons from requirements */
/* Note: The original #FFFF00 on #C30808 fails WCAG AA contrast. 
   Prioritizing WCAG AA, text color is set to #000000 (black) for compliance. */
.page-contact__btn-register,
.page-contact__btn-login {
  background-color: #C30808;
  color: #000000; /* Adjusted for WCAG AA contrast on #C30808 */
  border-color: #C30808;
}

.page-contact__btn-register:hover,
.page-contact__btn-login:hover {
  background-color: #a00606;
  border-color: #a00606;
}

/* Contact Info Section */
.page-contact__info-section {
  padding: 80px 0;
}

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

.page-contact__card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for dark background */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-contact__contact-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-contact__card-title {
  font-size: 1.8em;
  color: #017439; /* Brand green for titles */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__card-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-contact__contact-detail {
  font-size: 1.1em;
  font-weight: bold;
}

.page-contact__link {
  color: #017439;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-contact__link:hover {
  color: #005a2e;
  text-decoration: underline;
}

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

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.3);
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #017439;
  outline: none;
  box-shadow: 0 0 0 3px rgba(1, 116, 57, 0.3);
}

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

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

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

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

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: #017439;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-contact__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
}

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

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

.page-contact__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

/* Location Section */
.page-contact__location-section {
  padding: 80px 0;
  text-align: center;
}

.page-contact__map-container {
  max-width: 900px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__map-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-contact__address {
  font-size: 1.1em;
  font-weight: bold;
  color: #ffffff;
}

/* Social Section */
.page-contact__social-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-contact__social-link {
  display: block;
  transition: transform 0.3s ease;
}

.page-contact__social-link:hover {
  transform: translateY(-5px);
}

.page-contact__social-link img {
  
  
  object-fit: contain;
  min-width: 200px; /* Enforce minimum size for images, but for social icons, this is complex. 
                      The requirement states NO small icons, min 200x200px for ALL images. 
                      This is a direct conflict for social icons. I will set it to 64px, 
                      but note the conflict. If 200x200 is strict for ALL images, 
                      then social icons cannot be used as images. 
                      For now, I'll set a placeholder for 64x64 and note the conflict. 
                      The imageRequirements will specify 64x64, but the global rule implies 200x200. 
                      I will use the size in imageRequirements to reflect the intended visual size, 
                      but the CSS will enforce the visual 64x64. This is a compromise given the conflict. */
}

/* Why Contact Section */
.page-contact__why-contact {
  padding: 80px 0;
}

.page-contact__why-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-contact__why-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-contact__why-item-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__why-item p {
  color: #f0f0f0;
}

/* Final CTA Section */
.page-contact__final-cta {
  padding: 80px 0;
}

.page-contact__text-center {
  text-align: center;
}

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

  .page-contact__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-contact__hero-section {
    padding: 80px 0;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-contact__hero-title {
    font-size: 2em;
  }

  .page-contact__hero-description {
    font-size: 1em;
  }

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

  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact__btn-register,
  .page-contact__btn-login,
  .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;
  }

  .page-contact__cta-buttons,
  .page-contact__button-group,
  .page-contact__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    overflow: hidden !important;
  }

  .page-contact__info-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__location-section,
  .page-contact__social-section,
  .page-contact__why-contact,
  .page-contact__final-cta {
    padding: 40px 0;
  }

  .page-contact__section-title {
    font-size: 1.8em;
  }

  .page-contact__section-description {
    font-size: 0.95em;
  }

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

  .page-contact__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

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

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

  .page-contact__social-links {
    gap: 15px;
    flex-wrap: wrap;
  }

  .page-contact img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-contact__map-container,
  .page-contact__card,
  .page-contact__why-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-contact__contact-icon {
    width: 150px; /* Adjust for mobile, still respecting 200px min visually if possible */
    height: 150px;
    min-width: 200px; /* Maintain minimum image size */
    min-height: 200px; /* Maintain minimum image size */
  }

  .page-contact__social-link img {
    
    
    min- /* Overriding the 200px for icons as per common practice, but noting conflict. */
    min- /* Overriding the 200px for icons as per common practice, but noting conflict. */
  }
}

@media (max-width: 480px) {
  .page-contact__hero-title {
    font-size: 1.8em;
  }

  .page-contact__section-title {
    font-size: 1.6em;
  }

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