/* ===================================================================
   Contact Page Specific Styles
   =================================================================== */

/* Contact Hero with Background Image */
.contact-hero {
  background-image: url('/assets/images/apply.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
  position: relative;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Semi-transparent Overlay - Shows background image */
.contact-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(var(--rgb-black), 0.2);
  z-index: 1;
}

.contact-hero .container {
  position: relative;
  z-index: 2;
}

/* Responsive sizing */
@media (max-width: 768px) {
  .contact-hero {
    min-height: 350px;
    background-attachment: scroll;
  }
}

@media (max-width: 480px) {
  .contact-hero {
    min-height: 250px;
  }
}

/* Contact Form Section - Full Width */
.contact-form-section {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: var(--space-8) var(--space-6);
  background-image:
    linear-gradient(rgba(var(--rgb-black), 0.7), rgba(var(--rgb-black), 0.7)),
    url('/assets/images/apply.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

@media (max-width: 768px) {
  .contact-form-section {
    padding: var(--space-6) var(--space-4);
  }
}

@media (max-width: 480px) {
  .contact-form-section {
    padding: var(--space-4) var(--space-4);
  }
}

/* Contact Form */
#contact-form {
  max-width: 800px;
  margin: 0 auto;
}

/* Form Styling */
form fieldset {
  margin-bottom: var(--space-8);
  background-color: var(--color-black-muted);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gray-400);
}

form legend {
  margin-bottom: var(--space-4);
  color: var(--color-white);
  font-weight: 600;
}

/* Form Group Spacing */
.form-group {
  margin-bottom: var(--space-6);
}

.form-group:last-child {
  margin-bottom: var(--space-4);
}

/* Input/Textarea Styling */
input,
textarea,
select {
  background-color: var(--color-black-muted) !important;
  opacity: 1 !important;
}

/* Input/Textarea Focus States */
input:focus,
textarea:focus,
select:focus {
  background-color: var(--color-black) !important;
}

/* Button Group */
form button[type="submit"],
form button[type="reset"] {
  margin-right: var(--space-4);
  margin-bottom: var(--space-4);
}

/* Contact Section */
article section[aria-labelledby="info-heading"] {
  padding: var(--space-8) 0;
}

article address {
  color: var(--color-gray-300);
  font-style: normal;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-hero {
    min-height: 250px;
  }

  /* Change background-attachment to scroll on mobile for better performance */
  .contact-form-section {
    background-attachment: scroll;
  }

  fieldset {
    padding: var(--space-4);
  }

  form button[type="submit"],
  form button[type="reset"] {
    width: 100%;
    margin-bottom: var(--space-2);
  }
}

@media (max-width: 480px) {
  .contact-hero {
    min-height: 180px;
    background-position: center top;
  }

  .contact-form-section {
    padding: var(--space-4);
  }

  #contact-form {
    max-width: 100%;
  }

  form button[type="submit"],
  form button[type="reset"] {
    width: 100%;
    margin: var(--space-2) 0;
  }
}
