﻿/* Register */
:root {
    --brand: #534AB7;
    --brand-dark: #3C3489;
    --brand-deep: #26215C;
    --ink: #111827;
    --muted: #6b7280;
    --line: #ece9f7;
    --field: #faf9ff;
    --ok: #16a34a;
    --danger: #ef4444;
    --wa: #25d366;
}

* {
    box-sizing: border-box;
}

/* This file used to also carry a `body { ... }` rule (background gradient,
   32px page padding, text-selection disabled) from when RegisterDonor and
   RegisterVolunteer were standalone pages. Both now always render inside
   the shared _PublicLayout, whose own <body> styling (and header/nav) that
   rule was fighting with — the page's own soft background/padding lives on
   `.vca-page` instead (see public-site.css). Removed rather than overridden
   so there's nothing here for a future page to accidentally lose the fix
   against by loading its stylesheet in a different order. */

.vca {
    max-width: 760px;
    margin: 0 auto;
}

/* ── HERO ── */
.vca-hero {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px -28px rgba(38,33,92,.55);
}

    .vca-hero .accent {
        height: 8px;
        background: linear-gradient(90deg, var(--brand-deep), var(--brand), #7a72d6);
    }

    .vca-hero .inner {
        display: flex;
        gap: 18px;
        align-items: center;
        padding: 24px 26px;
    }

.vca-badge-logo {
    max-width: 150px !important;
}

.vca-badge {
    position: relative;
    max-width: 58px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .vca-badge img {
        width: 100%;
        object-fit: contain;
    }

    .vca-badge .fallmark {
        color: #fff;
        font-size: 26px;
    }

    .vca-badge .check {
        position: absolute;
        right: -6px;
        bottom: -6px;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: #fff;
        color: var(--brand-dark);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        box-shadow: 0 4px 10px -3px rgba(38,33,92,.5);
    }

.vca-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.4px;
    margin: 0 0 4px;
}

.vca-hero p {
    margin: 0;
    font-size: 13.5px;
    color: var(--muted);
}

.vca-hero .req-note {
    border-top: 1px solid var(--line);
    padding: 11px 26px;
    font-size: 12px;
    color: var(--muted);
}

    .vca-hero .req-note .star {
        color: var(--danger);
        font-weight: 700;
    }

/* ── SUCCESS STATE ── */
.vca-success {
    margin-top: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 34px 28px;
    text-align: center;
    box-shadow: 0 12px 40px -30px rgba(38,33,92,.55);
}

    .vca-success .tick {
        width: 64px;
        height: 64px;
        margin: 0 auto 16px;
        border-radius: 50%;
        background: rgba(22,163,74,.12);
        color: var(--ok);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 28px;
    }

    .vca-success h2 {
        font-family: 'Poppins', sans-serif;
        font-size: 20px;
        margin: 0 0 8px;
    }

    .vca-success p {
        color: var(--muted);
        font-size: 14px;
        margin: 0 auto;
        max-width: 460px;
        line-height: 1.6;
    }

    .vca-success .again {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-top: 20px;
        text-decoration: none;
        background: var(--field);
        color: var(--brand-dark);
        border: 1px solid var(--line);
        padding: 10px 18px;
        border-radius: 11px;
        font-weight: 600;
        font-size: 13px;
    }

        .vca-success .again:hover {
            background: #f1eefc;
        }

/* ── CARDS ── */
.f-card {
    margin-top: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 40px -32px rgba(38,33,92,.5);
}

.f-card-header {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
}

.f-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #fff;
}

.fci-purple {
    background: linear-gradient(145deg, var(--brand), var(--brand-deep));
}

.fci-amber {
    background: linear-gradient(145deg, #f59e0b, #d97706);
}

.fci-green {
    background: linear-gradient(145deg, #10b981, #059669);
}

.fci-blue {
    background: linear-gradient(145deg, #3b82f6, #2563eb);
}

.f-card-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
}

.f-card-sub {
    font-size: 12px;
    color: var(--muted);
    margin-top: 1px;
}

.f-card-body {
    padding: 22px;
}

/* ── FIELDS ── */
.f-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
}

.f-group {
    margin-bottom: 16px;
}

    .f-group:last-child {
        margin-bottom: 0;
    }

.f-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 7px;
}

.req {
    color: var(--danger);
    font-weight: 700;
}

.f-input-wrap {
    position: relative;
}

    .f-input-wrap .pfx {
        position: absolute;
        left: 13px;
        top: 50%;
        transform: translateY(-50%);
        color: #aab;
        font-size: 13px;
        pointer-events: none;
    }

.form-control {
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    color: var(--ink);
    background: var(--field);
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 11px 13px;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.f-input-wrap.with-icon .form-control {
    padding-left: 38px;
}

.f-input-wrap.with-toggle .form-control {
    padding-right: 38px;
}

.f-input-wrap .pw-eye-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 2px;
    font-size: 14px;
    transition: color .15s;
}

    .f-input-wrap .pw-eye-btn:hover {
        color: var(--brand);
    }

.form-control::placeholder {
    color: #aeb1c2;
}

.form-control:focus {
    outline: none;
    background: #fff;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(83,74,183,.14);
}

.field-validation-error {
    display: block;
    color: var(--danger);
    font-size: 12px;
    font-weight: 500;
    margin-top: 6px;
    animation: valFadeIn .15s ease;
}

    .field-validation-error::before {
        content: "\f06a";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 10.5px;
        margin-right: 5px;
    }

.input-validation-error {
    border-color: #f2a3a3 !important;
    background: #fff !important;
}

    .input-validation-error:focus {
        border-color: var(--danger) !important;
        box-shadow: 0 0 0 3px rgba(239,68,68,.14);
        animation: valShake .32s ease;
    }

/* ── CAPTCHA ── */
.captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.captcha-img {
    height: 48px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--field);
    display: block;
}

.captcha-refresh {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: #fff;
    color: #6b7280;
    border-radius: 10px;
    cursor: pointer;
    transition: all .15s;
}

    .captcha-refresh:hover {
        background: var(--field);
        color: var(--brand);
        border-color: var(--brand);
    }

    .captcha-refresh.spin i {
        animation: captchaSpin .5s ease;
    }

.captcha-input {
    flex: 1;
    min-width: 140px;
}

@keyframes captchaSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ── UPLOAD DROPZONE ── */
.drop {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1.5px dashed #cdc8ee;
    background: var(--field);
    border-radius: 13px;
    padding: 16px 18px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

    .drop:hover {
        border-color: var(--brand);
        background: #f3f1fd;
    }

    .drop.has-file {
        border-style: solid;
        border-color: #b7e3c5;
        background: #f3fbf6;
    }

    .drop .d-icon {
        width: 42px;
        height: 42px;
        flex: 0 0 auto;
        border-radius: 11px;
        background: #fff;
        border: 1px solid var(--line);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--brand);
        font-size: 16px;
    }

    .drop.has-file .d-icon {
        color: var(--ok);
        border-color: #c7ecd3;
    }

    .drop .d-main {
        font-size: 13.5px;
        font-weight: 600;
        color: #374151;
    }

    .drop .d-sub {
        font-size: 11.5px;
        color: var(--muted);
        margin-top: 2px;
    }

    .drop .d-clear {
        margin-left: auto;
        border: none;
        background: transparent;
        color: var(--muted);
        cursor: pointer;
        font-size: 14px;
        display: none;
        padding: 6px;
    }

    .drop.has-file .d-clear {
        display: inline-flex;
    }

.file-native {
    display: none;
}

/* ── AMOUNT RADIOS ── */
.amt-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.amt-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.amt-card {
    display: block;
    cursor: pointer;
    text-align: center;
    border: 1.5px solid var(--line);
    background: var(--field);
    border-radius: 13px;
    padding: 14px 8px;
    transition: border-color .15s, background .15s, box-shadow .15s, transform .1s;
}

    .amt-card:hover {
        border-color: #c5bff0;
    }

    .amt-card .cur {
        font-size: 10.5px;
        color: var(--muted);
        letter-spacing: .4px;
    }

    .amt-card .num {
        font-family: 'DM Mono', monospace;
        font-weight: 500;
        font-size: 17px;
        color: var(--ink);
        margin-top: 2px;
    }

.amt-radio:checked + .amt-card {
    border-color: var(--brand);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(83,74,183,.13);
    transform: translateY(-1px);
}

    .amt-radio:checked + .amt-card .num {
        color: var(--brand-dark);
    }

    .amt-radio:checked + .amt-card .cur {
        color: var(--brand);
    }

.amt-radio:focus-visible + .amt-card {
    box-shadow: 0 0 0 3px rgba(83,74,183,.3);
}

/* ── ACCOUNT DETAILS ── */
.acct-note {
    font-size: 12.5px;
    color: var(--muted);
    margin: 0 0 14px;
    line-height: 1.55;
}

.acct-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.acct {
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 13px 14px;
    background: var(--field);
}

    .acct .a-top {
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 600;
        font-size: 13px;
    }

        .acct .a-top i {
            color: var(--brand);
        }

    .acct .a-num {
        font-family: 'DM Mono', monospace;
        font-size: 14.5px;
        color: var(--ink);
        margin: 9px 0 3px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .acct .a-name {
        font-size: 12px;
        color: var(--muted);
    }

.copy-btn {
    border: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 7px;
    width: 26px;
    height: 26px;
    cursor: pointer;
    color: var(--muted);
    font-size: 11px;
    flex: 0 0 auto;
}

    .copy-btn:hover {
        color: var(--brand);
        border-color: #cdc8ee;
    }

    .copy-btn.copied {
        color: var(--ok);
        border-color: #c7ecd3;
    }

/* ── FOOTER ── */
.vca-foot {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.foot-hint {
    font-size: 12px;
    color: var(--muted);
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    border-radius: 12px;
    padding: 13px 26px;
    box-shadow: 0 12px 26px -12px rgba(83,74,183,.75);
    transition: transform .1s, box-shadow .15s, opacity .15s;
}

    .btn-submit:hover {
        transform: translateY(-1px);
        box-shadow: 0 16px 30px -12px rgba(83,74,183,.8);
    }

    .btn-submit:disabled {
        opacity: .7;
        cursor: default;
        transform: none;
    }

.vca-legal {
    text-align: center;
    margin-top: 26px;
    font-size: 11.5px;
    color: #9aa0b3;
}

.validation-summary-errors {
    display: block;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    color: #b91c1c;
    font-size: 12.5px;
    animation: valFadeIn .2s ease;
}

    .validation-summary-errors::before {
        content: "\f06a";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        margin-right: 7px;
    }

    .validation-summary-errors ul {
        margin: 6px 0 0;
        padding-left: 18px;
    }

    .validation-summary-errors li {
        margin: 3px 0;
    }

.validation-summary-valid {
    display: none;
}

@keyframes valFadeIn {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes valShake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-3px); }
    40%, 60% { transform: translateX(3px); }
}

@media (max-width: 620px) {
    .f-grid-2 {
        grid-template-columns: 1fr;
    }

    .amt-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .acct-grid {
        grid-template-columns: 1fr;
    }

    .vca-hero h1 {
        font-size: 20px;
    }
}