/*
 * GED CSS Bundle: signup-modal.bundle.css
 * Auto-generated by scripts/bundle_ged_css.py
 * DO NOT EDIT - Edit source files instead
 *
 * Sources: static/css/shared/brand/brand-tokens.css, signup-modal-base.css, signup-modal-desktop.css, signup-modal-tablet.css, signup-modal-mobile.css, signup-modal-landscape.css
 */

/* === static/css/shared/brand/brand-tokens.css === */

/* THE CLASSROOM BRAND'S TOKENS, for a site whose pages are not built on the
   free class page's stylesheet (the GED site, 2026-10-11). The values are the
   free class page's own (static/css/public/free-class/free-class-base.css
   :root), and `ged_site_env.sh test brand --case tokens` fails the moment the
   two differ, so the brand has one set of values.

   Ink and slate, GOLD as the one accent, Space Grotesk headings, Inter body.
   On :root, never on a page element: a modal renders outside the page root
   and must still resolve every var(). No media query: this opens a bundle. */

:root {
    --fc-ink: #0f172a;
    --fc-ink-2: #1e293b;
    --fc-soft: #475569;
    --fc-muted: #64748b;
    --fc-line: #e2e8f0;
    --fc-line-soft: #f1f5f9;
    --fc-bg: #f8fafc;
    --fc-card: #ffffff;
    --fc-gold: #fdcc05;
    --fc-gold-hover: #f59e0b;
    --fc-gold-deep: #b45309;
    --fc-gold-soft: #fef3c7;
    --fc-ar: #3b82f6;
    --fc-ar-deep: #1e3a8a;
    --fc-green: #047857;
    --fc-green-soft: #d1fae5;
    --fc-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    --fc-shadow-lg: 0 10px 28px rgba(15, 23, 42, 0.12);
    --fc-head: 'Space Grotesk', sans-serif;
    --fc-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --fc-gutter: 24px;
    --fc-max: 1120px;
}


/* === signup-modal-base.css === */

/* GED signup modal — BASE (no media query).
   The ASVAB modal rules (static/css/public/_public-base.css), g-prefixed so no
   host page rule can reach in. Bundled by scripts/bundle_ged_css.py into
   signup-modal.bundle.css (which opens with the brand tokens) and linked
   alongside each page's own bundle.

   ON THE CLASSROOM BRAND (2026-10-11): ink and slate, gold as the one accent
   (the submit is the brand's primary button), Space Grotesk headings, Inter
   body. Every colour and face is a token; the markup and words are unchanged
   (`test brand`). */

/* Scoped box-sizing (the teachers lesson, 2026-07-28): browsers default text
   INPUTS to content-box and BUTTONS to border-box, so a width:100% input
   renders wider than the button under it on any page without a global
   reset. The modal carries its own reset and never leans on the host's. */
.gmodal, .gmodal *,
.gmodal *::before, .gmodal *::after {
    box-sizing: border-box;
}

/* Scroll lock while open. Toggled by the JS as a class, never as a style. */
body.gmodal-open {
    overflow: hidden;
}

.gmodal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.gmodal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.gmodal {
    background: var(--fc-card);
    border-radius: 18px;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
    /* the gold rule the class page's cards carry */
    border-top: 4px solid var(--fc-gold);
    transform: translateY(16px) scale(0.97);
    transition: transform 0.25s ease;
    font-family: var(--fc-body);
    color: var(--fc-ink-2);
    text-align: left;
}

.gmodal-overlay.visible .gmodal {
    transform: translateY(0) scale(1);
}

.gmodal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--fc-line);
}

.gmodal-title {
    font-family: var(--fc-head);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--fc-ink);
    margin: 0;
}

.gmodal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fc-line-soft);
    border: none;
    border-radius: 10px;
    font-size: 1.25rem;
    line-height: 1;
    color: var(--fc-soft);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, color 0.2s;
}

.gmodal-close:hover {
    background: var(--fc-line);
    color: var(--fc-ink);
}

.gmodal-body {
    padding: 24px;
}

/* Steps */
.gmodal-step {
    display: none;
}

.gmodal-step.active {
    display: block;
    animation: gmodalFadeUp 0.25s ease-out;
}

@keyframes gmodalFadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Intro block: the brand line in tracked uppercase, the free class page's
   eyebrow in gold-deep. */
.gstep-intro {
    text-align: center;
    margin-bottom: 22px;
}

.gstep-brand {
    font-family: var(--fc-head);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--fc-gold-deep);
    margin-bottom: 8px;
}

.gstep-title {
    font-family: var(--fc-head);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--fc-ink);
    margin: 0 0 6px;
}

.gstep-text {
    font-size: 0.92rem;
    color: var(--fc-muted);
    margin: 0;
}

.gverify-email {
    font-weight: 600;
    color: var(--fc-ink);
    word-break: break-all;
}

/* Form elements */
.gform-group {
    margin-bottom: 16px;
}

.gform-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fc-ink);
    margin-bottom: 6px;
}

.gform-input {
    width: 100%;
    padding: 13px 15px;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid var(--fc-line);
    border-radius: 12px;
    background: var(--fc-card);
    color: var(--fc-ink);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.gform-input:focus {
    border-color: var(--fc-gold);
    box-shadow: 0 0 0 3px rgba(253, 204, 5, 0.25);
}

.gform-input::placeholder {
    color: #94a3b8;
}

.gform-input.error {
    border-color: #e53e3e;
}

.gcode-input {
    text-align: center;
    font-size: 1.5rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: 8px;
    font-weight: 600;
}

.gform-error {
    font-size: 0.8rem;
    color: #e53e3e;
    margin: 6px 0 0;
}

.gform-error[hidden] {
    display: none;
}

.gform-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.gcheckbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--fc-soft);
    cursor: pointer;
}

.gcheckbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--fc-ink);
}

/* SMS consent (profile step): two unchecked boxes + an always-visible
   disclosure + an (i) that expands INLINE. The disclosure stays visible on
   purpose: it is the text the user consents to and what the Toll-Free
   Verification screenshot is approved on. The card never floats over the
   form, so a screenshot with it open hides nothing. These rules follow
   .gcheckbox-label so they win at equal specificity. */
.gconsent-group {
    margin-top: -4px;
}

.gconsent-label {
    align-items: flex-start;
    line-height: 1.4;
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--fc-ink);
}

.gconsent-label + .gconsent-label {
    margin-top: 8px;
}

.gconsent-label input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 2px;
}

.gconsent-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
}

.gconsent-info {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #cbd5e1;
    border-radius: 50%;
    background: var(--fc-card);
    color: var(--fc-soft);
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.gconsent-info:hover,
.gconsent-info[aria-expanded="true"] {
    border-color: var(--fc-gold);
    color: var(--fc-ink);
    background: var(--fc-gold-soft);
}

.gconsent-fine-print {
    flex: 1;
    margin: 0 0 0 26px;
    font-size: 0.72rem;
    line-height: 1.5;
    color: var(--fc-muted);
}

.gconsent-fine-print a {
    color: var(--fc-soft);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gconsent-fine-print a:hover {
    color: var(--fc-ink);
}

.gconsent-details {
    margin-top: 10px;
    padding: 14px 16px;
    background: var(--fc-bg);
    border: 1px solid var(--fc-line);
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--fc-soft);
    animation: gmodalFadeUp 0.2s ease-out;
}

.gconsent-details[hidden] {
    display: none;
}

.gconsent-details p {
    margin: 0;
}

.gconsent-details p + p {
    margin-top: 8px;
}

.gconsent-details-title {
    font-weight: 600;
    color: var(--fc-ink);
}

.gconsent-details-links a {
    color: var(--fc-ink);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--fc-gold);
    text-underline-offset: 2px;
}

.gconsent-details-links a:hover {
    color: var(--fc-gold-deep);
}

/* Submit: the brand's primary button, gold with ink words. */
.gform-submit {
    position: relative;
    width: 100%;
    padding: 15px;
    background: var(--fc-gold);
    color: var(--fc-ink);
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--fc-head);
    letter-spacing: 0.3px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(253, 204, 5, 0.35);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    margin-top: 8px;
}

.gform-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(253, 204, 5, 0.45);
}

.gform-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.gform-submit.loading {
    color: transparent;
}

.gform-submit.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--fc-ink);
    border-top-color: transparent;
    border-radius: 50%;
    animation: gmodalSpin 0.8s linear infinite;
}

@keyframes gmodalSpin {
    to { transform: rotate(360deg); }
}

/* Resend */
.gresend-link {
    text-align: center;
    margin: 16px 0 0;
    font-size: 0.85rem;
    color: var(--fc-muted);
}

.glink-button {
    background: none;
    border: none;
    color: var(--fc-ink);
    font-weight: 700;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    padding: 0;
    text-decoration: underline;
    text-decoration-color: var(--fc-gold);
    text-underline-offset: 2px;
}

.glink-button:hover {
    color: var(--fc-gold-deep);
}

.glink-button:disabled {
    color: #94a3b8;
    cursor: not-allowed;
    text-decoration: none;
}

/* Success */
.gsuccess-content {
    text-align: center;
    padding: 20px 0;
}

.gsuccess-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: var(--fc-green-soft);
    color: var(--fc-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    animation: gmodalPopIn 0.4s ease-out;
}

@keyframes gmodalPopIn {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.gsuccess-title {
    font-family: var(--fc-head);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--fc-ink);
    margin: 0 0 10px;
}

.gsuccess-text {
    font-size: 0.95rem;
    color: var(--fc-muted);
    margin: 0;
}


/* === signup-modal-desktop.css === */

/* GED signup modal — DESKTOP (the default tier; the base already describes
   it). Kept as a file so every bundle carries the same five tiers. */


/* === signup-modal-tablet.css === */

/* GED signup modal — TABLET (769 to 1024). Required in every bundle so this
   range never falls through to base by accident. */
@media (max-width: 1024px) and (min-width: 769px) {
    .gmodal {
        max-width: 460px;
    }
}


/* === signup-modal-mobile.css === */

/* GED signup modal — MOBILE PORTRAIT (<= 768). A bottom sheet: full width,
   one column of fields, the fine print flush with the boxes. */
@media (max-width: 768px) and (orientation: portrait) {
    .gmodal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .gmodal {
        max-width: 100%;
        max-height: 92vh;
        border-radius: 16px 16px 0 0;
    }

    .gmodal-body {
        padding: 20px;
    }

    .gform-row {
        grid-template-columns: 1fr;
    }

    .gconsent-fine-print {
        margin-left: 0;
    }
}


/* === signup-modal-landscape.css === */

/* GED signup modal — MOBILE LANDSCAPE (<= 768, landscape). Height is the
   constraint: tighter vertical rhythm, the body scrolls inside the sheet. */
@media (max-width: 768px) and (orientation: landscape) {
    .gmodal {
        max-height: 96vh;
        border-radius: 12px;
    }

    .gmodal-header {
        padding: 12px 20px;
    }

    .gmodal-body {
        padding: 16px 20px;
    }

    .gstep-intro {
        margin-bottom: 12px;
    }

    .gform-group {
        margin-bottom: 12px;
    }
}
