/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: var(--secondary-color, #FFFFFF); /* Default to white if var not set */
}

/* Ensure no double padding-top from body */
.page-contact__hero-section,
.page-contact__contact-methods,
.page-contact__form-section,
.page-contact__cta-section {
  padding-left: 20px;
  padding-right: 20px;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 60px;
  background-color: #f8f8f8;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 500px; /* Limit height for hero image */
  display: block;
}

.page-contact__hero-content {
  max-width: 900px;
  margin-top: 30px;
  color: #333333; /* Dark text on light background */
}

.page-contact__main-title {
  font-size: clamp(2em, 4vw, 3em); /* Responsive font size for H1 */
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #017439; /* Brand color for H1 */
}

.page-contact__hero-description {
  font-size: 1.1em;
  margin-bottom: 20px;
}

/* Section common styles */
.page-contact__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-contact__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #017439; /* Brand color for section titles */
}

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

/* Contact Methods Section */
.page-contact__contact-methods {
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: #FFFFFF; /* Light background */
}

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

.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(-5px);
}

.page-contact__method-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-contact__card-text {
  font-size: 0.95em;
  margin-bottom: 25px;
}

/* Form Section */
.page-contact__form-section {
  padding-top: 80px;
  padding-bottom: 80px;
  background-color: #017439; /* Dark background */
  color: #ffffff; /* White text for dark background */
}

.page-contact__form-section .page-contact__section-title,
.page-contact__form-section .page-contact__section-description {
  color: #ffffff; /* White text */
}

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

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

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

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

.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 {
  outline: none;
  border-color: #FFFF00; /* Yellow for focus */
  box-shadow: 0 0 0 3px rgba(255, 255, 0, 0.3);
}

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

.page-contact__form-actions {
  text-align: center;
}

.page-contact__btn-submit {
  padding: 15px 40px;
  font-size: 1.1em;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.page-contact__form-message {
  text-align: center;
  margin-top: 20px;
  font-weight: bold;
  color: #FFFF00; /* Yellow for success/error messages */
}

/* CTA Section */
.page-contact__cta-section {
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: #FFFFFF; /* Light background */
}

.page-contact__cta-content {
  text-align: center;
}

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

/* Button styles */
.page-contact__btn-primary {
  background-color: #C30808; /* Red for register/login type buttons */
  color: #FFFF00; /* Yellow text for contrast */
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.page-contact__btn-primary:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-contact__btn-secondary {
  background-color: #017439; /* Brand green for secondary CTA */
  color: #FFFFFF; /* White text for contrast */
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.page-contact__btn-secondary:hover {
  background-color: #005a2e;
  transform: translateY(-2px);
}

/* Responsive styles */
@media (max-width: 992px) {
  .page-contact__hero-section {
    padding-bottom: 40px;
  }

  .page-contact__hero-image {
    max-height: 400px;
  }

  .page-contact__main-title {
    font-size: clamp(1.8em, 5vw, 2.5em);
  }

  .page-contact__section-title {
    font-size: clamp(1.6em, 4.5vw, 2.2em);
  }

  .page-contact__method-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

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

  /* Images responsive */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Containers for images, videos, buttons */
  .page-contact__hero-section,
  .page-contact__contact-methods,
  .page-contact__form-section,
  .page-contact__cta-section,
  .page-contact__container,
  .page-contact__method-card,
  .page-contact__contact-form,
  .page-contact__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__hero-section {
    padding-top: 10px !important; /* body handles header offset */
    padding-bottom: 30px;
  }

  .page-contact__hero-image {
    max-height: 300px;
  }

  .page-contact__hero-content {
    margin-top: 20px;
  }

  .page-contact__main-title {
    font-size: clamp(1.6em, 6vw, 2.2em);
  }

  .page-contact__section-title {
    font-size: clamp(1.4em, 5.5vw, 2em);
  }

  .page-contact__section-description {
    margin-bottom: 30px;
  }

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

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

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

  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 12px;
  }

  .page-contact__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    margin-top: 25px;
  }

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