/* style/contact.css */
:root {
  --primary-color: #007BFF;
  --secondary-color: #28A745;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f8f8f8;
  --card-background: #ffffff;
  --border-color: #e0e0e0;
  --shadow-light: rgba(0, 0, 0, 0.08);
}

.page-contact__main-wrapper {
  padding-top: 120px; /* Desktop padding for fixed header */
  background: var(--background-light);
  color: var(--text-dark);
}

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

/* Intro Section */
.page-contact__intro-section {
  padding: 60px 0;
  text-align: center;
  background: var(--card-background);
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--shadow-light);
}

.page-contact__main-title {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-contact__intro-description {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-dark);
  max-width: 800px;
  margin: 0 auto 15px;
}

/* Info Section */
.page-contact__info-section {
  padding: 40px 0;
  margin-bottom: 30px;
}

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

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

.page-contact__info-card {
  background: var(--card-background);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--shadow-light);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-contact__card-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-contact__info-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: color 0.3s ease;
  display: block;
  margin-top: auto; /* Pushes the link to the bottom */
}

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

.page-contact__social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: auto; /* Pushes social links to the bottom */
}

.page-contact__social-icon {
  display: inline-block;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.page-contact__social-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

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

/* Form Section */
.page-contact__form-section {
  padding: 40px 0;
  margin-bottom: 30px;
}

.page-contact__form-intro {
  font-size: 18px;
  text-align: center;
  color: var(--text-dark);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.page-contact__form {
  background: var(--card-background);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--shadow-light);
  max-width: 700px;
  margin: 0 auto;
}

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

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

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

.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-button {
  display: block;
  width: 100%;
  padding: 15px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  border: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 20px;
}

.page-contact__form-submit-button:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-contact__form-note {
  font-size: 14px;
  color: #666;
  text-align: center;
  margin-top: 20px;
  line-height: 1.5;
}

.page-contact__promo-link {
  color: var(--secondary-color);
  font-weight: bold;
  text-decoration: none;
}

.page-contact__promo-link:hover {
  text-decoration: underline;
  color: #1e7e34;
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 40px 0 60px;
}

.page-contact__faq-intro {
  font-size: 18px;
  text-align: center;
  color: var(--text-dark);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

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

.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.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;
  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: #fff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  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: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-dark);
}

.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: #333;
  transform: rotate(45deg); /* Change + to X */
}

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

.page-contact__link-text {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-contact__link-text:hover {
  text-decoration: underline;
  color: #0056b3;
}

/* General image responsive styles */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive design */
@media (max-width: 992px) {
  .page-contact__main-title {
    font-size: 30px;
  }

  .page-contact__intro-description,
  .page-contact__form-intro,
  .page-contact__faq-intro {
    font-size: 16px;
  }

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

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

  .page-contact__form {
    padding: 30px;
  }

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

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

@media (max-width: 768px) {
  .page-contact__main-wrapper {
    padding-top: 100px !important; /* Mobile padding for fixed header */
  }

  .page-contact__intro-section,
  .page-contact__info-section,
  .page-contact__form-section,
  .page-contact__faq-section {
    padding: 30px 0;
    margin-bottom: 20px;
  }

  .page-contact__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

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

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

  .page-contact__card-text,
  .page-contact__info-link,
  .page-contact__form-label,
  .page-contact__form-note,
  .page-contact__faq-question h3,
  .page-contact__faq-answer p {
    font-size: 15px;
  }

  .page-contact__social-icon {
    width: 40px;
    height: 40px;
  }
  
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-contact__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-contact__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-contact__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-contact__faq-answer {
    padding: 0 15px;
  }
  
  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 15px !important;
  }
}