/* style/contact.css */

/* Variables for consistent theming based on brand colors */
:root {
  --page-contact-primary-color: #1A2E4E; /* Dark blue */
  --page-contact-secondary-color: #FFD700; /* Gold */
  --page-contact-text-light: #ffffff;
  --page-contact-text-dark: #333333;
  --page-contact-bg-dark: #1A2E4E;
  --page-contact-bg-light: #f8f9fa; /* Lighter background for contrast */
  --page-contact-border-color: rgba(255, 255, 255, 0.1); /* For elements on dark backgrounds */
  --page-contact-card-bg: rgba(255, 255, 255, 0.08); /* Slightly visible card background on dark body */
}

/* Base styles for the contact page content */
.page-contact {
  color: var(--page-contact-text-light); /* Default text color for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-bottom: 60px; /* Add some padding at the bottom before the footer */
}

/* Fixed Header Spacing - Apply to the first main content section or main tag */
.page-contact__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background: var(--page-contact-bg-dark) url('[GALLERY:contact_hero:1920x1080:connection,customer_support,abstract,dark_blue,gold]') no-repeat center center/cover;
  color: var(--page-contact-text-light);
  text-align: center;
  padding: calc(var(--header-offset, 120px) + 60px) 20px 80px; /* Adjust top padding for header offset */
  position: relative;
  overflow: hidden;
}

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

.page-contact__main-title {
  font-size: 3.2em;
  color: var(--page-contact-secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-contact__description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px;
  color: rgba(255, 255, 255, 0.9);
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 40px;
  margin: 0 10px 20px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-contact__cta-button--primary {
  background: var(--page-contact-secondary-color);
  color: var(--page-contact-bg-dark); /* Gold button with dark blue text */
}

.page-contact__cta-button--primary:hover {
  background: #e6c200; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__cta-button--secondary {
  background: transparent;
  color: var(--page-contact-secondary-color);
  border: 2px solid var(--page-contact-secondary-color);
}

.page-contact__cta-button--secondary:hover {
  background: var(--page-contact-secondary-color);
  color: var(--page-contact-bg-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__info-section {
  background: #0d0d0d; /* Slightly lighter dark background for contrast with hero */
  padding: 80px 0;
  color: var(--page-contact-text-light);
}

.page-contact__form-section {
  background: var(--page-contact-bg-dark); /* Dark blue background */
  padding: 80px 0;
  color: var(--page-contact-text-light);
}

.page-contact__section-title {
  font-size: 2.5em;
  color: var(--page-contact-secondary-color);
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
}

.page-contact__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--page-contact-secondary-color);
  border-radius: 2px;
}

.page-contact__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  color: rgba(255, 255, 255, 0.8);
}

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

.page-contact__method-item {
  text-align: center;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  background: var(--page-contact-card-bg); /* Card background on dark body */
  border: 1px solid var(--page-contact-border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__method-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.page-contact__method-image {
  width: 100%;
  height: auto;
  max-height: 250px; /* Limit height to prevent excessive stretching */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  /* No filter property to change image color */
}

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

.page-contact__method-text {
  font-size: 1.05em;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.85);
}

.page-contact__method-detail {
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 15px;
}

.page-contact__method-detail a {
  color: var(--page-contact-secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-contact__method-detail a:hover {
  color: #e6c200;
  text-decoration: underline;
}

.page-contact__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: var(--page-contact-secondary-color);
  color: var(--page-contact-bg-dark);
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-contact__btn-primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
}

.page-contact__social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap; /* Allow wrapping for large icons */
}

.page-contact__social-icon {
  display: block;
  width: 200px; /* Display size must be >= 200px as per global rule */
  height: 200px; /* Display size must be >= 200px as per global rule */
  transition: transform 0.3s ease;
}

.page-contact__social-icon:hover {
  transform: translateY(-3px) scale(1.05);
}

.page-contact__social-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  /* No filter property to change image color */
}

/* Contact Form Styles */
.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: var(--page-contact-card-bg);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-contact-border-color);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--page-contact-border-color);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark background */
  color: var(--page-contact-text-light);
  font-size: 1em;
  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.6);
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: var(--page-contact-secondary-color);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

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

.page-contact__submit-button {
  width: 100%;
  padding: 15px;
  background: var(--page-contact-secondary-color);
  color: var(--page-contact-bg-dark);
  border: none;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__submit-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* FAQ Section Styles */
.page-contact__faq-section {
  background: #0d0d0d; /* Matching info section background */
  padding: 80px 0;
  color: var(--page-contact-text-light);
}

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

.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--page-contact-card-bg);
  border: 1px solid var(--page-contact-border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: rgba(255, 255, 255, 0.05); /* Lighter background for question on dark card */
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  position: relative;
}

.page-contact__faq-question:hover {
  background: rgba(255, 255, 255, 0.1);
}

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

.page-contact__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--page-contact-secondary-color);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none; /* Prevent icon from blocking click event */
  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); /* Change to X or rotate for active state */
  color: var(--page-contact-text-light);
}

.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: rgba(255, 255, 255, 0.85);
  background: var(--page-contact-card-bg);
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to show all content */
  padding: 20px 25px !important;
  opacity: 1;
}

.page-contact__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

.page-contact__faq-answer p:last-child {
  padding-bottom: 0;
}

/* Global image styles for the page */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
  /* No filter property to change image color */
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .page-contact {
    font-size: 15px;
    line-height: 1.5;
    padding-bottom: 40px;
  }

  /* Fixed Header Spacing for Mobile */
  .page-contact__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 60px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-contact__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  .page-contact__description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-contact__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    margin: 0 5px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-contact__cta-button:first-of-type {
    margin-top: 10px; /* Add some space if buttons stack */
  }

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

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

  .page-contact__info-section,
  .page-contact__form-section,
  .page-contact__faq-section {
    padding: 60px 0;
  }

  .page-contact__contact-methods {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-contact__method-item {
    padding: 25px;
  }

  .page-contact__method-title {
    font-size: 1.5em;
  }
  
  .page-contact__method-detail {
    font-size: 1em;
  }

  .page-contact__social-links {
    gap: 10px;
  }
  
  .page-contact__social-icon {
    width: 200px !important;
    height: 200px !important;
  }

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

  .page-contact__form-label {
    font-size: 1em;
  }

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

  .page-contact__submit-button {
    padding: 12px;
    font-size: 1.1em;
  }

  .page-contact__faq-question {
    padding: 15px 20px;
  }

  .page-contact__faq-question h3 {
    font-size: 1.1em;
  }

  .page-contact__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
    margin-left: 15px;
  }

  .page-contact__faq-answer {
    padding: 0 20px;
  }

  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 15px 20px !important;
  }
  
  /* Mobile image and video responsive adaptation */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-contact video,
  .page-contact__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-contact__video-section,
  .page-contact__video-container,
  .page-contact__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  /* Ensure all sections and containers are responsive */
  .page-contact__info-section .page-contact__container,
  .page-contact__form-section .page-contact__container,
  .page-contact__faq-section .page-contact__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}