/*
 *  vendor.css  |  Johnston County 250 — Vendor Registration
 *  Mirrors volunteer.css structure and design language
 */

/* ── Root palette ── */
:root {
    --cf-navy:      #0F2658;
    --cf-navy-dk:   #091a40;
    --cf-red:       #8B1A1A;
    --cf-gold:      #C8972A;
    --cf-gold-lt:   #e8c06a;
    --cf-white:     #FDFAF4;
    --cf-parchment: #F5F0E8;
    --cf-parch-dk:  #DDD5C0;
    --cf-muted:     #6b5c3e;
}

/* ── Base ── */
body {
    background-color: var(--cf-parchment);
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 39px,
            rgba(200, 151, 42, .07) 39px,
            rgba(200, 151, 42, .07) 40px
        );
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.1rem;   /* ADA: base ~17.6px */
    line-height: 1.6;
    color: #2a2015;
}

/* ── Skip link (ADA) ── */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--cf-navy);
    color: #fff;
    padding: 8px 14px;
    font-size: 1rem;
    text-decoration: none;
    z-index: 9999;
    transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ── Environment badge ── */
.env-badge {
    display: inline-block;
    padding: .2rem .75rem;
    border-radius: 20px;
    font-size: .7rem;
    font-family: monospace;
    letter-spacing: .05rem;
    font-weight: 600;
}
.env-local { background: #fff3cd; color: #856404; border: 1px solid #ffc107; }
.env-live  { background: #d1e7dd; color: #0a3622; border: 1px solid #198754; }

/* ── Top badge ── */
.top-badge {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .35rem;
    text-transform: uppercase;
    color: var(--cf-navy);
}
.top-badge::before,
.top-badge::after { content: "★"; color: var(--cf-gold); margin: 0 .5rem; }

/* ── Card ── */
.vol-card {
    border: none;
    border-radius: .5rem;
    background: var(--cf-white);
    box-shadow:
        0 2px 6px  rgba(15, 38, 88, .12),
        0 8px 32px rgba(15, 38, 88, .10);
    overflow: hidden;
}

/* ── Header ── */
.vol-header {
    background: linear-gradient(160deg, var(--cf-navy-dk) 0%, var(--cf-navy) 100%);
    padding: 2rem 2rem 1.6rem;
    border-bottom: 4px solid var(--cf-gold);
    position: relative;
}
.vol-header::after {
    content: "";
    display: block;
    height: 4px;
    background: var(--cf-red);
    position: absolute;
    bottom: 0; left: 0; right: 0;
}
.vol-header .rule {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cf-gold), transparent);
    margin: 0 auto .75rem;
}
.vol-header .eyebrow {
    font-size: .85rem;
    letter-spacing: .25rem;
    text-transform: uppercase;
    color: var(--cf-gold-lt);
    font-weight: 600;
}
.vol-header h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin-bottom: .4rem;
}
.vol-header .subtitle {
    font-size: 1rem;
    color: #fff;             /* ADA: full white on navy for max contrast */
    font-style: italic;
    line-height: 1.6;
}

/* ── Section dividers ── */
.section-divider {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .18rem;
    text-transform: uppercase;
    color: var(--cf-navy);
    border-bottom: 2px solid var(--cf-gold);
    padding-bottom: .35rem;
    margin: 1.75rem 0 1rem;
}

/* ── Form controls ── */
.form-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--cf-navy);
    margin-bottom: .3rem;
}
.field-hint {
    font-weight: 400;
    font-size: .9rem;
    color: var(--cf-muted);
    font-style: italic;
}
.form-control,
.form-select {
    border: 1.5px solid var(--cf-parch-dk);
    background: var(--cf-parchment);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.05rem;
    color: #2a2015;
    border-radius: .3rem;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--cf-navy);
    box-shadow: 0 0 0 .2rem rgba(15, 38, 88, .15);
    background: #fff;
}
textarea.form-control {
    resize: vertical;
    min-height: 90px;
}

/* ── Check cards ── */
.check-card {
    background: var(--cf-parchment);
    border: 1.5px solid var(--cf-parch-dk);
    border-radius: .35rem;
    transition: border-color .15s, background .15s;
    cursor: pointer;
}
.check-card:hover {
    border-color: var(--cf-navy);
    background: #edeae3;
}
.check-card .form-check-input {
    accent-color: var(--cf-navy);
    flex-shrink: 0;
}
.check-card .form-check-label { cursor: pointer; }
.check-note {
    display: block;
    font-size: .9rem;
    color: var(--cf-muted);
    font-style: italic;
    margin-top: .15rem;
}

/* ── Fee summary box ── */
.fee-box {
    background: linear-gradient(135deg, #f0ede6, var(--cf-parchment));
    border: 1.5px solid var(--cf-parch-dk);
    border-left: 4px solid var(--cf-gold);
    border-radius: .35rem;
    padding: 1rem 1.25rem;
}
.fee-row {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    padding: .2rem 0;
}
.fee-row.total {
    border-top: 1px solid var(--cf-parch-dk);
    margin-top: .4rem;
    padding-top: .5rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--cf-navy);
}
.fee-note {
    font-size: .9rem;
    font-style: italic;
    color: var(--cf-muted);
    margin-top: .6rem;
}

/* ── Alerts ── */
.alert {
    border-radius: .35rem;
    border-width: 1.5px;
    font-size: 1rem;
    padding: .9rem 1.1rem;
}
.alert ul { margin: .4rem 0 0 1rem; padding: 0; }
.alert-danger  { background: #fdf2f2; border-color: #c0392b; color: #7b1a1a; }
.alert-success { background: #f0f7f0; border-color: #27ae60; color: #1a5c2a; text-align: center; }

/* ── Intro callout ── */
.intro-callout {
    font-size: 1.05rem;
    color: var(--cf-muted);
    font-style: italic;
    line-height: 1.65;
}

/* ── Submit ── */
.btn-vol-navy {
    background-color: var(--cf-navy);
    border: 2px solid var(--cf-gold);
    color: var(--cf-white);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: .04rem;
    padding: .65rem 1.25rem;
    border-radius: .25rem;
    width: 100%;
    transition: background .2s, color .2s;
}
.btn-vol-navy:hover {
    background-color: var(--cf-gold);
    color: var(--cf-navy);
    border-color: var(--cf-gold);
}

/* ── Inline footer note ── */
.vol-footer-inline {
    font-size: .95rem;
    font-style: italic;
    color: var(--cf-muted);
    text-align: center;
}

/* ── Card footer ── */
.vol-footer {
    background-color: var(--cf-parchment);
    border-top: 1px solid var(--cf-parch-dk);
    font-size: .9rem;
    font-style: italic;
    color: var(--cf-muted);
}
.admin-link {
    font-size: .85rem;
    color: var(--cf-navy);
    text-decoration: none;
    opacity: .6;
    font-style: normal;
}
.admin-link:hover { opacity: 1; }

/* ── Required marker ── */
.req { color: var(--cf-red); }

/* ── Select hint ── */
.select-hint {
    font-size: .95rem;
    color: var(--cf-muted);
    font-style: italic;
}
