/* =============================================================
   Lidmaatschap & Doneer Formulier – uniforme stijl
   ============================================================= */

.lidform-wrapper {
    --lf-green:        #1aa564;
    --lf-green-dark:   #0e7a47;
    --lf-green-light:  #eafaf1;
    --lf-text:         #1a1a1a;
    --lf-muted:        #6b7280;
    --lf-border:       #d1d5db;
    --lf-bg:           #f5f6f7;
    --lf-white:        #ffffff;
    --lf-radius:       10px;
    --lf-btn-radius:   8px;

    max-width: 700px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--lf-text);
    box-sizing: border-box;
}
.lidform-wrapper *, .lidform-wrapper *::before, .lidform-wrapper *::after {
    box-sizing: border-box;
}

/* ---- STAP INDICATOR ---- */
.lidform-steps-indicator {
    display: flex;
    background: var(--lf-white);
    border-radius: var(--lf-radius) var(--lf-radius) 0 0;
    overflow: hidden;
    border: 1px solid var(--lf-border);
    border-bottom: none;
}
.lidform-step-tab {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--lf-muted);
    border-bottom: 3px solid transparent;
    cursor: default;
    user-select: none;
    transition: color 0.2s, border-color 0.2s;
}
.lidform-step-tab + .lidform-step-tab {
    border-left: 1px solid var(--lf-border);
}
.lidform-step-tab__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--lf-border);
    color: var(--lf-muted);
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}
.lidform-step-tab--active {
    color: var(--lf-green);
    border-bottom-color: var(--lf-green);
}
.lidform-step-tab--active .lidform-step-tab__num {
    background: var(--lf-green);
    color: #fff;
}
.lidform-step-tab--done {
    color: var(--lf-green-dark);
}
.lidform-step-tab--done .lidform-step-tab__num {
    background: var(--lf-green-dark);
    color: #fff;
}

/* ---- PANELS ---- */
.lidform-panel {
    display: none;
}
.lidform-panel--active {
    display: block;
}

/* ---- CARD ---- */
.lidform-card {
    background: var(--lf-white);
    border: 1px solid var(--lf-border);
    border-top: none;
    border-radius: 0 0 var(--lf-radius) var(--lf-radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

.lidform-card__header {
    padding: 28px 36px 0;
}
.lidform-card__title {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 0.3px;
    color: var(--lf-text);
    text-transform: uppercase;
    line-height: 1.1;
}
/* Stap 1 krijgt groene titel */
.lidform-panel[data-step="1"] .lidform-card__title {
    color: var(--lf-green);
}
.lidform-card__subtitle {
    margin: 0 0 20px;
    font-size: 15px;
    color: var(--lf-muted);
}
.lidform-card__bar {
    height: 4px;
    background: var(--lf-green);
    margin: 0 -36px;
}

.lidform-card__body {
    padding: 28px 36px 36px;
}

/* ---- VELDEN ---- */
.lidform-group {
    margin-bottom: 20px;
}
.lidform-field {
    margin-bottom: 20px;
    flex: 1;
    min-width: 0;
}
.lidform-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--lf-text);
}
.lidform-input {
    width: 100%;
    padding: 13px 15px;
    font-size: 15px;
    color: var(--lf-text);
    background: var(--lf-white);
    border: 1.5px solid var(--lf-border);
    border-radius: 8px;
    transition: border-color 0.15s, box-shadow 0.15s;
    appearance: none;
    -webkit-appearance: none;
}
.lidform-input:focus {
    outline: none;
    border-color: var(--lf-green);
    box-shadow: 0 0 0 3px rgba(26,165,100,0.12);
}
.lidform-input.lf-error {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229,62,62,0.10);
}

/* Select */
.lidform-select-wrap {
    position: relative;
}
.lidform-select {
    cursor: pointer;
    padding: 0 40px 0 15px;
    height: 50px;
    line-height: 50px;
    background-color: #eef3fb;
    display: flex;
    align-items: center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.lidform-select-wrap::after {
    content: '';
    pointer-events: none;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid var(--lf-muted);
}

/* Rijen */
.lidform-row {
    display: flex;
    gap: 16px;
    margin-bottom: 0;
}
.lidform-col {
    flex: 1;
    min-width: 0;
    margin-bottom: 20px;
}
.lidform-row--three {
    display: flex;
    gap: 14px;
}
.lidform-row--three .lidform-field:first-child { flex: 2; }
.lidform-row--three .lidform-field:nth-child(2) { flex: 1.5; }
.lidform-row--three .lidform-field:last-child  { flex: 1; }

/* ---- RADIO GESLACHT ---- */
.lidform-radios {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-bottom: 4px;
}
.lidform-radio-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    cursor: pointer;
    user-select: none;
}
.lidform-radio-label input[type="radio"] {
    display: none;
}
.lidform-radio-custom {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--lf-border);
    background: var(--lf-white);
    display: inline-block;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.15s;
}
.lidform-radio-label input[type="radio"]:checked + .lidform-radio-custom {
    border-color: var(--lf-green);
}
.lidform-radio-label input[type="radio"]:checked + .lidform-radio-custom::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--lf-green);
}

/* ---- CONTRIBUTIE PLAN ---- */
.lidform-plans {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}
.lidform-plan {
    flex: 1;
    display: block;
    cursor: pointer;
    user-select: none;
    position: relative;
}
.lidform-plan input[type="radio"] {
    display: none;
}
.lidform-plan__inner {
    border: 2px solid var(--lf-border);
    border-radius: 10px;
    padding: 18px 20px;
    background: var(--lf-white);
    transition: border-color 0.15s, background 0.15s;
}
.lidform-plan--selected .lidform-plan__inner {
    border-color: var(--lf-green);
    background: var(--lf-green-light);
}
.lidform-plan__price {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}
.lidform-plan__amount {
    font-size: 40px;
    font-weight: 900;
    color: var(--lf-green);
    line-height: 1;
}
.lidform-plan__amount sup {
    font-size: 17px;
    font-weight: 700;
    vertical-align: super;
    line-height: 1;
}
.lidform-plan__period {
    font-size: 11px;
    font-weight: 700;
    color: var(--lf-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 6px;
    line-height: 1.4;
}
.lidform-plan__desc {
    font-size: 15px;
    font-weight: 600;
    color: var(--lf-text);
}
.lidform-plan__sub {
    font-size: 11px;
    color: var(--lf-muted);
    margin-top: 4px;
}

/* ---- CHECKBOXES ---- */
.lidform-checks {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}
.lidform-check-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    cursor: pointer;
    line-height: 1.5;
}
.lidform-check-label input[type="checkbox"] {
    display: none;
}
.lidform-check-custom {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    border: 2px solid var(--lf-border);
    background: var(--lf-white);
    flex-shrink: 0;
    margin-top: 1px;
    position: relative;
    transition: border-color 0.15s, background 0.15s;
}
.lidform-check-label input[type="checkbox"]:checked + .lidform-check-custom {
    background: var(--lf-green);
    border-color: var(--lf-green);
}
.lidform-check-label input[type="checkbox"]:checked + .lidform-check-custom::after {
    content: '';
    position: absolute;
    left: 5px; top: 2px;
    width: 7px; height: 11px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}
.lidform-check-label a {
    color: var(--lf-green);
    font-weight: 600;
    text-decoration: underline;
}

/* ---- KNOPPEN ---- */
.lidform-footer {
    display: flex;
    margin-top: 8px;
}
.lidform-footer--right   { justify-content: flex-end; }
.lidform-footer--between { justify-content: space-between; }

.lidform-btn {
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 50px;
    border: none;
    transition: background 0.15s, opacity 0.15s, transform 0.1s;
    line-height: 1;
    letter-spacing: 0.2px;
}
.lidform-btn:active {
    transform: scale(0.98);
}

/* Primaire knop: groen pill */
.lidform-btn--primary,
.lidform-btn--next,
.lidform-btn--submit {
    background: var(--lf-green);
    color: #fff;
}
.lidform-btn--primary:hover,
.lidform-btn--next:hover,
.lidform-btn--submit:hover {
    background: var(--lf-green-dark);
}

/* Secundaire knop: wit met rand, pill */
.lidform-btn--secondary,
.lidform-btn--prev {
    background: var(--lf-white);
    color: var(--lf-text);
    border: 1.5px solid var(--lf-border);
}
.lidform-btn--secondary:hover,
.lidform-btn--prev:hover {
    background: #f3f4f6;
}

.lidform-btn:disabled {
    opacity: 0.50;
    cursor: not-allowed;
}

/* ---- FOUT / SUCCES BERICHT ---- */
.lidform-message,
.lidform-error-box {
    padding: 13px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}
.lidform-message--error,
.lidform-error-box {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #fed7d7;
}
.lidform-message--success {
    background: var(--lf-green-light);
    color: var(--lf-green-dark);
    border: 1px solid #b2dfcc;
}

/* ---- BEDANKT ---- */
.lidform-success {
    text-align: center;
    padding: 40px 36px 50px;
}
.lidform-success h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--lf-green-dark);
    margin-bottom: 10px;
    text-align: center;
}
.lidform-success p,
.lidform-panel[data-step="success"] p {
    text-align: center;
    color: var(--lf-muted);
    margin-bottom: 8px;
    font-size: 16px;
}
.lidform-panel[data-step="success"] .lidform-card__title {
    color: var(--lf-green);
}

/* ---- POSTCODE STATUS ---- */
.lf-postcode-status {
    font-size: 13px;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.lf-pc-loading {
    background: #f0f4ff;
    color: #3b5bdb;
    border: 1px solid #bac8ff;
}
.lf-pc-loading::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #3b5bdb;
    border-top-color: transparent;
    border-radius: 50%;
    animation: lf-spin 0.7s linear infinite;
    flex-shrink: 0;
}
.lf-pc-ok {
    background: var(--lf-green-light);
    color: var(--lf-green-dark);
    border: 1px solid #b2dfcc;
}
.lf-pc-ok::before {
    content: '\2713';
    font-size: 12px;
}
.lf-pc-err {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #fed7d7;
}
.lf-pc-err::before {
    content: '\26A0';
    font-size: 12px;
}
@keyframes lf-spin {
    to { transform: rotate(360deg); }
}

/* API-velden: vergrijsd (readonly, ingevuld via postcode API) */
.lf-api-field,
.lf-autofilled {
    background: #e8e8e8 !important;
    color: #555 !important;
    border-color: #ccc !important;
    cursor: default;
}

/* Ontgrendel-knop naast label */
.lf-unlock-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--lf-muted);
    font-size: 13px;
    padding: 0 4px;
    vertical-align: middle;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.15s;
}
.lf-unlock-btn:hover {
    opacity: 1;
    color: var(--lf-green);
}

/* Spinner op submit-knop */
.lf-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lf-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

/* Verplicht asterisk */
.lf-req {
    color: #e53e3e;
    margin-left: 2px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 580px) {
    .lidform-card__header,
    .lidform-card__body { padding-left: 20px; padding-right: 20px; }
    .lidform-card__bar  { margin: 0 -20px; }
    .lidform-row,
    .lidform-row--three { flex-direction: column; gap: 0; }
    .lidform-footer--between { flex-direction: column-reverse; gap: 10px; }
    .lidform-btn { width: 100%; text-align: center; }
    .lidform-step-tab__label { display: none; }
    .lidform-card__title { font-size: 20px; }
}

/* =============================================================
   DONEER FORMULIER – zelfde kaart-stijl als lidmaatschapsformulier
   ============================================================= */

#doneer-wrap {
    max-width: 700px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--lf-text, #1a1a1a);
    box-sizing: border-box;
}
#doneer-wrap *, #doneer-wrap *::before, #doneer-wrap *::after {
    box-sizing: border-box;
}

#doneer-wrap .lidform-card {
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: #fff;
    padding: 28px 36px 36px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

/* Doneer titels */
.doneer-title {
    font-size: 26px;
    font-weight: 900;
    color: #1a1a1a;
    margin: 0 0 8px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.doneer-subtitle {
    color: #6b7280;
    font-size: 15px;
    margin: 0 0 24px;
    line-height: 1.5;
}

/* Groene balk onder header (zelfde als lidmaatschapsformulier) */
.doneer-header-bar {
    height: 4px;
    background: #1aa564;
    margin: 0 -36px 28px;
}

/* ---- VOORTGANGSBALK ---- */
.doneer-progress-wrap {
    margin-bottom: 24px;
}
.doneer-progress-bar {
    position: relative;
    background: #dcfce7;
    border-radius: 6px;
    height: 40px;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.doneer-progress-fill {
    background: #1aa564;
    height: 100%;
    border-radius: 6px;
    display: flex;
    align-items: center;
    padding-left: 14px;
    min-width: 80px;
    transition: width .5s ease;
}
.doneer-progress-label-inner {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}
.doneer-progress-label-outer {
    position: absolute;
    right: 14px;
    color: #0e7a47;
    font-size: 13px;
    font-weight: 700;
}

/* ---- BEDRAG KNOPPEN ---- */
.doneer-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.doneer-amount-btn {
    border: 2px solid #d1d5db;
    background: #fff;
    border-radius: 12px;
    padding: 16px 10px;
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
    text-align: center;
    line-height: 1;
}
.doneer-amount-btn:hover {
    border-color: #1aa564;
    background: #f0faf5;
}
.doneer-amount-btn.active {
    border-color: #1aa564;
    background: #1aa564;
    color: #fff;
}
.doneer-amount-anders {
    font-size: 15px;
}

/* ---- EIGEN BEDRAG ---- */
#doneer-anders-wrap {
    margin-bottom: 20px;
}
#doneer-anders-wrap .lidform-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}
#doneer-anders-wrap .lidform-input {
    width: 100%;
    padding: 13px 15px;
    font-size: 15px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #1a1a1a;
    appearance: none;
    -webkit-appearance: none;
}
#doneer-anders-wrap .lidform-input:focus {
    outline: none;
    border-color: #1aa564;
    box-shadow: 0 0 0 3px rgba(26,165,100,0.12);
}

/* ---- DONEER VELDEN (stap 2) ---- */
#doneer-wrap .lidform-row {
    display: flex;
    gap: 16px;
    margin-bottom: 0;
}
#doneer-wrap .lidform-col {
    flex: 1;
    min-width: 0;
    margin-bottom: 18px;
}
#doneer-wrap .lidform-group {
    margin-bottom: 18px;
}
#doneer-wrap .lidform-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}
#doneer-wrap .lidform-input {
    width: 100%;
    padding: 13px 15px;
    font-size: 15px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #1a1a1a;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
#doneer-wrap .lidform-input:focus {
    outline: none;
    border-color: #1aa564;
    box-shadow: 0 0 0 3px rgba(26,165,100,0.12);
}

/* ---- DONEER KNOPPEN ---- */
#doneer-wrap .lidform-btn {
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 50px;
    border: none;
    transition: background 0.15s, opacity 0.15s, transform 0.1s;
    line-height: 1;
}
#doneer-wrap .lidform-btn:active {
    transform: scale(0.98);
}
#doneer-wrap .lidform-btn--primary {
    background: #1aa564;
    color: #fff;
}
#doneer-wrap .lidform-btn--primary:hover {
    background: #0e7a47;
}
#doneer-wrap .lidform-btn:disabled {
    opacity: 0.50;
    cursor: not-allowed;
}

/* ---- FOUTMELDING DONEER ---- */
#doneer-wrap .lidform-error-box {
    padding: 13px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #fed7d7;
}

/* ---- SPINNER DONEER ---- */
#doneer-wrap .lf-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lf-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

/* ---- RESPONSIVE DONEER ---- */
@media (max-width: 580px) {
    .doneer-amounts {
        grid-template-columns: repeat(2, 1fr);
    }
    #doneer-wrap .lidform-card {
        padding: 22px 18px 28px;
    }
    .doneer-header-bar {
        margin: 0 -18px 22px;
    }
    #doneer-wrap .lidform-row {
        flex-direction: column;
        gap: 0;
    }
    #doneer-wrap .lidform-btn {
        width: 100%;
        text-align: center;
    }
}
