/* style/contact.css */
/* Base styles for .page-contact scope */
.page-contact {
  font-family: 'Arial', sans-serif;
  color: #FFF1E8; /* Default text color for dark backgrounds */
  background-color: #140C0C; /* Overall page background */
}

/* Header spacing for non-home pages: relying on shared.css body padding-top */
/* First content block should have minimal top padding */
.page-contact__hero-section {
  position: relative;
  overflow: hidden;
  padding-bottom: 50px; /* Adjust as needed */
  background-color: #140C0C; /* Background for hero section */
  padding-top: 10px; /* Minimal top padding */
}

.page-contact__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.2; /* Subtle background image */
}

.page-contact__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* filter: grayscale(50%); -- Removed as per instruction: no filter on images */
}

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #FFF1E8;
}

.page-contact__main-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F3C54D; /* Gold color for main title */
  max-width: 900px; /* Limit width for readability */
}

.page-contact__hero-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 800px;
}

.page-contact__hero-cta-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

/* General button styles */
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-contact__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #FFF1E8;
  border: none;
}

.page-contact__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-contact__btn-secondary {
  background: transparent;
  color: #F3C54D;
  border: 2px solid #F3C54D;
}

.page-contact__btn-secondary:hover {
  background: #F3C54D;
  color: #140C0C;
}

/* Container for general content sections */
.page-contact__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.page-contact__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #F3C54D;
}

.page-contact__section-description {
  font-size: 17px;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #FFF1E8;
}

/* Section specific styles */
.page-contact__why-contact {
  background-color: #140C0C; /* Dark background */
  color: #FFF1E8; /* Light text */
}

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

.page-contact__feature-item {
  background-color: #2A1212; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #6A1E1E; /* Border color */
}

.page-contact__feature-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #F3C54D;
}

.page-contact__feature-text {
  font-size: 16px;
  line-height: 1.6;
  color: #FFF1E8;
}

.page-contact__contact-methods {
  background-color: #140C0C; /* Dark background */
  color: #FFF1E8;
}

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

.page-contact__method-card {
  background-color: #2A1212; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #6A1E1E; /* Border color */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-contact__method-icon {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #6A1E1E;
}

.page-contact__method-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #F3C54D;
}

.page-contact__method-text {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1; /* Push button to bottom */
  color: #FFF1E8;
}

.page-contact__social-links {
    display: flex;
    gap: 10px;
    margin-top: auto; /* Push to bottom */
    width: 100%;
    justify-content: center;
}

.page-contact__social-btn {
    flex: 1;
    max-width: 150px;
}

.page-contact__form-section {
  background-color: #140C0C; /* Dark background */
  color: #FFF1E8;
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px;
  background-color: #2A1212; /* Card BG */
  border-radius: 10px;
  border: 1px solid #6A1E1E;
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #6A1E1E; /* Border color */
  border-radius: 8px;
  background-color: #140C0C; /* Background */
  color: #FFF1E8; /* Text Main */
  font-size: 16px;
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: #7E0D0D; /* Deep Red for placeholder */
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: #F3C54D; /* Gold on focus */
  box-shadow: 0 0 0 3px rgba(243, 197, 77, 0.3);
}

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

.page-contact__form-submit-btn {
  width: 100%;
  padding: 18px 25px;
  font-size: 18px;
  margin-top: 20px;
}

.page-contact__faq-section {
  background-color: #140C0C; /* Dark background */
  color: #FFF1E8;
}

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

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #6A1E1E; /* Border color */
  overflow: hidden;
  background: #2A1212; /* Card BG */
}
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;
  color: #F3C54D; /* Gold for question text */
}
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: #2A1212; /* Keep same background on hover for now, or slightly darker */
  filter: brightness(1.1);
}
.page-contact__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-contact__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F3C54D;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-contact__faq-item .page-contact__faq-answer {
  padding: 0 20px 20px;
  background: #140C0C; /* Background */
  border-radius: 0 0 8px 8px;
  color: #FFF1E8; /* Text Main */
}
.page-contact__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.page-contact__operating-hours {
  background-color: #140C0C; /* Dark background */
  color: #FFF1E8;
}

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

.page-contact__info-card {
  background-color: #2A1212; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #6A1E1E; /* Border color */
}

.page-contact__info-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #F3C54D;
}

.page-contact__info-text {
  font-size: 16px;
  line-height: 1.6;
  color: #FFF1E8;
}

.page-contact__security-privacy {
  background-color: #140C0C; /* Dark background */
  color: #FFF1E8;
}

.page-contact__security-privacy .page-contact__section-description {
    margin-bottom: 30px;
}

.page-contact__security-privacy .page-contact__btn-secondary {
    margin: 0 auto;
    display: block;
    width: fit-content;
}

.page-contact__cta-bottom {
  background-color: #140C0C; /* Dark background */
  color: #FFF1E8;
}

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

/* All images must be responsive */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block; /* Remove extra space below images */
}

/* --- Responsive styles for 1024px and below --- */
@media (max-width: 1024px) {
  .page-contact__container {
    padding: 50px 30px;
  }

  .page-contact__main-title {
    font-size: 40px;
  }

  .page-contact__hero-description {
    font-size: 17px;
  }

  .page-contact__section-title {
    font-size: 32px;
  }

  .page-contact__methods-grid,
  .page-contact__features-grid,
  .page-contact__info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-contact__contact-form {
    padding: 35px;
  }

  .page-contact__faq-qtext {
    font-size: 17px;
  }
}

/* --- Responsive styles for 768px and below --- */
@media (max-width: 768px) {
  /* General mobile adjustments */
  .page-contact__container {
    padding: 40px 15px;
  }

  .page-contact__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-contact__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-contact__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px; /* Add padding to container */
    box-sizing: border-box;
  }

  .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;
    font-size: 15px;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-contact__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

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

  /* Why Contact section */
  .page-contact__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Contact Methods section */
  .page-contact__methods-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-contact__method-icon {
    height: 150px; /* Adjust height for mobile */
  }

  .page-contact__method-title {
    font-size: 20px;
  }

  .page-contact__method-text {
    font-size: 15px;
  }

  .page-contact__social-links {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .page-contact__social-btn {
    max-width: 100%;
  }

  /* Contact Form section */
  .page-contact__contact-form {
    padding: 30px 20px;
  }

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

  .page-contact__form-label {
    font-size: 15px;
  }

  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 12px;
    font-size: 15px;
  }

  .page-contact__form-submit-btn {
    font-size: 16px;
    padding: 15px 20px;
  }

  /* FAQ section */
  .page-contact__faq-list {
    margin-top: 30px;
  }

  details.page-contact__faq-item summary.page-contact__faq-question {
    padding: 15px;
  }

  .page-contact__faq-qtext {
    font-size: 16px;
  }

  .page-contact__faq-toggle {
    font-size: 24px;
    width: 25px;
  }

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

  /* Operating Hours section */
  .page-contact__info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-contact__info-title {
    font-size: 20px;
  }

  .page-contact__info-text {
    font-size: 15px;
  }

  /* CTA Bottom section */
  .page-contact__cta-buttons-bottom {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px; /* Add padding to container */
    box-sizing: border-box;
  }

  /* Image responsive enforcement */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__hero-cta-buttons,
  .page-contact__cta-buttons-bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}