/* ═══════════════════════════════════════════
   components.css — reusable UI primitives.
   Loaded after main.css (needs tokens), before sections.css.
   Change once here; every page picks it up.
   ═══════════════════════════════════════════ */


/* ══════════════════════════════════════════════════════
   BUTTONS
   ── .btn          base (layout, font, transition)
   ── .btn-primary  gradient fill, white text
   ── .btn-secondary white bg, border, gray text
   ── .btn-white    white fill + brand text  (on dark bands)
   ── .btn-ghost-white transparent + white border (on dark bands)
   ══════════════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--fb);
    font-size: 15px;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: var(--r-md);
    text-decoration: none;
    cursor: pointer;
    border: none;
    letter-spacing: 0.2px;
    transition: transform 0.15s ease, box-shadow 0.15s ease,
                background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
    background: var(--grad);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(239, 78, 35, .38);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(239, 78, 35, .45);
    color: white;
}

.btn-primary:active  { transform: translateY(0); }
.btn-primary:disabled { opacity: .7; cursor: not-allowed; }

.btn-secondary {
    background: var(--white);
    color: var(--g800);
    border: 1.5px solid var(--g200);
}

.btn-secondary:hover {
    border-color: var(--g300);
    background: var(--g50);
    color: var(--g800);
}

.btn-secondary:active { background: var(--g100); }

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    color: var(--brand);
    font-family: var(--fb);
    font-size: 15px;
    font-weight: 700;
    padding: 14px 26px;
    border: none;
    border-radius: var(--r-md);
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(14, 16, 32, 0.12);
    transition: transform 0.15s, box-shadow 0.15s, color 0.15s;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(14, 16, 32, 0.18);
    color: var(--brand);
}

.btn-ghost-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #fff;
    font-family: var(--fb);
    font-size: 15px;
    font-weight: 600;
    padding: 13px 24px;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--r-md);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-ghost-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}


/* ══════════════════════════════════════════════════════
   DECORATIVE CIRCLES
   Base class used on gradient bands across all pages.
   Sizes / positions set by .deco-1/2/3 (shared) or
   .deco-a/b (teach-band specific, lives in sections.css).
   ══════════════════════════════════════════════════════ */

.deco {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    pointer-events: none;
}

.deco-1 { width: 420px; height: 420px; top: -160px;  right: -80px; }
.deco-2 { width: 280px; height: 280px; bottom: -100px; left: -60px; }
.deco-3 { width: 160px; height: 160px; top: 40px;    left: 42%; background: rgba(255, 255, 255, .04); }


/* ══════════════════════════════════════════════════════
   DOT-GRID OVERLAY
   Add class "has-dot-grid" to any gradient band that
   needs the subtle white dot texture. The element must
   already have position: relative and overflow: hidden.
   ══════════════════════════════════════════════════════ */

.has-dot-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .12) 1.5px, transparent 1.5px);
    background-size: 28px 28px;
    pointer-events: none;
}


/* ══════════════════════════════════════════════════════
   SUCCESS STATE
   Shared across the inline form success (index) and the
   full thank-you page (thanks). Page-specific margins /
   max-widths are overridden in the page CSS files.
   ══════════════════════════════════════════════════════ */

.suc-ring {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--grad);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    box-shadow: 0 8px 28px rgba(239, 78, 35, .35);
    animation: suc-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

@keyframes suc-pop {
    from { transform: scale(0.8); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.suc-ttl {
    font-family: var(--fd);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 400;
    color: var(--g900);
    line-height: 1.2;
    margin-bottom: 16px;
}

.suc-msg {
    font-size: 16px;
    color: var(--g600);
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto;
}


/* ══════════════════════════════════════════════════════
   FORM FIELDS
   All input, select, and textarea base styles. Any page
   that includes a form gets these automatically.
   ══════════════════════════════════════════════════════ */

.fld {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.lbl {
    font-size: 13px;
    font-weight: 600;
    color: var(--g700);
    display: flex;
    align-items: center;
    gap: 5px;
}

.req {
    color: var(--brand);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.opt {
    font-size: 11.5px;
    font-weight: 400;
    color: var(--g400);
}

.fld-err {
    font-size: 12px;
    color: var(--err);
    font-weight: 500;
    display: none;
}

.has-err .fld-err { display: block; }

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
select,
textarea {
    font-family: var(--fb);
    font-size: 14.5px;
    color: var(--g800);
    background: var(--white);
    border: 1.5px solid var(--g200);
    border-radius: var(--r-sm);
    padding: 11px 14px;
    transition: border-color .18s, box-shadow .18s;
    outline: none;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}

input::placeholder { color: var(--g400); }

input:focus,
select:focus,
textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(239, 78, 35, .1);
}

.is-err {
    border-color: var(--err) !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .08) !important;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
    cursor: pointer;
}

textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.65;
}

.tg {
    display: flex;
    gap: 6px;
    align-items: center;
}

.tg select {
    flex: 1;
    min-width: 0;
    padding: 11px 28px 11px 10px;
}

.tsep {
    font-weight: 700;
    color: var(--g400);
    font-size: 16px;
    flex-shrink: 0;
}


/* ══════════════════════════════════════════════════════
   CARD BASE
   White elevated surface used by form card, thank-you
   card, and any future content cards.
   ══════════════════════════════════════════════════════ */

.card {
    background: var(--white);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-xl);
}
