/* style/contact.css */

/* Variables from shared for consistency */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --text-dark: #333333;
  --text-light: #ffffff;
}

/* Base styles for the page content */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light background */
  background-color: var(--secondary-color); /* Matches body background from shared */
  overflow-x: hidden; /* Prevent horizontal scroll on desktop */
}

/* Container for consistent spacing */
.page-contact__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-contact__center-content {
  text-align: center;
}

/* Section titles and descriptions */
.page-contact__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Dark background sections */
.page-contact__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 60px 0;
}

.page-contact__dark-section .page-contact__section-title,
.page-contact__dark-section .page-contact__section-description,
.page-contact__dark-section h3 {
  color: var(--text-light);
}

/* Light background sections */
.page-contact__light-bg {
  background-color: var(--secondary-color);
  color: var(--text-dark);
  padding: 60px 0;
}

/* Hero Banner */
.page-contact__hero-banner {
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  text-align: center;
  position: relative;
  overflow: hidden; /* For any potential background elements */
  padding-bottom: 80px;
}

.page-contact__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
}

.page-contact__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

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

.page-contact__hero-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-contact__hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Buttons */
.page-contact__btn-primary {
  display: inline-block;
  padding: 15px 40px;
  background-color: var(--login-color); /* Using login color for primary CTA for emphasis */
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-contact__btn-primary:hover {
  background-color: #d16b00; /* Darker shade of #EA7C07 */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  background-color: transparent;
  color: var(--text-light);
  text-decoration: none;
  border: 2px solid var(--text-light);
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.page-contact__dark-section .page-contact__btn-secondary {
  color: var(--text-light);
  border-color: var(--text-light);
}

.page-contact__dark-section .page-contact__btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-contact__method-card {
  background-color: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  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;
  align-items: center;
  color: var(--text-dark);
}

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

.page-contact__method-icon {
  width: 100%; /* Ensure image fills card width */
  max-width: 400px; /* Limit max width for larger screens */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  min-height: 200px; /* Min size for images */
  min-width: 200px;
}

.page-contact__method-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__method-text {
  font-size: 1em;
  color: var(--text-dark);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-contact__card-link {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.95em;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

.page-contact__card-link:hover {
  background-color: #1f8ec4; /* Darker shade of #26A9E0 */
}

.page-contact__email-link {
  color: var(--primary-color);
  text-decoration: underline;
}
.page-contact__email-link:hover {
  color: #1f8ec4;
}

/* Contact Form */
.page-contact__form-section {
  padding: 60px 0;
}

.page-contact__form {
  max-width: 700px;
  margin: 0 auto;
  background-color: var(--secondary-color);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  color: var(--text-dark);
}

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

.page-contact__form-label {
  display: block;
  font-size: 1.1em;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--text-dark);
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
  background-color: var(--secondary-color);
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.2); /* Using rgba for primary color with opacity */
  outline: none;
}

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

.page-contact__form-submit {
  width: auto;
  padding: 15px 40px;
  font-size: 1.1em;
  margin-top: 20px;
}

/* Social Media */
.page-contact__social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-contact__social-icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.1em;
  transition: color 0.3s ease, transform 0.3s ease;
}

.page-contact__social-icon-link:hover {
  color: #1f8ec4; /* Darker shade of #26A9E0 */
  transform: translateY(-3px);
}

.page-contact__social-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 10px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
  min-width: 64px; /* Ensure min size for social icons */
  min-height: 64px;
}

.page-contact__social-icon-link:hover .page-contact__social-icon {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-contact__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
}

.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--secondary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-contact__faq-item.active .page-contact__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: var(--primary-color);
}

.page-contact__faq-question:hover {
  background-color: #f5f5f5;
  border-color: #d0d0d0;
}

.page-contact__faq-question:active {
  background-color: #eeeeee;
}

.page-contact__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-contact__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Rotate for 'x' effect, or just change to '-' */
}

.page-contact__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  color: var(--text-dark);
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 2000px !important; /* Ensure it expands sufficiently */
  padding: 20px 25px !important;
  opacity: 1;
  background-color: #f9f9f9;
  border-radius: 0 0 8px 8px;
  border-left: 1px solid var(--primary-color);
  border-right: 1px solid var(--primary-color);
  border-bottom: 1px solid var(--primary-color);
}

.page-contact__faq-answer p {
  margin-top: 0;
  margin-bottom: 1em;
  font-size: 1em;
  line-height: 1.6;
}
.page-contact__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-contact__faq-link {
  color: var(--primary-color);
  text-decoration: underline;
}
.page-contact__faq-link:hover {
  color: #1f8ec4;
}

/* Closing CTA */
.page-contact__closing-cta {
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Images: Global responsive and min-size rules */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* This applies to all img elements within .page-contact, ensuring the minimum size constraint */
.page-contact img:not(.page-contact__social-icon) { /* Exclude social icons from this strict min-size, they have their own smaller but acceptable min-size */
    min-width: 200px;
    min-height: 200px;
}
/* Social icons have a specific small size, ensure it's not below 64x64 on desktop */
.page-contact__social-icon {
    width: 64px;
    height: 64px;
}

/* Responsive design for images and buttons */
@media (max-width: 768px) {
  .page-contact {
    font-size: 15px;
  }

  .page-contact__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Ensure main content padding-top is reset for mobile if shared handles body */
  /* If shared doesn't handle body padding-top, this will be the effective one */
  .page-contact__hero-banner {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }

  .page-contact__hero-title {
    font-size: 2.2em;
  }

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

  .page-contact__section-title {
    font-size: 2em;
  }

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

  /* Buttons mobile adaptation */
  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact__card-link,
  .page-contact__form-submit,
  .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 !important;
    padding-right: 15px !important;
    margin-bottom: 10px; /* Add spacing between stacked buttons */
  }
}