/**
 * Proostlijst Registratie Styling
 *
 * Consistent met het bordeaux/burgundy thema.
 */

/* ==========================================
   LAYOUT
   ========================================== */
.pl-registratie {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 60px;
    font-family: 'Lato', -apple-system, sans-serif;
    color: #2c2c2c;
}

.pl-registratie *,
.pl-registratie *::before,
.pl-registratie *::after {
    box-sizing: border-box;
}


/* ==========================================
   STAPPEN INDICATOR
   ========================================== */
.pl-stappen {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 40px 0 36px;
}

.pl-stap {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.pl-stap-nummer {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    background: #f0ebe8;
    color: #999;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.pl-stap-tekst {
    font-size: 0.85rem;
    color: #999;
    font-weight: 500;
    transition: color 0.3s ease;
}

.pl-stap-actief .pl-stap-nummer {
    background: #722F37;
    color: #fff;
}

.pl-stap-actief .pl-stap-tekst {
    color: #722F37;
    font-weight: 600;
}

.pl-stap-voltooid .pl-stap-nummer {
    background: #d4edda;
    color: #155724;
}

.pl-stap-voltooid .pl-stap-tekst {
    color: #155724;
}

.pl-stap-lijn {
    width: 40px;
    height: 1px;
    background: #e8e0dc;
    margin: 0 12px;
    flex-shrink: 0;
}


/* ==========================================
   GEEN SELECTIE SCHERM
   ========================================== */
.pl-reg-geen-selectie {
    text-align: center;
    padding: 60px 20px;
}

.pl-reg-leeg-icoon {
    color: #999;
    margin-bottom: 20px;
}

.pl-reg-geen-selectie h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    color: #722F37;
    margin: 0 0 8px;
}

.pl-reg-geen-selectie p {
    color: #6b6b6b;
    margin: 0 0 24px;
}

.pl-btn-terug-catalogus {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #722F37;
    color: #fff;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.25s ease;
}

.pl-btn-terug-catalogus:hover {
    background: #5a252c;
    color: #fff;
}


/* ==========================================
   FORMULIER WRAPPER (twee kolommen op desktop)
   ========================================== */
.pl-reg-formulier-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 32px;
    align-items: start;
}


/* ==========================================
   SAMENVATTING (linker kolom)
   ========================================== */
.pl-reg-samenvatting {
    background: #faf8f6;
    border: 1px solid #e8e0dc;
    border-radius: 12px;
    padding: 20px;
    position: sticky;
    top: 24px;
}

.pl-reg-samenvatting h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    color: #722F37;
    margin: 0 0 16px;
}

.pl-reg-wijnen-lijst {
    max-height: 360px;
    overflow-y: auto;
    margin-bottom: 12px;
}

/* Scrollbar */
.pl-reg-wijnen-lijst::-webkit-scrollbar {
    width: 5px;
}
.pl-reg-wijnen-lijst::-webkit-scrollbar-thumb {
    background: #e8e0dc;
    border-radius: 3px;
}

.pl-reg-wijn-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0ebe8;
}

.pl-reg-wijn-item:last-child {
    border-bottom: none;
}

.pl-reg-wijn-afbeelding {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
}

.pl-reg-wijn-afbeelding img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pl-reg-wijn-info {
    flex: 1;
    min-width: 0;
}

.pl-reg-wijn-naam {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #2c2c2c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pl-reg-wijn-prijs {
    display: block;
    font-size: 0.75rem;
    color: #6b6b6b;
    margin-top: 1px;
}

.pl-reg-wijnen-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #e8e0dc;
}

.pl-reg-wijnen-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: #722F37;
}

.pl-reg-wijzig-link {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: #6b6b6b;
    text-decoration: none;
    transition: color 0.25s ease;
}

.pl-reg-wijzig-link:hover {
    color: #722F37;
}


/* ==========================================
   FORMULIER (rechter kolom)
   ========================================== */
.pl-reg-formulier {
    background: #fff;
    border: 1px solid #e8e0dc;
    border-radius: 12px;
    padding: 32px;
}

.pl-reg-formulier h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    color: #722F37;
    margin: 0 0 6px;
}

.pl-reg-subtekst {
    font-size: 0.9rem;
    color: #6b6b6b;
    margin: 0 0 28px;
}

.pl-form-sectie-titel {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.05rem;
    color: #722F37;
    margin: 4px 0 20px;
}

.pl-scheidingslijn {
    border: none;
    border-top: 1px solid #f0ebe8;
    margin: 28px 0 24px;
}

/* Formulier groepen */
.pl-form-groep {
    margin-bottom: 22px;
}

.pl-form-rij {
    display: flex;
    gap: 16px;
}

.pl-form-half {
    flex: 1;
}

.pl-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 6px;
}

.pl-verplicht {
    color: #722F37;
}

.pl-input,
.pl-select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e8e0dc;
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    color: #2c2c2c;
    background: #fff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    outline: none;
}

.pl-input:focus,
.pl-select:focus {
    border-color: #9f3d4c;
    box-shadow: 0 0 0 3px rgba(159, 61, 76, 0.1);
}

.pl-input::placeholder {
    color: #bbb;
}

.pl-input-fout {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.pl-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%236b6b6b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.pl-hulptekst {
    font-size: 0.78rem;
    color: #999;
    margin: 5px 0 0;
}

.pl-foutmelding {
    font-size: 0.8rem;
    color: #dc3545;
    margin: 5px 0 0;
    display: none;
}

/* Algemene foutmelding */
.pl-reg-fout {
    background: #fdf0f0;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 12px 16px;
    color: #721c24;
    font-size: 0.85rem;
    margin-bottom: 20px;
}


/* ==========================================
   SUBMIT KNOP
   ========================================== */
.pl-btn-submit {
    width: 100%;
    padding: 14px 24px;
    background: #722F37;
    color: #fff;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.25s ease;
    margin-top: 8px;
}

.pl-btn-submit:hover:not(:disabled) {
    background: #5a252c;
}

.pl-btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.pl-btn-submit-laden {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pl-spinner {
    animation: pl-spin 0.8s linear infinite;
}

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

.pl-reg-privacy {
    font-size: 0.78rem;
    color: #999;
    text-align: center;
    margin-top: 14px;
}

.pl-reg-privacy a {
    color: #722F37;
    text-decoration: underline;
}

.pl-reg-melding {
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
    padding: 32px;
    background: #faf8f6;
    border-radius: 12px;
    border: 1px solid #e8e0dc;
}

.pl-reg-melding a {
    color: #722F37;
    font-weight: 600;
}


/* ==========================================
   SUCCES SCHERM
   ========================================== */
.pl-reg-succes {
    text-align: center;
    padding: 40px 20px;
}

.pl-succes-icoon {
    color: #155724;
    margin-bottom: 20px;
}

.pl-reg-succes h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    color: #722F37;
    margin: 0 0 10px;
}

.pl-succes-tekst {
    font-size: 1rem;
    color: #6b6b6b;
    margin: 0 0 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.pl-succes-gegevens {
    background: #faf8f6;
    border: 1px solid #e8e0dc;
    border-radius: 12px;
    padding: 24px;
    max-width: 420px;
    margin: 0 auto 32px;
    text-align: left;
}

.pl-succes-veld {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0ebe8;
}

.pl-succes-veld:last-of-type {
    border-bottom: none;
}

.pl-succes-label {
    font-size: 0.82rem;
    color: #999;
    width: 110px;
    flex-shrink: 0;
}

.pl-succes-waarde {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c2c2c;
    flex: 1;
}

.pl-succes-wachtwoord {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.pl-btn-kopieer {
    width: 32px;
    height: 32px;
    border: 1px solid #e8e0dc;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b6b6b;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.pl-btn-kopieer:hover {
    border-color: #722F37;
    color: #722F37;
}

.pl-succes-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #999;
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px solid #f0ebe8;
}

/* Dashboard knop */
.pl-btn-naar-dashboard {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: #722F37;
    color: #fff;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.25s ease;
}

.pl-btn-naar-dashboard:hover {
    background: #5a252c;
    color: #fff;
}


/* ==========================================
   RESPONSIEF
   ========================================== */
@media (max-width: 768px) {
    .pl-stappen {
        padding: 24px 0;
    }

    .pl-stap-tekst {
        display: none;
    }

    .pl-stap-lijn {
        width: 24px;
    }

    .pl-reg-formulier-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pl-reg-samenvatting {
        position: static;
    }

    .pl-reg-wijnen-lijst {
        max-height: 200px;
    }

    .pl-reg-formulier {
        padding: 24px 20px;
    }

    .pl-reg-formulier h2 {
        font-size: 1.3rem;
    }

    .pl-form-rij {
        flex-direction: column;
        gap: 0;
    }

    .pl-reg-succes h2 {
        font-size: 1.3rem;
    }

    .pl-succes-gegevens {
        padding: 16px;
    }

    .pl-succes-veld {
        flex-wrap: wrap;
    }
}
