/**
 * Judo Proefles - Front-end Styles
 * Light theme, passend bij het Kradolfer website thema.
 *
 * Verhoogde specificiteit met .judo-proefles.judo-proefles om
 * Elementor-conflicten te voorkomen.
 *
 * @package MantellaJudoProefles
 */

/* ==========================================================================
   Container & Reset
   ========================================================================== */

.judo-proefles {
    --jp-bg: #ffffff;
    --jp-bg-card: #f7f8fa;
    --jp-bg-card-hover: #eef0f4;
    --jp-bg-card-active: #eaf0ff;
    --jp-border: #dde1e8;
    --jp-border-active: #1a2260;
    --jp-text: #1a1a2e;
    --jp-text-muted: #5a5f72;
    --jp-text-dim: #9197a6;
    --jp-accent: #c0392b;
    --jp-accent-hover: #a93226;
    --jp-accent-bg: rgba(192, 57, 43, 0.06);
    --jp-primary: #1a2260;
    --jp-primary-light: #2a3480;
    --jp-danger: #c0392b;
    --jp-success: #27ae60;
    --jp-radius: 10px;
    --jp-radius-sm: 8px;

    background: var(--jp-bg) !important;
    color: var(--jp-text) !important;
    font-family: inherit;
    padding: 48px 40px;
    border-radius: 0;
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.6;
    box-sizing: border-box;
}

.judo-proefles *,
.judo-proefles *::before,
.judo-proefles *::after {
    box-sizing: border-box;
}

/* ==========================================================================
   Loading
   ========================================================================== */

.judo-proefles .judo-proefles__loading {
    display: flex;
    justify-content: center;
    padding: 60px 0;
}

.judo-proefles .judo-proefles__spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--jp-border);
    border-top-color: var(--jp-accent);
    border-radius: 50%;
    animation: jp-spin 0.8s linear infinite;
}

@keyframes jp-spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Header
   ========================================================================== */

.judo-proefles .judo-proefles__header {
    text-align: center;
    margin-bottom: 36px;
}

.judo-proefles .judo-proefles__title {
    font-size: 28px !important;
    font-weight: 800 !important;
    margin: 0 0 10px !important;
    color: var(--jp-text) !important;
    letter-spacing: -0.03em;
    line-height: 1.2 !important;
}

.judo-proefles .judo-proefles__subtitle {
    font-size: 15px !important;
    color: var(--jp-text-muted) !important;
    margin: 0 auto !important;
    max-width: 520px;
    line-height: 1.7 !important;
}

/* ==========================================================================
   Stepper
   ========================================================================== */

.judo-proefles .judo-proefles__stepper {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 0 !important;
    margin-bottom: 40px !important;
    padding: 0 16px !important;
}

.judo-proefles .judo-proefles__step {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0 !important;
    flex: 0 0 auto;
}

.judo-proefles .judo-proefles__step-circle {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    background: var(--jp-bg) !important;
    border: 2px solid var(--jp-border) !important;
    color: var(--jp-text-dim) !important;
    flex-shrink: 0;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

/* Actieve stap */
.judo-proefles .judo-proefles__step--active .judo-proefles__step-circle {
    background: var(--jp-primary) !important;
    border-color: var(--jp-primary) !important;
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(26, 34, 96, 0.3);
}

/* Voltooide stap */
.judo-proefles .judo-proefles__step--done .judo-proefles__step-circle {
    background: var(--jp-success) !important;
    border-color: var(--jp-success) !important;
    color: #fff !important;
}

/* Stap labels */
.judo-proefles .judo-proefles__step-label {
    font-size: 12px !important;
    color: var(--jp-text-dim) !important;
    white-space: nowrap;
    margin-top: 8px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}

.judo-proefles .judo-proefles__step--active .judo-proefles__step-label {
    color: var(--jp-primary) !important;
    font-weight: 700 !important;
}

.judo-proefles .judo-proefles__step--done .judo-proefles__step-label {
    color: var(--jp-success) !important;
    font-weight: 600 !important;
}

/* Verbindingslijnen */
.judo-proefles .judo-proefles__step-line {
    width: 40px !important;
    height: 2px !important;
    background: var(--jp-border) !important;
    margin: 18px 8px 0 !important;
    flex-shrink: 0;
    border: none !important;
    border-radius: 1px;
    align-self: flex-start !important;
}

.judo-proefles .judo-proefles__step-line--done {
    background: var(--jp-success) !important;
}

/* ==========================================================================
   Content & Section Labels
   ========================================================================== */

.judo-proefles .judo-proefles__section-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    color: var(--jp-text-dim) !important;
    margin: 0 0 16px !important;
    text-transform: uppercase !important;
}

.judo-proefles .judo-proefles__section-label--sub {
    margin-top: 32px !important;
    font-size: 12px !important;
    color: var(--jp-text-muted) !important;
    font-weight: 600 !important;
}

/* ==========================================================================
   Stap 2: Voor wie keuze
   ========================================================================== */

.judo-proefles .judo-proefles__voor-wie {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
    margin-bottom: 8px !important;
}

.judo-proefles .judo-proefles__voor-wie-card {
    background: var(--jp-bg-card) !important;
    border: 2px solid var(--jp-border) !important;
    border-radius: var(--jp-radius) !important;
    padding: 18px 20px !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    color: var(--jp-text) !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    display: block !important;
    width: 100% !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important;
    line-height: 1.4 !important;
}

.judo-proefles .judo-proefles__voor-wie-card:hover {
    border-color: var(--jp-primary) !important;
    background: var(--jp-bg-card-hover) !important;
    box-shadow: 0 2px 12px rgba(26, 34, 96, 0.08) !important;
    transform: translateY(-1px);
}

.judo-proefles .judo-proefles__voor-wie-card--active {
    border-color: var(--jp-primary) !important;
    background: var(--jp-bg-card-active) !important;
    box-shadow: 0 0 0 3px rgba(26, 34, 96, 0.1) !important;
    color: var(--jp-primary) !important;
}

/* ==========================================================================
   Stap 1: Locaties
   ========================================================================== */

.judo-proefles .judo-proefles__locaties {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 14px !important;
}

.judo-proefles .judo-proefles__locatie-card {
    background: var(--jp-bg-card) !important;
    border: 2px solid var(--jp-border) !important;
    border-radius: var(--jp-radius) !important;
    padding: 22px 20px !important;
    text-align: left !important;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--jp-text) !important;
    font-family: inherit;
    font-size: inherit;
    display: block !important;
    width: 100% !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important;
}

.judo-proefles .judo-proefles__locatie-card:hover {
    border-color: var(--jp-primary) !important;
    background: var(--jp-bg-card-hover) !important;
    box-shadow: 0 2px 12px rgba(26, 34, 96, 0.08) !important;
    transform: translateY(-1px);
}

.judo-proefles .judo-proefles__locatie-card--active {
    border-color: var(--jp-primary) !important;
    background: var(--jp-bg-card-active) !important;
    box-shadow: 0 0 0 3px rgba(26, 34, 96, 0.1) !important;
}

.judo-proefles .judo-proefles__locatie-naam {
    font-size: 17px !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
    color: var(--jp-text) !important;
}

.judo-proefles .judo-proefles__locatie-desc {
    font-size: 13px !important;
    color: var(--jp-text-muted) !important;
    margin: 0 !important;
}

/* ==========================================================================
   Stap 2: Leeftijd Slider
   ========================================================================== */

.judo-proefles .judo-proefles__slider-wrap {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px 0;
}

.judo-proefles .judo-proefles__leeftijd-display {
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    margin-bottom: 24px !important;
}

.judo-proefles .judo-proefles__leeftijd-label {
    font-size: 14px !important;
    color: var(--jp-text-muted) !important;
}

.judo-proefles .judo-proefles__leeftijd-value {
    font-size: 36px !important;
    font-weight: 800 !important;
    color: var(--jp-primary) !important;
    letter-spacing: -0.03em;
}

.judo-proefles .judo-proefles__slider {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 100% !important;
    height: 6px !important;
    border-radius: 3px !important;
    background: linear-gradient(
        to right,
        var(--jp-primary) 0%,
        var(--jp-primary) var(--fill, 28%),
        var(--jp-border) var(--fill, 28%),
        var(--jp-border) 100%
    ) !important;
    outline: none !important;
    cursor: pointer;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.judo-proefles .judo-proefles__slider::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    background: var(--jp-primary) !important;
    border: 3px solid var(--jp-bg) !important;
    box-shadow: 0 0 0 2px var(--jp-primary), 0 2px 8px rgba(26, 34, 96, 0.25) !important;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.judo-proefles .judo-proefles__slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.judo-proefles .judo-proefles__slider::-moz-range-thumb {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--jp-primary);
    border: 3px solid var(--jp-bg);
    box-shadow: 0 0 0 2px var(--jp-primary);
    cursor: pointer;
}

.judo-proefles .judo-proefles__slider-range {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: var(--jp-text-dim);
}

/* ==========================================================================
   Stap 3: Dagstrip
   ========================================================================== */

.judo-proefles .judo-proefles__dagstrip {
    display: flex !important;
    gap: 10px !important;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.judo-proefles .judo-proefles__dag-card {
    flex-shrink: 0;
    width: 76px !important;
    padding: 14px 8px !important;
    border: 2px solid var(--jp-border) !important;
    border-radius: var(--jp-radius) !important;
    background: var(--jp-bg) !important;
    color: var(--jp-text) !important;
    text-align: center !important;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.judo-proefles .judo-proefles__dag-card:hover {
    border-color: var(--jp-primary) !important;
    background: var(--jp-bg-card) !important;
}

.judo-proefles .judo-proefles__dag-card--active {
    border-color: var(--jp-primary) !important;
    background: var(--jp-bg-card-active) !important;
    box-shadow: 0 0 0 3px rgba(26, 34, 96, 0.1) !important;
}

.judo-proefles .judo-proefles__dag-name {
    font-size: 11px !important;
    color: var(--jp-text-dim) !important;
    font-weight: 600 !important;
    margin-bottom: 4px !important;
    text-transform: lowercase;
}

.judo-proefles .judo-proefles__dag-num {
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: var(--jp-text) !important;
}

.judo-proefles .judo-proefles__dag-card--active .judo-proefles__dag-num {
    color: var(--jp-primary) !important;
}

.judo-proefles .judo-proefles__dag-month {
    font-size: 11px !important;
    color: var(--jp-text-muted) !important;
    font-weight: 500 !important;
    margin-top: 2px !important;
    text-transform: lowercase;
}

.judo-proefles .judo-proefles__later-link {
    background: none !important;
    border: none !important;
    color: var(--jp-accent) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer;
    padding: 10px 0 !important;
    margin-top: 4px !important;
    font-family: inherit;
    transition: color 0.15s;
}

.judo-proefles .judo-proefles__later-link:hover {
    color: var(--jp-accent-hover) !important;
}

.judo-proefles .judo-proefles__datepicker {
    display: block;
    margin-top: 8px;
    padding: 10px 14px !important;
    border: 2px solid var(--jp-border) !important;
    border-radius: var(--jp-radius-sm) !important;
    background: var(--jp-bg) !important;
    color: var(--jp-text) !important;
    font-size: 14px !important;
    font-family: inherit;
    color-scheme: light;
}

.judo-proefles .judo-proefles__datepicker:focus {
    border-color: var(--jp-primary) !important;
    outline: none !important;
}

/* ==========================================================================
   Les cards
   ========================================================================== */

.judo-proefles .judo-proefles__les-card {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: var(--jp-bg-card) !important;
    border: 2px solid var(--jp-border) !important;
    border-radius: var(--jp-radius) !important;
    padding: 20px 24px !important;
    margin-bottom: 12px !important;
    transition: all 0.2s ease;
    cursor: pointer;
}

.judo-proefles .judo-proefles__les-card:hover {
    border-color: var(--jp-primary) !important;
    box-shadow: 0 2px 12px rgba(26, 34, 96, 0.08) !important;
    transform: translateY(-1px);
}

.judo-proefles .judo-proefles__les-card--active {
    border-color: var(--jp-primary) !important;
    background: var(--jp-bg-card-active) !important;
    box-shadow: 0 0 0 3px rgba(26, 34, 96, 0.1) !important;
}

.judo-proefles .judo-proefles__les-naam {
    font-size: 16px !important;
    font-weight: 700 !important;
    margin-bottom: 2px !important;
    color: var(--jp-text) !important;
}

.judo-proefles .judo-proefles__les-tijd {
    font-size: 14px !important;
    color: var(--jp-text-muted) !important;
    margin-bottom: 4px !important;
}

.judo-proefles .judo-proefles__les-plekken {
    font-size: 13px !important;
    font-weight: 600 !important;
}

.judo-proefles .judo-proefles__les-plekken--available {
    color: var(--jp-success) !important;
}

.judo-proefles .judo-proefles__les-plekken--full {
    color: var(--jp-danger) !important;
    background: rgba(192, 57, 43, 0.08) !important;
    display: inline-block;
    padding: 2px 10px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
}

/* ==========================================================================
   Stap 4: Formulier
   ========================================================================== */

.judo-proefles .judo-proefles__summary {
    background: var(--jp-bg-card) !important;
    border: 1px solid var(--jp-border) !important;
    border-radius: var(--jp-radius) !important;
    padding: 18px 22px !important;
    margin-bottom: 28px !important;
}

.judo-proefles .judo-proefles__summary-item {
    font-size: 14px !important;
    color: var(--jp-text-muted) !important;
    padding: 3px 0 !important;
}

.judo-proefles .judo-proefles__summary-item strong {
    color: var(--jp-text) !important;
    font-weight: 700 !important;
}

.judo-proefles .judo-proefles__form {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
}

.judo-proefles .judo-proefles__field {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.judo-proefles .judo-proefles__field label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--jp-text-muted) !important;
}

.judo-proefles .judo-proefles__field input {
    padding: 12px 16px !important;
    border: 2px solid var(--jp-border) !important;
    border-radius: var(--jp-radius-sm) !important;
    background: var(--jp-bg) !important;
    color: var(--jp-text) !important;
    font-size: 15px !important;
    font-family: inherit;
    transition: border-color 0.15s;
    outline: none !important;
    width: 100% !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important;
}

.judo-proefles .judo-proefles__field input:hover {
    border-color: #b8bfcc !important;
}

.judo-proefles .judo-proefles__field input:focus {
    border-color: var(--jp-primary) !important;
    box-shadow: 0 0 0 3px rgba(26, 34, 96, 0.08) !important;
}

.judo-proefles .judo-proefles__field input::placeholder {
    color: var(--jp-text-dim) !important;
}

.judo-proefles .judo-proefles__field input[type="date"] {
    color-scheme: light;
}

.judo-proefles .judo-proefles__form-actions {
    display: flex !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-top: 8px !important;
}

/* ==========================================================================
   Stap 5: Bevestiging
   ========================================================================== */

.judo-proefles .judo-proefles__stap--confirm {
    text-align: center;
    padding: 48px 0;
}

.judo-proefles .judo-proefles__confirm-icon {
    margin-bottom: 24px;
}

.judo-proefles .judo-proefles__confirm-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: var(--jp-text) !important;
    margin: 0 auto !important;
    max-width: 440px;
    line-height: 1.7 !important;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.judo-proefles .judo-proefles__btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 13px 30px !important;
    border: 2px solid var(--jp-accent) !important;
    border-radius: var(--jp-radius-sm) !important;
    background: var(--jp-accent) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important;
    line-height: 1.4 !important;
}

.judo-proefles .judo-proefles__btn:hover {
    background: var(--jp-accent-hover) !important;
    border-color: var(--jp-accent-hover) !important;
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.25) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.judo-proefles .judo-proefles__btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.judo-proefles .judo-proefles__btn--sm {
    padding: 10px 22px !important;
    font-size: 13px !important;
}

.judo-proefles .judo-proefles__btn--ghost {
    background: transparent !important;
    color: var(--jp-text-muted) !important;
    border-color: var(--jp-border) !important;
}

.judo-proefles .judo-proefles__btn--ghost:hover {
    background: var(--jp-bg-card) !important;
    color: var(--jp-text) !important;
    border-color: #b8bfcc !important;
    box-shadow: none !important;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.judo-proefles .judo-proefles__nav {
    display: flex !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-top: 32px !important;
    padding-top: 24px !important;
    border-top: 1px solid var(--jp-border) !important;
}

/* ==========================================================================
   Empty / Error
   ========================================================================== */

.judo-proefles .judo-proefles__empty {
    color: var(--jp-text-muted) !important;
    font-size: 14px !important;
    text-align: center;
    padding: 28px 0;
}

.judo-proefles .judo-proefles__error {
    color: var(--jp-danger) !important;
    text-align: center;
    padding: 40px 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 600px) {
    .judo-proefles {
        padding: 28px 18px;
    }

    .judo-proefles .judo-proefles__title {
        font-size: 22px !important;
    }

    .judo-proefles .judo-proefles__stepper {
        overflow-x: auto;
        justify-content: flex-start !important;
        padding: 0 4px !important;
        gap: 0 !important;
    }

    .judo-proefles .judo-proefles__step-label {
        display: none !important;
    }

    .judo-proefles .judo-proefles__step-line {
        width: 20px !important;
        margin: 18px 4px 0 !important;
    }

    .judo-proefles .judo-proefles__locaties {
        grid-template-columns: 1fr !important;
    }

    .judo-proefles .judo-proefles__les-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .judo-proefles .judo-proefles__les-card .judo-proefles__btn {
        width: 100% !important;
    }

    .judo-proefles .judo-proefles__form-actions {
        flex-direction: column-reverse !important;
    }

    .judo-proefles .judo-proefles__form-actions .judo-proefles__btn {
        width: 100% !important;
    }

    .judo-proefles .judo-proefles__leeftijd-value {
        font-size: 26px !important;
    }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .judo-proefles .judo-proefles__spinner,
    .judo-proefles .judo-proefles__btn,
    .judo-proefles .judo-proefles__locatie-card,
    .judo-proefles .judo-proefles__dag-card,
    .judo-proefles .judo-proefles__les-card,
    .judo-proefles .judo-proefles__field input,
    .judo-proefles .judo-proefles__slider::-webkit-slider-thumb {
        transition: none !important;
        animation: none !important;
    }
}

.judo-proefles .judo-proefles__locatie-card:focus-visible,
.judo-proefles .judo-proefles__dag-card:focus-visible,
.judo-proefles .judo-proefles__btn:focus-visible {
    outline: 2px solid var(--jp-primary) !important;
    outline-offset: 2px;
}
