﻿/* ===== TeleNeo Web Fonts ===== */

@font-face {
    font-family: "TeleNeo";
    src: url("/fonts/TeleNeoWeb-Thin.woff2") format("woff2"), url("/fonts/TeleNeoWeb-Thin.woff") format("woff");
    font-weight: 100;
    font-style: normal;
    font-display: optional;
}

@font-face {
    font-family: "TeleNeo";
    src: url("/fonts/TeleNeoWeb-Regular.woff2") format("woff2"), url("/fonts/TeleNeoWeb-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: optional;
}

@font-face {
    font-family: "TeleNeo";
    src: url("/fonts/TeleNeoWeb-Medium.woff2") format("woff2"), url("/fonts/TeleNeoWeb-Medium.woff") format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: optional;
}

@font-face {
    font-family: "TeleNeo";
    src: url("/fonts/TeleNeoWeb-Bold.woff2") format("woff2"), url("/fonts/TeleNeoWeb-Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: optional;
}

@font-face {
    font-family: "TeleNeo";
    src: url("/fonts/TeleNeoWeb-ExtraBold.woff2") format("woff2"), url("/fonts/TeleNeoWeb-ExtraBold.woff") format("woff");
    font-weight: 800;
    font-style: normal;
    font-display: optional;
}

:root {
    --tm-pink: #e20074;
    --text: #111;
    --muted: #6b6b6b;
    --bg: #ffffff;
    /* input fill like prod */
    --input-fill: #f2f6ff;
    --input-fill-focus: #eaf1ff;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    background: #fff;
    font-family: "TeleNeo", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text);
    font-synthesis: none;
}

/* ---- Page shell ---- */
.page {
    min-height: 100vh;
    padding: 32px 16px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ---- Brand ---- */
.brand {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.brand-logo {
    height: 32px;
    width: auto;
}

/* ---- Card ---- */
.card {
    width: 485px;
    /* tuned to match prod proportions */
    max-width: calc(100% - 32px);
    padding: 56px 56px;
    border: 1px solid #d6d6d6;
    background: var(--bg);
}

/* ---- Typography ---- */
.title {
    font-size: 31px;
    line-height: 1.2;
    font-weight: 800;
    /* bolder like prod */
    letter-spacing: -0.005em;
    margin: 0 0 16px 0;
    text-align: center;
}

.subtitle {
    font-size: 14px;
    margin: 0 auto 52px auto;
    color: var(--muted);
    text-align: center;
    max-width: 260px;
    /* force 2-line wrap like prod */
}

.subtitle,
.ln-modal__subtitle,
.ln-modal__list {
    font-weight: 400;
    color: #6b6b6b;
}


/* ---- Form layout ---- */
.form {
    max-width: 360px;
    margin: 8px auto 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.phone-field {
    width: 100%;
    margin: 0;
    overflow: visible;
}

.label {
    font-size: 11px;
    color: #7a7a7a;
    margin-bottom: 10px;
    text-align: left;
}

.input-wrap {
    position: relative;
    display: block;
}

.input {
    width: 100%;
    border: 0;
    outline: none;
    font-size: 16px;
    padding: 12px 44px 12px 10px;
    /* left padding + room for icon */
    background: var(--input-fill);
    /* filled background even when not focused */
    border-radius: 2px;
    color: var(--text);
    box-shadow: none;
    /* explicit baseline */
    -webkit-appearance: none;
    /* normalized across browsers */
}

    .input::placeholder {
        color: #9aa6b2;
    }

/* If the original site removes input fill on some "web mode", force it consistently:
   (This avoids visual drift when fonts/web-mode toggles)
*/
.input,
.card {
    background-clip: padding-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Underline: gray normally, magenta on focus like prod */
.underline {
    display: block;
    height: 1px;
    background: #8c8c8c;
    opacity: 0.55;
    margin-top: 6px;
}

.phone-field:focus-within .underline {
    background: var(--tm-pink);
    opacity: 1;
}

.phone-field:focus-within .label {
    color: var(--tm-pink);
}

.phone-field:focus-within .input {
    background: var(--input-fill-focus);
}

.valid-icon {
    position: absolute;
    right: 12px;
    /* inside the input */
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    display: none;
    /* shown by JS or state class */
    pointer-events: none;
}

    .valid-icon svg {
        width: 22px;
        height: 22px;
        fill: #1aa83a;
    }

/* show the icon when the input/field is valid.
   Toggle a class in the DOM like .phone-field.is-valid (JS) or use :valid if native validation suits.
*/
.phone-field.is-valid .valid-icon,
.phone-field .valid-icon.show {
    display: block;
}

/* ---- Fine print + link ---- */
.fineprint {
    margin: 10px 0 0 0;
    font-size: 10px;
    line-height: 1.5;
    color: #7a7a7a;
}

.link {
    color: #2b2b2b;
    text-decoration: underline;
}

/* ---- Button ---- */
.cta {
    align-self: flex-end;
    margin-top: 36px;
    width: 200px;
    padding: 12px 14px;
    border: none;
    border-radius: 2px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: not-allowed;
}

    .cta:disabled {
        background: #f4f4f4;
        color: #bcbcbc;
    }

    .cta:enabled {
        background: var(--tm-pink);
        color: #fff;
        cursor: pointer;
    }

/* ---- Validation message styling (optional but helpful) ---- */
.field-validation-error,
.validation-summary-errors {
    color: #b00020;
    font-size: 11px;
    margin-top: 8px;
}

/* ---- Mobile ---- */
@media (max-width: 720px) {
    .card {
        padding: 40px 22px;
    }

    .cta {
        width: 100%;
        align-self: stretch;
    }
}

/* ---- Modal-like NonSubscriber page ---- */
.modal-page {
    background: #7f7f7f;
    /* grey overlay feel */
    width: 100%;
}

.modal-card {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.modal-subtitle {
    max-width: 360px;
    margin-bottom: 60px;
}

.modal-actions {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
}

.modal-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-label {
    margin: 0;
}

.btn-secondary {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #bdbdbd;
    border-radius: 2px;
    background: #fff;
    color: #2b2b2b;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    width: fit-content;
}

.cta-inline {
    margin-top: 0;
    width: auto;
    padding: 10px 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Anchor styled like CTA button (always active) */
.cta-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tm-pink);
    color: #fff;
    text-decoration: none;
    border-radius: 2px;
    font-size: 13.5px;
    font-weight: 600;
    padding: 10px 14px;
    height: 40px;
    min-width: 90px;
    cursor: pointer;
}

.pin-subtitle {
    margin: 0;
    text-align: center;
    max-width: none;
}

.phone-display {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    margin: 8px 0 26px;
}

.pin-block {
    max-width: 360px;
    margin: 0 auto;
}

/* ===== PIN page ===== */

.pin-subtitle {
    margin: 0;
    text-align: center;
    max-width: none;
}

.phone-display {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    margin: 8px 0 26px;
}

.pin-block {
    max-width: 360px;
    margin: 0 auto;
}

    .pin-block .field-error,
    .pin-block .validation-summary-errors {
        text-align: left;
        width: 100%;
        max-width: 360px;
    }

/* Actions row: right aligned, bottoms aligned (prod-like) */
.pin-actions {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    /* important */
    gap: 18px;
    margin-top: 16px;
    width: 100%;
}

/* Remove default form spacing and make forms align like inline elements */
.resend-form,
.verify-form {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: flex-end;
}

/* Resend looks like link but aligns vertically with Verify */
.resend-btn {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    color: #4a4a4a;
    text-decoration: underline;
    cursor: pointer;
    height: 34px;
    /* match verify height */
    display: inline-flex;
    align-items: center;
    /* vertical center */
    line-height: 1;
}

/* Verify button on PIN page must NOT inherit the big .cta sizing */
.pin-verify-btn {
    /* override .cta */
    width: 64px !important;
    min-width: 64px !important;
    height: 34px !important;
    padding: 0 !important;
    margin-top: 0 !important;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Ensure cta doesn't push things down inside the pin actions row */
.pin-actions .cta {
    width: auto;
    margin-top: 0 !important;
    align-self: auto;
}

/* Helper text below: right aligned like prod */
.pin-help {
    text-align: right;
    margin-top: 10px;
    color: #7a7a7a;
}

.field-error {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    color: #b00020;
}

.pin-resent {
    text-align: center;
    margin: 0 0 10px;
}

/* ---- Offer Code screen ---- */
.code-card {
    padding-bottom: 44px;
}

.code-title {
    margin-bottom: 22px;
}

/* code + copy button row */
.code-row {
    display: flex;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    max-width: 360px;
    margin: 0 auto 14px;
}

.code-box {
    flex: 1 1 auto;
    border: 1px solid #d6d6d6;
    background: #fff;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.06em;
    user-select: all;
}

.copy-btn {
    width: 64px;
    height: 52px; /* match input */
    border: 0;
    border-radius: 0;
    background: var(--tm-pink);
    color: #fff;
    font-size: 13px;
    font-weight: 400; /* lighter text */
    cursor: pointer;
}

/* Copy button success state */
.copy-btn--copied {
    background: #2fb34c !important; /* green success */
    color: #fff !important;
}


.code-steps {
    max-width: 360px;
    margin: 10px auto 0;
    padding-left: 18px;
    color: #7a7a7a;
    font-size: 10px;
    line-height: 1.55;
}

.code-actions {
    display: flex;
    justify-content: flex-end;
    max-width: 360px;
    margin: 18px auto 0;
}

/* Back button on this screen is a smaller disabled-looking button in prod */
.back-btn {
    margin-top: 18px;
    min-width: 220px;
    height: 48px;
    padding: 0 18px;
    font-size: 16px;
    font-weight: 600;
}

.back-btn--disabled {
    background: #f4f4f4;
    color: #bcbcbc;
    cursor: not-allowed;
    pointer-events: none;
}

/* ViewCode – make 3-step instructions larger */
.code-instructions li {
    font-size: 13.5px;
    line-height: 1.55;
    margin-bottom: 6px;
}


/* Overlay modal (Ineligible) */
.ln-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 72px;
    z-index: 1000;
}

.ln-modal {
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
    width: min(560px, calc(100% - 40px));
    padding: 28px 36px;
}

.ln-modal--ineligible .ln-modal__title {
    font-size: 34px;
    line-height: 1.15;
    margin: 0 0 18px 0;
    font-weight: 700;
    text-align: center;
}

.ln-modal--ineligible .ln-modal__subtitle {
    margin: 0 0 16px 0;
    font-weight: 400;
    color: #6b6b6b;
}

.ln-modal--ineligible .ln-modal__list {
    margin-left: 0;
    padding-left: 18px;
    /* controlled bullet indent */
    line-height: 1.6;
    font-weight: 400;
    color: #6b6b6b;
}

    .ln-modal--ineligible .ln-modal__list li {
        margin-bottom: 6px;
    }

.ln-modal--ineligible .ln-modal__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 12px;
}

.ln-modal--ineligible .ln-modal__link {
    font-size: 13px;
    font-weight: 500;
    color: var(--tm-pink);
    text-decoration: underline;
    line-height: 1;
}


.ln-modal--ineligible .ln-modal__cta {
    display: inline-block;
    padding: 10px 16px;
    background: #e20074;
    /* tmo pink */
    color: #fff;
    text-decoration: none;
}

/* Error page specific layout */
.error-page {
    min-height: 100vh;
    /* full height */
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    padding: 32px 16px;
    box-sizing: border-box;
}

    /* push the brand/logo up a little */
    .error-page .brand {
        margin-top: 18px;
    }

/* bigger, centered card like design */
.error-card {
    margin-top: 36px;
    max-width: 600px;
    /* enough to look like your mock */
    width: 100%;
    padding: 40px 36px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
    border-radius: 2px;
}

/* title + subtitle sizing */
.error-title {
    font-size: 32px;
    /* matches large headline */
    margin-bottom: 8px;
}

.error-subtitle {
    margin-top: 0;
    margin-bottom: 32px;
    color: #6b6b6b;
    font-size: 15px;
    line-height: 1.5;
}

/* center action and make CTA wide like mock */
.error-actions {
    display: flex;
    justify-content: center;
}

.error-cta {
    min-width: 300px;
    display: inline-block;
    text-align: center;
    padding: 12px 18px;
}

/* small responsive tweak */
@media (max-width: 520px) {
    .error-card {
        padding: 28px 18px;
    }

    .error-cta {
        min-width: 220px;
    }
}

/* ============== Error page link fixes ============== */

/* Ensure links inside error card are always clickable and get pointer cursor */
.error-card a,
.error-card .error-cta,
.error-card .error-actions a {
    pointer-events: auto !important;
    cursor: pointer !important;
    text-decoration: none;
    color: var(--tm-pink);
    /* optional — matches brand */
}

    /* Visual hover state */
    .error-card a:hover,
    .error-card .error-cta:hover,
    .error-card .error-actions a:hover {
        text-decoration: none;
        opacity: 0.95;
    }

/* ===============================
   OutOfCodes modal tweaks (reuses ln-modal base)
   =============================== */

.ln-modal--outofcodes {
    /* allow footer to stick to bottom */
    display: flex;
    flex-direction: column;
    min-height: 360px;
    /* gives the “big modal” feel from prod */
}

    /* match the prod headline vibe */
    .ln-modal--outofcodes .ln-modal__title {
        font-size: 34px;
        line-height: 1.15;
        margin: 0 0 18px 0;
        font-weight: 700;
        text-align: center;
    }

    /* lighter body copy + centered like prod */
    .ln-modal--outofcodes .ln-modal__subtitle {
        margin: 0 auto 0 auto;
        max-width: 420px;
        text-align: center;
        color: #6b6b6b;
        font-weight: 400;
        line-height: 1.6;
    }

    /* push Close button to bottom-right */
    .ln-modal--outofcodes .ln-modal__actions {
        margin-top: auto;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding-top: 18px;
    }

    /* ensure Close looks like the pink button */
    .ln-modal--outofcodes .ln-modal__cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 40px;
        padding: 0 18px;
        background: var(--tm-pink);
        color: #fff;
        text-decoration: none;
        font-size: 13.5px;
        font-weight: 600;
        border-radius: 2px;
    }

        .ln-modal--outofcodes .ln-modal__cta:hover {
            opacity: 0.95;
        }

/* PIN helper text under the input */
.pin-hint {
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.3;
    color: #6b6b6b;
    /* matches your muted */
}

/* Ensure Back to tickets anchor looks like a button */
.code-actions .cta-link {
    text-decoration: none;
}

    .code-actions .cta-link:hover {
        text-decoration: none;
    }
