/* Base styles for the contact page */
.page-contact {
  background-color: #08160F; /* Custom color 'Background' */
  color: #F2FFF6; /* Custom color 'Text Main' */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-contact__hero-section {
  padding-top: 10px; /* Small top padding, relying on body padding for header offset */
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-contact__hero-image {
  width: 100%;
  max-height: 600px; /* Limit height for aesthetic reasons */
  overflow: hidden;
  margin-bottom: 20px;
}

.page-contact__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover the area, allow cropping */
}

.page-contact__hero-content {
  max-width: 800px;
  padding: 0 20px;
}

.page-contact__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #F2C14E; /* Custom color 'Gold' for emphasis */
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-contact__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #F2FFF6;
}

.page-contact__hero-cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
  color: #F2FFF6; /* Custom text color */
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__hero-cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* General Section Styling */
.page-contact__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #F2C14E; /* Custom color 'Gold' */
  text-align: center;
  margin-bottom: 20px;
  font-weight: 600;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.page-contact__section-description {
  font-size: 1rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  color: #A7D9B8; /* Custom color 'Text Secondary' */
}

/* Contact Methods Section */
.page-contact__contact-methods-section {
  padding: 40px 0;
}

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

.page-contact__method-card {
  background-color: #11271B; /* Custom color 'Card BG' */
  border: 1px solid #2E7A4E; /* Custom color 'Border' */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-contact__method-icon {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 8px;
}

.page-contact__method-title {
  font-size: 1.5rem;
  color: #F2FFF6; /* Custom color 'Text Main' */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-contact__method-text {
  font-size: 0.95rem;
  color: #A7D9B8; /* Custom color 'Text Secondary' */
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-contact__method-button {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
  color: #F2FFF6; /* Custom text color */
  text-decoration: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__method-button:hover {
  transform: translateY(-2px);
}

.page-contact__social-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.page-contact__social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  color: #F2FFF6; /* Custom text color */
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__social-button--facebook {
  background-color: #3b5998;
}

.page-contact__social-button--facebook:hover {
  background-color: #2d4373;
}

.page-contact__social-button--telegram {
  background-color: #0088cc;
}

.page-contact__social-button--telegram:hover {
  background-color: #006699;
}

/* Reasons Section */
.page-contact__reasons-section, .page-contact__commitment-section {
  padding: 40px 0;
}

.page-contact__reasons-list, .page-contact__commitment-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
  color: #F2FFF6;
}

.page-contact__reasons-item, .page-contact__commitment-item {
  background-color: #11271B;
  border: 1px solid #2E7A4E; /* Custom color 'Border' */
  border-radius: 8px;
  padding: 18px 25px;
  margin-bottom: 15px;
  font-size: 1.05rem;
  line-height: 1.5;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease;
}

.page-contact__reasons-item:hover, .page-contact__commitment-item:hover {
  background-color: #1a3528;
}

.page-contact__reasons-item strong, .page-contact__commitment-item strong {
  color: #F2C14E; /* Custom color 'Gold' */
}

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

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

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #2E7A4E; /* Custom color 'Border' */
  overflow: hidden;
  background: #11271B; /* Custom color 'Card BG' */
}

details.page-contact__faq-item summary.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #F2FFF6; /* Custom color 'Text Main' */
}

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

details.page-contact__faq-item summary.page-contact__faq-question:hover {
  background: #1a3528;
}

.page-contact__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}

.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F2C14E; /* Custom color 'Gold' */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-contact__faq-item .page-contact__faq-answer {
  padding: 0 20px 20px;
  background: #0e2017; /* Slightly lighter than card bg for contrast */
  border-radius: 0 0 8px 8px;
  color: #A7D9B8; /* Custom color 'Text Secondary' */
  font-size: 1rem;
}

/* CTA Banner */
.page-contact__cta-banner {
  background: linear-gradient(90deg, #0A4B2C 0%, #11A84E 100%); /* Deep Green to Main Color */
  padding: 60px 20px;
  text-align: center;
  margin-top: 60px;
  border-top: 3px solid #F2C14E; /* Gold border */
}

.page-contact__cta-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: #F2FFF6; /* Custom color 'Text Main' */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-contact__cta-description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Custom color 'Text Secondary' */
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-contact__cta-button--large {
  display: inline-block;
  padding: 18px 40px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
  color: #F2FFF6; /* Custom text color */
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__cta-button--large:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* --- Responsive Styles --- */

/* @media (max-width: 1024px) for larger tablets/laptops */
@media (max-width: 1024px) {
  .page-contact__container {
    padding: 15px;
  }

  .page-contact__hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3rem);
  }

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

  .page-contact__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }

  .page-contact__methods-grid {
    gap: 20px;
  }

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

  .page-contact__method-title {
    font-size: 1.3rem;
  }

  .page-contact__method-text {
    font-size: 0.9rem;
  }

  .page-contact__faq-qtext {
    font-size: 1rem;
  }

  .page-contact__faq-answer p {
    font-size: 0.95rem;
  }

  .page-contact__cta-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }
}

/* @media (max-width: 849px) for hero image object-fit contain */
@media (max-width: 849px) {
  .page-contact__hero-image img {
    object-fit: contain !important; /* Prevent cropping on smaller screens */
    aspect-ratio: unset !important; /* Allow natural aspect ratio */
    height: auto !important;
    max-height: 400px; /* Adjust max height for mobile hero */
  }
}

/* @media (max-width: 768px) for mobile devices */
@media (max-width: 768px) {
  .page-contact__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-contact__hero-section {
    padding-top: 10px; /* Small top padding, relying on body padding for header offset */
    margin-bottom: 30px;
  }

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

  .page-contact__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    aspect-ratio: unset !important;
  }

  .page-contact__hero-content {
    padding: 0 10px;
  }

  .page-contact__hero-title {
    font-size: clamp(2rem, 7vw, 2.5rem); /* Adjust for smaller screens */
    margin-bottom: 10px;
  }

  .page-contact__hero-description {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .page-contact__hero-cta-button {
    padding: 12px 25px;
    font-size: 1rem;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-contact__section-title {
    font-size: clamp(1.6rem, 6vw, 2rem);
    margin-bottom: 15px;
  }

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

  .page-contact__methods-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
  }

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

  .page-contact__method-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin-bottom: 15px;
  }

  .page-contact__method-title {
    font-size: 1.3rem;
  }

  .page-contact__method-text {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

  .page-contact__method-button {
    padding: 10px 20px;
    font-size: 0.95rem;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-contact__social-buttons {
    flex-direction: column; /* Stack social buttons vertically */
    gap: 10px;
  }

  .page-contact__social-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 15px;
  }

  .page-contact__reasons-section, .page-contact__commitment-section {
    padding: 30px 0;
  }

  .page-contact__reasons-item, .page-contact__commitment-item {
    padding: 15px 20px;
    font-size: 0.95rem;
  }

  details.page-contact__faq-item summary.page-contact__faq-question {
    padding: 15px;
  }

  .page-contact__faq-qtext {
    font-size: 1rem;
  }

  .page-contact__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }

  details.page-contact__faq-item .page-contact__faq-answer {
    padding: 0 15px 15px;
    font-size: 0.9rem;
  }

  .page-contact__cta-banner {
    padding: 40px 15px;
    margin-top: 40px;
  }

  .page-contact__cta-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 15px;
  }

  .page-contact__cta-description {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }

  .page-contact__cta-button--large {
    padding: 15px 30px;
    font-size: 1.1rem;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* General image and container rules for mobile to prevent overflow */
  .page-contact img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__hero-section,
  .page-contact__contact-methods-section,
  .page-contact__reasons-section,
  .page-contact__commitment-section,
  .page-contact__faq-section,
  .page-contact__cta-banner {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  /* Button specific overrides for mobile */
  .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;
  }

  .page-contact__social-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column !important;
  }
}