/* The Creator Journey: Creator Summit application (talent_apply in _src/build.py, assets/js/talent.js).
   This file loads before mic.css, so rules that adjust mic.css are scoped one level deeper than the rule they change. */

/* --- Intro column (dark panel in both themes) ------------------------------------------------ */
.mic-cjf .mic-cjf__promise {
  margin: 1.5rem 0 0; max-width: 26rem; color: var(--mic-orange);
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.15; letter-spacing: -.01em;
}
.mic-cjf .mic-apply2__lead { margin: 1rem 0 2rem; }
.mic-cjf .mic-cjf__facts { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.mic-cjf .mic-cjf__facts li { display: flex; gap: .75rem; align-items: flex-start; min-width: 0; font-size: 1rem; }
.mic-cjf .mic-cjf__facts .mic-icon { flex: none; width: 2.3rem; height: 2.3rem; padding: .45rem; border-radius: .7rem 0 .7rem 0; background: rgba(251, 95, 0, .16); color: var(--mic-orange); }
.mic-cjf .mic-cjf__facts span { display: grid; gap: .15rem; font-weight: 700; line-height: 1.3; }
.mic-cjf .mic-cjf__facts b { font-size: var(--type-meta); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #bdbdbd; }
.mic-cjf__before { margin: 0 0 1.5rem; padding: 1.2rem 1.25rem 1.25rem 1.4rem; border-left: 3px solid var(--mic-orange); background: rgba(255, 255, 255, .05); border-radius: 0 1rem 0 0; }
.mic-cjf__before-title { margin: 0 0 .75rem; color: var(--mic-orange); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: var(--type-meta); }
.mic-cjf__before ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .55rem; color: #e1e1e1; font-size: .9375rem; line-height: 1.45; }
@media (max-width: 22.49rem) { .mic-cjf .mic-cjf__facts { grid-template-columns: minmax(0, 1fr); } }

/* --- Stepper: five steps; on phones the bars stay and one line names the step ------------------ */
.mic-talent .mic-stepper { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 1.5rem; }
.mic-cjf__stepnow { display: none; margin: -.5rem 0 1.25rem; font-weight: 800; font-size: var(--type-small); }
@media (max-width: 39.99rem) {
  .mic-talent .mic-stepper li[aria-current="step"] { font-size: 0; }
  .mic-cjf__stepnow { display: block; }
}
.mic-cjf__key { margin: 0 0 1.75rem; font-size: var(--type-small); color: var(--mic-grey-text); }
.mic-talent .mic-step-panel .mic-cjf__lead { margin: -.75rem 0 0; color: var(--mic-grey-text); font-size: 1.0625rem; }

/* --- Questions ------------------------------------------------------------------------------- */
.mic-cjf__n { color: var(--mic-orange-deep); font-variant-numeric: tabular-nums; }
.mic-cjf__star { margin-left: .2em; color: var(--mic-orange-deep); font-weight: 800; }
.mic-talent .mic-step-panel > :is(.mic-q, .mic-cjf__row) + :is(.mic-q, .mic-cjf__row) { padding-top: 1.5rem; border-top: 1px solid var(--mic-line); }
.mic-talent .mic-cjf__group { border: 0; margin: 0; padding: 0; min-width: 0; }
.mic-talent .mic-step-panel .mic-cjf__group > legend {   /* floated: a plain grid item, so the divider above doesn't notch round it */
  float: left; width: 100%; margin: 0; padding: 0; color: var(--mic-fg);
  font-family: inherit; font-weight: 800; font-size: 1rem; line-height: 1.35; letter-spacing: 0;
}

/* side-by-side pairs: line the inputs up even when only one of the two has a hint */
@media (min-width: 48rem) {
  .mic-talent .mic-cjf__row { grid-template-rows: repeat(4, auto); row-gap: .5rem; }
  .mic-talent .mic-cjf__row > .mic-tf { grid-row: span 4; grid-template-rows: subgrid; gap: inherit; }
  .mic-cjf__row > .mic-tf > label { grid-row: 1; }
  .mic-cjf__row > .mic-tf > .mic-tf__hint { grid-row: 2; }
  .mic-cjf__row > .mic-tf > :is(input, .mic-cjf__select) { grid-row: 3; }
  .mic-cjf__row > .mic-tf > .mic-tf__error { grid-row: 4; }
}

/* option rows (radio and checkbox): the whole row is the tap target */
.mic-cjf__options { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); gap: .5rem; }
.mic-cjf__options--short { grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); }
.mic-cjf__opt {
  position: relative; display: flex; align-items: center; gap: .75rem; min-height: 3rem; padding: .65rem .9rem;
  border: 1.5px solid var(--mic-input-line); border-radius: .8rem 0 .8rem 0; background: var(--mic-bg);
  font-weight: 600; line-height: 1.3; cursor: pointer; transition: border-color .15s, background-color .15s, opacity .15s;
}
.mic-cjf__opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.mic-cjf__mark { position: relative; flex: none; width: 1.25rem; height: 1.25rem; border: 2px solid var(--mic-input-line); border-radius: 50%; transition: background-color .15s, border-color .15s, box-shadow .15s; }
.mic-cjf__group[data-type="checkbox"] .mic-cjf__mark { border-radius: .3rem 0 .3rem 0; }
.mic-cjf__group[data-type="checkbox"] .mic-cjf__mark::after {
  content: ""; position: absolute; left: .3rem; top: .06rem; width: .32rem; height: .62rem;
  border: solid var(--mic-white); border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0;
}
.mic-cjf__opt:hover { border-color: var(--mic-fg); }
.mic-cjf__opt:has(input:checked) { border-color: var(--mic-orange); background: color-mix(in srgb, var(--mic-orange) 9%, var(--mic-bg)); }
.mic-cjf__opt:has(input:checked) .mic-cjf__mark { border-color: var(--mic-orange); background: var(--mic-orange); box-shadow: inset 0 0 0 3px var(--mic-bg); }
.mic-cjf__group[data-type="checkbox"] .mic-cjf__opt:has(input:checked) .mic-cjf__mark { box-shadow: none; }
.mic-cjf__group[data-type="checkbox"] .mic-cjf__opt:has(input:checked) .mic-cjf__mark::after { opacity: 1; }
.mic-cjf__opt:has(input:focus-visible) { outline: 3px solid var(--mic-orange); outline-offset: 2px; }
.mic-cjf__opt.is-off { opacity: .45; cursor: not-allowed; }
.mic-cjf__opt.is-off:hover { border-color: var(--mic-input-line); }
.mic-cjf__opt.is-off input { cursor: not-allowed; }
.mic-cjf__group.is-invalid > .mic-cjf__options .mic-cjf__opt { border-color: #B42318; }
.mic-cjf__count { font-weight: 700; }
.mic-cjf__count.is-full { color: var(--mic-orange-deep); }

/* "Please specify" box under an Other option */
.mic-cjf__other { margin-top: .25rem; padding: .9rem 1rem 1rem; background: var(--mic-soft); border-radius: .9rem 0 .9rem 0; }
.mic-cjf__other > label { font-weight: 800; font-size: .9375rem; }

/* county, sub-county and ward drop-downs */
.mic-cjf__select { position: relative; }
.mic-cjf__select::after {
  content: ""; position: absolute; right: 1.15rem; top: 50%; width: .5rem; height: .5rem; pointer-events: none;
  border: solid var(--mic-fg); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg);
}
.mic-cjf__select:has(select:disabled)::after { opacity: .35; }
.mic-talent .mic-cjf__select select {
  -webkit-appearance: none; appearance: none; width: 100%; min-height: 3.25rem; padding: .8rem 2.75rem .8rem 1rem;
  font: inherit; font-size: 1rem; color: var(--mic-fg); background: var(--mic-bg); text-overflow: ellipsis; cursor: pointer;
  border: 1.5px solid var(--mic-input-line); border-radius: .9rem 0 .9rem 0; transition: border-color .15s, box-shadow .15s;
}
.mic-talent .mic-cjf__select select:focus { outline: none; border-color: var(--mic-orange); box-shadow: 0 0 0 4px rgba(251, 95, 0, .18); }
.mic-talent .mic-cjf__select select:disabled { cursor: not-allowed; color: var(--mic-grey-text); background: var(--mic-soft); }
.mic-talent .mic-cjf__select :is(option, optgroup) { color: var(--mic-fg); background: var(--mic-bg); }
.mic-talent .mic-tf.is-invalid select { border-color: #B42318; }

/* --- Review step ------------------------------------------------------------------------------ */
.mic-cjf__review { display: grid; gap: 1.75rem; }
.mic-cjf__rhead { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .5rem; }
.mic-cjf__rhead h3 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--mic-fg); }
.mic-cjf__rhead .mic-review__edit { min-height: 2.75rem; padding: 0 .25rem; font-size: 1rem; }
.mic-cjf__review .mic-review div { grid-template-columns: minmax(0, 1fr); gap: .2rem; padding: .7rem 0; }
.mic-cjf__review .mic-review dt { font-weight: 700; font-size: var(--type-small); color: var(--mic-grey-text); }
.mic-cjf__review .mic-review dd { font-weight: 600; }

.mic-cjf__h3 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--mic-fg); }
.mic-cjf__guardian, .mic-cjf__declarations { display: grid; gap: 1rem; }
.mic-cjf__declarations { padding-top: 1.75rem; border-top: 1px solid var(--mic-line); }
.mic-cjf__guardian { padding: 1.25rem; border: 1.5px solid var(--mic-orange); border-radius: 1rem 0 1rem 0; background: var(--mic-drop-bg); }
.mic-cjf__note { margin: 0; line-height: 1.5; }
.mic-cjf__declare .mic-checkbox {
  padding: .85rem 1rem; font-size: .9375rem; font-weight: 600; line-height: 1.45;
  border: 1.5px solid var(--mic-input-line); border-radius: .8rem 0 .8rem 0; background: var(--mic-bg);
}
.mic-cjf__declare .mic-checkbox:has(input:checked) { border-color: var(--mic-orange); }
.mic-cjf__declare .mic-checkbox:has(input:focus-visible) { outline: 3px solid var(--mic-orange); outline-offset: 2px; }
.mic-cjf__declare.is-invalid .mic-checkbox { border-color: #B42318; }
.mic-cjf__declare a { color: var(--mic-orange-deep); text-decoration: underline; text-underline-offset: .2em; }

/* --- Dark theme ------------------------------------------------------------------------------- */
:root[data-theme="dark"] .mic-cjf__group.is-invalid > .mic-cjf__options .mic-cjf__opt,
:root[data-theme="dark"] .mic-talent .mic-tf.is-invalid select,
:root[data-theme="dark"] .mic-cjf__declare.is-invalid .mic-checkbox { border-color: #FF8C7A; }
