/* style/contact.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-color: #333333;
  --light-gray: #f5f5f5;
  --border-color: #e0e0e0;
  --accent-login-color: #EA7C07; /* For login specific elements if any */
}

.page-content.page-contact {
  color: var(--text-color);
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--light-gray); /* Default background for main content sections */
}

/* 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 */
  background-color: var(--primary-color); /* Hero background to match brand */
  color: var(--secondary-color); /* White text on primary color background */
}

.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;
  border-radius: 8px; /* Added for softer look */
  overflow: hidden; /* Ensure image corners are rounded */
}

.page-contact__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

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

.page-contact__main-title {
  font-size: clamp(2em, 4vw, 2.5em); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.page-contact__hero-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: var(--secondary-color);
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--accent-login-color); /* Using login color for CTA */
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 10px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%; /* Button responsive */
  box-sizing: border-box; /* Button responsive */
  white-space: normal; /* Button responsive */
  word-wrap: break-word; /* Button responsive */
}

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

/* General Section Styling */
.page-contact__section {
  padding: 60px 20px;
  background-color: var(--secondary-color); /* Default section background */
  margin-bottom: 20px; /* Space between sections */
  border-radius: 8px; /* Consistent rounding */
}

.page-contact__section:last-of-type {
  margin-bottom: 0;
}

.page-contact__section-title {
  font-size: 2em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
}

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

.page-contact__container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box; /* Ensure padding is included in width */
}

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

.page-contact__card {
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  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;
}

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

.page-contact__card img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 4px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Enforce min image size */
}

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

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

.page-contact__email-link,
.page-contact__phone-link {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-contact__email-link:hover,
.page-contact__phone-link:hover {
  color: #1f85b3; /* Darker shade of primary color */
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  max-width: 100%; /* Button responsive */
  box-sizing: border-box; /* Button responsive */
  white-space: normal; /* Button responsive */
  word-wrap: break-word; /* Button responsive */
}

.page-contact__btn-primary {
  background: var(--primary-color);
  color: var(--secondary-color);
}

.page-contact__btn-primary:hover {
  background: #1f85b3; /* Darker shade of primary color */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.page-contact__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Contact Form */
.page-contact__contact-form-section {
  background-color: var(--light-gray);
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 30px;
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.page-contact__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-color);
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

.page-contact__form-textarea {
  resize: vertical;
}

/* FAQ Section */
.page-contact__faq-section {
  background-color: var(--light-gray); /* Different background for contrast */
}

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--secondary-color);
}
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: var(--light-gray);
}
.page-contact__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-color);
}
.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color); /* Using brand color for toggle */
  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: var(--light-gray);
  border-radius: 0 0 5px 5px;
  color: var(--text-color);
}

/* Why Contact Us Section */
.page-contact__why-contact-us {
  background-color: var(--primary-color); /* Brand color background for this section */
  color: var(--secondary-color); /* White text */
}

.page-contact__why-contact-us .page-contact__section-title,
.page-contact__why-contact-us .page-contact__section-description,
.page-contact__why-contact-us .page-contact__card-title,
.page-contact__why-contact-us .page-contact__card-text {
  color: var(--secondary-color); /* Ensure all text is white */
}

.page-contact__why-contact-us .page-contact__card {
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white card */
  border-color: rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__main-title {
    font-size: clamp(1.8em, 5vw, 2.2em);
  }
  .page-contact__section-title {
    font-size: 1.8em;
  }
  .page-contact__hero-description,
  .page-contact__section-description {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-content.page-contact {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-contact__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-contact__hero-image img {
    border-radius: 4px;
  }
  .page-contact__main-title {
    font-size: clamp(1.5em, 6vw, 2em);
    margin-bottom: 15px;
  }
  .page-contact__hero-description {
    margin-bottom: 20px;
  }
  .page-contact__cta-button {
    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;
  }

  .page-contact__section {
    padding: 40px 15px;
  }
  .page-contact__section-title {
    font-size: 1.6em;
    margin-bottom: 15px;
  }
  .page-contact__section-description {
    margin-bottom: 30px;
  }

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

  .page-contact__card {
    padding: 20px;
  }

  .page-contact__card img {
    min- /* Adjust min height for mobile */
  }

  /* Image responsive for all images within .page-contact */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* All containers for images/buttons in mobile */
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__contact-form,
  .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;
  }

  .page-contact__contact-form {
    padding: 20px;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px 12px;
  }

  .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;
  }

  /* If buttons use flex layout, ensure in mobile they wrap or stack */
  .page-contact__methods-grid .page-contact__btn-secondary {
    display: block; /* Stack buttons in cards on mobile */
  }

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