/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #F5F7FA; /* Custom background color */
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden;
}

.page-contact__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff; /* White text over hero image */
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 8px;
}

.page-contact__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff; /* Ensure white text */
}

.page-contact__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #ffffff; /* Ensure white text */
}

/* General Section Styling */
.page-contact__section {
  padding: 60px 20px;
  text-align: center;
}

.page-contact__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: #E53935; /* Main brand color for titles */
}

.page-contact__section-intro {
  font-size: 1.1rem;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #333333;
}

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

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

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

.page-contact__grid-item {
  background-color: #FFFFFF; /* Card background */
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  padding: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #333333;
}

.page-contact__grid-item .page-contact__image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 20px;
  max-width: 100%; /* Ensure responsiveness */
  height: auto; /* Ensure responsiveness */
  display: block;
}

.page-contact__item-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #E53935; /* Main brand color for item titles */
}

.page-contact__item-text {
  font-size: 1rem;
  color: #333333;
  flex-grow: 1; /* Allow text to take available space */
}

/* Dark Section Styling */
.page-contact__dark-section {
  background-color: #E53935; /* Main brand color */\  color: #ffffff;
}

.page-contact__dark-section .page-contact__section-title,
.page-contact__dark-section .page-contact__section-intro {
  color: #ffffff; /* White text for titles and intros in dark section */
}

.page-contact__dark-section .page-contact__card {
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white card on dark background */
  color: #ffffff;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-contact__dark-section .page-contact__card .page-contact__item-title {
  color: #ffffff; /* White text for card titles in dark section */
}

.page-contact__dark-section .page-contact__card .page-contact__item-text {
  color: #f0f0f0; /* Lighter white for card text in dark section */
}

.page-contact__email-link {
  color: #FF5A4F; /* Auxiliary color for links in dark section */
  text-decoration: underline;
}
.page-contact__email-link:hover {
  color: #ffffff;
}

/* CTA Buttons */
.page-contact__cta-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 20px;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.page-contact__cta-button--primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Custom button gradient */
  color: #ffffff;
  border: none;
}

.page-contact__cta-button--primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  transform: translateY(-2px);
}

.page-contact__cta-button--secondary {
  background-color: #ffffff;
  color: #E53935; /* Brand color for text */
  border: 2px solid #E53935;
}

.page-contact__cta-button--secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

/* Contact Form */
.page-contact__contact-form-section {
  background-color: #E53935; /* Main brand color for this section */
  color: #ffffff;
  text-align: left;
}

.page-contact__contact-form-section .page-contact__section-title,
.page-contact__contact-form-section .page-contact__section-intro {
  color: #ffffff;
  text-align: center;
}

.page-contact__form {
  max-width: 700px;
  margin: 40px auto 20px auto;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.page-contact__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #ffffff;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: calc(100% - 20px);
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 1rem;
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: #FF5A4F;
  box-shadow: 0 0 0 3px rgba(255, 90, 79, 0.3);
}

.page-contact__form-image {
  display: block;
  margin: 40px auto 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* FAQ Section */
.page-contact__faq-section {
  text-align: left;
}

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

.page-contact__faq-item {
  background-color: #FFFFFF; /* Card background */
  border: 1px solid #E0E0E0; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  background-color: #f9f9f9;
  color: #E53935; /* Main brand color for questions */
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-contact__faq-question:hover {
  background-color: #f0f0f0;
}

.page-contact__faq-qtext {
  flex-grow: 1;
  pointer-events: none; /* Allow click on summary to toggle */
}

.page-contact__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  margin-left: 15px;
  pointer-events: none; /* Allow click on summary to toggle */
  color: #FF5A4F; /* Auxiliary color */
}

.page-contact__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  color: #333333;
  line-height: 1.8;
}

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

.page-contact__faq-link {
  color: #E53935;
  text-decoration: underline;
  font-weight: 500;
}
.page-contact__faq-link:hover {
  color: #FF5A4F;
}

/* Additional Info Section */
.page-contact__additional-info {
  text-align: center;
}

.page-contact__info-block {
  margin-bottom: 30px;
  text-align: center;
}

.page-contact__info-block .page-contact__item-title {
  color: #E53935;
  margin-bottom: 10px;
}

.page-contact__info-block .page-contact__item-text {
  color: #333333;
  max-width: 800px;
  margin: 0 auto;
}

.page-contact__social-links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-contact__social-link {
  color: #E53935;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-contact__social-link:hover {
  color: #FF5A4F;
}

.page-contact__conclusion-text {
  font-size: 1.1rem;
  max-width: 900px;
  margin: 40px auto 0 auto;
  color: #333333;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-contact__hero-content {
    padding: 15px;
  }
  .page-contact__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-contact__description {
    font-size: 1rem;
  }
  .page-contact__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .page-contact__section {
    padding: 40px 15px;
  }
  .page-contact__hero-content {
    padding: 10px;
  }
  .page-contact__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-contact__description {
    font-size: 0.95rem;
  }
  .page-contact__section-intro {
    font-size: 1rem;
    margin-bottom: 30px;
  }
  .page-contact__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-contact__grid-item {
    padding: 20px;
  }
  .page-contact__item-title {
    font-size: 1.3rem;
  }
  .page-contact__item-text {
    font-size: 0.95rem;
  }
  .page-contact__form {
    padding: 20px;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    width: 100%; /* Full width for mobile */
  }
  .page-contact__cta-button {
    padding: 10px 20px;
    font-size: 0.95rem;
    width: 100% !important; /* Mobile button full width */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Image responsiveness for mobile */
  .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__hero-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
  .page-contact__hero-section {
    padding-top: 10px !important; /* body handles --header-offset, this is small visual padding */
  }
  .page-contact__contact-channels .page-contact__grid-item {
    padding-bottom: 20px; /* Adjust padding for buttons */
  }
  .page-contact__faq-question {
    font-size: 1rem;
    padding: 15px;
  }
  .page-contact__faq-toggle {
    font-size: 1.2rem;
  }
  .page-contact__faq-answer {
    padding: 0 15px 15px 15px;
  }
  .page-contact__social-links {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-contact__main-title {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }
  .page-contact__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
  .page-contact__cta-button {
    font-size: 0.9rem;
  }
}