/* Coaching application: black & white, builds on home.css tokens */
.apply { --field: #0B0B0B; --field-line: #2A2A2A; }

/* top bar: back button + progress */
.a-top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px;
  background: rgba(0,0,0,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.a-progress { flex: 1; height: 4px; border-radius: 99px; background: #1C1C1C; overflow: hidden; }
.a-progress__fill { height: 100%; width: 0; background: #fff; border-radius: 99px; transition: width .45s cubic-bezier(.2,.8,.2,1); }
.a-progress__pct { min-width: 44px; text-align: right; font-family: var(--font-display); font-size: 18px; letter-spacing: .04em; color: #fff; font-variant-numeric: tabular-nums; }

.a-wrap { max-width: 640px; margin: 0 auto; padding: 24px 20px 80px; }
#apply { display: grid; gap: 30px; }

/* fields */
.a-field { display: grid; gap: 8px; }
.a-field > label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #BDBDBD; }
.a-req { color: #fff; }
.a-input {
  width: 100%; min-height: 52px; padding: 0 16px;
  background: var(--field); color: #fff;
  border: 1px solid var(--field-line); border-radius: 12px;
  font: inherit; font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.a-input::placeholder { color: #5E5E5E; }
.a-input:hover { border-color: #444; }
.a-input:focus { outline: none; border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.12); }
select.a-input { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
select.a-input option { background: #111; color: #fff; }
.a-textarea { min-height: 120px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
.a-input.is-invalid, .a-block.is-invalid .a-chips { border-color: #fff; }
.a-input.is-invalid { box-shadow: 0 0 0 3px rgba(255,255,255,.18); }

.a-grid { display: grid; gap: 22px 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .a-grid { grid-template-columns: 1fr 1fr; } }

/* chip blocks */
.a-block { display: grid; gap: 12px; }
.a-block__title { font-family: var(--font-display); font-weight: 400; font-size: 28px; letter-spacing: .02em; text-transform: uppercase; color: #fff; }
.a-block__hint { margin-top: -8px; font-size: 13px; color: #7A7A7A; }
.a-chips { display: flex; flex-wrap: wrap; gap: 8px; border: 1px solid transparent; border-radius: 14px; }
.a-chip { position: relative; cursor: pointer; }
.a-chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.a-chip span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px;
  border: 1px solid #333; border-radius: 99px; background: #000; color: #E5E5E5;
  font-size: 14.5px; font-weight: 500; user-select: none;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s;
}
.a-chip:hover span { border-color: #888; }
.a-chip input:checked + span { background: #fff; color: #000; border-color: #fff; }
.a-chip input:focus-visible + span { outline: 2px solid #fff; outline-offset: 3px; }
.a-chip input:active + span { transform: scale(.96); }
.a-error { font-size: 13px; color: #fff; }
.a-error::before { content: "↑ "; }

/* unit toggle */
.a-unit { display: flex; gap: 8px; }
.a-unit .a-input { flex: 1; min-width: 0; }
.a-seg { display: flex; padding: 4px; gap: 2px; border: 1px solid var(--field-line); border-radius: 12px; background: var(--field); }
.a-seg label { position: relative; cursor: pointer; }
.a-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.a-seg span { display: grid; place-items: center; min-width: 40px; height: 42px; padding: 0 8px; border-radius: 9px; font-size: 14px; font-weight: 600; color: #8A8A8A; transition: background-color .18s, color .18s; }
.a-seg input:checked + span { background: #fff; color: #000; }
.a-seg input:focus-visible + span { outline: 2px solid #fff; outline-offset: 1px; }

/* optional collapsibles */
.a-more { border: 1px solid #222; border-radius: 16px; background: #050505; overflow: hidden; }
.a-more summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 18px 18px; cursor: pointer; }
.a-more summary::-webkit-details-marker { display: none; }
.a-more summary > span:first-child { font-family: var(--font-display); font-size: 20px; letter-spacing: .03em; text-transform: uppercase; color: #fff; }
.a-opt { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; border: 1px solid #3A3A3A; color: #9A9A9A; }
.a-plus { margin-left: auto; position: relative; width: 14px; height: 14px; }
.a-plus::before, .a-plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: #fff; transition: transform .25s ease; }
.a-plus::after { transform: rotate(90deg); }
.a-more[open] .a-plus::after { transform: rotate(0deg); }
.a-more summary:hover { background: #0C0C0C; }
.a-more__body { padding: 4px 18px 20px; display: grid; gap: 20px; }

/* submit */
.a-submit {
  margin-top: 6px; width: 100%; min-height: 60px;
  background: #000; color: #fff; border: 1px solid #fff; border-radius: 14px;
  font-family: var(--font-display); font-size: 22px; letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer; transition: background-color .2s, color .2s, transform .2s;
}
.a-submit:hover { background: #fff; color: #000; }
.a-submit:active { transform: scale(.99); }
.a-submit[disabled] { opacity: .55; cursor: progress; }
.a-status { min-height: 1em; margin-top: -18px; text-align: center; font-size: 14px; color: #CFCFCF; }

/* success modal */
.a-modal {
  width: min(400px, calc(100vw - 32px)); padding: 34px 26px 26px;
  background: #000; color: #fff; border: 1px solid #fff; border-radius: 22px;
  text-align: center;
}
.a-modal::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.a-modal[open] { animation: pop .35s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.a-modal__check { width: 60px; height: 60px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #000; }
.a-modal__check svg { width: 28px; height: 28px; }
.a-modal h2 { font-family: var(--font-display); font-weight: 400; font-size: 30px; letter-spacing: .02em; text-transform: uppercase; color: #fff; }
.a-modal p { margin-top: 10px; color: #BDBDBD; font-size: 15px; line-height: 1.55; }
.a-modal__btn { display: grid; place-items: center; margin-top: 22px; min-height: 50px; border-radius: 12px; background: #fff; color: #000; font-weight: 600; text-decoration: none; }
.a-modal__btn:hover { background: #E6E6E6; }
