/* Careers Form Styles */

.careers-page {
  background-color: #ffffff;
  background-image: url('../images/WeNeighborhood_SunRay_Logo_Blue.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;
  min-height: 100vh;
  color: #000;
}

.careers-page h1,
.careers-page h2,
.careers-page h3,
.careers-page h4,
.careers-page h5,
.careers-page h6,
.careers-page p,
.careers-page span,
.careers-page div,
.careers-page li {
  color: #000;
}

/* Center the careers section and prioritize content for single-view display */
.careers-section {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: calc(100vh - 90px);
  padding: 2rem 0;
  padding-top: calc(var(--header-height-desktop) + 2rem);
}

.careers-container {
  display: grid;
  grid-template-columns: 450px 1fr;
  gap: 0.5rem;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0;
  width: 100%;
  padding: 1rem 2rem;
}



.careers-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-right: 0.6rem;
  padding-left: 2rem;
  max-width: 450px;
  position: sticky;
  top: calc(var(--header-height-desktop) + 2rem);
}

.careers-form-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 0;
  margin-right: 2rem;
}

.careers-form-section h3 {
  margin: 0 0 1rem 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #113936;
  text-align: left;
}

.careers-form-container {
  background: #ffffff;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(26, 44, 41, 0.05);
  width: 100%;
  border: 1px solid rgba(26, 44, 41, 0.06);
  align-self: flex-start;
  position: static;
  overflow: visible;
}

.careers-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.careers-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.careers-form label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1a2c29;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.careers-form input,
.careers-form textarea {
  padding: 0.35rem 0.5rem;
  border: 1px solid rgba(26, 44, 41, 0.12);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  background-color: #fff;
  width: 100%;
  box-sizing: border-box;
  height: 32px;
}

.careers-form textarea {
  resize: vertical;
  min-height: 35px;
  height: auto;
  padding-top: 0.35rem;
}

.file-upload {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.file-upload label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.7rem;
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid #1a2c29;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.file-upload label:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.attachment-text {
  font-size: 0.75rem;
  opacity: 0.85;
}

.apply-btn {
  padding: 0.5rem 1rem;
  background-color: #000000;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-family: inherit;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  width: 100%;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.apply-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.14);
}

.apply-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.page-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.main-heading {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.description {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.disclaimer {
  font-size: 0.75rem;
  text-align: center;
  margin-top: 0.8rem;
  opacity: 0.8;
}

/* Form header inside the card */
.careers-form-container h3 {
  margin: 0 0 1rem 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #113936;
}

/* Make sure labels sit above inputs with compact spacing */
.careers-form .form-group {
  gap: 0.35rem;
}

/* Desktop: maintain left-right layout */
@media (min-width: 1100px) {
  .careers-container {
    grid-template-columns: 400px 1fr;
  }

  .careers-form-container {
    max-width: 500px;
  }
}

/* Wide screens: increase spacing */
@media (min-width: 1400px) {
  .careers-container {
    grid-template-columns: 450px 1fr;
    gap: 3rem;
  }
}

/* Desktop-first responsive: keep form visible and aligned */
.careers-form-container {
  margin-left: auto;
}

/* Mobile Responsive */
@media (max-width: 860px) {
  .careers-section {
    padding-top: calc(var(--header-height-mobile) + 2rem);
  }

  .careers-content {
    position: static;
    top: auto;
  }

  .page-title {
    font-size: 2rem;
  }

  .main-heading {
    font-size: 1.5rem;
  }

  .careers-form-container {
    padding: 1rem;
    position: static;
    max-height: none;
    overflow: visible;
    margin: 0 auto;
  }

  .careers-container {
    grid-template-columns: 1fr;
    padding: 1rem 3%;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .careers-content {
    justify-content: flex-start;
  }

  .careers-form-container {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 1.8rem;
  }

  .main-heading {
    font-size: 1.3rem;
  }

  .careers-form input,
  .careers-form textarea {
    padding: 0.7rem;
    font-size: 0.95rem;
  }

  .apply-btn {
    padding: 0.9rem 1.5rem;
    font-size: 0.85rem;
  }
}

/* Aggressive mobile compaction to display whole form in one viewport */
@media (max-width: 420px) {
  .careers-container {
    grid-template-columns: 1fr;
    padding: 0.6rem 2%;
    gap: 0.6rem;
  }

  .page-title {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
  }

  .main-heading {
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
  }

  .description {
    font-size: 0.88rem;
    margin-bottom: 0.6rem;
  }

  .careers-form-container {
    padding: 0.5rem;
    max-width: 100%;
    box-shadow: none;
  }

  .careers-form .form-group {
    gap: 0.25rem;
  }

  .careers-form label {
    font-size: 0.7rem;
  }

  .careers-form input,
  .careers-form textarea {
    padding: 0.45rem;
    font-size: 0.88rem;
  }

  .careers-form textarea {
    max-height: 88px;
    min-height: 60px;
  }

  .file-upload label {
    padding: 0.4rem 0.55rem;
    font-size: 0.75rem;
  }

  .attachment-text {
    font-size: 0.7rem;
  }

  .apply-btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.75rem;
    border-radius: 32px;
  }

  .disclaimer {
    font-size: 0.68rem;
    margin-top: 0.5rem;
  }

  /* Reduce vertical spacing so form fits in one screen height */
  .careers-content,
  .careers-form-container {
    margin: 0;
  }

  .careers-form {
    gap: 0.35rem;
  }
}