/* style/contact.css */

:root {
  --primary-color: #007bff;
  --secondary-color: #28a745;
  --accent-color: #ffc107;
  --dark-bg-1: #0d0d0d; /* Assuming a dark body background from shared.css */
  --dark-text-color: #333333;
  --light-text-color: #ffffff;
  --card-bg-light: #ffffff;
  --card-bg-dark: #1a1a1a;
  --border-light: #e0e0e0;
  --border-dark: #333333;
}

.page-contact {
  font-family: 'Arial', sans-serif;
  color: var(--light-text-color); /* Default text color for the page content on dark body background */
  /* background-color: var(--dark-bg-1);  Body background comes from shared.css */
}

/* Ensure images are responsive and prevent overflow */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.page-contact__section-title {
  font-size: 32px;
  font-weight: bold;
  color: var(--light-text-color);
  text-align: center;
  margin-bottom: 40px;
}

.page-contact__keyword-highlight {
  color: var(--accent-color);
  font-weight: bold;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 180px; /* Desktop: Adjust for fixed header */
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%); /* Darker blue gradient for hero */
  color: var(--light-text-color);
}

.page-contact__hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-contact__hero-title {
  font-size: 42px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-contact__hero-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.page-contact__hero-image-main {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  margin-top: 40px;
}

/* Contact Info Section */
.page-contact__contact-info-section {
  padding: 60px 0;
  background-color: var(--dark-bg-1);
}

.page-contact__info-card {
  background: var(--card-bg-light);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 40px;
  color: var(--dark-text-color);
  text-align: center;
}

.page-contact__info-card .page-contact__section-title {
  color: var(--dark-text-color);
  margin-bottom: 25px;
}

.page-contact__info-text {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.page-contact__contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__contact-item {
  display: flex;
  align-items: center;
  font-size: 17px;
  color: var(--dark-text-color);
}

.page-contact__icon {
  font-size: 24px;
  margin-right: 15px;
  color: var(--primary-color);
  flex-shrink: 0;
}

.page-contact__label {
  font-weight: bold;
  margin-right: 10px;
}

.page-contact__link {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-contact__link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-contact__social-links {
  margin-top: 30px;
  border-top: 1px solid var(--border-light);
  padding-top: 25px;
}

.page-contact__social-text {
  font-size: 16px;
  margin-bottom: 15px;
  color: var(--dark-text-color);
}

.page-contact__social-link {
  display: inline-block;
  margin: 0 10px;
}

.page-contact__social-icon {
  width: 48px; /* Increased size for icons */
  height: 48px;
  transition: transform 0.3s ease;
}

.page-contact__social-icon:hover {
  transform: translateY(-5px);
}

/* Form Section */
.page-contact__form-section {
  padding: 60px 0;
  background-color: #151515; /* Slightly lighter dark background */
}

.page-contact__form-card {
  background: var(--card-bg-light);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 40px;
  color: var(--dark-text-color);
}

.page-contact__form-card .page-contact__section-title {
  color: var(--dark-text-color);
  margin-bottom: 25px;
}

.page-contact__form-description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
  text-align: center;
}

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

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

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
  outline: none;
}

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

.page-contact__form-submit-btn {
  display: block;
  width: 100%;
  padding: 15px 25px;
  font-size: 18px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 20px;
}

/* CTA Banner within Form Card */
.page-contact__cta-banner {
  background: var(--primary-color);
  border-radius: 8px;
  padding: 30px;
  margin-top: 40px;
  text-align: center;
  color: var(--light-text-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-contact__cta-text {
  font-size: 18px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.page-contact__cta-button {
  display: inline-block;
  padding: 12px 30px;
  font-size: 17px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
}

/* Primary Button Style */
.page-contact__btn-primary {
  background: var(--primary-color);
  color: var(--light-text-color);
  border: 2px solid transparent;
}

.page-contact__btn-primary:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Secondary Button Style */
.page-contact__btn-secondary {
  background: var(--accent-color);
  color: var(--dark-text-color);
  border: 2px solid var(--accent-color);
}

.page-contact__btn-secondary:hover {
  background: #e0a800;
  color: var(--light-text-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 60px 0;
  background-color: var(--dark-bg-1);
}

.page-contact__faq-intro-text {
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 40px;
  color: var(--light-text-color);
}

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

.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--card-bg-light);
  color: var(--dark-text-color);
}

.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 15px;
  opacity: 0;
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 2000px !important; /* Sufficiently large value */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--card-bg-light);
  border: 1px solid var(--border-light);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--dark-text-color);
}

.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: 17px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Allow click on entire question div */
}

.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Change '+' to 'x' */
}

.page-contact__faq-answer p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark-text-color);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-contact__hero-title {
    font-size: 36px;
  }

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

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

  .page-contact__info-card,
  .page-contact__form-card {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-contact__section,
  .page-contact__card,
  .page-contact__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__hero-section {
    padding-top: 160px !important; /* Mobile: Adjust for fixed header */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__hero-title {
    font-size: 30px;
  }

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

  .page-contact__section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .page-contact__info-card,
  .page-contact__form-card {
    padding: 25px;
  }

  .page-contact__contact-item {
    font-size: 15px;
  }

  .page-contact__icon {
    font-size: 20px;
    margin-right: 10px;
  }

  .page-contact__social-icon {
    width: 40px;
    height: 40px;
  }

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

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

  .page-contact__cta-banner {
    padding: 25px;
  }

  .page-contact__cta-text {
    font-size: 16px;
  }

  .page-contact__cta-button {
    padding: 10px 20px;
    font-size: 15px;
  }

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