/* ==== Collective: foundations (part A) ==== */
/* The application and terms pages. Builds on /css/style.css (the website's fonts, colours, pills and fields). */
.cv { min-height: 100vh; padding: clamp(110px, 14vw, 170px) 0 clamp(80px, 10vw, 140px); }
.cv .wrap { max-width: 1180px; }
.cv-nav { mix-blend-mode: normal; color: var(--fg); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent); }
.cv-nav .nav__right { gap: 18px; }
.cv-nav__link { font: 500 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.cv-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.cv-head .label { margin-bottom: 22px; }
.cv-head .display { font-size: clamp(2.4rem, 6vw, 5.4rem); }
.cv-lede { font-size: 1.05rem; opacity: .75; max-width: 46ch; }
.cv-progress { display: grid; gap: 14px; margin-bottom: clamp(36px, 5vw, 56px); }
.cv-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.cv-steps li { font: 500 .68rem/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; opacity: .45; display: flex; gap: .7em; align-items: baseline; }
.cv-steps li b { font-weight: 500; opacity: .6; letter-spacing: .05em; }
.cv-steps li.is-on { opacity: 1; } .cv-steps li.is-done { opacity: .75; }
.cv-bar { height: 2px; background: color-mix(in srgb, currentColor 14%, transparent); overflow: hidden; }
.cv-bar span { display: block; height: 100%; background: var(--oxblood); transition: width .8s var(--ease); }
.cv-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 6vw, 96px); align-items: start; }
.cv-aside { position: sticky; top: 120px; display: grid; gap: 18px; font-size: .92rem; }
.cv-aside p { opacity: .72; }
.cv-aside h3 { font: 500 .7rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; opacity: .55; margin-bottom: 10px; }
.cv-saved .ulink { text-decoration: underline; text-underline-offset: 3px; }
.cv-saved { display: flex; gap: 10px; align-items: center; font-size: .85rem; opacity: .8; min-height: 1.4em; }
.cv-saved i { width: 7px; height: 7px; border-radius: 50%; background: var(--oxblood); flex: none; }
.cv-form { display: grid; gap: 34px; }
.cv-form h2 { font: 400 clamp(1.6rem, 3vw, 2.4rem)/1.05 var(--display); letter-spacing: -.01em; }
.cv-form .cv-sub { opacity: .7; margin-top: -18px; }
.cv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.cv .field textarea { min-height: 110px; }
/* a written answer keeps its label lifted even when the box is not focused (the placeholder check is unreliable for textareas) */
.cv .field.has-v > span { transform: translateY(-24px) scale(.72); opacity: .7; }
.cv .field input:-webkit-autofill { -webkit-text-fill-color: var(--fg); transition: background-color 9999s; }
.cv .field em { font-style: normal; opacity: .6; }
.cv-err, .cv .field em.cv-err { display: block; margin-top: 8px; font-size: .85rem; color: #8f2d22; opacity: 1; }
.cv .is-bad input, .cv .is-bad textarea { border-color: #8f2d22; }
.cv-group { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; }
.cv-group legend { font: 500 .7rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; opacity: .6; margin-bottom: 14px; padding: 0; }
.cv-group.is-bad legend { opacity: 1; color: #8f2d22; }
.cv .form__chips span { height: 40px; font-size: .88rem; }
.cv .form__chips label { position: relative; }
.cv .form__chips input:focus-visible + span { outline: 2px solid var(--oxblood); }
.cv-hint { font-size: .88rem; opacity: .65; }
.cv-drop { border: 1px dashed color-mix(in srgb, currentColor 35%, transparent); border-radius: 14px; padding: 26px; display: grid; gap: 10px; justify-items: start; transition: border-color .3s, background .3s; }
.cv-drop.is-over { border-color: var(--oxblood); background: color-mix(in srgb, var(--oxblood) 6%, transparent); }
.cv-files { display: grid; gap: 8px; justify-self: stretch; }
.cv-file { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid color-mix(in srgb, currentColor 16%, transparent); border-radius: 10px; font-size: .9rem; }
.cv-file span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-file small { opacity: .6; white-space: nowrap; }
.cv-file button { font-size: .8rem; text-decoration: underline; opacity: .75; }
.cv-terms { max-height: 380px; overflow: auto; border: 1px solid color-mix(in srgb, currentColor 18%, transparent); border-radius: 14px; padding: 22px 24px; font-size: .95rem; line-height: 1.6; }
.cv-terms h3, .cv-doc h3 { font: 500 1.15rem/1.2 var(--display); margin: 22px 0 8px; }
.cv-terms p, .cv-doc p { margin: 0 0 10px; }
.cv-terms ul, .cv-doc ul { list-style: disc; padding-left: 20px; margin: 0 0 10px; }
.cv-terms li, .cv-doc li { margin: 4px 0; }
.cv-terms > p:first-child, .cv-doc > p:first-child { display: inline-block; padding: 8px 12px; border-radius: 8px; background: color-mix(in srgb, var(--oxblood) 10%, transparent); font-size: .85rem; }
.cv-check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; cursor: pointer; font-size: .98rem; }
.cv-check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--oxblood); }
.cv-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding-top: 8px; }
.cv-actions .pill { cursor: pointer; }
.cv-actions .pill[disabled] { opacity: .5; pointer-events: none; }
.cv-back { font: 500 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; opacity: .7; }
.cv-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cv-note { font-size: .9rem; opacity: .8; min-height: 1.3em; }
.cv-note.is-bad { color: #8f2d22; opacity: 1; }
.cv-done { max-width: 720px; display: grid; gap: 22px; }
.cv-done .display { font-size: clamp(2.4rem, 6vw, 5rem); }
.cv-done ol { list-style: none; display: grid; gap: 14px; counter-reset: s; }
.cv-done ol li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 10px; }
.cv-done ol li::before { content: "0" counter(s); font: 500 .8rem/1.6 var(--sans); letter-spacing: .1em; opacity: .5; }
.cv-ref { font: 500 .78rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; }
.cv-doc { max-width: 760px; font-size: 1rem; line-height: 1.65; }
.cv-foot { margin-top: clamp(60px, 8vw, 120px); padding-top: 24px; border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: 500 .7rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; opacity: .75; }
@media (max-width: 900px) {
  .cv-head, .cv-body { grid-template-columns: 1fr; }
  .cv-aside { position: static; order: 2; }
}
@media (max-width: 767px) {
  .cv-row { grid-template-columns: 1fr; }
  .cv-steps { display: flex; gap: 16px; }
  .cv-steps li span { display: none; }
  .cv-steps li.is-on span { display: inline; }
  .cv-nav .nav__logo { width: 120px; }
  .cv-nav__link--site { display: none; }
  .cv-terms { padding: 16px; }
}

/* Update G: the privacy line and the bot check on the last step */
.cv-legal { margin: 18px 0 6px; font-size: .9rem; line-height: 1.5; opacity: .8; max-width: 60ch; }
.cv-ts { margin: 10px 0; min-height: 65px; }
.cv-ts[hidden] { display: none; }

/* FR (round 3): the working state on Continue and Send my application */
.ap-spin { display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: ap-spin .8s linear infinite; }
@keyframes ap-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ap-spin { animation: none; border-top-color: currentColor; opacity: .5; } }
