.page-contact {
  color: #333333; /* Dark text for default white body background */
  padding-top: var(--header-offset, 120px); /* Ensure content clears fixed header */
}

.page-contact__hero-section {
  position: relative;
  overflow: hidden;
  padding: 80px 20px;
  background-color: #0A2463; /* Main color as background */
  color: #ffffff;
  text-align: center;
}

.page-contact__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  z-index: 0;
}

.page-contact__hero-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.page-contact__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700; /* Accent color for title */
  line-height: 1.2;
}

.page-contact__hero-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  line-height: 1.6;
}

.page-contact__hero-button {
  display: inline-block;
  background-color: #FFD700; /* Accent color for button */
  color: #0A2463;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-contact__hero-button:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-contact__methods-section {
  padding: 80px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

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

.page-contact__methods-title {
  font-size: 2.5em;
  color: #0A2463;
  margin-bottom: 20px;
}

.page-contact__methods-intro {
  font-size: 1.1em;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-contact__method-card {
  background-color: #ffffff;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-contact__method-icon {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 10px; /* Added for image styling */
}

.page-contact__method-heading {
  font-size: 1.8em;
  color: #0A2463;
  margin-bottom: 15px;
}

.page-contact__method-text {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 25px;
}

.page-contact__method-button {
  display: inline-block;
  background-color: #0A2463;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-contact__method-button:hover {
  background-color: #1a3a7f;
}

.page-contact__form-section {
  padding: 80px 20px;
  background-color: #0A2463;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-contact__form-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('[GALLERY:contact_form_background:1000x750:control_room,communication,secure,professional]');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 0;
}

.page-contact__form-container {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-contact__form-title {
  font-size: 2.5em;
  color: #FFD700;
  margin-bottom: 20px;
  text-align: center;
}

.page-contact__form-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  text-align: center;
}

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

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

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

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

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

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

.page-contact__form-submit-button {
  display: block;
  width: 100%;
  background-color: #FFD700;
  color: #0A2463;
  padding: 15px 20px;
  border: none;
  border-radius: 50px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-contact__form-submit-button:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-contact__cta-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #f0f0f0;
}

.page-contact__cta-container {
  max-width: 900px;
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.page-contact__cta-image {
  width: 300px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 30px;
  border-radius: 10px; /* Added for image styling */
}

.page-contact__cta-title {
  font-size: 2.2em;
  color: #0A2463;
  margin-bottom: 15px;
}

.page-contact__cta-description {
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-contact__cta-button,
.page-contact__cta-secondary-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  margin: 0 10px 20px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-contact__cta-button {
  background-color: #FFD700;
  color: #0A2463;
}

.page-contact__cta-button:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-contact__cta-secondary-button {
  background-color: #0A2463;
  color: #ffffff;
  border: 2px solid #0A2463;
}

.page-contact__cta-secondary-button:hover {
  background-color: #1a3a7f;
  border-color: #1a3a7f;
  transform: translateY(-3px);
}

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

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding: 60px 15px;
  }
  .page-contact__hero-title {
    font-size: 2.2em;
  }
  .page-contact__hero-description {
    font-size: 1em;
  }
  .page-contact__methods-section,
  .page-contact__form-section,
  .page-contact__cta-section {
    padding: 50px 15px;
  }
  .page-contact__methods-title,
  .page-contact__form-title,
  .page-contact__cta-title {
    font-size: 1.8em;
  }
  .page-contact__method-grid {
    grid-template-columns: 1fr;
  }
  .page-contact__method-card,
  .page-contact__form-container,
  .page-contact__cta-container {
    padding: 30px;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    width: calc(100% - 20px);
  }

  /* Critical: Prevent content overflow on mobile */
  .page-contact img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-contact__hero-title {
    font-size: 1.8em;
  }
  .page-contact__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-contact__methods-title,
  .page-contact__form-title,
  .page-contact__cta-title {
    font-size: 1.5em;
  }
  .page-contact__cta-button,
  .page-contact__cta-secondary-button {
    display: block;
    width: calc(100% - 20px);
    margin: 15px auto;
  }
}