/* =============================================================================
   POPsCOOL — Proefles picker ([popscool_trial_picker])
   Cascading selection: lesson → day → location → teacher → confirm.
   ============================================================================= */

.pc-trial {
    margin: 0 0 24px;
}

.pc-trial-title {
    margin: 0 0 14px;
    font-size: 20px;
}

.pc-trial-step {
    margin-bottom: 20px;
    animation: pc-trial-fade .25s ease;
}

@keyframes pc-trial-fade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}

/* ---- Breadcrumb (clickable, jump back) ---- */
.pc-trial-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.pc-trial-crumb {
    cursor: pointer;
    border: 1px solid #cfd6e4;
    background: #f4f6fb;
    color: #223a89;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 13px;
    line-height: 1.2;
}

.pc-trial-crumb:hover {
    background: #223a89;
    color: #fff;
    border-color: #223a89;
}

.pc-trial-crumb__label {
    opacity: .6;
    margin-right: 5px;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: .04em;
}

.pc-trial-crumb__sep {
    color: #aab;
}

/* ---- Step 1: lesson buttons ----
   Reuse the site's .pc-pill / .pc-les look (frontend.css); add button hover. */
.pc-trial-lessons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

button.pc-trial-lesson,
button.pc-trial-day {
    cursor: pointer;
    line-height: 1.2;
    transition: background .15s, color .15s, border-color .15s;
}

button.pc-trial-lesson:hover,
button.pc-trial-lesson:focus-visible,
button.pc-trial-day:hover,
button.pc-trial-day:focus-visible {
    background: var(--les-hover-bg, #fff) !important;
    color: var(--pc-color) !important;
    border-color: var(--pc-color);
    outline: none;
}

/* ---- Step 2: day pills (each active/available day once) ---- */
.pc-trial-days {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 6px;
}

/* "Deze les wordt gegeven in: …" caption under the days */
.pc-trial-daytowns {
    margin: 10px 0 0;
    font-size: 14px;
    color: #555;
}

.pc-trial-daytowns__label {
    margin-right: 4px;
}

.pc-trial-town {
    display: inline-block;
    background: #eef1f6;
    color: #223a89;
    border-radius: 999px;
    padding: 3px 11px;
    margin: 0 4px 4px 0;
    font-size: 13px;
    font-weight: 600;
}

/* ---- Browse: one compact location card per location, with day pills ---- */
.pc-trial-browse {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 10px;
}

.pc-trial-loccard {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #dcdfe6;
    border-radius: 12px;
    transition: box-shadow .15s, border-color .15s;
}

.pc-trial-loccard:hover {
    border-color: #cdd3e0;
    box-shadow: 0 3px 12px rgba(20, 26, 46, .08);
}

.pc-trial-loccard__thumb {
    flex: 0 0 auto;
    width: 92px;
    height: 66px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: #eef1f6;
}

.pc-trial-loccard__thumb--empty {
    background: linear-gradient(135deg, #e9edf5, #dfe4ef);
}

.pc-trial-loccard__body {
    flex: 1 1 auto;
    min-width: 0;
}

.pc-trial-loccard__name {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    color: #223a89;
    overflow-wrap: anywhere;
}

.pc-trial-loccard__town {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.pc-trial-loccard__days {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Day pills reuse the .pc-pill.pc-les sizing (16px / height 32px / radius 10px)
   so they match the lesson pills; only colours + states are overridden here. */
.pc-trial-daypill {
    cursor: default;
    background: #e9ecf3;
    color: #9aa2b1;
    padding-left: 15px;
    padding-right: 15px;
}

.pc-trial-daypill.is-on {
    cursor: pointer;
    color: #fff; /* background set inline to the lesson colour */
}

.pc-trial-daypill.is-on:hover {
    filter: brightness(1.08);
}

.pc-trial-daypill[disabled] {
    opacity: .45;
}

/* "Geen voorkeur" = outlined pill (colour/border set inline to the lesson colour) */
.pc-trial-daypill--any {
    cursor: pointer;
    background: #fff;
    border-width: 2px;
    border-style: solid;
}

/* Swap front/back on hover (like the step-1 lesson pills): the resting state is
   outlined (white bg, coloured text) so hover fills it in — coloured bg, white
   text. !important beats the theme's global button:hover background. */
.pc-trial-daypill--any:hover,
.pc-trial-daypill--any:focus-visible {
    background: var(--pc-color) !important;
    color: #fff !important;
    border-color: var(--pc-color);
    outline: none;
}

/* ---- Option cards (location / teacher) ---- */
.pc-trial-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 8px;
}

.pc-trial-card {
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    text-align: left;
    /* Theme button styles can force nowrap/uppercase — reset for readable cards. */
    white-space: normal;
    text-transform: none;
    letter-spacing: normal;
    font-family: inherit;
    background: #fff;
    border: 1px solid #dcdfe6;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .15s, border-color .15s, transform .15s;
}

.pc-trial-card:hover,
.pc-trial-card:focus-visible {
    outline: none;
    border-color: #223a89;
    box-shadow: 0 4px 14px rgba(34, 58, 137, .18);
    transform: translateY(-2px);
}

.pc-trial-card__thumb {
    display: block;
    height: 110px;
    background-size: cover;
    background-position: center;
    background-color: #eef1f6;
}

.pc-trial-card__thumb--empty {
    background: linear-gradient(135deg, #e9edf5, #dfe4ef);
}

/* Availability "match" badge + highlight (manual-request path) */
.pc-trial-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 1;
    background: #1e9e57;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}

.pc-trial-card--match {
    border-color: #1e9e57;
    box-shadow: 0 0 0 1px #1e9e57 inset;
}

/* "Geen voorkeur" skip card */
.pc-trial-card--skip {
    align-items: center;
    justify-content: center;
    min-height: 96px;
    border-style: dashed;
    color: #667;
    background: #fafbfd;
}

.pc-trial-card--skip .pc-trial-card__title {
    color: #667;
    font-weight: 600;
}

/* Teacher cards: round avatar centered on a soft band. */
.pc-trial-card--person {
    align-items: center;
    text-align: center;
    padding: 18px 14px 16px;
}

.pc-trial-card__thumb--round {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.pc-trial-card__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 14px 14px;
}

.pc-trial-card--person .pc-trial-card__body {
    padding: 0;
}

.pc-trial-card__title {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.25;
    color: #223a89;
    white-space: normal;
    overflow-wrap: anywhere;
}

.pc-trial-card__sub {
    font-size: 13px;
    line-height: 1.3;
    color: #666;
    white-space: normal;
}

/* ---- City cards (no image): town + preview of locations + teacher avatars ---- */
.pc-trial-cards--city {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.pc-trial-card--city {
    padding: 16px 16px 14px;
    gap: 10px;
}

.pc-trial-card--city .pc-trial-card__title {
    font-size: 18px;
}

.pc-trial-city__avatars {
    display: flex;
    align-items: center;
    padding-left: 6px;
}

.pc-trial-city__avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: -6px;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #dcdfe6;
    background: #eef1f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #223a89;
}

/* ---- Fallback (voorkeursdag not available → waitlist) ---- */
.pc-trial-fallback {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #ccc;
}

/* Full-width tappable toggle (replaces the old checkbox) */
.pc-trial-nomatch {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    cursor: pointer;
    text-align: left;
    border: 1px dashed #b9c0cf;
    background: #fafbfd;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 15px;
    color: #3a4763;
    /* Reset theme button styling (uppercase/letter-spacing) so the label fits. */
    text-transform: none;
    letter-spacing: normal;
    font-weight: 500;
    font-family: inherit;
    line-height: 1.3;
}

.pc-trial-nomatch:hover,
.pc-trial-nomatch:active,
.pc-trial-nomatch:focus,
.pc-trial-nomatch:focus-visible {
    /* Keep dark text on the light background — the theme's button:hover/:active
       turns text white, which is unreadable here. */
    background: #f2f4f9;
    color: #3a4763;
    border-color: #9aa3b5;
    outline: none;
}

.pc-trial-nomatch__icon {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    color: #8a93a6;
    transition: transform .15s;
}

.pc-trial-nomatch.is-open .pc-trial-nomatch__icon {
    transform: rotate(45deg); /* + → × */
}

.pc-trial-preferred {
    margin-top: 14px;
}

.pc-trial-preferred-label {
    margin: 0 0 10px;
    font-weight: 600;
}

/* Preferred-day pills (tappable) — reuse .pc-pill.pc-les sizing */
.pc-trial-prefdays {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.pc-trial-prefday {
    cursor: pointer;
}

.pc-trial-hint {
    margin: 8px 0 0;
    font-size: 13px;
    color: #666;
}

/* ---- Mobile polish (~80% of proefles traffic) ---- */
@media (max-width: 480px) {
    .pc-trial-choice { max-width: 100%; }
    .pc-trial-actions { flex-direction: column; align-items: stretch; gap: 8px; }
    .pc-trial-continue { width: 100%; text-align: center; font-size: 16px; padding: 14px 16px; }
    .pc-trial-reset { text-align: center; padding: 10px; }
    .pc-trial-loccard { gap: 10px; padding: 10px; }
    .pc-trial-loccard__thumb { width: 74px; height: 58px; }
    .pc-trial-title { font-size: 18px; }
}

/* ---- Confirm: slick choice card ---- */
.pc-trial-summary {
    margin-bottom: 18px;
}

.pc-trial-choice {
    max-width: 420px;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e6ee;
    box-shadow: 0 8px 26px rgba(20, 26, 46, .12);
}

/* Split hero: left = lesson, right = location */
.pc-trial-choice__hero {
    display: flex;
}

.pc-trial-choice__half {
    flex: 1 1 0;
    min-width: 0;
    min-height: 150px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 14px 12px;
    background-size: cover;
    background-position: center;
}

.pc-trial-choice__half + .pc-trial-choice__half {
    border-left: 2px solid #fff;
}

.pc-trial-choice__lesson {
    margin: 0;
    font-size: 15px;
    max-width: 100%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .3);
}

/* Location pill on the right half */
.pc-trial-choice__locpill {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 6px 16px;
    border-radius: 20px;
    background: #fff;
    color: #1a2340;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.25;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .3);
    overflow-wrap: anywhere;
}

.pc-trial-choice__body {
    padding: 16px 18px 18px;
}

.pc-trial-choice--plain .pc-trial-choice__pillrow {
    margin-bottom: 12px;
}

.pc-trial-choice__row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid #eef1f6;
}

.pc-trial-choice__label {
    flex: 0 0 74px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #8a93a6;
    font-weight: 700;
}

.pc-trial-choice__value {
    font-size: 16px;
    color: #1a2340;
    font-weight: 600;
}

/* Docent row: same label/value alignment as the other rows, avatar as a right accent. */
.pc-trial-choice__row:last-child {
    border-bottom: none;
}

.pc-trial-choice__row--teacher {
    align-items: center;
    padding: 10px 0;
}

.pc-trial-choice__avatar {
    width: 44px;
    height: 44px;
    margin-left: auto;
    flex: 0 0 auto;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--pc-color, #dcdfe6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef1f6;
    font-size: 17px;
    font-weight: 700;
    color: var(--pc-color, #223a89);
}

.pc-trial-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.pc-trial-continue {
    cursor: pointer;
    border: none;
    background: #f1851f;
    color: #fff;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 17px;
    font-weight: 600;
}

.pc-trial-continue:hover {
    background: #d9740f;
}

.pc-trial-reset {
    cursor: pointer;
    border: none;
    background: transparent;
    color: #666;
    text-decoration: underline;
    padding: 14px 8px;
    font-size: 15px;
}

.pc-trial-reset:hover,
.pc-trial-reset:active,
.pc-trial-reset:focus {
    background: transparent;
    color: #333;
    outline: none;
}

/* The CFF form wrapper stays hidden until a slot is confirmed. */
.pc-trial-formwrap[hidden] {
    display: none;
}

/* Recap of the wizard choice, shown at the top of the form (reads the hidden
   field values, so it also confirms the handoff carried the data). */
.pc-trial-recap {
    margin: 0 0 22px;
    padding: 14px 18px;
    background: #f4f6fb;
    border: 1px solid #e2e6ee;
    border-left: 4px solid var(--pc-color, #223a89);
    border-radius: 10px;
}

.pc-trial-recap__title {
    font-weight: 700;
    color: #223a89;
    font-size: 15px;
    margin-bottom: 8px;
}

.pc-trial-recap__rows {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pc-trial-recap__row {
    display: flex;
    gap: 10px;
    align-items: baseline;
}

.pc-trial-recap__label {
    flex: 0 0 78px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 700;
    color: #8a93a6;
}

.pc-trial-recap__val {
    font-size: 15px;
    color: #1a2340;
    font-weight: 600;
}

/* Personal-request note ("we plannen dit persoonlijk in") — shown on the form
   for the voorkeursdag/aanvraag case, mirroring the wizard confirm step. */
.pc-trial-recap__note {
    margin: 12px 0 0;
    padding: 10px 12px;
    background: #fff6e6;
    border: 1px solid #f2d9a6;
    border-radius: 8px;
    font-size: 13.5px;
    line-height: 1.4;
    color: #7a5610;
    font-weight: 600;
}
