/* style/contact.css */

/* --- Base Styles --- */
.page-contact {
  color: var(--text-main); /* #F2FFF6 */
  background-color: var(--background); /* #08160F */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 40px; /* Add some padding at the bottom for overall page */
}

.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: var(--text-main); /* #F2FFF6 */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-contact__section-description {
  font-size: 1.1em;
  color: var(--text-secondary); /* #A7D9B8 */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Hero Section --- */
.page-contact__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  position: relative;
  overflow: hidden;
  background-color: var(--deep-green); /* #0A4B2C */
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for aesthetic */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-contact__hero-content {
  padding: 40px 20px;
  text-align: center;
  max-width: 900px;
  margin-top: -80px; /* Overlap slightly with image for visual flow */
  position: relative;
  z-index: 1;
  background-color: var(--card-bg); /* #11271B */
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  margin-left: 20px;
  margin-right: 20px;
}

.page-contact__main-title {
  font-size: 3em;
  font-weight: bold;
  color: var(--gold); /* #F2C14E */
  line-height: 1.2;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-contact__intro-text {
  font-size: 1.2em;
  color: var(--text-main); /* #F2FFF6 */
  max-width: 700px;
  margin: 0 auto;
}

/* --- Contact Info Section --- */
.page-contact__contact-info-section {
  padding: 80px 0;
  background-color: var(--background); /* #08160F */
}

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

.page-contact__info-card {
  background-color: var(--card-bg); /* #11271B */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border); /* #2E7A4E */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__info-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__info-card-title {
  font-size: 1.8em;
  color: var(--gold); /* #F2C14E */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__info-card-text {
  color: var(--text-secondary); /* #A7D9B8 */
  margin-bottom: 20px;
}

.page-contact__info-card-link {
  color: var(--glow); /* #57E38D */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-contact__info-card-link:hover {
  color: var(--text-main); /* #F2FFF6 */
  text-decoration: underline;
}

/* --- Contact Form Section --- */
.page-contact__form-section {
  padding: 80px 0;
  background-color: var(--deep-green); /* #0A4B2C */
}

.page-contact__contact-form {
  background-color: var(--card-bg); /* #11271B */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--border); /* #2E7A4E */
}

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

.page-contact__form-label {
  display: block;
  margin-bottom: 10px;
  font-size: 1.1em;
  color: var(--text-main); /* #F2FFF6 */
  font-weight: bold;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--border); /* #2E7A4E */
  border-radius: 5px;
  background-color: #0d1e15; /* Slightly lighter than card-bg for contrast */
  color: var(--text-main); /* #F2FFF6 */
  font-size: 1em;
  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); /* #A7D9B8 */
  opacity: 0.7;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: var(--glow); /* #57E38D */
  box-shadow: 0 0 0 3px rgba(87, 227, 141, 0.3);
  outline: none;
}

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

.page-contact__submit-button {
  display: block;
  width: 100%;
  padding: 15px 30px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  background: var(--button); /* linear-gradient(180deg, #2AD16F 0%, #13994A 100%) */
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.page-contact__submit-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Reverse gradient on hover */
  transform: translateY(-2px);
}

/* --- Working Hours Section --- */
.page-contact__working-hours-section {
  padding: 80px 0;
  background-color: var(--background); /* #08160F */
}

.page-contact__hours-card {
  background-color: var(--card-bg); /* #11271B */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid var(--border); /* #2E7A4E */
}

.page-contact__hours-text {
  font-size: 1.1em;
  color: var(--text-main); /* #F2FFF6 */
  margin-bottom: 15px;
}

.page-contact__hours-text strong {
  color: var(--gold); /* #F2C14E */
}

/* --- FAQ Section --- */
.page-contact__faq-section {
  padding: 80px 0;
  background-color: var(--deep-green); /* #0A4B2C */
}

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

.page-contact__faq-item {
  background-color: var(--card-bg); /* #11271B */
  border: 1px solid var(--border); /* #2E7A4E */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text-main); /* #F2FFF6 */
  cursor: pointer;
  background-color: #11271B; /* Match card-bg */
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-contact__faq-question::-webkit-details-marker {
  display: none; /* For details/summary */
}

.page-contact__faq-question:hover {
  background-color: #1a3023; /* Slightly lighter hover for background */
}

.page-contact__faq-qtext {
  flex-grow: 1;
  color: var(--gold); /* #F2C14E */
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--glow); /* #57E38D */
}

.page-contact__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: var(--text-secondary); /* #A7D9B8 */
  line-height: 1.8;
  /* For details tag, the content is naturally hidden/shown */
}

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

.page-contact__faq-answer a {
  color: var(--glow); /* #57E38D */
  text-decoration: underline;
}

.page-contact__faq-answer a:hover {
  color: var(--text-main); /* #F2FFF6 */
}

/* --- CTA Section --- */
.page-contact__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--deep-green); /* #0A4B2C */
  border-top: 1px solid var(--divider); /* #1E3A2A */
}

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

.page-contact__cta-button {
  padding: 15px 35px;
  font-size: 1.2em;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button respects container width */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
}

.page-contact__btn-primary {
  background: var(--button); /* linear-gradient(180deg, #2AD16F 0%, #13994A 100%) */
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-contact__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-contact__btn-secondary {
  background: transparent;
  color: var(--glow); /* #57E38D */
  border: 2px solid var(--glow); /* #57E38D */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-contact__btn-secondary:hover {
  background-color: rgba(87, 227, 141, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-contact__main-title {
    font-size: 2.5em;
  }
  .page-contact__section-title {
    font-size: 2em;
  }
  .page-contact__info-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

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

  .page-contact__hero-content {
    margin-top: -60px;
    padding: 30px 15px;
  }

  .page-contact__main-title {
    font-size: 2em !important;
  }

  .page-contact__intro-text {
    font-size: 1em;
  }

  .page-contact__section-title {
    font-size: 1.8em !important;
  }
  
  .page-contact__section-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-contact__contact-info-section,
  .page-contact__form-section,
  .page-contact__working-hours-section,
  .page-contact__faq-section,
  .page-contact__cta-section {
    padding: 40px 0;
  }

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

  .page-contact__form-input,
  .page-contact__form-textarea,
  .page-contact__submit-button {
    padding: 12px;
    font-size: 1em;
  }

  .page-contact__info-card-title {
    font-size: 1.5em;
  }

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

  .page-contact__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 15px 15px;
    font-size: 1.1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Mobile image responsiveness */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-contact__hero-image-wrapper,
  .page-contact__info-card,
  .page-contact__form-group,
  .page-contact__hours-card,
  .page-contact__faq-item,
  .page-contact__cta-section,
  .page-contact__contact-form,
  .page-contact__info-grid,
  .page-contact__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure containers don't overflow */
  }

  .page-contact__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
  
  /* Remove padding from containers that already have padding-left/right */
  .page-contact__container {
    padding-left: 0;
    padding-right: 0;
  }
  /* Specific sections should re-apply padding if needed */
  .page-contact__contact-info-section .page-contact__container,
  .page-contact__form-section .page-contact__container,
  .page-contact__working-hours-section .page-contact__container,
  .page-contact__faq-section .page-contact__container,
  .page-contact__cta-section .page-contact__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
}

@media (max-width: 480px) {
  .page-contact__main-title {
    font-size: 1.8em !important;
  }
  .page-contact__section-title {
    font-size: 1.5em !important;
  }
  .page-contact__info-card-title {
    font-size: 1.3em;
  }
  .page-contact__faq-question {
    font-size: 1em;
  }
  .page-contact__faq-toggle {
    font-size: 1.2em;
  }
}

/* Ensure desktop video container has width: 100% when used */
.page-contact__video-container {
  width: 100%; /* Important for desktop flex alignment */
}