* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.career-hero {
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  padding: 60px 80px;
  box-sizing: border-box;
}

/* Two-Column Flex Layout */
.career-hero__inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
}
.career-hero__text .eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #c7c9f5;
  margin-bottom: 16px;
margin-right: 7rem;
}

.career-hero__text .headline {
  font-size: 40px;
  line-height: 1.2;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
}

.career-hero__text .subtext {
  font-size: 22px;
  line-height: 1.6;
  color: #d1d5db;
  max-width: 480px;
  margin-left: -1rem;
  margin-top: 2.6rem;
}

/* Recruitment form card overlaid on the hero image */
.career-form-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 32px 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  width: 22rem;
  /* margin-right: 2rem; */
}

.career-form-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 6px;
}

.career-form-card p {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 20px;
}

.career-form-card .form-field {
  margin-bottom: 16px;
}

.career-form-card label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 6px;
}

.career-form-card input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  color: #111827;
}

.career-form-card input:focus {
  outline: none;
  border-color: #2f27ce;
}

.career-form-card__submit {
  width: 100%;
  background: #2f27ce;
  color: #ffffff;
  border: none;
  padding: 13px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.career-form-card__submit:hover {
  background: #241db8;
}

.career-form-card__success {
  background: #dcfce7;
  color: #166534;
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 16px;
}

.career-form-card__error {
  color: #dc2626;
  font-size: 12px;
  margin-top: 4px;
}

/*@media (max-width: 900px) {
  .career-hero {
    padding: 50px 30px;
    min-height: auto;
  }

  .career-hero__inner {
    grid-template-columns: 1fr;
  }

 .career-hero__text .headline {
    font-size: 30px;
  }
  .hero__text .eyebrow {
    margin-right: -1rem;
  }
}*/

@media (max-width: 900px) {
  /* 1. Ensure Hero Section Covers Image Properly */
  .career-hero {
    padding: 50px 20px 60px 20px;
    min-height: auto;
    background-size: cover !important;
    background-position: center !important;
  }

  /* 2. Stack Text and Form Vertically in the Center */
  .career-hero__inner {
    grid-template-columns: 1fr; /* Single column layout */
    justify-items: center;       /* Centers form card horizontally */
    gap: 8px;                   /* Space between text and form card */
  }

  /* 3. Hero Text Centering & Reset */
  .career-hero__text {
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
  }

  /* FIX: Removed 'padding-right: 9rem;' which was breaking headline layout */
  .career-hero__text .headline {
    font-size: 28px;
    line-height: 1.3;
    padding-right: 0;            
    margin-bottom: 12px;
    text-align: center;
  }

  /* FIX: Removed 'margin-right: -1rem;' */
  .career-hero__text .eyebrow {
    margin-right: 4rem;
    text-align: center;
  }

  .career-hero__text .subtext {
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
  }

  /* 4. Form Card Styled as a Floating Centered Box Over the Image */
  .career-form-card {
    width: 100%;
    max-width: 420px;           /* Prevents form from becoming too wide */
    margin: 0 auto;             /* Perfectly centers form card */
    background: #ffffff;
    padding: 24px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3); /* Gives depth over background */
    box-sizing: border-box;
  }

  .career-form-card h3,
  .career-form-card p {
    text-align: center;
  }

  /* Input fields & submit button styling */
  .form-field {
    text-align: left;           /* Keeps labels aligned cleanly above inputs */
    margin-bottom: 16px;
  }

  .form-field input,
  .career-form-card__submit {
    width: 100%;
    box-sizing: border-box;
  }
}
