/* Shared typography, color tokens, navigation and buttons come from landing.css. */
.apply-page {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.apply-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  transition: color .18s;
}

.apply-back svg { width: 18px; height: 18px; }
.apply-back:hover { color: var(--blue); }

.apply-main {
  display: flex;
  flex: 1;
  align-items: center;
  padding-block: 60px;
  background: linear-gradient(110deg, #edf2f7 32%, #bfd0ea 100%);
}

.apply-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  align-items: center;
  gap: 88px;
}

.apply-intro { min-width: 0; padding-bottom: 12px; }
.apply-intro .eyebrow { display: flex; align-items: center; gap: 9px; }
.apply-intro h1 { margin-top: 25px; font-size: 46px; line-height: 1.45; letter-spacing: -1.5px; }
.apply-intro h1 span { color: var(--blue); }
.apply-description { max-width: 480px; margin-top: 24px; font-size: 16px; line-height: 1.95; color: #536780; }
.apply-proof { display: grid; gap: 28px; margin-top: 46px; }
.apply-proof li { display: flex; align-items: flex-start; gap: 17px; }
.apply-proof svg { color: var(--blue); width: 23px; height: 23px; margin-top: 3px; }
.apply-proof h2 { font-size: 16px; font-weight: 600; line-height: 1.7; letter-spacing: 0; }
.apply-proof p { max-width: 390px; margin-top: 5px; font-size: 13px; line-height: 1.9; color: #5c708b; }

.apply-panel {
  min-width: 0;
  padding: 32px 36px 22px;
  border: 1px solid #dbe4f0;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 48px -24px #294c7838;
}

.apply-panel-heading { margin-bottom: 25px; }
.apply-panel-heading h2 { font-size: 26px; line-height: 1.5; letter-spacing: -.5px; }
.apply-panel-heading p { margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.apply-form { scroll-margin-top: 112px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.apply-form label:not(.consent-row), .checkbox-group { min-width: 0; }
.form-grid > label, .apply-form > .form-wide { display: flex; flex-direction: column; gap: 8px; }
.form-wide, .checkbox-group { grid-column: 1 / -1; }
.apply-form > .form-wide { margin-top: 18px; }
.form-grid > label > span, .form-wide > span, .checkbox-group legend { color: #334760; font-size: 14px; font-weight: 500; line-height: 1.6; }
.required-mark { color: var(--blue); font-weight: 400; }
.field-hint { margin-left: 5px; color: #7a8799; font-size: 12px; font-weight: 400; }

.apply-form input:not([type="checkbox"]):not([type="hidden"]),
.apply-form textarea,
.multi-select-trigger {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #d6dfeb;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.6;
  transition: border-color .18s, box-shadow .18s;
}

.apply-form input::placeholder, .apply-form textarea::placeholder { color: #8a96a7; opacity: 1; }
.apply-form input:not([type="checkbox"]):hover, .apply-form textarea:hover, .multi-select-trigger:hover { border-color: #a7bbd6; }
.apply-form input:not([type="checkbox"]):focus, .apply-form textarea:focus, .multi-select-trigger:focus-visible {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px #2967bd14;
}
.apply-form textarea { min-height: 88px; resize: vertical; }
.apply-form input[type="checkbox"] { width: 16px; height: 16px; margin: 0; flex-shrink: 0; accent-color: var(--blue); cursor: pointer; }

.checkbox-group { position: relative; margin: 0; padding: 0; border: 0; }
.checkbox-group legend { width: 100%; margin-bottom: 8px; padding: 0; }
.multi-select-trigger { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; }
.multi-select-trigger > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.multi-select-trigger[aria-invalid="true"] > span { color: #8a96a7; }
.multi-select-trigger svg { width: 16px; height: 16px; color: #7a8da6; transition: transform .18s; }
.multi-select-trigger[aria-expanded="true"] { border-color: var(--blue); }
.multi-select-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.multi-select-panel {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  z-index: 10;
  width: 100%;
  max-height: 270px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border: 1px solid #d6e1ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px #294c7826;
}
.checkbox-options label { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 11px 9px; border-radius: 4px; cursor: pointer; }
.checkbox-options label:hover, .checkbox-options label:focus-within { background: #f0f5fc; }
.checkbox-options label:has(input:checked) { background: #edf3fc; }
.checkbox-options input { margin-top: 3px !important; }
.checkbox-options label span { font-size: 13px; line-height: 1.7; }
.consent-row { display: flex; align-items: flex-start; gap: 9px; margin-top: 20px; color: var(--muted); font-size: 12px; line-height: 1.8; cursor: pointer; }
.consent-row input { margin-top: 3px !important; }
.form-actions { margin-top: 23px; }
.form-actions .button { width: 100%; gap: 15px; }
.form-actions .button:disabled { cursor: wait; opacity: .65; transform: none; box-shadow: none; }
[data-apply-status] { min-height: 22px; margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.8; }
[data-apply-status][data-state="error"] { color: #b43b35; }
[data-apply-status][data-state="success"] { color: var(--green); }

.apply-footer { background: #fff; }
.apply-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 30px; padding-block: 21px; color: #7a8799; font-size: 11px; line-height: 1.8; }
.apply-footer p span { margin-left: 22px; }
.apply-footer a:hover { color: var(--blue); }

.modal-open { overflow: hidden; }
.success-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; }
.success-modal-backdrop { position: absolute; inset: 0; background: #14243d66; backdrop-filter: blur(4px); }
.success-modal-panel { position: relative; width: min(100%, 420px); padding: 40px 32px 32px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-align: center; box-shadow: 0 24px 80px #14243d26; }
.success-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 22px; border-radius: 50%; background: #eaf2fd; color: var(--blue); }
.success-icon svg { width: 28px; height: 28px; stroke-width: 2; }
.success-modal h2 { font-size: 26px; letter-spacing: -.5px; }
.success-modal p { margin-top: 10px; color: var(--muted); font-size: 14px; }
.success-modal .button { width: 100%; margin-top: 30px; }

@media (max-width: 1199px) {
  .apply-shell { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; }
  .apply-intro h1 { font-size: 39px; }
  .apply-description { font-size: 15px; }
  .apply-proof { gap: 24px; margin-top: 36px; }
  .apply-panel { padding-inline: 28px; }
}

@media (max-width: 959px) {
  .apply-main { padding-block: 44px; }
  .apply-shell { grid-template-columns: minmax(0, 1fr); gap: 32px; max-width: 620px; }
  .apply-intro { padding: 0; }
  .apply-intro h1 { margin-top: 16px; font-size: 38px; }
  .apply-description { max-width: 540px; margin-top: 16px; }
  .apply-proof { display: none; }
  .apply-panel { padding: 30px 32px 20px; }
  .apply-footer-inner { justify-content: center; flex-wrap: wrap; gap: 4px 24px; }
}

@media (max-width: 699px) {
  .apply-back { font-size: 12px; gap: 7px; }
  .apply-back svg { width: 16px; height: 16px; }
  .apply-main { padding-block: 32px 36px; }
  .apply-shell { gap: 27px; }
  .apply-intro .eyebrow { font-size: 11px; }
  .apply-intro h1 { font-size: 32px; line-height: 1.45; letter-spacing: -.7px; }
  .apply-description { margin-top: 15px; font-size: 14px; line-height: 1.9; }
  .apply-panel { padding: 24px 22px 14px; border-radius: 11px; }
  .apply-panel-heading { margin-bottom: 24px; }
  .apply-panel-heading h2 { font-size: 23px; }
  .apply-panel-heading p { font-size: 12px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .apply-form input:not([type="checkbox"]):not([type="hidden"]), .apply-form textarea, .multi-select-trigger { min-height: 48px; font-size: 16px; padding: 11px 12px; }
  .apply-form textarea { min-height: 108px; font-size: 14px; }
  .multi-select-trigger > span { font-size: 14px; }
  .checkbox-options label { padding-inline: 7px; gap: 9px; }
  .checkbox-options label span { font-size: 12px; }
  .consent-row { font-size: 11px; }
  .apply-footer-inner { display: block; padding-block: 20px; text-align: center; font-size: 10px; }
  .apply-footer p span { display: block; margin: 3px 0 7px; }
}

@media (max-width: 374px) {
  .apply-panel { padding-inline: 18px; }
  .apply-intro h1 { font-size: 30px; }
}
