/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: transparent; /* Inherit from body */
}

/* Ensure first section has padding-top for fixed header */
.page-contact__hero-banner {
  padding-top: 120px; /* Desktop padding for fixed header */
  padding-bottom: 60px;
  text-align: center;
  background: linear-gradient(135deg, #003366, #1a4f8a); /* Dark blue gradient */
  color: #ffffff;
}

.page-contact__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-contact__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700; /* Golden color for main title */
  font-weight: 700;
}

.page-contact__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-contact__hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-contact__section {
  padding: 60px 20px;
  margin: 0 auto;
}

.page-contact__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Golden color for section titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-contact__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

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

/* Common button styles */
.page-contact__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1em;
}

.page-contact__btn--primary {
  background-color: #FFD700; /* Golden background */
  color: #003366; /* Dark blue text */
}

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

.page-contact__btn--secondary {
  background-color: transparent;
  color: #FFD700; /* Golden text */
  border: 2px solid #FFD700;
}

.page-contact__btn--secondary:hover {
  background-color: #FFD700;
  color: #003366;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-contact__btn--link {
  color: #FFD700;
  text-decoration: underline;
  background: none;
  padding: 0;
  border: none;
  font-size: 1em;
  font-weight: normal;
}

.page-contact__btn--link:hover {
  color: #e6c200;
  text-decoration: none;
}

/* Contact Methods Section */
.page-contact__contact-methods {
  background-color: rgba(0, 51, 102, 0.2); /* Slightly lighter dark blue */
}

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

.page-contact__method-card {
  background-color: #003366; /* Brand primary dark blue */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 350px; /* Ensure cards have similar height */
}

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

.page-contact__method-icon {
  margin-bottom: 20px;
  width: 100%;
  max-width: 150px; /* Larger icon size */
  height: auto;
}

.page-contact__method-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.page-contact__method-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-contact__method-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Contact Form Section */
.page-contact__contact-form {
  background-color: #0d1117;
}

.page-contact__form {
  max-width: 700px;
  margin: 0 auto;
  background-color: #003366;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

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

.page-contact__form-label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
  color: #FFD700;
  font-size: 1.1em;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #1a4f8a;
  border-radius: 5px;
  background-color: #0a2647;
  color: #ffffff;
  font-size: 1em;
  transition: border-color 0.3s ease;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: #a0a0a0;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #FFD700;
  outline: none;
}

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

.page-contact__form button[type="submit"] {
  width: 100%;
  padding: 15px;
  font-size: 1.2em;
}

/* Why Contact Section */
.page-contact__why-contact {
  background-color: rgba(0, 51, 102, 0.2);
}

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

.page-contact__reason-card {
  background-color: #0a2647; /* Slightly lighter dark blue */
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 380px; /* Consistent card height */
}

.page-contact__reason-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.page-contact__reason-img {
  max-width: 200px; /* Larger images */
  height: auto;
  margin-bottom: 20px;
  display: block;
}

.page-contact__reason-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-contact__reason-text {
  font-size: 0.95em;
  color: #f0f0f0;
  flex-grow: 1;
}

/* Commitment Section */
.page-contact__commitment {
  background-color: #003366;
  color: #ffffff; /* Force white text */
}

.page-contact__commitment-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-contact__commitment-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-contact__commitment-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-contact__commitment-item p {
  color: #f0f0f0;
  font-size: 1em;
}

/* FAQ Section */
.page-contact__faq-section {
  background-color: #0d1117;
}

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

.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #003366; /* Dark blue background for FAQ item */
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #0a2647; /* Slightly lighter dark blue for question */
  border: 1px solid #1a4f8a;
  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-color: #1a4f8a;
  border-color: #FFD700;
}

.page-contact__faq-question:active {
  background-color: #2b6a9e;
}

.page-contact__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  color: #f0f0f0; /* Light text for questions */
  pointer-events: none;
}

.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Golden color for toggle icon */
  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: #FFD700;
  transform: rotate(45deg); /* Change to X or rotate for active state */
}

.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;
  background-color: #003366; /* Dark blue for answer background */
  color: #f0f0f0;
}

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

.page-contact__faq-answer p {
  margin: 0;
  padding: 0;
  color: #f0f0f0;
}

/* Register CTA Section */
.page-contact__register-cta {
  background-color: #003366;
  padding: 80px 20px;
  text-align: center;
}

.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.page-contact__keyword {
  color: #FFD700;
  font-weight: bold;
}

.page-contact__dark-section {
  background-color: #003366;
  color: #ffffff; /* Forced white text */
}

.page-contact__light-bg {
  background-color: #0a2647;
  color: #f0f0f0;
}

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

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

  .page-contact__section-title {
    font-size: 2.2em;
  }

  .page-contact__methods-grid,
  .page-contact__reason-grid,
  .page-contact__commitment-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-contact__hero-banner {
    padding-top: 100px; /* Mobile padding for fixed header */
    padding-bottom: 40px;
  }

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

  .page-contact__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-contact__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-contact__btn {
    width: 100%;
    padding: 10px 20px;
    font-size: 0.95em;
  }

  .page-contact__section {
    padding: 40px 15px;
  }

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

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

  .page-contact__method-card,
  .page-contact__reason-card,
  .page-contact__commitment-item {
    padding: 25px;
    min-height: auto;
  }

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

  .page-contact__reason-title {
    font-size: 1.4em;
  }

  .page-contact__commitment-title {
    font-size: 1.5em;
  }

  .page-contact__form {
    padding: 30px;
  }

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

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

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

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

  .page-contact__register-cta {
    padding: 60px 15px;
  }

  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Force images and containers to fit screen width */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-contact__section,
  .page-contact__container,
  .page-contact__method-card,
  .page-contact__reason-card,
  .page-contact__commitment-item,
  .page-contact__form,
  .page-contact__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}