/* ==========================================
   BYTEFRAME — CONTACT PAGE STYLES
   ========================================== */

/* ─── PAGE HERO ──────────────────────────── */
.ct-hero {
    min-height: 52vh;
    background: var(--dark);
    display: flex; align-items: center;
    position: relative; overflow: hidden;
    padding: 130px 0 70px;
    height: 100vh;
  }

.ct-hero-bg {
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.04) 1.5px, transparent 1.5px);
    background-size: 32px 32px;
    pointer-events: none;
}
.ct-hero-bg::after {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 20% 100%, rgba(193,57,26,.14) 0%, transparent 55%),
        radial-gradient(ellipse at 90% 0%, rgba(193,57,26,.07) 0%, transparent 45%);
}

.ct-hero-inner {
    position: relative; z-index: 1;
    max-width: 720px;
}

.ct-hero-inner .section-eyebrow {
    animation: fade-up .5s var(--ease-out) .1s both;
}

.ct-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5.5vw, 4.25rem);
    font-weight: 800; line-height: 1.1;
    color: var(--white);
    margin: .75rem 0 1.25rem;
    animation: fade-up .6s var(--ease-out) .25s both;
}
.ct-hero-title em { font-style: italic; color: var(--red-light); }

.ct-hero-sub {
    font-size: clamp(.95rem, 2vw, 1.15rem);
    color: rgba(255,255,255,.6);
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 600px;
    animation: fade-up .6s var(--ease-out) .4s both;
}

.ct-hero-chips {
    display: flex; flex-wrap: wrap; gap: .65rem;
    animation: fade-up .5s var(--ease-out) .55s both;
}

.ct-chip {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .45rem 1rem;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 99px;
    font-size: .8rem; color: rgba(255,255,255,.75);
    font-weight: 500;
}
.ct-chip svg { color: #4ade80; flex-shrink: 0; }

/* ─── MAIN CONTACT GRID ──────────────────── */
.ct-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
}

/* Info column */
.ct-info { position: sticky; top: 100px; }

.ct-info .section-title { margin: .75rem 0; }

.ct-info-lead {
    color: var(--mid); line-height: 1.75; margin-bottom: 2rem;
    font-size: .95rem; max-width: 380px;
}

.ct-channels { display: flex; flex-direction: column; gap: .85rem; margin-bottom: 2rem; }

.ct-channel {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: var(--white);
    border: 1.5px solid var(--light-2);
    border-radius: var(--r-lg);
    transition: border-color .2s, box-shadow .2s, transform .15s;
    cursor: pointer;
}
.ct-channel:hover { border-color: var(--red); box-shadow: var(--shadow-sm); transform: translateX(4px); }
.ct-channel--static { cursor: default; }
.ct-channel--static:hover { transform: none; }

.ct-channel-icon {
    width: 42px; height: 42px;
    border-radius: var(--r-md);
    background: rgba(193,57,26,.08);
    display: flex; align-items: center; justify-content: center;
    color: var(--red); flex-shrink: 0;
}

.ct-channel-body { flex: 1; }
.ct-channel-label { display: block; font-size: .75rem; color: var(--mid); margin-bottom: .2rem; font-weight: 500; }
.ct-channel-value { display: block; font-size: .9rem; font-weight: 600; color: var(--dark); line-height: 1.5; }
.ct-channel-sub { display: block; font-size: .78rem; color: var(--mid); margin-top: .1rem; }

.ct-channel-arrow { color: var(--mid); opacity: 0; transition: opacity .2s, transform .2s; flex-shrink: 0; }
.ct-channel:hover .ct-channel-arrow { opacity: 1; transform: translateX(3px); }

.ct-social-row { display: flex; align-items: center; gap: 1rem; }
.ct-social-label { font-size: .8rem; color: var(--mid); font-weight: 500; }
.ct-social-links { display: flex; gap: .6rem; }

/* Form column */
.ct-form-wrap {
    background: var(--white);
    border: 1.5px solid var(--light-2);
    border-radius: var(--r-xl);
    padding: clamp(1.75rem, 4vw, 2.5rem);
    box-shadow: var(--shadow-md);
}
.ct-form-header { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1.5px solid var(--light-2); }
.ct-form-header h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--dark); margin-bottom: .4rem; }
.ct-form-header p { font-size: .9rem; color: var(--mid); }

.ct-form .form-group input,
.ct-form .form-group select,
.ct-form .form-group textarea {
    width: 100%;
}

@media (max-width: 960px) {
    .ct-grid { grid-template-columns: 1fr; }
    .ct-info { position: static; }
    .ct-info-lead { max-width: 100%; }
}

/* ─── DIVIDER ────────────────────────────── */
.ct-divider { padding: 0; background: var(--white); }
.ct-divider-inner {
    display: flex; align-items: center; gap: 1.5rem;
    padding: 2.5rem 0;
}
.ct-divider-line { flex: 1; height: 1px; background: var(--light-2); }
.ct-divider-text {
    font-size: .8rem; color: var(--mid); font-weight: 500;
    text-transform: uppercase; letter-spacing: .08em;
    white-space: nowrap; flex-shrink: 0;
}

/* ─── COMMUNITY INVOLVEMENT ──────────────── */
.ct-inv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    align-items: stretch;
}

.ct-inv-card {
    background: var(--white);
    border: 1.5px solid var(--light-2);
    border-radius: var(--r-xl);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: box-shadow .25s, transform .25s;
}
.ct-inv-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-6px); }

.ct-inv-card--featured {
    background: var(--dark);
    border-color: var(--dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}
.ct-inv-card--featured:hover { transform: translateY(-14px); }

.ct-inv-card-visual {
    height: 120px;
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.ct-inv-card-visual--vol {
    /* background: linear-gradient(135deg, rgba(193,57,26,.12) 0%, rgba(193,57,26,.04) 100%);
    border-bottom: 1.5px solid rgba(193,57,26,.12); */
}
/* .ct-inv-card-visual--par {
    background: linear-gradient(135deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.03) 100%);
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.ct-inv-card-visual--don {
    background: linear-gradient(135deg, rgba(10,102,64,.1) 0%, rgba(10,102,64,.04) 100%);
    border-bottom: 1.5px solid rgba(10,102,64,.1);
} */

.ct-inv-icon {
    width: 64px; height: 64px;
    border-radius: var(--r-xl);
    display: flex; align-items: center; justify-content: center;
}
.ct-inv-card-visual--vol .ct-inv-icon { background: rgba(193,57,26,.1); color: var(--red); }
.ct-inv-card-visual--par .ct-inv-icon { background: rgba(255,255,255,.1); color: rgba(255,255,255,.9); }
.ct-inv-card-visual--don .ct-inv-icon { background: rgba(10,102,64,.12); color: #0a6640; }

.ct-inv-body {
    padding: 1.75rem;
    display: flex; flex-direction: column; gap: .85rem;
    flex: 1;
}

.ct-inv-tag {
    display: inline-block;
    padding: .3rem .75rem;
    background: rgba(193,57,26,.08); color: var(--red);
    font-size: .72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .07em;
    border-radius: var(--r-sm);
    width: fit-content;
}
.ct-inv-tag--dark {
    background: rgba(255,255,255,.1); color: rgba(255,255,255,.7);
}

.ct-inv-body h3 {
    font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
    color: var(--dark);
}
.ct-inv-card--featured .ct-inv-body h3 { color: var(--white); }

.ct-inv-body p {
    font-size: .9rem; color: var(--mid); line-height: 1.7;
}
.ct-inv-card--featured .ct-inv-body p { color: rgba(255,255,255,.55); }

.ct-inv-points {
    display: flex; flex-direction: column; gap: .5rem;
    margin: .25rem 0;
}
.ct-inv-points li {
    display: flex; align-items: center; gap: .55rem;
    font-size: .85rem; color: var(--dark-3);
}
.ct-inv-points li svg { color: var(--red); flex-shrink: 0; }
.ct-inv-points--light li { color: rgba(255,255,255,.65); }
.ct-inv-points--light li svg { color: rgba(193,57,26,.8); }

.ct-inv-btn {
    margin-top: auto;
    width: 100%; justify-content: center;
}
.ct-inv-btn--light {
    background: var(--white); color: var(--dark);
}
.ct-inv-btn--light:hover { background: var(--light); color: var(--dark); box-shadow: 0 8px 24px rgba(0,0,0,.2); }

@media (max-width: 960px) {
    .ct-inv-grid { grid-template-columns: 1fr; }
    .ct-inv-card--featured { transform: none; }
    .ct-inv-card--featured:hover { transform: translateY(-6px); }
}

/* ─── MODALS ─────────────────────────────── */
.bf-modal {
    position: fixed; inset: 0; z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    padding: 1.5rem;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .25s var(--ease-out), visibility .25s;
}
.bf-modal.is-open {
    opacity: 1; visibility: visible; pointer-events: all;
}

.bf-modal-overlay {
    position: absolute; inset: 0;
    background: rgba(10,10,10,.7);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.bf-modal-panel {
    position: relative; z-index: 1;
    background: var(--white);
    border-radius: var(--r-xl);
    padding: clamp(1.75rem, 4vw, 2.5rem);
    width: 100%; max-width: 640px;
    max-height: 90vh; overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px) scale(.98);
    transition: transform .3s var(--ease-out);

    /* custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--red) transparent;
}
.bf-modal-panel::-webkit-scrollbar { width: 5px; }
.bf-modal-panel::-webkit-scrollbar-thumb { background: var(--light-2); border-radius: 99px; }

.bf-modal.is-open .bf-modal-panel {
    transform: translateY(0) scale(1);
}

.bf-modal-close {
    position: absolute; top: 1.25rem; right: 1.25rem;
    width: 32px; height: 32px;
    background: var(--light); color: var(--mid);
    border-radius: var(--r-sm);
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, color .2s;
}
.bf-modal-close:hover { background: var(--light-2); color: var(--dark); }

.bf-modal-header {
    display: flex; align-items: flex-start; gap: 1rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1.5px solid var(--light-2);
    padding-right: 2.5rem;
}
.bf-modal-icon {
    width: 48px; height: 48px; border-radius: var(--r-md);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.bf-modal-icon--red   { background: rgba(193,57,26,.1); color: var(--red); }
.bf-modal-icon--dark  { background: rgba(44,44,44,.08); color: var(--dark); }
.bf-modal-icon--green { background: rgba(10,102,64,.1); color: #0a6640; }

.bf-modal-title {
    font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
    color: var(--dark); margin-bottom: .3rem;
}
.bf-modal-sub { font-size: .88rem; color: var(--mid); line-height: 1.6; }

.bf-modal-form { display: flex; flex-direction: column; gap: 1.1rem; }
.bf-modal-form .form-group input,
.bf-modal-form .form-group select,
.bf-modal-form .form-group textarea { width: 100%; }

.req { color: var(--red); font-size: .8em; }

/* Donate instructions */
.don-instructions {
    background: var(--light);
    border: 1.5px solid var(--light-2);
    border-radius: var(--r-lg);
    padding: 1.5rem;
    margin-bottom: 1.75rem;
}
.don-instr-header {
    display: flex; align-items: center; gap: .6rem;
    font-size: .82rem; font-weight: 700; color: var(--dark-3);
    text-transform: uppercase; letter-spacing: .07em;
    margin-bottom: 1.25rem;
}
.don-instr-header svg { color: var(--red); flex-shrink: 0; }

.don-steps {
    display: flex; flex-direction: column; gap: .85rem;
    padding-left: 0; counter-reset: none;
}
.don-steps li {
    display: flex; align-items: flex-start; gap: .85rem;
    font-size: .9rem; color: var(--dark-3); line-height: 1.6;
}
.don-step-num {
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--red); color: var(--white);
    font-family: var(--font-display); font-size: .72rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: .05rem;
}
.don-highlight {
    font-family: var(--font-display); font-size: .95em;
    color: var(--red); letter-spacing: .03em;
}

.don-paybill-summary {
    display: flex; align-items: center; gap: 1rem;
    background: var(--white);
    border: 1.5px solid rgba(193,57,26,.2);
    border-radius: var(--r-md);
    padding: 1rem 1.25rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
    gap: .75rem;
}
.don-pb-item {
    display: flex; flex-direction: column; gap: .15rem;
    flex: 1; text-align: center; min-width: 80px;
}
.don-pb-item span { font-size: .72rem; color: var(--mid); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.don-pb-item strong { font-family: var(--font-display); font-size: 1rem; font-weight: 800; color: var(--dark); }
.don-pb-sep { width: 1px; height: 36px; background: var(--light-2); flex-shrink: 0; }

.btn-submit--green {
    background: #0a6640;
}
.btn-submit--green:hover {
    background: #064d2f;
    box-shadow: 0 8px 24px rgba(10,102,64,.35);
}

/* ─── TOAST ──────────────────────────────── */
.bf-toast {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 3000;
    display: flex; align-items: center; gap: .75rem;
    padding: .9rem 1.4rem;
    background: var(--dark); color: var(--white);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-xl);
    font-size: .9rem; font-weight: 500;
    transform: translateY(20px); opacity: 0; pointer-events: none;
    transition: transform .3s var(--ease-out), opacity .3s;
    max-width: 340px;
}
.bf-toast.show { transform: translateY(0); opacity: 1; }
.bf-toast-icon {
    width: 28px; height: 28px; border-radius: 50%;
    background: #16a34a; color: var(--white);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 560px) {
    .ct-hero-chips { flex-direction: column; align-items: flex-start; }

    .bf-modal {
        padding: 0;
        align-items: flex-end;
    }

    .bf-modal-panel {
        border-radius: var(--r-xl) var(--r-xl) 0 0;
        max-height: 88vh;          /* slightly less so top rounded corners show */
        width: 100%;
        padding-bottom: calc(1.75rem + env(safe-area-inset-bottom));
    }

    .bf-modal.is-open .bf-modal-panel {
        transform: translateY(0);
    }

    .don-paybill-summary { flex-direction: column; text-align: left; }
    .don-pb-sep { width: 100%; height: 1px; }
    .don-pb-item { text-align: left; }
    .ct-divider-text { font-size: .72rem; white-space: normal; text-align: center; }
}

@media (max-width: 480px) {
    .bf-modal-form .form-row { grid-template-columns: 1fr; }
}