/* style/contact.css */

/* Base styles for the page-contact scope */
.page-contact {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main for dark background */
  background-color: #0D0E12; /* Background color from palette */
}

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

/* Section titles */
.page-contact__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FFF3E6; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.page-contact__section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #FFA53A, #FF8C1A);
  margin: 10px auto 0;
  border-radius: 2px;
}

.page-contact__section-description {
  text-align: center;
  font-size: 18px;
  color: rgba(255, 243, 230, 0.8); /* Lighter version of Text Main */
  margin-bottom: 40px;
}

/* 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; /* Per instructions, small top padding */
  overflow: hidden; /* Ensure no image 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 flex item takes full width */
}

.page-contact__hero-image {
  width: 100%;
  margin-bottom: 30px;
  order: 1; /* Image first */
}

.page-contact__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  order: 2; /* Content after image */
}

.page-contact__hero-content h1 {
  font-size: 48px;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: bold;
}

.page-contact__hero-content p {
  font-size: 20px;
  color: rgba(255, 243, 230, 0.9); /* Lighter Text Main */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-contact__cta-button:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #FF8C1A 100%); /* Slightly brighter on hover */
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Info Section */
.page-contact__info-section {
  background-color: #0D0E12; /* Background from palette */
  padding: 60px 0;
  text-align: center;
}

.page-contact__dark-bg {
  background-color: #0D0E12; /* Consistent dark background */
  color: #FFF3E6;
}

.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: #17191F; /* Card BG from palette */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid #A84F0C; /* Border from palette */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-contact__card-title {
  font-size: 24px;
  color: #FFA53A; /* Auxiliary color */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__info-card p {
  color: rgba(255, 243, 230, 0.7); /* Lighter Text Main */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-contact__info-link,
.page-contact__info-address,
.page-contact__info-hours {
  color: #FFB04D; /* Glow color */
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  transition: color 0.3s ease;
}

.page-contact__info-link:hover {
  color: #FFA53A;
  text-decoration: underline;
}

.page-contact__info-image {
  margin-top: 50px;
  text-align: center;
}

.page-contact__info-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}


/* Form Section */
.page-contact__form-section {
  padding: 60px 0;
  background-color: #0D0E12; /* Background from palette */
}

.page-contact__contact-form {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  background-color: #17191F; /* Card BG from palette */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid #A84F0C; /* Border from palette */
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative; /* For image positioning */
  overflow: hidden;
}

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

.page-contact__form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #FFA53A; /* Auxiliary color */
  font-size: 16px;
}

.page-contact__contact-form input[type="text"],
.page-contact__contact-form input[type="email"],
.page-contact__contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #A84F0C; /* Border from palette */
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #FFF3E6; /* Text Main */
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__contact-form input::placeholder,
.page-contact__contact-form textarea::placeholder {
  color: rgba(255, 243, 230, 0.5); /* Lighter Text Main for placeholders */
}

.page-contact__contact-form input:focus,
.page-contact__contact-form textarea:focus {
  border-color: #FFA53A; /* Auxiliary color on focus */
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 165, 58, 0.3);
}

.page-contact__submit-button {
  display: inline-block;
  padding: 15px 50px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-contact__submit-button:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #FF8C1A 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__form-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.1; /* Subtle background image */
  pointer-events: none;
}

.page-contact__form-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Social Section */
.page-contact__social-section {
  background-color: #0D0E12; /* Background from palette */
  padding: 60px 0;
  text-align: center;
}

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

.page-contact__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 160px; /* Fixed width for better alignment */
  padding: 12px 15px;
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 8px;
  color: #FFB04D; /* Glow color */
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.page-contact__social-icon i {
  margin-right: 10px;
  font-size: 20px;
}

.page-contact__social-icon:hover {
  background-color: #FF8C1A; /* Main color on hover */
  color: #ffffff;
  border-color: #FF8C1A;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-contact__social-image {
  margin-top: 50px;
  text-align: center;
}

.page-contact__social-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 60px 0;
  background-color: #0D0E12; /* Background from palette */
}

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

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #A84F0C; /* Border from palette */
  overflow: hidden;
  background: #17191F; /* Card BG */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
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, 165, 58, 0.1); /* Subtle hover effect with auxiliary color */
}
.page-contact__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFA53A; /* Auxiliary color for questions */
}
.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFB04D; /* Glow color */
  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(23, 25, 31, 0.8); /* Slightly lighter than Card BG */
  border-radius: 0 0 5px 5px;
  color: rgba(255, 243, 230, 0.8); /* Lighter Text Main */
  font-size: 16px;
}
.page-contact__faq-answer p {
    margin-bottom: 0;
}
.page-contact__faq-answer a {
  color: #FFB04D;
  text-decoration: underline;
}
.page-contact__faq-answer a:hover {
  color: #FFA53A;
}

.page-contact__faq-image {
  margin-top: 50px;
  text-align: center;
}

.page-contact__faq-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-contact__hero-content h1 {
    font-size: 40px;
  }
  .page-contact__hero-content p {
    font-size: 18px;
  }
  .page-contact__section-title {
    font-size: 30px;
  }
  .page-contact__section-description {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-contact__container {
    padding: 30px 15px;
  }
  .page-contact__hero-section {
    padding-top: 10px !important; /* Consistent small top padding */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-contact__hero-image img {
    border-radius: 4px;
  }
  .page-contact__hero-content h1 {
    font-size: 32px;
    line-height: 1.3;
  }
  .page-contact__hero-content p {
    font-size: 16px;
    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__info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-contact__info-card {
    padding: 25px;
  }
  .page-contact__card-title {
    font-size: 20px;
  }
  .page-contact__info-link,
  .page-contact__info-address,
  .page-contact__info-hours {
    font-size: 16px;
  }

  .page-contact__contact-form {
    padding: 30px 20px;
  }
  .page-contact__form-group label {
    font-size: 15px;
  }
  .page-contact__contact-form input,
  .page-contact__contact-form textarea {
    font-size: 15px;
    padding: 10px 12px;
  }
  .page-contact__submit-button {
    padding: 12px 40px;
    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__social-links {
    flex-direction: column;
    gap: 15px;
  }
  .page-contact__social-icon {
    width: 100%;
    max-width: 250px; /* Keep some max-width for aesthetic */
    margin: 0 auto;
    font-size: 16px;
    padding: 10px 15px;
  }

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

  /* Mobile image responsiveness */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__contact-form,
  .page-contact__social-links,
  .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;
  }
}