/* =======================================
   EventForm – Design Tokens (Global)
   ======================================= */

/* Root-level CSS variables.
   Any page that includes app.css can use these. */
:root {
    /* Brand palette */
    --ef-orange:        #FA781F;
    --ef-dark-slate:    #2F373E;

    --ef-bg-body:       #050608;
    --ef-bg-card:       #10131A;
    --ef-bg-panel:      #131721;

    --ef-border:        #272B33;
    --ef-text-main:     #F7F8FA;
    --ef-text-muted:    #9DA3AF;

    /* Radii & shadows for consistent look */
    --ef-radius-lg:     18px;
    --ef-radius-md:     12px;
    --ef-radius-sm:     6px;
    --ef-shadow-soft:   0 18px 45px rgba(0, 0, 0, 0.40);
}

/* Base body styling (so every page feels consistent) */
body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    background-color: var(--ef-bg-body);
    color: var(--ef-text-main);
}

/* Example utility classes – optional but handy */
.ef-card {
    background: var(--ef-bg-card);
    border-radius: var(--ef-radius-lg);
    border: 1px solid var(--ef-border);
    box-shadow: var(--ef-shadow-soft);
}

.ef-accent {
    color: var(--ef-orange);
}

.ef-muted {
    color: var(--ef-text-muted);
}

/* ============================================
   Global Alert Styles (Success / Error / Info)
   ============================================ */

/* Success */
.ef-auth-alert-success,
.ef-alert-success {
    background: #0f3a2a;
    color: #f7f8fa;
    border: 1px solid #2ecc71;
}

.ef-auth-alert-success a,
.ef-alert-success a {
    color: #f7f8fa;
    text-decoration: underline;
}

.ef-auth-alert-success a:hover,
.ef-alert-success a:hover {
    color: #ffffff;
    text-decoration: none;
}

/* Error */
.ef-auth-alert-error,
.ef-alert-error {
    background: rgba(231, 76, 60, 0.15);
    color: #f9b1ac;
    border: 1px solid rgba(231, 76, 60, 0.5);
}

.ef-auth-alert-error a,
.ef-alert-error a {
    color: #f9b1ac;
    text-decoration: underline;
}

/* Info (optional – if you use it anywhere) */
.ef-alert-info {
    background: rgba(52, 152, 219, 0.15);
    color: #cce9ff;
    border: 1px solid rgba(52, 152, 219, 0.5);
}


/* ============================
   EventForm — Cookie Banner
   ============================ */

.ef-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 1.5rem;
    padding: 0 1.5rem;
    z-index: 9999;
    /* JS sets display:block when needed */
}

.ef-cookie-banner-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    background: #10131A; /* matches dark card style */
    box-shadow: 0 18px 45px rgba(15, 18, 26, 0.75);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #F7F8FA;
}

.ef-cookie-banner-text {
    margin: 0;
    line-height: 1.5;
    flex: 1;
}

/* Make the link orange to match brand */
.ef-cookie-banner a {
    color: var(--ef-orange);
    text-decoration: underline;
}

.ef-cookie-banner a:hover {
    text-decoration: none;
}

/* Keep the button tight on the right */
.ef-cookie-banner-actions {
    flex-shrink: 0;
}

/* Mobile: stack text and button */
@media (max-width: 640px) {
    .ef-cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .ef-cookie-banner-actions {
        width: 100%;
    }

    .ef-cookie-banner-actions .ef-btn {
        width: 100%;
    }
}

/* Style the Data Policy link to match the EventForm palette */

.ef-form-group--policy {
    margin-bottom: 1.25rem; /* or 1.5rem if you want more */
}

.ef-form-group--policy a {
    color: var(--ef-orange);
    text-decoration: underline;
}

.ef-form-group--policy a:hover {
    text-decoration: none;
}
