/* Guest application (podcast/apply/): a three-step form in the site's flow layout.
   Type follows the inner pages: condensed .h headings, amber .tag kickers, Inter body, grey rules, btn--sm buttons. */
/* display rules below must not beat the hidden attribute the script toggles */
.ap-main [hidden] { display: none !important; }
.ap-wrap { display: flex; flex-direction: column; gap: 3.2rem; }
.ap-main { min-width: 0; }
.ap-side { display: flex; flex-direction: column; gap: 1.6rem; }
.ap-card { background: #fff; border: 1px solid var(--line); border-radius: .3rem; padding: 2rem 2.2rem; display: flex; flex-direction: column; gap: 1rem; }
.ap-card .t { font-size: 1.4rem; line-height: 1.5; }
.ap-intro, .f-hint, .f-err, .choice { line-height: 1.45; }
.ap-list { display: flex; flex-direction: column; gap: 1rem; }
.ap-list li { font-size: 1.4rem; line-height: 1.45; }
.ap-list b { display: block; font-family: var(--head); font-weight: 850; font-stretch: 71%; text-transform: uppercase; letter-spacing: -.006em; color: var(--navy); font-size: 1.5rem; line-height: 1.1; margin-bottom: .2rem; }

.ap-progress { list-style: none; display: flex; gap: .8rem; margin-bottom: 3.2rem; border-bottom: 1px solid var(--line); }
.ap-progress li { flex: 1; display: flex; align-items: center; gap: .8rem; padding: 0 0 1.2rem; font-size: 1.3rem; font-weight: 600; color: #8a8374; position: relative; }
.ap-progress li span { flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; font-size: 1.2rem; color: #8a8374; }
.ap-progress li::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: .3rem; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 320ms var(--ease-out); }
.ap-progress li[aria-current="step"] { color: var(--navy); }
.ap-progress li[aria-current="step"] span { background: var(--navy); border-color: var(--navy); color: var(--gold); }
.ap-progress li[aria-current="step"]::after { transform: scaleX(1); }
.ap-progress li.done { color: var(--navy); }
.ap-progress li.done span { background: var(--gold); border-color: var(--gold); color: var(--navy); }
@media (max-width: 600px) { .ap-progress li { font-size: 0; gap: 0; } .ap-progress li span { font-size: 1.2rem; } }

.ap-step .h { font-size: 3.35rem; margin: .6rem 0 1.4rem; outline: none; }
.ap-intro { font-size: 1.45rem; line-height: 1.55; max-width: 62rem; margin-bottom: 2.4rem; padding-left: 1.6rem; border-left: .3rem solid var(--gold); }
.ap-grid { display: grid; grid-template-columns: 1fr; gap: 2.2rem 2.4rem; }
@media (min-width: 640px) { .ap-grid { grid-template-columns: 1fr 1fr; } .ap-grid > .f { grid-column: 1 / -1; } .ap-grid > .f--half { grid-column: auto; } }

.f { display: flex; flex-direction: column; gap: .7rem; min-width: 0; border: 0; margin: 0; padding: 0; }
.f label:not(.choice), .f legend, .f-q { font-size: 1.4rem; line-height: 1.4; font-weight: 600; color: var(--navy); padding: 0; }
.f legend { margin-bottom: .7rem; }
.req { color: var(--red); }
.opt { font-weight: 500; font-size: 1.2rem; color: #8a8374; margin-left: .3rem; }
.f input:not([type="radio"]):not([type="checkbox"]):not([type="file"]), .f select, .f textarea {
  width: 100%; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 2px; font: 500 1.6rem/1.4 var(--sans); padding: 1.1rem 1.3rem; transition: border-color 160ms ease, box-shadow 160ms ease; }
.f input:not([type="radio"]):not([type="checkbox"]):not([type="file"]), .f select { height: 4.6rem; }
.f textarea { resize: vertical; min-height: 12rem; }
.f select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2300152a' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 1.4rem center; padding-right: 3.6rem; }
.f ::placeholder { color: #a39c8e; }
.f :is(input, select, textarea):focus-visible { outline: none; border-color: var(--navy); box-shadow: 0 0 0 .3rem rgba(247, 214, 147, .75); }
.f.has-err :is(input, select, textarea) { border-color: #c8401a; }
.f-err { font-size: 1.25rem; line-height: 1.3; color: #b3330f; font-weight: 600; }
.f-err:empty { display: none; }
.f-hint { font-size: 1.2rem; color: #7a7262; }

.choices { display: flex; flex-wrap: wrap; gap: .8rem; }
.choice { display: inline-flex; align-items: center; gap: .9rem; cursor: pointer; font-size: 1.4rem; line-height: 1.35; }
.f--choices .choice { border: 1px solid var(--line); background: #fff; border-radius: 2px; padding: 1rem 1.4rem; transition: border-color 160ms ease, background-color 160ms ease; }
.f--choices .choice:has(input:checked) { border-color: var(--navy); background: #fbf3df; }
.choice input { flex: none; width: 1.8rem; height: 1.8rem; margin: 0; accent-color: var(--navy); }
.choice--box { align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 2px; padding: 1.2rem 1.4rem; }
.choice--box input { margin-top: .1rem; }
.f.has-err .choice--box, .f--choices.has-err .choice { border-color: #c8401a; }

.drop { position: relative; display: flex; align-items: center; gap: 1.2rem; border: 1px dashed #b9b09f; background: #fff; border-radius: 2px; padding: 1rem 1.2rem; min-height: 5.6rem; transition: border-color 160ms ease, background-color 160ms ease; }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop:focus-within { border-color: var(--navy); box-shadow: 0 0 0 .3rem rgba(247, 214, 147, .75); }
.drop-btn { flex: none; background: var(--navy); color: var(--gold); font-weight: 700; font-size: 1.3rem; padding: .9rem 1.4rem; border-radius: 2px; }
.drop-name { font-size: 1.35rem; color: #7a7262; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.drop.has-file { border-style: solid; border-color: var(--navy); background: #fbf3df; }
.drop.has-file .drop-name { color: var(--navy); font-weight: 600; }
.f.has-err .drop { border-color: #c8401a; }
@media (hover: hover) and (pointer: fine) { .drop:hover { border-color: var(--navy); } }

.ap-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; margin-top: 3.2rem; padding-top: 2.4rem; border-top: 1px solid var(--line); }
.ap-nav .btn { height: 4.4rem; padding: 0 2rem; font-size: 1.4rem; border: 0; cursor: pointer; font-family: var(--sans); }
.ap-nav [data-next], .ap-nav [data-submit] { margin-left: auto; }
.btn--line { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.ap-nav .btn[disabled] { opacity: .6; cursor: progress; }
.ap-status { width: 100%; font-size: 1.35rem; font-weight: 600; color: var(--navy); text-align: right; }
.ap-status:empty { display: none; }
.ap-status.is-err { color: #b3330f; }
@media (hover: hover) and (pointer: fine) { .sec .btn.btn--line:hover { background: var(--navy); color: var(--gold); } }

.ap-done { display: flex; flex-direction: column; align-items: flex-start; gap: 1.4rem; padding: 4rem 0; }
.ap-done .h { font-size: 4rem; outline: none; }
.ap-done .t { font-size: 1.5rem; line-height: 1.6; max-width: 56rem; }
.ap-done .btn { margin-top: 1rem; height: 4.4rem; padding: 0 2rem; font-size: 1.4rem; }

/* Desktop: requirements on the left and sticky; the form gets the wider column. Sizes in design units, like the other pages. */
@media (min-width: 960px) {
  .ap-wrap { display: grid; grid-template-columns: 27rem 1fr; gap: 5.6rem; align-items: start; }
  .ap-side { position: sticky; top: 6.4rem; }
  .ap-card { padding: 1.8rem 2rem; }
  .ap-card .t, .ap-list li { font-size: 1.25rem; line-height: 1.8rem; }
  .ap-list b { font-size: 1.4rem; }
  .ap-progress li { font-size: 1.2rem; }
  .ap-step .h { font-size: 3.35rem; }
  .ap-intro { font-size: 1.34rem; line-height: 1.9rem; }
  .f label:not(.choice), .f legend, .f-q { font-size: 1.3rem; line-height: 1.8rem; }
  .f input:not([type="radio"]):not([type="checkbox"]):not([type="file"]), .f select, .f textarea { font-size: 1.34rem; }
  .f input:not([type="radio"]):not([type="checkbox"]):not([type="file"]), .f select { height: 4rem; }
  .choice { font-size: 1.3rem; }
  .ap-nav .btn { height: 3.8rem; font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) { .ap-progress li::after { transition: none; } }
