/* ================================================================
   Fundraising Mollie — Publieke stijlen v2
   Branding kleur: #ff6900
   ================================================================ */

:root {
    --fm-primary:      #ff6900;
    --fm-primary-dark: #e05500;
    --fm-primary-light:#fff3ec;
    --fm-primary-mid:  #ff8533;
    --fm-text:         #1a1a1a;
    --fm-text-muted:   #6b7280;
    --fm-text-light:   #9ca3af;
    --fm-border:       #e5e7eb;
    --fm-bg:           #f9fafb;
    --fm-white:        #ffffff;
    --fm-radius:       14px;
    --fm-radius-sm:    8px;
    --fm-shadow:       0 4px 24px rgba(0,0,0,.08);
    --fm-shadow-lg:    0 8px 40px rgba(0,0,0,.12);
}

/* ── KAART ── */
.fm-card {
    max-width: 580px;
    margin: 0 auto;
    background: var(--fm-white);
    border-radius: 20px;
    box-shadow: var(--fm-shadow-lg);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ── HERO AFBEELDING ── */
.fm-hero {
    position: relative;
    width: 100%;
    height: 240px;
    background-size: cover;
    background-position: center;
}
.fm-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.1) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem 1.75rem;
}
.fm-hero-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
    line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.fm-hero-sub {
    font-size: 14px;
    color: rgba(255,255,255,.85);
    margin: 0;
}

/* ── HEADER ZONDER FOTO ── */
.fm-header-text {
    padding: 1.75rem 1.75rem 0;
}
.fm-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--fm-text);
    margin: 0 0 4px;
}
.fm-subtitle {
    font-size: 15px;
    color: var(--fm-text-muted);
    margin: 0;
}

/* ── BESCHRIJVING ── */
.fm-description {
    padding: 1rem 1.75rem 0;
    font-size: 14px;
    color: var(--fm-text-muted);
    line-height: 1.7;
}

/* ── VOORTGANG ── */
.fm-progress-section {
    padding: 1.5rem 1.75rem 1.25rem;
    border-bottom: 1px solid var(--fm-border);
}
.fm-prog-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 12px;
}
.fm-raised-wrap, .fm-goal-wrap {
    display: flex;
    flex-direction: column;
}
.fm-raised {
    font-size: 32px;
    font-weight: 800;
    color: var(--fm-primary);
    line-height: 1;
}
.fm-raised-label {
    font-size: 12px;
    color: var(--fm-text-light);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.fm-goal-wrap { text-align: right; }
.fm-goal-amt {
    font-size: 18px;
    font-weight: 700;
    color: var(--fm-text);
    line-height: 1;
}
.fm-goal-label {
    font-size: 12px;
    color: var(--fm-text-light);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* Voortgangsbalk */
.fm-bar-bg {
    background: #f0f0ef;
    border-radius: 99px;
    height: 12px;
    overflow: hidden;
    position: relative;
}
.fm-bar-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--fm-primary) 0%, var(--fm-primary-mid) 100%);
    transition: width 1s ease;
    position: relative;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.fm-bar-pct {
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    padding-right: 5px;
    white-space: nowrap;
}
.fm-prog-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 13px;
}
.fm-donors-txt { color: var(--fm-text-muted); }
.fm-pct-txt    { color: var(--fm-text-light); }
.fm-goal-done  { color: var(--fm-primary); font-weight: 600; }

/* ── FORMULIER ── */
.fm-form {
    padding: 1.5rem 1.75rem;
}
.fm-field-group {
    margin-bottom: 1.5rem;
}
.fm-field-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--fm-text);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 12px;
}

/* ── BEDRAG KNOPPEN ── */
.fm-amounts {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}
.fm-amt {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 8px 12px;
    border: 2px solid var(--fm-border);
    background: var(--fm-bg);
    border-radius: var(--fm-radius-sm);
    cursor: pointer;
    transition: all .18s ease;
    font-family: inherit;
    gap: 3px;
}
.fm-amt:hover {
    border-color: var(--fm-primary);
    background: var(--fm-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,105,0,.15);
}
.fm-amt.fm-amt-active {
    border-color: var(--fm-primary);
    background: var(--fm-primary-light);
    box-shadow: 0 0 0 3px rgba(255,105,0,.12);
}
.fm-amt-featured {
    border-color: var(--fm-primary);
    background: var(--fm-primary);
    box-shadow: 0 4px 14px rgba(255,105,0,.3);
}
.fm-amt-featured .fm-amt-val,
.fm-amt-featured .fm-amt-hint { color: #fff !important; }
.fm-amt-featured:hover {
    background: var(--fm-primary-dark);
    border-color: var(--fm-primary-dark);
    transform: translateY(-2px);
}
.fm-amt-featured.fm-amt-active {
    background: var(--fm-primary-dark);
    border-color: var(--fm-primary-dark);
}
.fm-amt-val {
    font-size: 18px;
    font-weight: 800;
    color: var(--fm-text);
    line-height: 1;
}
.fm-amt-hint {
    font-size: 10px;
    color: var(--fm-text-light);
    font-weight: 500;
}
.fm-amt.fm-amt-active .fm-amt-val { color: var(--fm-primary); }
.fm-amt.fm-amt-active .fm-amt-hint { color: var(--fm-primary-mid); }

/* Eigen bedrag */
.fm-custom-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.fm-euro-sign {
    position: absolute;
    left: 14px;
    font-size: 16px;
    font-weight: 600;
    color: var(--fm-text-muted);
    pointer-events: none;
    z-index: 1;
}
.fm-custom-amt {
    padding-left: 32px !important;
}

/* ── FLOATING LABEL INPUTS ── */
.fm-name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}
.fm-input-wrap {
    position: relative;
    margin-bottom: 10px;
}
.fm-input-wrap:last-of-type { margin-bottom: 0; }
.fm-name-row .fm-input-wrap { margin-bottom: 0; }

.fm-input {
    width: 100%;
    padding: 18px 14px 6px;
    font-size: 15px;
    font-family: inherit;
    border: 2px solid var(--fm-border);
    border-radius: var(--fm-radius-sm);
    background: var(--fm-white);
    color: var(--fm-text);
    outline: none;
    transition: border-color .18s, box-shadow .18s;
    box-sizing: border-box;
}
.fm-input:focus {
    border-color: var(--fm-primary);
    box-shadow: 0 0 0 3px rgba(255,105,0,.1);
}
.fm-float-label {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: var(--fm-text-light);
    pointer-events: none;
    transition: all .18s ease;
    background: transparent;
}
.fm-input:focus ~ .fm-float-label,
.fm-input:not(:placeholder-shown) ~ .fm-float-label {
    top: 8px;
    transform: none;
    font-size: 11px;
    font-weight: 600;
    color: var(--fm-primary);
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* Checkbox */
.fm-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    font-size: 14px;
    color: var(--fm-text-muted);
    cursor: pointer;
    user-select: none;
}
.fm-checkbox-label input[type=checkbox] { display: none; }
.fm-checkbox-custom {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border: 2px solid var(--fm-border);
    border-radius: 5px;
    background: var(--fm-white);
    transition: all .15s;
    position: relative;
}
.fm-checkbox-label input:checked + .fm-checkbox-custom {
    background: var(--fm-primary);
    border-color: var(--fm-primary);
}
.fm-checkbox-label input:checked + .fm-checkbox-custom::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

/* ── FOUTMELDING ── */
.fm-error {
    background: #fff0ec;
    border: 1.5px solid #ffc4a8;
    color: #c94000;
    border-radius: var(--fm-radius-sm);
    padding: 12px 14px;
    font-size: 14px;
    margin-bottom: 14px;
}

/* ── DONEER KNOP ── */
.fm-btn-donate {
    width: 100%;
    padding: 18px 24px;
    font-size: 17px;
    font-weight: 700;
    font-family: inherit;
    background: linear-gradient(135deg, var(--fm-primary) 0%, var(--fm-primary-dark) 100%);
    color: #fff;
    border: none;
    border-radius: var(--fm-radius);
    cursor: pointer;
    transition: all .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: .02em;
    box-shadow: 0 6px 20px rgba(255,105,0,.35);
    margin-bottom: 12px;
}
.fm-btn-donate:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255,105,0,.45);
    background: linear-gradient(135deg, var(--fm-primary-mid) 0%, var(--fm-primary) 100%);
}
.fm-btn-donate:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(255,105,0,.3);
}
.fm-btn-donate:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.fm-btn-icon  { font-size: 18px; }
.fm-btn-text  { flex: 1; }
.fm-btn-arrow { font-size: 18px; transition: transform .2s; }
.fm-btn-donate:hover .fm-btn-arrow { transform: translateX(3px); }

.fm-secure-note {
    text-align: center;
    font-size: 12px;
    color: var(--fm-text-light);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.fm-secure-note strong { color: var(--fm-text-muted); }

/* ── DONATEURS ── */
.fm-donors {
    border-top: 1px solid var(--fm-border);
    padding: 1.25rem 1.75rem 1.5rem;
}
.fm-donors-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--fm-text-light);
    margin-bottom: 12px;
}
.fm-donors-list { display: flex; flex-direction: column; gap: 10px; }
.fm-donor {
    display: flex;
    align-items: center;
    gap: 12px;
}
.fm-donor-avatar {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--fm-primary-light), #ffe4d0);
    color: var(--fm-primary);
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,105,0,.15);
}
.fm-donor-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.fm-donor-name { font-size: 14px; font-weight: 600; color: var(--fm-text); }
.fm-donor-msg  { font-size: 12px; color: var(--fm-text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-donor-amt  { font-size: 15px; font-weight: 800; color: var(--fm-primary); flex-shrink: 0; }

.fm-no-campaign { color: var(--fm-text-muted); font-style: italic; }

/* ── RESPONSIVE ── */
@media (max-width: 500px) {
    .fm-amounts { grid-template-columns: 1fr 1fr; }
    .fm-name-row { grid-template-columns: 1fr; gap: 10px; }
    .fm-hero { height: 180px; }
    .fm-raised { font-size: 26px; }
}
