/* ================================================================
   Bluemint_MillaMax – Landing page styles
   ================================================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body.millamax-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    background: #3a4a38;
    color: #fff;
}

/* ── Wrapper / full-viewport layout ───────────────────────────── */
.millamax-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ── Background image ─────────────────────────────────────────── */
.millamax-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/milla_max_background.png');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    z-index: 0;
}

/* slight dark overlay on the left so text is readable */
.millamax-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(40, 55, 38, 0.72) 0%,
        rgba(40, 55, 38, 0.45) 55%,
        rgba(40, 55, 38, 0.10) 100%
    );
}

/* ── Content panel ────────────────────────────────────────────── */
.millamax-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 48px 24px 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;

    @media (max-width: 1200px) {
        gap: 16px;
    }
}

/* ── Tagline ──────────────────────────────────────────────────── */
.millamax-tagline {
    font-weight: 400;
    font-style: normal;
    color: rgb(255, 255, 255);
    letter-spacing: 9px;
    margin-bottom: 40px;
    font-size: clamp(14px, 4vw, 36px);

    @media (max-width: 768px) {
        letter-spacing: 0.28em;
        text-transform: uppercase;
        color: #fff;
    }
}

/* ── Countdown ────────────────────────────────────────────────── */
.millamax-countdown {
    display: flex;
    gap: 4px;
    justify-content: space-between;
    margin-bottom: 40px;
    width: 100%;
    max-width: 1200px;
}

.millamax-countdown__block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.millamax-countdown__number {
    font-size: clamp(32px, 18vw, 170px);
    font-weight: 700;
    line-height: 1;
    color: #fff;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.36);
    font-family: Ubuntu;
}

.millamax-countdown__label {
    font-size: clamp(14px, 4vw, 32px);
    font-weight: 400;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.85);
    margin-top: 4px;
    text-transform: lowercase;
}

.millamax-launched {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
}

.millamax-extra-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;

    &.top {
        display: none;
    }

    @media (max-width: 1200px) {
        justify-content: center;

        &.bottom {
            display: none;
        }

        &.top {
            display: flex;
        }

        img {
            display: none;
        }
    }
}

/* ── CTA text ─────────────────────────────────────────────────── */
.millamax-cta-text {
    font-size: clamp(14px, 4vw, 36px);
    font-weight: 500;
    line-height: 1.45;
    color: #fff;
    margin-bottom: 28px;
    max-width: 660px;
}

/* ── Form ─────────────────────────────────────────────────────── */
.millamax-form-wrap {
    width: 100%;
    max-width: 750px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.millamax-email-input {
    width: 100%;
    padding: 16px 22px;
    border-radius: 20px;
    border: none;
    background: rgba(255,255,255,0.93);
    color: #333;
    font-size: 16px; /* 16px prevents iOS zoom */
    outline: none;
    transition: background 0.2s;
    box-shadow: inset 0px 2px 3px #dddddd;
    -webkit-box-shadow: inset 0px 2px 3px #dddddd;
    -moz-box-shadow: inset 0px 2px 3px #dddddd;
}

.millamax-email-input::placeholder {
    color: #aaa;
}

.millamax-email-input:focus {
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.4);
}

.millamax-submit-btn {
    width: 100%;
    padding: 17px 80px;
    border-radius: 20px;
    border: none;
    background: #f2eaaa;
    color: #222;
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    max-width: max-content;
    height: 50px;
}

.millamax-submit-btn:hover {
    background: #dfd07a;
}

.millamax-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.millamax-error {
    color: #ffcdd2;
    font-size: 13px;
    text-align: center;
    padding: 0 8px;
}

.millamax-success {
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 13px;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    height: 50px;
}

#millamax-form-area {
    position: relative;

    @media (min-width: 1200px) {
        button {
            position: absolute;
            right: 0;
        }
    }

    @media (max-width: 1200px) {
        display: flex;
        flex-direction: column;
        gap: 20px;
        max-width: 380px;
        margin: 0 auto;

        button {
            max-width: unset;
        }
    }
}

/* ── Mobile tweaks ────────────────────────────────────────────── */
@media (max-width: 480px) {
    .millamax-content {
        padding: 40px 10px 48px;
        justify-content: flex-start;
        padding-top: 60px;
    }

    .millamax-countdown {
        gap: 2px;
    }
}
