/* ATM Agent Application — builds on styles.css (shared brand tokens). */

.apply-page { background: var(--cream); min-height: 100vh; display: flex; flex-direction: column; }
.apply-page .apply-main { flex: 1 0 auto; }
.apply-main { padding: 24px 0 64px; }
.apply-wrap { max-width: 560px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 700px) { .apply-main { padding: 48px 0 96px; } }

/* Progress + Back */
.progress { margin-bottom: 22px; }
.progress-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.back {
  background: none; border: 0; padding: 6px 0; cursor: pointer;
  font: 700 .9375rem/1 var(--body); color: var(--navy); text-decoration: underline; text-underline-offset: 3px;
}
.back[hidden] { display: none; }
.progress-label { margin: 0; font-size: .875rem; font-weight: 700; color: var(--ink-soft); }
.progress-track { height: 6px; border-radius: 3px; background: rgba(23,42,70,.14); overflow: hidden; margin-top: 8px; }
.progress-fill { height: 100%; width: 0; background: var(--red); border-radius: 3px; transition: width .25s ease; }
@media (prefers-reduced-motion: reduce) { .progress-fill { transition: none; } }

/* Screens */
.screen-title {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.9rem, 8vw, 2.6rem); line-height: 1.05; margin: 0 0 .6em;
}
.screen-title:focus { outline: none; }
.screen p { max-width: none; }
.info {
  background: #fff; border-left: 4px solid var(--red); padding: 14px 16px; border-radius: 6px;
}

/* Fields */
.field { margin: 0 0 22px; border: 0; padding: 0; min-width: 0; }
.field > label:not(.choice):not(.check), .choices legend {
  display: block; font-weight: 700; font-size: 1.0625rem; line-height: 1.4; margin-bottom: 8px; padding: 0;
}
.optional { font-weight: 500; font-size: .875rem; color: var(--ink-soft); margin-left: 4px; }
.help { font-size: .875rem; color: var(--ink-soft); margin: 6px 0 0; }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  display: block; width: 100%;
  font: 400 1.0625rem/1.4 var(--body); color: var(--ink);
  background: #fff; border: 2px solid #c9c1b0; border-radius: var(--radius);
  padding: 13px 14px; min-height: 52px;
  -webkit-appearance: none; appearance: none;
}
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(23,42,70,.18); }

.row-2 { display: grid; gap: 0 14px; }
@media (min-width: 480px) { .row-2 { grid-template-columns: 1fr 1fr; } }

.counter { font-size: .8125rem; color: var(--ink-soft); text-align: right; margin: 4px 0 0; }

/* Choice cards (radios) */
.choices { display: grid; gap: 10px; }
.choices legend { margin-bottom: 12px; }
.choice {
  position: relative; display: flex; align-items: center; gap: 12px;
  min-height: 54px; padding: 12px 14px;
  background: #fff; border: 2px solid #c9c1b0; border-radius: var(--radius);
  cursor: pointer; font-size: 1rem; line-height: 1.35;
}
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span::before {
  content: ""; display: inline-block; vertical-align: middle; flex: none;
  width: 20px; height: 20px; margin-right: 12px; border-radius: 50%;
  border: 2px solid #a59d8c; background: #fff; box-shadow: inset 0 0 0 3px #fff;
}
.choice span { display: flex; align-items: center; }
.choice:has(input:checked) { border-color: var(--navy); background: #f3f6fb; }
.choice input:checked + span::before { border-color: var(--navy); background: var(--navy); }
.choice input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 4px; border-radius: 3px; }

/* Checkboxes */
.check-field { margin-bottom: 14px; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-weight: 500; line-height: 1.45; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--navy); }

/* Errors */
.error-msg { color: #b3261e; font-size: .9375rem; font-weight: 700; margin: 8px 0 0; }
.has-error input, .has-error select, .has-error textarea, .has-error .choice { border-color: #b3261e; }
.submit-error {
  background: #fdecea; color: #8c1d18; border-radius: var(--radius);
  padding: 12px 14px; font-weight: 700;
}

/* Actions */
.actions { margin: 28px 0 18px; }
.actions .btn { max-width: none; }
.btn[disabled] { opacity: .7; cursor: default; }

/* Honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Confirmation */
.confirmation .follow a, .back-home a { font-weight: 700; color: var(--navy); }
.back-home { margin-top: 28px; }

.footer-slim { padding: 28px 0 32px; }
