/* ═══════════════════════════════════════════════════════════
   Glover Campaign Signup — Front-End Styles
   Brand: Harbor Teal #1F5B6E · Warm Gold #E4A93C · Ink #1A1F24
   ═══════════════════════════════════════════════════════════ */

.gcs-form-wrap {
    --gcs-teal: #1F5B6E;
    --gcs-teal-deep: #164452;
    --gcs-gold: #E4A93C;
    --gcs-gold-deep: #C48E22;
    --gcs-ink: #1A1F24;
    --gcs-cream: #F6F1E6;
    --gcs-cream-deep: #EDE4D0;
    --gcs-coral: #E87A5D;
    --gcs-white: #FFFFFF;
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ─── SHARED INPUT STYLES ──────────────────────────────────── */

.gcs-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(26, 31, 36, 0.12);
    border-radius: 4px;
    background: var(--gcs-white);
    color: var(--gcs-ink);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    -webkit-appearance: none;
    appearance: none;
}

.gcs-input:focus {
    border-color: var(--gcs-teal);
    box-shadow: 0 0 0 3px rgba(31, 91, 110, 0.12);
}

.gcs-input::placeholder {
    color: rgba(26, 31, 36, 0.35);
}

.gcs-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%231F5B6E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

/* ─── LABELS ───────────────────────────────────────────────── */

.gcs-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gcs-ink);
    margin-bottom: 6px;
}

.gcs-req {
    color: var(--gcs-coral);
}

/* ─── BUTTONS ──────────────────────────────────────────────── */

.gcs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--gcs-gold);
    color: var(--gcs-ink);
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    -webkit-appearance: none;
}

.gcs-btn:hover {
    background: var(--gcs-gold-deep);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(228, 169, 60, 0.3);
}

.gcs-btn:active {
    transform: translateY(0);
}

.gcs-btn-full {
    width: 100%;
    padding: 16px 28px;
    font-size: 13px;
    margin-top: 8px;
}

.gcs-btn[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ─── SPINNER ──────────────────────────────────────────────── */

.gcs-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(26, 31, 36, 0.25);
    border-top-color: var(--gcs-ink);
    border-radius: 50%;
    animation: gcs-spin 0.65s linear infinite;
}

.gcs-btn.is-loading .gcs-btn-text { display: none; }
.gcs-btn.is-loading .gcs-spinner { display: inline-block; }

@keyframes gcs-spin {
    to { transform: rotate(360deg); }
}

/* ─── EMAIL FORM LAYOUT ───────────────────────────────────── */

.gcs-row {
    display: flex;
    gap: 12px;
}

.gcs-row .gcs-input {
    flex: 1;
}

.gcs-note {
    font-size: 12px;
    color: rgba(26, 31, 36, 0.45);
    margin-top: 10px;
    text-align: center;
}

/* ─── JOIN FORM LAYOUT ─────────────────────────────────────── */

.gcs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.gcs-field {
    margin-bottom: 16px;
}

.gcs-grid .gcs-field {
    margin-bottom: 0;
}

.gcs-join-wrap .gcs-grid {
    margin-bottom: 16px;
}

/* ─── SUCCESS / ERROR MESSAGES ─────────────────────────────── */

.gcs-message {
    margin-top: 16px;
    padding: 16px 20px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    animation: gcs-fadeUp 0.4s ease both;
}

.gcs-message.is-success {
    background: rgba(31, 91, 110, 0.08);
    border: 2px solid var(--gcs-teal);
    color: var(--gcs-teal);
}

.gcs-message.is-error {
    background: rgba(232, 122, 93, 0.08);
    border: 2px solid var(--gcs-coral);
    color: var(--gcs-coral);
}

@keyframes gcs-fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── DARK BACKGROUND VARIANT ──────────────────────────────── */
/* Add class "gcs-dark" to the wrapper for teal/dark backgrounds */

.gcs-dark .gcs-input {
    background: rgba(246, 241, 230, 0.08);
    border-color: rgba(246, 241, 230, 0.2);
    color: var(--gcs-cream);
}

.gcs-dark .gcs-input:focus {
    border-color: var(--gcs-gold);
    box-shadow: 0 0 0 3px rgba(228, 169, 60, 0.15);
}

.gcs-dark .gcs-input::placeholder {
    color: rgba(246, 241, 230, 0.4);
}

.gcs-dark .gcs-label {
    color: var(--gcs-cream);
}

.gcs-dark .gcs-note {
    color: rgba(246, 241, 230, 0.4);
}

.gcs-dark .gcs-message.is-success {
    background: rgba(228, 169, 60, 0.12);
    border-color: var(--gcs-gold);
    color: var(--gcs-gold);
}

.gcs-dark .gcs-select {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23E4A93C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ─── RESPONSIVE ───────────────────────────────────────────── */

@media (max-width: 600px) {
    .gcs-row {
        flex-direction: column;
    }
    .gcs-grid {
        grid-template-columns: 1fr;
    }
    .gcs-btn {
        width: 100%;
        justify-content: center;
    }
}
