/* style/contact.css */

/* --- Custom Color Variables (from provided palette) --- */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;

  --button: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);

  --card-bg: #11271B;
  --background: #08160F;

  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;

  --border: #2E7A4E;

  --glow: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;

  /* RGB values for rgba usage */
  --background-color-rgb: 8, 22, 15;
  --card-bg-rgb: 17, 39, 27;
  --deep-green-rgb: 10, 75, 44;
  --glow-rgb: 87, 227, 141;
}

/* --- Base Styles & Layout --- */
.page-contact {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for the page */
  background-color: var(--background); /* Default background for the page */
}

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

.page-contact__section-title {
  font-size: clamp(28px, 3.5vw, 42px); /* Responsive H2 font size */
  color: var(--text-main);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

/* --- Hero Section --- */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  box-sizing: border-box;
  background-color: var(--background);
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain image width on larger screens */
  margin-bottom: 30px; /* Space between image and content */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-contact__hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.page-contact__main-title {
  font-size: clamp(32px, 4.5vw, 56px); /* H1 font size with clamp */
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page-contact__tagline {
  font-size: 20px;
  color: var(--text-main);
  margin-bottom: 40px;
  line-height: 1.7;
}

.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* --- Buttons --- */
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
}

.page-contact__btn-primary {
  background: var(--button); /* Custom button gradient */
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-contact__btn-secondary {
  background: none;
  color: var(--text-main);
  border: 2px solid var(--deep-green);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-contact__btn-secondary:hover {
  background: rgba(var(--deep-green-rgb), 0.2); /* Use RGB for rgba */
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* --- Contact Info Section --- */
.page-contact__info-section {
  padding: 80px 20px;
  background-color: var(--background);
  color: var(--text-main);
  text-align: center;
}

.page-contact__dark-section {
  background-color: var(--card-bg); /* Darker background for contrast */
  color: var(--text-main); /* Light text on 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: var(--background); /* Light background for card */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--deep-green);
}

.page-contact__method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-contact__method-icon {
  width: 200px; /* Min size 200x200px */
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block; /* Ensure it respects width/height */
}

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

.page-contact__method-text {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 25px;
  flex-grow: 1; /* Push button to bottom */
}

.page-contact__email-link,
.page-contact__phone-link {
  color: var(--glow);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.page-contact__email-link:hover,
.page-contact__phone-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* --- Contact Form Section --- */
.page-contact__form-section {
  padding: 80px 20px;
  background-color: var(--background);
  color: var(--text-main);
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 50px auto 0 auto;
  background-color: var(--card-bg);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--deep-green);
}

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

.page-contact__form-label {
  display: block;
  font-size: 17px;
  color: var(--text-main);
  margin-bottom: 10px;
  font-weight: 500;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 8px;
  border: 1px solid var(--divider);
  background-color: #0A1F16; /* Slightly lighter than card-bg for input contrast */
  color: var(--text-main);
  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: var(--text-secondary);
  opacity: 0.7;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: var(--glow);
  box-shadow: 0 0 0 3px rgba(var(--glow-rgb), 0.3); /* Use RGB for rgba */
  outline: none;
}

.page-contact__form-textarea {
  resize: vertical;
  min-height: 120px;
}

.page-contact__form-submit-btn {
  width: 100%;
  padding: 18px;
  font-size: 20px;
  margin-top: 20px;
}

/* --- FAQ Section --- */
.page-contact__faq-section {
  padding: 80px 20px;
  background-color: var(--card-bg);
  color: var(--text-main);
}

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

.page-contact__faq-item {
  background-color: var(--background);
  border: 1px solid var(--divider);
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.page-contact__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 19px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  background-color: #0A1F16; /* Slightly lighter than card-bg for contrast */
  transition: background-color 0.3s ease;
}

.page-contact__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-contact__faq-item summary:hover {
  background-color: #11271B; /* Darker on hover */
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-contact__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

.page-contact__faq-toggle {
  font-size: 24px;
  line-height: 1;
  color: var(--gold);
  transition: transform 0.3s ease;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
  transform: rotate(45deg); /* Rotate to form an 'X' or similar */
}

.page-contact__faq-answer {
  padding: 20px 25px;
  font-size: 16px;
  color: var(--text-secondary);
  border-top: 1px solid var(--divider);
  background-color: var(--background);
}

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

.page-contact__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-contact__faq-link {
  color: var(--glow);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

/* --- CTA Banner Section --- */
.page-contact__cta-banner {
  padding: 80px 20px;
  background-color: var(--deep-green);
  color: var(--text-main);
  text-align: center;
}

.page-contact__cta-banner .page-contact__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

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

.page-contact__cta-banner .page-contact__section-title {
  color: var(--gold);
  margin-bottom: 20px;
}

.page-contact__cta-banner .page-contact__section-description {
  color: var(--text-main);
  margin-bottom: 40px;
}

.page-contact__cta-image-wrapper {
  width: 100%;
  max-width: 600px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

/* --- Responsive Adjustments --- */
@media (min-width: 769px) {
  .page-contact__cta-banner .page-contact__container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .page-contact__cta-content {
    text-align: left;
    flex: 1;
    padding-right: 40px;
  }
  .page-contact__cta-image-wrapper {
    flex-shrink: 0;
  }
  .page-contact__hero-section {
    flex-direction: column; /* Keep image above text even on desktop */
  }
  .page-contact__hero-image-wrapper {
    margin-bottom: 40px;
  }
}


@media (max-width: 768px) {
  .page-contact__container {
    padding: 0 15px !important; /* Ensure padding on mobile */
  }

  .page-contact__hero-section {
    padding: 40px 15px !important;
    padding-top: 10px !important; /* Small top padding */
  }

  .page-contact__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-contact__main-title {
    font-size: 32px !important;
  }

  .page-contact__tagline {
    font-size: 17px;
    margin-bottom: 30px;
  }

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

  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    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__info-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__cta-banner {
    padding: 50px 15px !important;
  }

  .page-contact__contact-methods {
    grid-template-columns: 1fr;
    gap: 25px;
  }

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

  .page-contact__method-icon {
    width: 200px !important; /* Enforce min size */
    height: 150px !important;
  }

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

  .page-contact__form-submit-btn {
    padding: 15px;
    font-size: 18px;
  }

  .page-contact__faq-item summary {
    padding: 18px 20px;
    font-size: 17px;
  }

  .page-contact__faq-answer {
    padding: 18px 20px;
    font-size: 15px;
  }

  /* Mobile 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__cta-buttons,
  .page-contact__button-group,
  .page-contact__btn-container,
  .page-contact__video-section,
  .page-contact__video-container,
  .page-contact__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent overflow */
  }

  /* Content area image size enforcement */
  .page-contact__method-icon,
  .page-contact__cta-image,
  .page-contact__hero-image {
    min-width: 200px !important;
    min-height: 150px !important; /* Adjusted min-height for aspect ratio */
  }
}

/* Ensure all links have appropriate colors and contrast */
.page-contact a {
  color: var(--glow);
  text-decoration: underline;
}

.page-contact a:hover {
  color: var(--gold);
}