:root {
  --primary-color: #3A0CA3;
  --secondary-color: #FFD700;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f4f4f4;
  --bg-dark: #2a096e;
  --border-color: #e0e0e0;
}

.page-contact {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

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

.page-contact-hero {
  background: linear-gradient(135deg, var(--primary-color), var(--bg-dark));
  color: var(--text-light);
  padding: 80px 0;
  text-align: center;
}

.page-contact-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  font-weight: bold;
}

.page-contact-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-light);
}

.page-contact-hero-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-top: 30px;
}

.page-contact-heading {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-top: 60px;
  margin-bottom: 30px;
  position: relative;
}

.page-contact-heading::after {
  content: '';
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
  border-radius: 2px;
}

.page-contact-text {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: var(--text-dark);
}

.page-contact-methods {
  padding: 60px 0;
  background-color: #ffffff;
}

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

.page-contact-card {
  background: var(--bg-light);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.page-contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.page-contact-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  max-width: 100%;
}

.page-contact-card-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact-card-description {
  font-size: 1em;
  color: var(--text-dark);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-contact-button {
  display: inline-block;
  padding: 12px 25px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-contact-button:hover {
  background-color: #e6c200; /* Darken secondary color */
  transform: translateY(-2px);
}

.page-contact-email, .page-contact-phone {
  font-size: 1.1em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 500;
}

.page-contact-email a, .page-contact-phone a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-contact-email a:hover, .page-contact-phone a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-contact-form-section {
  background-color: var(--bg-light);
  padding: 60px 0;
}

.page-contact-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

.page-contact-form-group label {
  display: block;
  font-size: 1.1em;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-contact-form-group input[type="text"],
.page-contact-form-group input[type="email"],
.page-contact-form-group textarea {
  width: calc(100% - 20px);
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1em;
  color: var(--text-dark);
  background-color: #fcfcfc;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-contact-form-group input:focus,
.page-contact-form-group textarea:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(var(--secondary-color), 0.2);
  outline: none;
}

.page-contact-form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.page-contact-submit-button {
  display: block;
  width: 100%;
  padding: 15px 30px;
  background-color: var(--primary-color);
  color: var(--text-light);
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-contact-submit-button:hover {
  background-color: #2f0a82; /* Darken primary color */
  transform: translateY(-2px);
}

.page-contact-faq-section {
  padding: 60px 0;
  background-color: #fcfcfc;
}

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

/* FAQ default state - answer hidden */
.faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: #f0f0f0;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.15em;
  color: var(--primary-color);
  font-weight: bold;
  flex-grow: 1;
}

.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
  margin-left: 15px;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 25px;
  color: var(--text-dark);
  font-size: 1em;
}

/* FAQ expanded state */
.faq-item.active .faq-answer {
  max-height: 600px; /* Sufficient height to accommodate content */
  padding: 20px 25px;
  background: #f9f9f9;
  border-top: 1px solid var(--border-color);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--primary-color);
}

.page-contact-commitment {
  background-color: #ffffff;
  padding: 60px 0;
}

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

.page-contact-commitment-item {
  background: var(--bg-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-contact-commitment-item:hover {
  transform: translateY(-5px);
}

.page-contact-subheading {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact-commitment-item p {
  font-size: 1em;
  color: var(--text-dark);
}

.page-contact-cta-section {
  background: linear-gradient(135deg, var(--bg-dark), var(--primary-color));
  padding: 80px 0;
  text-align: center;
  color: var(--text-light);
}

.page-contact-cta-content {
  max-width: 900px;
}

.page-contact-cta-section .page-contact-heading {
  color: var(--secondary-color);
}

.page-contact-cta-section .page-contact-text {
  color: var(--text-light);
  margin-bottom: 50px;
}

.page-contact-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-contact-button-primary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 15px 35px;
  font-size: 1.1em;
  border-radius: 8px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-contact-button-primary:hover {
  background-color: #e6c200; /* Darken secondary color */
}

.page-contact-button-secondary {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--secondary-color);
  padding: 15px 35px;
  font-size: 1.1em;
  border-radius: 8px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-contact-button-secondary:hover {
  background-color: var(--bg-dark);
  border-color: var(--text-light);
}

.page-contact-footer {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 30px 0;
  text-align: center;
  font-size: 0.9em;
}

.page-contact-copyright {
  margin: 0;
}

/* Link color for main content */
.page-contact a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-contact a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-contact-title {
    font-size: 2.8em;
  }
  .page-contact-heading {
    font-size: 2.2em;
  }
  .page-contact-cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-contact-hero {
    padding: 60px 0;
  }
  .page-contact-title {
    font-size: 2.2em;
  }
  .page-contact-description {
    font-size: 1em;
  }
  .page-contact-heading {
    font-size: 1.8em;
  }
  .page-contact-text {
    font-size: 0.95em;
  }
  .page-contact-form {
    padding: 25px;
  }
  .page-contact-form-group input, .page-contact-form-group textarea {
    padding: 12px;
  }
  .page-contact-submit-button {
    padding: 12px 20px;
    font-size: 1.1em;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1em;
  }
  .faq-toggle {
    font-size: 20px;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
  .page-contact-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-contact-button, .page-contact-button-primary, .page-contact-button-secondary {
    width: 80%;
    max-width: 300px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .page-contact-hero {
    padding: 40px 0;
  }
  .page-contact-title {
    font-size: 1.8em;
  }
  .page-contact-description {
    font-size: 0.9em;
  }
  .page-contact-heading {
    font-size: 1.6em;
  }
  .page-contact-card {
    padding: 20px;
  }
  .page-contact-card-title {
    font-size: 1.5em;
  }
  .page-contact-card-image {
    height: 150px;
  }
  .page-contact-form {
    padding: 20px;
  }
}