:root {
  --primary-color: #0A2463;
  --secondary-color: #E3B505;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f8f8f8;
  --background-dark: #0A2463; /* Using primary color as a dark background option */
  --card-background: #ffffff;
  --border-color: #e0e0e0;
}

/* Base styles for the contact page content */
.page-contact {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

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

.page-contact h1,
.page-contact h2,
.page-contact h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-contact h1 {
  font-size: 2.8em;
  text-align: center;
  color: var(--text-light); /* For hero section */
}

.page-contact h2 {
  font-size: 2.2em;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 30px;
}

.page-contact h3 {
  font-size: 1.6em;
  margin-bottom: 15px;
}

.page-contact p {
  margin-bottom: 15px;
  text-align: center;
}

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

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

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

.page-contact .cta-button:hover {
  background: #c79f04; /* Darken secondary color */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-contact .cta-button.large {
  padding: 18px 50px;
  font-size: 20px;
}

/* Hero Section */
.page-contact .hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background: var(--background-dark); /* Dark background for hero */
  color: var(--text-light);
}

.page-contact .hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.page-contact .hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-contact .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-contact .hero-content h1 {
  color: var(--text-light);
  margin-bottom: 20px;
}

.page-contact .hero-content p {
  color: #c0c0c0;
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

/* Contact Methods Section */
.page-contact .contact-methods-section {
  padding: 60px 0;
  background: var(--background-light);
}

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

.page-contact .method-card {
  background: var(--card-background);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-contact .method-card img {
  width: 120px; /* Increased size for content image, not icon */
  height: 120px;
  margin-bottom: 20px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--primary-color);
  padding: 15px;
}

.page-contact .method-card h3 {
  color: var(--primary-color);
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-contact .method-card p {
  color: var(--text-dark);
  font-size: 0.95em;
  flex-grow: 1; /* Ensures text fills space */
}

.page-contact .btn-method {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  border-radius: 5px;
  margin-top: 20px;
  transition: background-color 0.3s ease;
  font-weight: bold;
}

.page-contact .btn-method:hover {
  background: var(--secondary-color);
  text-decoration: none;
}

.page-contact .btn-method.disabled {
  background: #cccccc;
  cursor: not-allowed;
}

/* Contact Form Section */
.page-contact .contact-form-section {
  padding: 60px 0;
  background: var(--card-background);
}

.page-contact .contact-form {
  max-width: 700px;
  margin: 40px auto 0 auto;
  padding: 30px;
  background: var(--background-light);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-contact .form-group {
  margin-bottom: 20px;
  text-align: left;
}

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

.page-contact .form-group input[type="text"],
.page-contact .form-group input[type="email"],
.page-contact .form-group textarea {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1em;
  color: var(--text-dark);
  background-color: #ffffff;
}

.page-contact .form-group input::placeholder,
.page-contact .form-group textarea::placeholder {
  color: #999999;
}

.page-contact .contact-form .cta-button {
  width: 100%;
  padding: 15px 0;
  font-size: 1.1em;
  margin-top: 10px;
}

/* FAQ Section */
.page-contact .faq-section {
  padding: 60px 0;
  background: var(--background-light);
}

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

.page-contact .faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--card-background);
  overflow: hidden;
}

.page-contact .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--card-background);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-contact .faq-question:hover {
  background: #f5f5f5;
}

.page-contact .faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: var(--primary-color);
  text-align: left;
  flex-grow: 1;
}

.page-contact .faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
  line-height: 1;
}

.page-contact .faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.page-contact .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 20px;
  background: #f9f9f9;
  color: var(--text-dark);
}

.page-contact .faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding: 20px;
  border-top: 1px solid var(--border-color);
}

.page-contact .faq-answer p {
  margin: 0;
  text-align: left;
}

/* Why Contact Section */
.page-contact .why-contact-section {
  padding: 60px 0;
  background: var(--background-dark);
  color: var(--text-light);
}

.page-contact .why-contact-section h2 {
  color: var(--secondary-color);
}

.page-contact .why-contact-section p {
  color: #c0c0c0;
}

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

.page-contact .reason-card {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: background-color 0.3s ease;
}

.page-contact .reason-card:hover {
  background: rgba(255, 255, 255, 0.15);
}

.page-contact .reason-card h3 {
  color: var(--secondary-color);
  font-size: 1.5em;
  margin-bottom: 10px;
}

.page-contact .reason-card p {
  color: #e0e0e0;
  font-size: 0.95em;
}

/* Action Section */
.page-contact .action-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  text-align: center;
  color: var(--text-light);
}

.page-contact .action-section h2 {
  color: var(--text-light);
  margin-bottom: 20px;
}

.page-contact .action-section p {
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-contact h1 {
    font-size: 2.4em;
  }
  .page-contact h2 {
    font-size: 1.8em;
  }
  .page-contact h3 {
    font-size: 1.4em;
  }
  .page-contact .cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-contact .cta-button.large {
    padding: 15px 40px;
    font-size: 18px;
  }
  .page-contact .method-card img {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 768px) {
  .page-contact .hero-section {
    padding: 60px 15px;
  }
  .page-contact .hero-content h1 {
    font-size: 2em;
  }
  .page-contact .hero-content p {
    font-size: 1em;
  }
  .page-contact h2 {
    font-size: 1.6em;
  }
  .page-contact .contact-methods-section,
  .page-contact .contact-form-section,
  .page-contact .faq-section,
  .page-contact .why-contact-section,
  .page-contact .action-section {
    padding: 40px 0;
  }
  .page-contact .methods-grid,
  .page-contact .reason-grid {
    grid-template-columns: 1fr;
  }
  .page-contact .contact-form {
    padding: 20px;
  }
  .page-contact .form-group input,
  .page-contact .form-group textarea {
    width: calc(100% - 20px);
  }
  .page-contact .faq-question {
    padding: 15px;
    flex-wrap: wrap; /* Allow wrapping for long questions */
  }
  .page-contact .faq-question h3 {
    font-size: 1.1em;
    margin-bottom: 5px;
    width: calc(100% - 30px); /* Adjust width to make space for toggle */
  }
  .page-contact .faq-toggle {
    align-self: flex-end;
    font-size: 20px;
  }
  .page-contact .faq-item.active .faq-answer {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-contact h1 {
    font-size: 1.8em;
  }
  .page-contact h2 {
    font-size: 1.4em;
  }
  .page-contact .cta-button {
    width: 100%;
    box-sizing: border-box;
  }
  .page-contact .cta-button.large {
    font-size: 16px;
  }
  .page-contact .hero-image img {
    border-radius: 4px;
  }
}