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

.page-contact {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  background-color: var(--background-light);
  padding-top: 120px; /* Adjusted for fixed header on desktop */
}

@media (max-width: 768px) {
  .page-contact {
    padding-top: 100px !important; /* Adjusted for fixed header on mobile */
  }
}

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

.page-contact__hero-contact-section {
  padding: 60px 20px;
  text-align: center;
  background-color: var(--primary-color);
  color: var(--text-color-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-contact__hero-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-contact__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-contact__hero-image .page-contact__img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-contact__hero-content {
  text-align: center;
  width: 100%;
}

.page-contact__hero-title {
  font-size: 3.2em;
  margin-bottom: 15px;
  color: var(--text-color-light);
  font-weight: bold;
}

.page-contact__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: var(--text-color-light);
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-contact__cta-button:hover {
  background: darken(var(--secondary-color), 10%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-color);
}

.page-contact__info-section,
.page-contact__form-section,
.page-contact__faq-section {
  padding: 60px 0;
  background-color: var(--background-light);
}

.page-contact__info-card,
.page-contact__form-card {
  background: var(--card-background);
  border-radius: 8px;
  box-shadow: 0 2px 10px var(--shadow-color);
  padding: 40px;
  margin-bottom: 30px;
}

.page-contact__info-title,
.page-contact__form-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 25px;
  font-weight: bold;
}

.page-contact__info-text,
.page-contact__form-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  color: var(--text-color-dark);
}

.page-contact__contact-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.page-contact__detail-item {
  flex: 1 1 calc(33% - 20px);
  min-width: 280px;
  text-align: center;
  background-color: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__detail-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.page-contact__detail-heading {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-contact__detail-text {
  font-size: 1.1em;
  color: var(--text-color-dark);
}

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

.page-contact__link:hover {
  color: darken(var(--primary-color), 10%);
  text-decoration: underline;
}

.page-contact__contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.page-contact__form-group {
  display: flex;
  flex-direction: column;
}

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

.page-contact__form-input,
.page-contact__form-textarea {
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1em;
  color: var(--text-color-dark);
  background-color: #fcfcfc;
  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__submit-button {
  align-self: center;
  width: auto;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-color-light);
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__submit-button:hover {
  background: darken(var(--primary-color), 10%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-color);
}

.page-contact__faq-main-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-contact__faq-intro-text {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-color-dark);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--card-background);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
}

.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 20px;
  opacity: 0;
  background: #f9f9f9;
  color: var(--text-color-dark);
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  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-background);
  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: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-color-dark);
  pointer-events: none;
}

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

.page-contact__link-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--secondary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9em;
  font-weight: bold;
  margin-top: 15px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-contact__link-button:hover {
  background: darken(var(--secondary-color), 10%);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px var(--shadow-color);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-contact__hero-title {
    font-size: 2.8em;
  }
  .page-contact__hero-description {
    font-size: 1.1em;
  }
  .page-contact__info-title,
  .page-contact__form-title,
  .page-contact__faq-main-title {
    font-size: 2em;
  }
  .page-contact__detail-item {
    flex: 1 1 calc(50% - 15px);
  }
}

@media (max-width: 768px) {
  .page-contact__hero-contact-section {
    padding: 40px 15px;
  }
  .page-contact__hero-title {
    font-size: 2.2em;
  }
  .page-contact__hero-description {
    font-size: 1em;
  }
  .page-contact__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-contact__info-section,
  .page-contact__form-section,
  .page-contact__faq-section {
    padding: 40px 0;
  }
  .page-contact__container {
    padding: 0 15px;
  }
  .page-contact__info-card,
  .page-contact__form-card {
    padding: 25px;
  }
  .page-contact__info-title,
  .page-contact__form-title,
  .page-contact__faq-main-title {
    font-size: 1.8em;
  }
  .page-contact__info-text,
  .page-contact__form-description,
  .page-contact__faq-intro-text {
    font-size: 0.95em;
  }
  .page-contact__contact-details {
    flex-direction: column;
    gap: 20px;
  }
  .page-contact__detail-item {
    min-width: unset;
    width: 100%;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px 12px;
  }
  .page-contact__submit-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-contact__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-contact__faq-question h3 {
    font-size: 1em;
    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;
  }
  .page-contact__link-button {
    font-size: 0.8em;
    padding: 8px 15px;
  }
  .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;
  }
}

/* Ensure contrast for text on various backgrounds */
.page-contact__light-bg {
  color: var(--text-color-dark);
}

.page-contact__btn-primary {
  background: var(--primary-color);
  color: var(--text-color-light);
  border: none;
}

.page-contact__btn-primary:hover {
  background: darken(var(--primary-color), 10%);
}

.page-contact__btn-secondary {
  background: var(--secondary-color);
  color: var(--text-color-light);
  border: none;
}

.page-contact__btn-secondary:hover {
  background: darken(var(--secondary-color), 10%);
}