/* style/contact.css */

/* Base Styles for .page-contact */
.page-contact {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #F5F7FA; /* Background color for the page content */
  padding-bottom: 40px; /* Add some bottom padding */
}

/* Section common styles */
.page-contact__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #E53935; /* Primary color for titles */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-contact__section-description {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

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

/* 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; /* Fixed small padding-top */
  background-color: #F5F7FA; /* Light background for hero */
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-contact__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure full width within max-width */
}

.page-contact__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-contact__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
}

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-contact__hero-content h1 {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 size */
  font-weight: 800;
  color: #E53935;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.page-contact__hero-content p {
  font-size: 1.15em;
  color: #555555;
  max-width: 900px;
  margin: 0 auto 30px;
}

/* Buttons */
.page-contact__cta-button,
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure buttons don't overflow */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-contact__btn-secondary {
  background: #ffffff;
  color: #E53935; /* Primary color text */
  border: 2px solid #E53935;
}

.page-contact__btn-secondary:hover {
  background: #f0f0f0;
  color: #E53935;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Contact Methods Section */
.page-contact__methods-section {
  padding: 80px 0;
  background-color: #F5F7FA; /* Light background */
}

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

.page-contact__method-card {
  background: #FFFFFF; /* Card background */
  border: 1px solid #E0E0E0; /* Card border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  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.1);
}

.page-contact__method-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
}

.page-contact__method-card h3 {
  font-size: 1.8em;
  color: #E53935;
  margin-bottom: 15px;
}

.page-contact__method-card p {
  font-size: 1em;
  color: #333333;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-contact__method-card a {
  text-decoration: none;
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 80px 0;
  background-color: #E53935; /* Dark background for FAQ section */
  color: #ffffff; /* White text for dark background */
}

.page-contact__faq-section .page-contact__section-title,
.page-contact__faq-section .page-contact__section-description {
  color: #ffffff; /* White text for titles and descriptions on dark background */
}

.page-contact__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.3); /* Lighter border for dark background */
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white background */
  color: #ffffff; /* Text color for FAQ items */
}
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;
}
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: rgba(255, 255, 255, 0.2); /* Hover effect for dark background */
}
.page-contact__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #ffffff; /* White text for question */
}
.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #ffffff; /* White toggle icon */
  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: rgba(0, 0, 0, 0.2); /* Darker background for answer */
  border-radius: 0 0 5px 5px;
}
.page-contact__faq-item .page-contact__faq-answer p {
  color: #f0f0f0; /* Lighter text for answer */
}

/* Feedback Form Section */
.page-contact__feedback-section {
    padding: 80px 0;
    background-color: #F5F7FA; /* Light background */
}

.page-contact__feedback-form {
    max-width: 700px;
    margin: 50px auto 0;
    padding: 40px;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.page-contact__form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333333;
    font-size: 1.1em;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #D0D0D0;
    border-radius: 5px;
    font-size: 1em;
    color: #333333;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #E53935;
    outline: none;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.2);
}

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

.page-contact__feedback-form .page-contact__btn-primary {
    width: auto; /* Allow button to size itself */
    padding: 15px 50px;
    font-size: 1.1em;
    margin-top: 15px;
}

/* Helper classes for background colors */
.page-contact__dark-bg {
  color: #ffffff; /* Deep text color for dark backgrounds */
}
.page-contact__light-bg {
  color: #333333; /* Deep text color for light backgrounds */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__section-title {
    font-size: 2em;
  }
  .page-contact__section-description {
    font-size: 1em;
  }
  .page-contact__hero-content h1 {
    font-size: clamp(1.8em, 5vw, 3em);
  }
  .page-contact__hero-content p {
    font-size: 1em;
  }
  .page-contact__methods-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-section {
    padding-top: 10px !important; /* Fixed small padding-top for mobile */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-contact__hero-image img {
    border-radius: 4px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-contact__cta-button,
  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact a[class*="button"],
  .page-contact a[class*="btn"] {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-top: 15px; /* Adjust margin for stacked buttons */
  }

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

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

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

  details.page-contact__faq-item summary.page-contact__faq-question { padding: 15px; }
  .page-contact__faq-qtext { font-size: 15px; }
  .page-contact__faq-item .page-contact__faq-answer { padding: 0 15px 15px; }

  .page-contact__feedback-form {
      padding: 20px;
      margin-top: 30px;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
      padding: 12px;
  }

  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__feedback-form {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
}

/* Contrast Fixes (if needed) */
.page-contact__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-contact__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}