.careers-hero-wrapper {
  background: var(--bg-gray);
}

body {
  background: var(--bg-gray);
}

.careers-hero {
  position: relative;
  color: #ffffff;
  padding: 12rem 0 10rem;
  overflow: hidden;
  z-index: 0;
}

.careers-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(120deg, rgba(148, 25, 25, 0.97) 0%, rgba(4, 21, 98, 0.92) 40%, rgba(4, 21, 98, 0.80) 80%),
    url("../images/gasstation3.webp");
  background-size: cover;
  background-position: center right;
  z-index: -1;
}

.careers-hero-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 5rem;
  align-items: center;
  justify-content: center;
}

.careers-hero-media {
  width: 100%;
  max-width: 560px;
  height: 420px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.careers-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.careers-hero-content {
  max-width: 540px;
  margin-left: 0;
}

.careers-hero-kicker {
  font-size: 1.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  color: #ff2e2e;
}

.careers-hero-heading {
  font-size: 7rem;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 1.75rem;
}

.careers-hero-heading span {
  display: inline-block;
}

.careers-hero-line {
  width: 100%;
  max-width: 480px;
  height: 3px;
  background: #ff2e2e;
  margin: 1.75rem 0 1.75rem;
}

.careers-hero-subcopy {
  font-size: 1.5rem;
  line-height: 1.7;
  max-width: 430px;
}

@media (max-width: 900px) {
  .careers-hero {
    padding: 6rem 0 7rem;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
  }

  .careers-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .careers-hero-media {
    height: 360px;
    max-width: 420px;
  }

  .careers-hero-content {
    margin-left: 0;
    justify-self: center;
  }

  .careers-hero-line {
    margin-left: auto;
    margin-right: auto;
  }

  .careers-hero-heading {
    font-size: 3rem;
  }
}

@media (max-width: 600px) {
  .careers-hero {
    padding: 4.5rem 0 5rem;
    clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  }

  .careers-hero-media {
    height: 260px;
  }

  .careers-hero-heading {
    font-size: 2.4rem;
  }

  .careers-hero-subcopy {
    font-size: 0.95rem;
  }
}

/* WHY APS SECTION */

.why-section{
  background: var(--bg-gray);
  color: var(--text);
  padding: 4rem 1.5rem;
}

.why-inner{
  max-width: var(--page-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0,1.3fr) minmax(0,1.4fr);
  gap: 3rem;
  align-items: center;
}

.why-eyebrow{
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: #555;
  margin-bottom: .7rem;
  font-weight: 500;
}

.why-section h2{
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 3vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--text);
}

.why-copy p{
  font-family: var(--font-body);
  font-size: 1.5rem;
  line-height: 1.7;
  color: #444;
  max-width: 34rem;
}

.why-copy p + p{
  margin-top: .8rem;
}

.why-cta{
  margin-top: 1.75rem;
}

.btn-outline{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 999px;
  border: 2px solid var(--brand);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brand);
  background: transparent;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease, transform .08s ease;
}

.btn-outline:hover{
  background: var(--brand);
  color: var(--text-white);
  box-shadow: var(--shadow);
}

.btn-outline:active{
  transform: translateY(1px);
}

.why-cards{
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 1.25rem;
}

.why-card{
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.5rem 1.4rem;
}

.why-card h3{
  font-family: var(--font-body);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--text);
}

.why-card p{
  font-family: var(--font-body);
  font-size: 1.4rem;
  line-height: 1.6;
  color: #555;
}

@media (max-width: 900px){
  .why-inner{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px){
  .why-cards{
    grid-template-columns: 1fr;
  }
}

/* POSITIONS SECTION – PANEL + ROWS */

.positions-section{
  background: var(--bg-gray);
  padding: 4rem 1.5rem;
  color: var(--text);
  font-family: var(--font-body);
}

.positions-shell{
  max-width: var(--page-max);
  margin: 0 auto;
  background: var(--panel);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem 1.75rem 2.25rem;
}

.positions-header{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 1.75rem;
}

.positions-heading h2{
  font-family: var(--font-body);
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--text);
}

.positions-intro{
  font-size: 1.4rem;
  color: #555;
  max-width: 30rem;
  line-height: 1.6;
}

.positions-filters{
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

.positions-filters input,
.positions-filters select{
  font-family: var(--font-body);
  font-size: 1.4rem;
  padding: .8rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.15);
  background: var(--surface);
  min-width: 160px;
  color: var(--text);
}

.positions-filters input::placeholder{
  color: #777;
}

.job-list{
  border-top: 1px solid var(--border);
}

.job-row{
  display: grid;
  grid-template-columns: minmax(0,2.4fr) minmax(0,1.3fr) auto;
  gap: 1.25rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--border);
}

.job-row-main h3{
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: .3rem;
  color: var(--text);
}

.job-meta{
  font-size: 1.3rem;
  color: #666;
  margin-bottom: .6rem;
}

.job-points{
  margin: 0;
  padding-left: 1.8rem;
  font-size: 1.4rem;
  line-height: 1.7;
  color: #444;
}

.job-points li {
  margin-bottom: 0.3rem;
}

.job-tags{
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-content: flex-start;
}

.tag{
  font-size: 1.2rem;
  background: transparent;
  color: var(--text);
  padding: .4rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.15);
}

.job-row-cta{
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.btn-apply-row{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.8rem;
  border-radius: 999px;
  background: var(--brand-600);
  color: var(--text-white);
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background .16s ease, box-shadow .16s ease, transform .08s ease;
}

.btn-apply-row:hover{
  background: var(--brand);
  box-shadow: var(--shadow);
}

.btn-apply-row:active{
  transform: translateY(1px);
}

@media (max-width: 900px){
  .positions-header{
    flex-direction: column;
  }
}

@media (max-width: 800px){
  .job-row{
    grid-template-columns: 1fr;
  }
  .job-row-cta{
    justify-content: flex-start;
  }
}

/* PROCESS + APPLY SECTIONS */

.process-section{
  background: var(--bg-gray);
  padding: 4rem 1.5rem;
  color: var(--text);
}

.process-section h2,
.apply-section h2{
  text-align: center;
  font-family: var(--font-body);
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: .8rem;
  color: var(--text);
}

.process-shell{
  max-width: var(--page-max);
  margin: 0 auto;
  background: var(--panel);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2.25rem 1.75rem 2.5rem;
}

.process-intro{
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 2rem;
  font-size: 1.5rem;
  line-height: 1.6;
  color: #555;
}

.process-steps-grid{
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 1.75rem;
  position: relative;
}

.process-steps-grid::before{
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 32px;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.process-step{
  position: relative;
  text-align: center;
  padding-top: .25rem;
}

.process-step-icon{
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 2px solid var(--brand-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--brand-600);
  background: var(--surface);
  margin: 0 auto .75rem;
  z-index: 1;
}

.process-step h3{
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: .4rem;
  color: var(--text);
}

.process-step p{
  font-size: 1.35rem;
  line-height: 1.6;
  color: #555;
}

@media (max-width: 960px){
  .process-steps-grid{
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .process-steps-grid::before{
    display: none;
  }
}

@media (max-width: 600px){
  .process-shell{
    padding: 1.75rem 1.25rem 2rem;
  }
  .process-steps-grid{
    grid-template-columns: 1fr;
  }
}


/* ============================================
   APPLY SECTION - Professional Application Form
   ============================================ */

.apply-section {
  background: var(--bg-gray);
  padding: 4rem 1.5rem 5rem;
  color: var(--text);
  font-family: var(--font-body);
}

.apply-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.apply-header h2 {
  font-family: var(--font-body);
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.apply-subtitle {
  font-size: 1.5rem;
  color: #555;
  max-width: 450px;
  margin: 0 auto;
  line-height: 1.5;
}

.apply-shell {
  max-width: var(--page-max);
  margin: 0 auto;
  background: var(--panel);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2.25rem 2.5rem 2.5rem;
}

.apply-form {
  width: 100%;
  font-family: var(--font-body);
}

/* Form Sections (Fieldsets) */
.form-section {
  border: none;
  padding: 0;
  margin: 0 0 2rem;
}

.form-section legend {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--brand);
  width: 100%;
  display: block;
}

/* Form Grid Layout */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.5rem;
}

.form-grid.single-col {
  grid-template-columns: 1fr;
}

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

.form-field.span-full {
  grid-column: 1 / -1;
}

/* Labels */
.apply-form label {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-body);
}

.required {
  color: #c0392b;
  font-weight: 400;
}

/* Input Styles */
.apply-form input[type="text"],
.apply-form input[type="email"],
.apply-form input[type="tel"],
.apply-form input[type="date"],
.apply-form select,
.apply-form textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 0.5rem;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.apply-form input::placeholder,
.apply-form textarea::placeholder {
  color: #888;
}

.apply-form input:focus,
.apply-form select:focus,
.apply-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(148, 25, 25, 0.1);
}

.apply-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.apply-form textarea {
  resize: vertical;
  min-height: 100px;
}

/* File Upload Styling */
.file-upload {
  position: relative;
}

.file-upload input[type="file"] {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.file-upload-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  border: 2px dashed var(--border);
  border-radius: 0.5rem;
  background: var(--surface);
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.file-upload:hover .file-upload-text {
  border-color: var(--brand);
  background: rgba(148, 25, 25, 0.03);
}

.file-upload-text i {
  font-size: 1.75rem;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.file-upload-text span {
  font-size: 1.5rem;
  color: var(--text);
  font-weight: 500;
}

.file-upload-text small {
  font-size: 1.2rem;
  color: #666;
  margin-top: 0.3rem;
}

/* Submit Button */
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: 100%;
  max-width: 320px;
  padding: 1.4rem 2.5rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-600) 100%);
  color: var(--text-white);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 12px rgba(4, 21, 98, 0.25);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(148, 25, 25, 0.35);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit i {
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.btn-submit:hover i {
  transform: translateX(3px);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Form Actions & Messages */
.form-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.form-msg {
  font-size: 1.5rem;
  font-weight: 500;
  min-height: 2rem;
  text-align: center;
}

.form-msg[data-state="error"] {
  color: #c0392b;
}

.form-msg[data-state="info"] {
  color: var(--brand);
}

.form-msg[data-state="success"] {
  color: #27ae60;
}

/* Apply Note */
.apply-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
  color: #666;
  font-size: 1.3rem;
  margin-top: 1.25rem;
}

.apply-note i {
  font-size: 1.2rem;
  color: #666;
}

/* Responsive Design */
@media (max-width: 800px) {
  .apply-shell {
    padding: 1.75rem 1.5rem 2rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-field.span-full {
    grid-column: 1;
  }

  .apply-header h2 {
    font-size: 1.75rem;
  }

  .btn-submit {
    max-width: 100%;
  }
}

.active{
  position: relative;
}

/* =============================================
   Choices.js Custom Styling
   ============================================= */
.choices {
  margin-bottom: 0;
}

.choices__inner {
  background: var(--surface);
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.85rem 1.2rem;
  min-height: auto;
  font-size: 1.4rem;
}

.choices__inner:focus-within {
  border-color: var(--brand);
}

.choices__list--single .choices__item {
  color: var(--text);
}

.choices__list--dropdown,
.choices__list[aria-expanded] {
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  max-height: 280px;
  overflow: hidden;
  margin-top: 4px;
  z-index: 100;
}

.choices {
  position: relative;
  z-index: 1;
}

.choices.is-open {
  z-index: 101;
}

.choices__list--dropdown .choices__list {
  max-height: 260px;
}

.choices__list--dropdown .choices__item {
  color: var(--text);
  font-size: 1.4rem;
  padding: 12px 16px;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted,
.choices__list--dropdown .choices__item--selectable:hover {
  background-color: var(--brand) !important;
  color: #fff !important;
}

.choices__input {
  background: transparent;
  padding: 0;
  margin: 0;
  color: var(--text);
  font-size: 1.4rem;
}

.choices__input::placeholder {
  color: #888;
}

.choices[data-type*=select-one] .choices__inner {
  padding-bottom: 0.85rem;
}

.choices[data-type*=select-one]::after {
  right: 1.2rem;
  border-color: #888 transparent transparent transparent;
}

.choices__placeholder {
  color: #888;
  opacity: 1;
}