/* style/contact.css */

/* Custom Colors */
:root {
  --page-contact-primary: #11A84E;
  --page-contact-secondary: #22C768;
  --page-contact-bg-dark: #08160F;
  --page-contact-card-bg: #11271B;
  --page-contact-text-main: #F2FFF6;
  --page-contact-text-secondary: #A7D9B8;
  --page-contact-border: #2E7A4E;
  --page-contact-glow: #57E38D;
  --page-contact-gold: #F2C14E;
  --page-contact-divider: #1E3A2A;
  --page-contact-deep-green: #0A4B2C;
  --page-contact-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* Base styles for the contact page */
.page-contact {
  font-family: 'Arial', sans-serif;
  color: var(--page-contact-text-main); /* Default text color for dark background */
  background-color: var(--background); /* Inherited from shared.css */
}

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

.page-contact__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--page-contact-text-main);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  overflow: hidden;
  background: var(--page-contact-deep-green);
}

.page-contact__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-contact__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  color: var(--page-contact-text-main);
}

.page-contact__main-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--page-contact-gold);
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-contact__subtitle {
  font-size: clamp(18px, 2.5vw, 24px);
  margin-bottom: 30px;
  line-height: 1.5;
  color: var(--page-contact-text-secondary);
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__btn-primary {
  background: var(--page-contact-button-gradient);
  color: #ffffff;
  border: none;
}

.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: var(--page-contact-card-bg);
  color: var(--page-contact-primary);
  border: 2px solid var(--page-contact-primary);
}

.page-contact__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: var(--page-contact-primary);
  color: #ffffff;
}

/* Contact Methods Section */
.page-contact__contact-methods {
  padding: 80px 0;
  background-color: #ffffff; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-contact__contact-methods .page-contact__section-title,
.page-contact__contact-methods .page-contact__section-description {
  color: #333333;
}

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

.page-contact__method-card {
  background-color: var(--page-contact-card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--page-contact-border);
  color: var(--page-contact-text-main);
}

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

.page-contact__icon-wrapper {
  width: 80px;
  height: 80px;
  background: var(--page-contact-deep-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 15px rgba(var(--page-contact-primary), 0.5);
}

.page-contact__icon {
  font-size: 40px;
  color: var(--page-contact-gold);
  /* Placeholder for actual icons */
  display: inline-block;
  width: 40px;
  height: 40px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.page-contact__icon--chat { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23F2C14E"><path d="M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H6l-2 2V4h16v12z"/></svg>'); }
.page-contact__icon--email { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23F2C14E"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>'); }
.page-contact__icon--phone { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23F2C14E"><path d="M20.01 15.38c-1.23 0-2.42-.19-3.56-.55-.35-.12-.74-.03-1.01.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.59l2.2-2.2c.28-.28.36-.67.24-1.02-.37-1.14-.56-2.33-.56-3.56 0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1C3 14.65 8.35 20 15.38 20c.55 0 1-.45 1-1v-3.01c0-.55-.45-1-1-1z"/></svg>'); }

.page-contact__method-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--page-contact-gold);
}

.page-contact__method-text {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--page-contact-text-secondary);
}

.page-contact__method-info {
  font-size: 16px;
  font-weight: 600;
  color: var(--page-contact-gold);
  margin-top: 10px;
}

/* Contact Form Section */
.page-contact__form-section {
  padding: 80px 0;
  background-color: var(--page-contact-bg-dark);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-contact__form-section .page-contact__container {
  position: relative;
  z-index: 2;
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 40px auto 0;
  background-color: var(--page-contact-card-bg);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-contact-border);
}

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

.page-contact__form-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--page-contact-text-main);
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--page-contact-border);
  border-radius: 8px;
  background-color: var(--page-contact-deep-green);
  color: var(--page-contact-text-main);
  font-size: 16px;
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: var(--page-contact-text-secondary);
  opacity: 0.7;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: var(--page-contact-gold);
  box-shadow: 0 0 0 3px rgba(var(--page-contact-gold), 0.3);
}

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

.page-contact__form-submit {
  width: auto;
  padding: 15px 40px;
  font-size: 18px;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  background: var(--page-contact-button-gradient);
  color: #ffffff;
  font-weight: 700;
  transition: all 0.3s ease;
}

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

.page-contact__form-illustration {
  max-width: 400px;
  margin-top: 50px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  filter: brightness(0.8);
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
  text-align: center;
}

.page-contact__faq-section .page-contact__section-title,
.page-contact__faq-section .page-contact__section-description {
  color: #333333;
}

.page-contact__faq-list {
  max-width: 900px;
  margin: 40px auto;
  text-align: left;
}

.page-contact__faq-item {
  background-color: var(--page-contact-card-bg);
  border: 1px solid var(--page-contact-border);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--page-contact-text-main);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  background-color: var(--page-contact-deep-green);
  color: var(--page-contact-gold);
  border-bottom: 1px solid var(--page-contact-divider);
  transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
  background-color: var(--page-contact-primary);
}

.page-contact__faq-question::-webkit-details-marker {
  display: none;
}

.page-contact__faq-qtext {
  flex-grow: 1;
}

.page-contact__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
  transform: rotate(45deg);
}

.page-contact__faq-answer {
  padding: 20px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--page-contact-text-secondary);
  background-color: var(--page-contact-card-bg);
}

.page-contact__faq-answer p {
  margin-bottom: 10px;
  color: var(--page-contact-text-secondary);
}

.page-contact__faq-illustration {
  max-width: 500px;
  margin-top: 50px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Why Choose Section */
.page-contact__why-choose {
  padding: 80px 0;
  background-color: var(--page-contact-bg-dark);
  text-align: center;
}

.page-contact__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-contact__feature-card {
  background-color: var(--page-contact-card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--page-contact-border);
  color: var(--page-contact-text-main);
}

.page-contact__feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-contact__feature-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--page-contact-gold);
}

.page-contact__feature-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--page-contact-text-secondary);
}

.page-contact__why-choose-illustration {
  max-width: 800px;
  margin-top: 50px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  filter: brightness(0.8);
}

/* CTA Banner */
.page-contact__cta-banner {
  padding: 80px 0;
  background-color: var(--page-contact-deep-green);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-contact__cta-banner .page-contact__container {
  position: relative;
  z-index: 2;
}

.page-contact__cta-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: var(--page-contact-gold);
  margin-bottom: 20px;
}

.page-contact__cta-description {
  font-size: 18px;
  color: var(--page-contact-text-secondary);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

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

.page-contact__cta-illustration {
  max-width: 600px;
  margin-top: 50px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  filter: brightness(0.7);
}

/* Responsive Styles */

/* All images responsive */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
  .page-contact__container,
  .page-contact__hero-section,
  .page-contact__contact-methods,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__why-choose,
  .page-contact__cta-banner {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
    min-height: 400px;
  }

  .page-contact__main-title {
    font-size: clamp(28px, 8vw, 40px);
  }

  .page-contact__subtitle {
    font-size: clamp(16px, 4vw, 20px);
  }

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

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

  .page-contact__section-title {
    font-size: clamp(24px, 6vw, 36px);
  }

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

  .page-contact__methods-grid,
  .page-contact__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

  .page-contact__form-submit {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
  }

  .page-contact__faq-question {
    font-size: 16px;
    padding: 15px;
  }

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

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

  /* Ensure no overflow for containers */
  .page-contact__hero-image-wrapper,
  .page-contact__form-illustration,
  .page-contact__faq-illustration,
  .page-contact__why-choose-illustration,
  .page-contact__cta-illustration {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}