/* style/contact.css */

/* --- Base Styles --- */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #f4f4f4; /* From shared.css body background */
}

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

.page-contact__section-title {
  font-size: 36px;
  color: #8B0000; /* Dark red for emphasis */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-contact__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__cta-button,
.page-contact__btn-primary,
.page-contact__method-button {
  display: inline-block;
  padding: 15px 40px;
  background: #FFD700; /* Primary brand color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.page-contact__cta-button:hover,
.page-contact__btn-primary:hover,
.page-contact__method-button:hover {
  background: #e6c200; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* --- 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: var(--header-offset, 120px); /* Fixed header spacing */
  overflow: hidden; /* Ensure content doesn't spill */
  background: #f4f4f4; /* Match body 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%;
}

.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: 12px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

.page-contact__main-title {
  font-size: 48px;
  color: #8B0000; /* Dark red for main title */
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.page-contact__hero-description {
  font-size: 20px;
  color: #555555;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-contact__method-card {
  background: #fdfdfd;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-contact__method-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.page-contact__method-icon {
  width: 100%; /* Max width for image in card */
  height: auto;
  max-width: 250px; /* Recommended size for card image */
  border-radius: 8px;
  margin-bottom: 25px;
  object-fit: cover;
}

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

.page-contact__method-text {
  font-size: 16px;
  color: #666666;
  margin-bottom: 25px;
  flex-grow: 1;
}

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

.page-contact__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: #FFD700;
  color: #ffffff;
  border-radius: 50%;
  font-size: 18px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-contact__social-icon:hover {
  background: #e6c200;
  transform: translateY(-3px);
}

/* --- Contact Form Section --- */
.page-contact__form-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #8B0000, #FFD700); /* Darker background with gradient */
  color: #ffffff; /* White text for dark background */
}

.page-contact__form-section .page-contact__section-title,
.page-contact__form-section .page-contact__section-description {
  color: #ffffff;
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.15); /* Slightly transparent white background */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2); /* Darker input background for contrast */
  color: #ffffff;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #FFD700;
  background: rgba(0, 0, 0, 0.3);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}

.page-contact__form-privacy {
  display: flex;
  align-items: center;
  margin-top: 30px;
}

.page-contact__form-privacy input[type="checkbox"] {
  margin-right: 10px;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: #FFD700; /* Gold checkbox */
}

.page-contact__form-privacy .page-contact__form-label {
  margin-bottom: 0;
  font-weight: normal;
  font-size: 15px;
}

.page-contact__privacy-link {
  color: #FFD700;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-contact__privacy-link:hover {
  color: #e6c200;
}

.page-contact__submit-button {
  width: 100%;
  padding: 18px;
  font-size: 20px;
  margin-top: 30px;
  border-radius: 10px;
  background: #FFD700;
  color: #ffffff;
}

.page-contact__submit-button:hover {
  background: #e6c200;
}

/* --- FAQ Section --- */
.page-contact__faq-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

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

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  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-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

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

.page-contact__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #333333;
}

.page-contact__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #8B0000; /* Dark red for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
  color: #FFD700; /* Gold when active */
}

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

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 2000px !important; /* Sufficiently large */
  padding: 20px 25px !important;
  opacity: 1;
  background: #ffffff;
  border-radius: 0 0 8px 8px;
  border: 1px solid #e0e0e0;
  border-top: none;
}

.page-contact__faq-answer p {
  margin: 0;
  font-size: 16px;
  color: #555555;
}

.page-contact__faq-link {
  color: #FFD700;
  text-decoration: underline;
}

.page-contact__faq-link:hover {
  color: #e6c200;
}

/* --- Why Choose Us Section --- */
.page-contact__why-us-section {
  padding: 80px 0;
  background: #8B0000; /* Secondary brand color */
  color: #ffffff;
}

.page-contact__why-us-section .page-contact__section-title,
.page-contact__why-us-section .page-contact__section-description {
  color: #ffffff;
}

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

.page-contact__feature-item {
  background: rgba(255, 255, 255, 0.15); /* Slightly transparent white for cards */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-contact__feature-item:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.25);
}

.page-contact__feature-icon {
  width: 100%; /* Max width for image in card */
  height: auto;
  max-width: 180px; /* Recommended size for feature icon */
  border-radius: 50%;
  margin-bottom: 25px;
  object-fit: cover;
  border: 4px solid #FFD700; /* Gold border */
}

.page-contact__feature-title {
  font-size: 24px;
  color: #FFD700; /* Gold for feature titles */
  margin-bottom: 15px;
  font-weight: 700;
}

.page-contact__feature-text {
  font-size: 16px;
  color: #f0f0f0;
}

/* --- Final CTA Section --- */
.page-contact__final-cta-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-contact__final-cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-contact__final-cta-content .page-contact__cta-button {
  margin-top: 30px;
  padding: 18px 50px;
  font-size: 22px;
  border-radius: 10px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-contact__main-title {
    font-size: 42px;
  }
  .page-contact__hero-description {
    font-size: 18px;
  }
  .page-contact__section-title {
    font-size: 32px;
  }
  .page-contact__section-description {
    font-size: 16px;
  }
  .page-contact__method-title,
  .page-contact__feature-title {
    font-size: 22px;
  }
  .page-contact__faq-question h3 {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile header spacing */
    padding-bottom: 40px;
  }

  .page-contact__main-title {
    font-size: 36px;
    margin-bottom: 15px;
  }
  .page-contact__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-contact__cta-button,
  .page-contact__btn-primary,
  .page-contact__method-button,
  .page-contact__submit-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 15px 25px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-contact__method-grid {
    grid-template-columns: 1fr;
  }
  
  .page-contact__method-card {
    padding: 25px;
  }

  .page-contact__form-section,
  .page-contact__methods-section,
  .page-contact__faq-section,
  .page-contact__why-us-section,
  .page-contact__final-cta-section {
    padding: 50px 0;
  }

  .page-contact__contact-form {
    padding: 30px 20px;
  }
  
  .page-contact__form-label {
    font-size: 16px;
  }
  
  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 12px;
    font-size: 15px;
  }

  .page-contact__faq-question {
    padding: 15px 20px;
  }
  
  .page-contact__faq-question h3 {
    font-size: 16px;
  }
  
  .page-contact__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
    margin-left: 15px;
  }
  
  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 15px 20px !important;
  }

  .page-contact__features-grid {
    grid-template-columns: 1fr;
  }

  .page-contact__feature-item {
    padding: 25px;
  }
  
  .page-contact__feature-icon {
    max-width: 150px;
  }
  
  .page-contact__final-cta-content .page-contact__cta-button {
    padding: 15px 30px;
    font-size: 18px;
  }

  /* Mobile image responsiveness */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  
  .page-contact__container,
  .page-contact__hero-container,
  .page-contact__method-grid,
  .page-contact__features-grid,
  .page-contact__contact-form,
  .page-contact__faq-section,
  .page-contact__final-cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Ensure no horizontal scroll */
  .page-contact {
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-contact__main-title {
    font-size: 30px;
  }
  .page-contact__section-title {
    font-size: 28px;
  }
  .page-contact__hero-image img {
    border-radius: 8px;
  }
  .page-contact__method-card,
  .page-contact__feature-item {
    border-radius: 8px;
  }
}