/* ─── FHMA Checkout ──────────────────────────────────────────────────────────
   Dark, on-brand checkout UI. Works on any theme background.
   ─────────────────────────────────────────────────────────────────────────── */

:root {
    --fhpay-gold:    #d6b36d;
    --fhpay-gold-lt: #f0d898;
    --fhpay-bg:      #0e0c09;
    --fhpay-surface: rgba(255,255,255,.04);
    --fhpay-border:  rgba(255,255,255,.1);
    --fhpay-text:    rgba(255,255,255,.9);
    --fhpay-muted:   rgba(255,255,255,.5);
    --fhpay-radius:  14px;
    --fhpay-green:   #4caf7d;
    --fhpay-red:     #e05555;
}

/* ── Wrapper ─────────────────────────────────────────────────────────────── */
.fhpay {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--fhpay-text);
    background: #13110e;
    max-width: 680px;
    margin: 0 auto;
    padding: 40px 40px 60px;
    border-radius: 20px;
}

@media (max-width: 520px) {
    .fhpay { padding: 24px 20px 40px; border-radius: 14px; }
}

/* ── Progress ────────────────────────────────────────────────────────────── */
.fhpay-progress {
    display: flex;
    align-items: center;
    margin-bottom: 36px;
    padding-top: 8px;
}

.fhpay-progress__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.fhpay-progress__num {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    background: var(--fhpay-surface);
    border: 1.5px solid var(--fhpay-border);
    color: var(--fhpay-muted);
    transition: .2s;
}

.fhpay-progress__label {
    font-size: 11px;
    font-weight: 600;
    color: var(--fhpay-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    transition: .2s;
}

.fhpay-progress__step--active .fhpay-progress__num {
    background: var(--fhpay-gold);
    border-color: var(--fhpay-gold);
    color: #0a0805;
}
.fhpay-progress__step--active .fhpay-progress__label { color: var(--fhpay-gold); }

.fhpay-progress__step--done .fhpay-progress__num {
    background: rgba(214,179,109,.15);
    border-color: var(--fhpay-gold);
    color: var(--fhpay-gold);
}
.fhpay-progress__step--done .fhpay-progress__label { color: var(--fhpay-gold); }

.fhpay-progress__line {
    flex: 1;
    height: 1.5px;
    background: var(--fhpay-border);
    margin: 0 8px;
    margin-bottom: 22px;
    transition: background .3s;
}
.fhpay-progress__line.done { background: var(--fhpay-gold); }

/* ── Section ─────────────────────────────────────────────────────────────── */
.fhpay-section {
    margin-bottom: 28px;
}

.fhpay-section__title {
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--fhpay-muted) !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    border: none !important;
}

.fhpay-section__title small {
    font-size: 11px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    color: rgba(255,255,255,.3);
    margin-left: 6px;
}

/* ── Selection cards ─────────────────────────────────────────────────────── */
.fhpay-cards {
    display: grid;
    gap: 10px;
}
.fhpay-cards--2 { grid-template-columns: repeat(2, 1fr); }
.fhpay-cards--3 { grid-template-columns: repeat(3, 1fr); }

.fhpay-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 16px 12px;
    background: var(--fhpay-surface);
    border: 1.5px solid var(--fhpay-border);
    border-radius: var(--fhpay-radius);
    cursor: pointer;
    transition: border-color .15s, background .15s, transform .1s;
    text-align: center;
    min-height: 72px;
}

.fhpay-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
}

.fhpay-card:hover {
    border-color: rgba(214,179,109,.4);
    background: rgba(255,255,255,.07);
}

.fhpay-card.is-selected {
    border-color: var(--fhpay-gold);
    background: rgba(214,179,109,.1);
}

.fhpay-card.is-selected::after {
    content: '✓';
    position: absolute;
    top: 7px; right: 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--fhpay-gold);
}

.fhpay-card__icon {
    font-size: 26px;
    line-height: 1;
}

.fhpay-card__label {
    font-size: 14px;
    font-weight: 700;
    color: var(--fhpay-text);
}

.fhpay-card__sub {
    font-size: 12px;
    color: var(--fhpay-muted);
}

.fhpay-card__badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,.1);
    color: var(--fhpay-muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

.fhpay-card__badge--gold {
    background: rgba(214,179,109,.2);
    color: var(--fhpay-gold);
}

/* ── Price preview ───────────────────────────────────────────────────────── */
.fhpay-price-preview {
    background: rgba(214,179,109,.07);
    border: 1px solid rgba(214,179,109,.25);
    border-radius: var(--fhpay-radius);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    transition: opacity .2s;
    min-height: 56px;
}

.fhpay-price-preview__label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--fhpay-muted);
    flex-shrink: 0;
}

.fhpay-price-preview__amount {
    font-size: 22px;
    font-weight: 800;
    color: var(--fhpay-gold);
    flex: 1;
}

.fhpay-price-preview__amount.is-placeholder {
    font-size: 14px;
    font-weight: 400;
    color: var(--fhpay-muted);
}

/* ── Plan pill (steps 2 & 3) ─────────────────────────────────────────────── */
.fhpay-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: rgba(214,179,109,.07);
    border: 1px solid rgba(214,179,109,.2);
    border-radius: 10px;
    padding: 10px 16px;
    margin-bottom: 24px;
    font-size: 13px;
    color: var(--fhpay-muted);
}

.fhpay-pill span { color: var(--fhpay-text); }
.fhpay-pill strong { color: var(--fhpay-gold); font-size: 16px; margin-left: auto; }
.fhpay-pill a { color: var(--fhpay-muted); font-size: 12px; text-decoration: underline; white-space: nowrap; }
.fhpay-pill a:hover { color: var(--fhpay-text); }

/* ── Form fields ─────────────────────────────────────────────────────────── */
.fhpay-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.fhpay-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.fhpay-field--full { grid-column: 1 / -1; }

.fhpay-field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--fhpay-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.fhpay-field label em {
    color: var(--fhpay-red);
    font-style: normal;
}

.fhpay-field input[type="text"],
.fhpay-field input[type="email"],
.fhpay-field input[type="tel"],
.fhpay-field input[type="date"] {
    background: var(--fhpay-surface) !important;
    border: 1.5px solid var(--fhpay-border) !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    font-size: 15px !important;
    color: var(--fhpay-text) !important;
    outline: none !important;
    transition: border-color .15s;
    width: 100% !important;
    box-sizing: border-box !important;
    -webkit-appearance: none;
}

.fhpay-field input:focus {
    border-color: var(--fhpay-gold) !important;
}

.fhpay-field--checkbox {
    margin-bottom: 20px;
}

.fhpay-field--checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
    color: var(--fhpay-muted);
    cursor: pointer;
    font-weight: 400;
}

.fhpay-field--checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
    accent-color: var(--fhpay-gold);
}

.fhpay-field--checkbox a { color: var(--fhpay-gold); }

/* ── Review ──────────────────────────────────────────────────────────────── */
.fhpay-dl {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 8px 16px;
    font-size: 14px;
    margin: 0 0 12px;
}

.fhpay-dl dt {
    color: var(--fhpay-muted);
    font-weight: 600;
}

.fhpay-dl dd { margin: 0; color: var(--fhpay-text); }

.fhpay-link {
    font-size: 13px;
    color: var(--fhpay-muted);
    text-decoration: underline;
}
.fhpay-link:hover { color: var(--fhpay-text); }

.fhpay-total-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(214,179,109,.07);
    border: 1px solid rgba(214,179,109,.25);
    border-radius: var(--fhpay-radius);
    padding: 24px;
    margin: 24px 0;
    text-align: center;
    gap: 6px;
}

.fhpay-total-box__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--fhpay-muted);
}

.fhpay-total-box__amount {
    font-size: 38px;
    font-weight: 900;
    color: var(--fhpay-gold);
    line-height: 1;
}

.fhpay-total-box__sub {
    font-size: 13px;
    color: var(--fhpay-muted);
}

/* ── Done / processing ───────────────────────────────────────────────────── */
.fhpay-done {
    text-align: center;
    padding: 48px 24px;
}

.fhpay-done__icon {
    font-size: 56px;
    line-height: 1;
    margin-bottom: 20px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
}
.fhpay-done__icon--ok   { background: rgba(76,175,125,.15); color: var(--fhpay-green); }
.fhpay-done__icon--fail { background: rgba(224,85,85,.15);  color: var(--fhpay-red); }
.fhpay-done__icon--pending { background: rgba(255,255,255,.07); color: var(--fhpay-muted); }

.fhpay-done h2 { font-size: 24px; font-weight: 800; margin-bottom: 10px; color: var(--fhpay-text); }
.fhpay-done p  { color: var(--fhpay-muted); font-size: 15px; }
.fhpay-done a  { color: var(--fhpay-gold); }

/* ── Alerts ──────────────────────────────────────────────────────────────── */
.fhpay-alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
}
.fhpay-alert--error   { background: rgba(224,85,85,.12); border: 1px solid rgba(224,85,85,.3); color: #f09090; }
.fhpay-alert--warning { background: rgba(224,133,48,.1);  border: 1px solid rgba(224,133,48,.3); color: #f0a060; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.fhpay-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}
.fhpay-actions--center { justify-content: center; }

.fhpay-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 13px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-decoration: none !important;
    transition: filter .15s, transform .1s;
    line-height: 1;
}
.fhpay-btn:active { transform: scale(.97); }

.fhpay-btn--primary {
    background: var(--fhpay-gold);
    color: #0a0805 !important;
    margin-left: auto;
}
.fhpay-btn--primary:hover { filter: brightness(1.12); }

.fhpay-btn--ghost {
    background: transparent;
    color: var(--fhpay-muted) !important;
    border: 1.5px solid var(--fhpay-border);
}
.fhpay-btn--ghost:hover { border-color: rgba(255,255,255,.25); color: var(--fhpay-text) !important; }

.fhpay-btn--pay {
    background: #CC0066;
    color: #fff !important;
    padding-left: 20px;
}
.fhpay-btn--pay:hover { filter: brightness(1.1); }

/* ── Inside hub shell: remove own dark background ───────────────────────── */
.fhub-inschrijven-wrap .fhpay {
    background: transparent;
    padding: 0 0 40px;
    border-radius: 0;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 520px) {
    .fhpay-cards--3   { grid-template-columns: 1fr; }
    .fhpay-cards--2   { grid-template-columns: 1fr; }
    .fhpay-grid       { grid-template-columns: 1fr; }
    .fhpay-field--full { grid-column: auto; }
    .fhpay-dl         { grid-template-columns: 90px 1fr; }
    .fhpay-btn--primary { margin-left: 0; width: 100%; justify-content: center; }
    .fhpay-actions    { flex-direction: column; }
    .fhpay-total-box__amount { font-size: 30px; }
    .fhpay-progress__label  { display: none; }
    .fhpay { padding: 24px 20px 40px; border-radius: 14px; }
}
