/* style/contact.css */
:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --dark-background: #000;
  --light-text: #ffffff;
  --dark-text: #333333;
  --gray-background: #f1f3f5;
  --light-gray-border: #e0e0e0;
}

.page-contact {
  color: var(--light-text); /* Default text color for dark body background */
  background-color: var(--dark-background); /* Inherited from body */
}

/* Ensure main content has padding-top to clear fixed header */
.page-contact__hero-contact-section {
  padding-top: 120px; /* Desktop: Adjust based on actual header height */
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
  text-align: center;
}

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

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

.page-contact__intro-text {
  font-size: 18px;
  line-height: 1.8;
  color: #e0e0e0;
  max-width: 800px;
  margin: 0 auto;
}

.page-contact__highlight-text {
  color: var(--secondary-color);
  font-weight: bold;
}

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

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

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

.page-contact__section-description {
  font-size: 17px;
  color: #ccc;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* Contact Methods Section */
.page-contact__contact-methods-section {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background */
}

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

.page-contact__method-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 320px; /* Ensure cards have similar height */
}

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

.page-contact__method-icon {
  width: 100px;
  height: auto;
  max-width: 100px; /* Ensure icons are not too large */
  margin-bottom: 20px;
  display: block;
}

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

.page-contact__method-text {
  font-size: 16px;
  color: #e0e0e0;
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-contact__btn-contact {
  display: inline-block;
  padding: 12px 25px;
  background: var(--secondary-color);
  color: var(--dark-text);
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  width: auto;
  min-width: 180px; /* Ensure button has decent width */
}

.page-contact__btn-contact:hover {
  background-color: #e6b300;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

.page-contact__btn-primary:hover {
  background-color: #0056b3;
}

/* Contact Form Section */
.page-contact__contact-form-section {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.02);
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 40px auto 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.3);
  color: var(--light-text);
  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: #aaa;
}

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

.page-contact__form-textarea {
  resize: vertical;
  min-height: 120px;
}

.page-contact__btn-submit {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background: var(--primary-color);
  color: var(--light-text);
  font-size: 18px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__btn-submit:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

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

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

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

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  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: rgba(255, 255, 255, 0.15);
  border-color: var(--secondary-color);
}

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

.page-contact__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  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: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
}

.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 value */
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.07);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 0 8px 8px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg);
  background-color: rgba(255, 255, 255, 0.1);
}

.page-contact__faq-answer p {
  font-size: 16px;
  line-height: 1.7;
  color: #e0e0e0;
  margin-bottom: 10px;
}

/* Office Info Section */
.page-contact__office-info-section {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.05);
  text-align: center;
}

.page-contact__info-block {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  max-width: 600px;
  margin: 40px auto 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__info-block p {
  font-size: 17px;
  color: #e0e0e0;
  line-height: 1.8;
  margin-bottom: 10px;
}

.page-contact__info-block strong {
  color: var(--secondary-color);
}

.page-contact__map-placeholder {
  width: 100%;
  max-width: 800px;
  margin: 30px auto 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__map-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 300px; /* Ensure map image is not too small */
}

/* Social Media Section */
.page-contact__social-media-section {
  padding: 60px 0;
  background-color: var(--dark-background);
}

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

.page-contact__social-icon-link {
  display: inline-block;
  transition: transform 0.3s ease;
}

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

.page-contact__social-icon {
  width: 60px;
  height: 60px;
  display: block;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__main-title {
    font-size: 38px;
  }

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

@media (max-width: 768px) {
  .page-contact__hero-contact-section {
    padding-top: 100px !important; /* Mobile: Adjust based on actual header height */
    padding-bottom: 40px;
  }

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

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

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

  .page-contact__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-contact__contact-methods-section,
  .page-contact__contact-form-section,
  .page-contact__faq-section,
  .page-contact__office-info-section,
  .page-contact__social-media-section {
    padding: 40px 0;
  }

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

  .page-contact__method-card {
    padding: 25px;
    min-height: auto;
  }

  .page-contact__method-icon {
    width: 80px;
  }

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

  .page-contact__method-text {
    font-size: 15px;
  }

  .page-contact__btn-contact {
    font-size: 15px;
    padding: 10px 20px;
    min-width: unset;
    width: 100%;
  }

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

  .page-contact__form-label {
    font-size: 15px;
  }

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

  .page-contact__btn-submit {
    font-size: 16px;
    padding: 12px 15px;
  }

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

  .page-contact__faq-question h3 {
    font-size: 16px;
  }

  .page-contact__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

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

  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 15px 20px !important;
  }

  .page-contact__faq-answer p {
    font-size: 15px;
  }

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

  .page-contact__info-block p {
    font-size: 15px;
  }

  .page-contact__map-image {
    min-height: 200px;
  }

  .page-contact__social-links {
    gap: 20px;
  }

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

  /* Image responsive adaptation */
  .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;
  }
}

@media (max-width: 480px) {
  .page-contact__main-title {
    font-size: 28px;
  }

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

  .page-contact__intro-text {
    font-size: 15px;
  }

  .page-contact__method-card {
    padding: 20px;
  }

  .page-contact__method-icon {
    width: 70px;
  }

  .page-contact__method-title {
    font-size: 18px;
  }

  .page-contact__btn-contact {
    font-size: 14px;
    padding: 8px 15px;
  }

  .page-contact__contact-form {
    padding: 25px 15px;
  }

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

  .page-contact__btn-submit {
    font-size: 15px;
    padding: 10px 15px;
  }

  .page-contact__faq-question h3 {
    font-size: 14px;
  }

  .page-contact__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }

  .page-contact__faq-answer p {
    font-size: 14px;
  }

  .page-contact__info-block p {
    font-size: 14px;
  }

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