/* style/contact.css */

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

/* --- Base Styles --- */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-color);
}

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

.page-contact__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  color: inherit; /* Inherit from parent section to handle contrast */
  font-weight: bold;
  line-height: 1.2;
}

.page-contact__description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit; /* Inherit from parent section */
}

.page-contact__description-small {
  font-size: 1em;
  text-align: center;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: inherit; /* Inherit from parent section */
}

/* --- Color Theme Application --- */
.page-contact__hero-section {
  background-color: var(--bg-color);
  color: var(--text-main);
}

.page-contact__dark-bg {
  background-color: var(--bg-color);
  color: var(--text-main);
  padding: 60px 0;
}

.page-contact__light-bg {
  background-color: #ffffff; /* Using white for light background for optimal contrast */
  color: #333333; /* Dark text for light background */\  padding: 60px 0;
}

/* Specific text color overrides for light background sections */
.page-contact__light-bg .page-contact__section-title,
.page-contact__light-bg .page-contact__description,
.page-contact__light-bg .page-contact__description-small,
.page-contact__light-bg p,
.page-contact__light-bg li {
  color: #333333;
}


/* --- Buttons --- */
.page-contact__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Crucial for responsive buttons */
}

.page-contact__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main);
  border: none;
}

.page-contact__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-contact__btn-secondary {
  background-color: var(--text-main);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-contact__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-main);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-contact__btn-small {
  padding: 8px 18px;
  font-size: 0.9em;
  border-radius: 5px;
}

/* --- Hero Section --- */
.page-contact__hero-section {
  display: flex;
  flex-direction: column; /* Stacks image and content vertically */
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  padding-bottom: 60px; /* Add some padding at the bottom of the hero section */
}

.page-contact__hero-image {
  width: 100%; /* Image takes full width of its container */
  max-width: 1200px; /* Constrain max width for large screens */
  height: auto;
  display: block;
  margin-bottom: 30px; /* Space between image and text content */
  border-radius: 12px; /* Example style */
  object-fit: cover; /* Ensure image covers area well */
}

.page-contact__main-title {
  font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size for H1 */
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-main);
}

.page-contact__hero-section .page-contact__description {
  font-size: 1.2em;
  max-width: 900px;
}

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

/* --- Info Section --- */
.page-contact__info-section {
  padding: 60px 0;
}

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

.page-contact__card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: var(--text-main);
}

.page-contact__card:hover {
  transform: translateY(-5px);
}

.page-contact__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--text-main);
}

.page-contact__card-text {
  font-size: 1em;
  color: var(--text-secondary);
}

/* --- Channels Section --- */
.page-contact__channels-section {
  padding: 60px 0;
}

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

.page-contact__channel-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-contact__channel-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%; /* Example style, ensure it's not small icon */
  border: 2px solid var(--border-color);
}

.page-contact__channel-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: var(--text-main);
}

.page-contact__channel-text {
  font-size: 0.95em;
  color: var(--text-secondary);
  flex-grow: 1; /* Push button to bottom */
  margin-bottom: 20px;
}

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

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

.page-contact__faq-item {
  background-color: #ffffff; /* Light background for FAQ items */
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333; /* Dark text for light background */
}

.page-contact__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f9f9f9;
  color: #333333;
  list-style: none; /* Remove default marker */
}

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

.page-contact__faq-question .page-contact__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 25px;
  text-align: center;
  color: var(--primary-color);
}

.page-contact__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #333333;
}

.page-contact__faq-answer p {
  margin: 0;
  padding-top: 15px;
}

/* --- Security Section & Outro Section --- */
.page-contact__security-section,
.page-contact__outro-section {
  text-align: center;
  padding: 60px 0;
}

.page-contact__security-section .page-contact__btn,
.page-contact__outro-section .page-contact__cta-buttons {
  margin-top: 30px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-contact__section-title {
    font-size: 2em;
  }
  .page-contact__main-title {
    font-size: clamp(1.8em, 6vw, 3em);
  }
}

@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-contact__container {
    padding: 0 15px; /* Add padding for mobile */
  }

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

  .page-contact__main-title {
    font-size: clamp(1.6em, 7vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-contact__description {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

  /* Buttons mobile adaptation */
  .page-contact__cta-button,
  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .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;
  }
  
  /* Button containers mobile adaptation */
  .page-contact__cta-buttons,
  .page-contact__button-group,
  .page-contact__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    overflow: hidden !important;
  }

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

  .page-contact__card {
    padding: 25px;
  }

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

  .page-contact__faq-item summary {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-contact__faq-answer {
    padding: 0 20px 15px 20px;
  }

  /* All images responsive for mobile */
  .page-contact img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* All image containers responsive for mobile */
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__channel-card,
  .page-contact__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  /* Small top padding for hero/sections on mobile */
  .page-contact__hero-section,
  .page-contact__info-section,
  .page-contact__channels-section,
  .page-contact__faq-section,
  .page-contact__security-section,
  .page-contact__outro-section {
    padding-top: 30px !important; /* Adjust section padding for mobile */
    padding-bottom: 30px !important;
  }
  .page-contact__hero-section {
    padding-top: 10px !important; /* Specific small top padding for hero */
  }
}