/*
 * MTN Ghana LuckyQuiz - home / subscribe page
 *
 * Replaces the baked-in hero and prize artwork with live markup, so the
 * displayed price always comes from config/mtn.php and can never drift from
 * what MTN actually charges.
 *
 * Palette is the two MTN brand colours only - no third hue is introduced.
 */

:root {
    --mtn-yellow: #FFD200;
    --mtn-yellow-soft: #FFDE47;
    --mtn-navy: #01214d;
    --mtn-navy-deep: #011737;
    --mtn-shadow: #0c3350;
    --lq-gutter: 1.25rem;
}

.lq-page {
    max-width: 414px;
    margin: 0 auto;
    padding-bottom: 2.5rem;
    background-color: var(--mtn-yellow);
    font-family: Roboto, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* ---------------------------------------------------------------- hero --- */

.lq-hero {
    background-color: var(--mtn-navy);
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
    padding: 1.5rem var(--lq-gutter) 1.75rem;
    text-align: center;
}

/*
 * MTN mark: the supplied artwork, not a redrawing.
 *
 * Cropped from the original hero image and optimised to 4.7 KB. Do not
 * substitute a CSS approximation - the wordmark uses a custom typeface that
 * system fonts cannot reproduce, and MTN's brand guidelines require the mark
 * to be used as issued.
 */
.lq-hero__logo {
    display: block;
    width: 104px;
    height: auto;
    margin: 0 auto 0.875rem;
}

/*
 * Sticker lettering: hard navy outline plus a solid offset, no blur.
 * Mirrors the treatment in the original brand artwork, but as live text.
 */
.lq-wordmark {
    margin: 0;
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: -0.02em;
    text-transform: none;
}

.lq-wordmark__line {
    display: block;
}

.lq-wordmark__line--1 {
    font-size: 2.375rem;
    color: #fff;
    text-shadow:
        -2px -2px 0 var(--mtn-navy-deep),
         2px -2px 0 var(--mtn-navy-deep),
        -2px  2px 0 var(--mtn-navy-deep),
         2px  2px 0 var(--mtn-navy-deep),
         0    5px 0 var(--mtn-navy-deep);
}

.lq-wordmark__line--2 {
    font-size: 2.875rem;
    color: var(--mtn-yellow);
    text-shadow:
        -2px -2px 0 var(--mtn-navy-deep),
         2px -2px 0 var(--mtn-navy-deep),
        -2px  2px 0 var(--mtn-navy-deep),
         2px  2px 0 var(--mtn-navy-deep),
         0    5px 0 var(--mtn-navy-deep);
}

.lq-hero__tagline {
    margin: 1rem 0 0;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.82);
}

/* --------------------------------------------------------------- forms --- */

.lq-body {
    padding: 1.75rem var(--lq-gutter) 0;
}

.lq-eyebrow {
    margin: 0 0 0.625rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mtn-navy);
    opacity: 0.72;
}

.lq-field {
    margin-bottom: 1.5rem;
}

/* ---------------------------------------------------------------- plans --- */

.lq-plans {
    display: flex;
    gap: 0.75rem;
    border: 0;
    padding: 0;
    margin: 0;
}

.lq-plan {
    flex: 1 1 0;
    margin: 0;
    position: relative;
}

/* Focusable, but the tile itself is the visible control. */
.lq-plan__input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}

.lq-plan__tile {
    display: block;
    height: 100%;
    padding: 0.9375rem 0.625rem 1rem;
    text-align: center;
    cursor: pointer;
    background-color: transparent;
    border: 3px solid var(--mtn-navy);
    border-radius: 18px;
    box-shadow: 0 4px 0 0 var(--mtn-navy);
    transition: background-color 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.lq-plan__currency {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--mtn-navy);
    opacity: 0.7;
}

.lq-plan__amount {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--mtn-navy);
}

.lq-plan__period {
    display: block;
    margin-top: 0.125rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--mtn-navy);
}

.lq-plan__name {
    display: block;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 2px solid rgba(1, 33, 77, 0.18);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mtn-navy);
    opacity: 0.75;
}

/*
 * Selected state inverts the whole tile rather than tinting it. Subtle
 * highlights disappear on a cheap screen in daylight; a full flip does not.
 */
.lq-plan__input:checked + .lq-plan__tile {
    background-color: var(--mtn-navy);
    box-shadow: 0 4px 0 0 var(--mtn-navy-deep);
}

.lq-plan__input:checked + .lq-plan__tile .lq-plan__amount,
.lq-plan__input:checked + .lq-plan__tile .lq-plan__period {
    color: var(--mtn-yellow);
}

.lq-plan__input:checked + .lq-plan__tile .lq-plan__currency,
.lq-plan__input:checked + .lq-plan__tile .lq-plan__name {
    color: var(--mtn-yellow);
    opacity: 0.85;
}

.lq-plan__input:checked + .lq-plan__tile .lq-plan__name {
    border-top-color: rgba(255, 210, 0, 0.32);
}

.lq-plan__input:focus-visible + .lq-plan__tile {
    outline: 3px solid var(--mtn-navy);
    outline-offset: 3px;
}

.lq-plan__tile:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 0 var(--mtn-navy);
}

/* ---------------------------------------------------------------- input --- */

.lq-input {
    display: block;
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-size: 1.0625rem;
    font-weight: 600;
    text-align: center;
    color: var(--mtn-navy);
    background-color: #fff;
    border: 3px solid var(--mtn-navy);
    border-radius: 999px;
    box-shadow: 0 4px 0 0 var(--mtn-shadow);
    -webkit-appearance: none;
    appearance: none;
}

.lq-input::placeholder {
    color: rgba(1, 33, 77, 0.4);
    font-weight: 500;
}

.lq-input:focus {
    outline: 3px solid var(--mtn-navy);
    outline-offset: 3px;
}

.lq-input.is-invalid {
    border-color: #b3001b;
    box-shadow: 0 4px 0 0 #7a0012;
}

.lq-error {
    margin: 0.625rem 0 0;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    background-color: #b3001b;
    border-radius: 12px;
}

/* --------------------------------------------------------------- button --- */

.lq-submit {
    display: block;
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1.125rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: var(--mtn-yellow);
    background-color: var(--mtn-navy);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 5px 0 0 var(--mtn-navy-deep);
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.lq-submit:focus-visible {
    outline: 3px solid var(--mtn-navy);
    outline-offset: 3px;
}

.lq-submit:active {
    transform: translateY(4px);
    box-shadow: 0 1px 0 0 var(--mtn-navy-deep);
}

/* ------------------------------------------------------------ fineprint --- */

.lq-fineprint {
    margin: 1.25rem 0 0;
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--mtn-navy);
    opacity: 0.78;
}

.lq-fineprint a {
    color: var(--mtn-navy);
    font-weight: 700;
    text-decoration: underline;
}

/* --------------------------------------------------------------- motion --- */

@media (prefers-reduced-motion: reduce) {
    .lq-plan__tile,
    .lq-submit {
        transition: none;
    }

    .lq-plan__tile:active,
    .lq-submit:active {
        transform: none;
    }
}

/* --------------------------------------------------- very small screens --- */

@media (max-width: 359px) {
    :root {
        --lq-gutter: 1rem;
    }

    .lq-wordmark__line--1 { font-size: 2rem; }
    .lq-wordmark__line--2 { font-size: 2.5rem; }
    .lq-plan__amount { font-size: 1.75rem; }
}
