﻿*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    background: var(--bg);
}

:root {
    /* --teal: #00897B;
    --teal-dk: #00695C;
    --teal-lt: #E0F2F1;*/
    --teal: #00b6cf;
    --teal-dk: #008fa3;
    --teal-lt: #E0F7FA;
    
    --navy: #0D1B2A;
    --slate: #546E7A;
    --bg: #F7FAFA;
    --white: #FFFFFF;
    --red: #E53935;
    --gold: #FFB300;
    --radius: 14px;
    --shadow: 0 8px 40px rgba(0,0,0,.10);
    --blue: #00b6cf;
    --blue-dk: #0097b5;
    --blue-glow: rgba(0,182,207,.18);
    --blue-tertiary: #006688;
    --blue-dark-accent: #2d383f;
    --blue-bright-accent: #f2fdfe;
}

.mmrx-wrap {
    min-height: 1vh;
    background: var(--bg);
    font-family: 'DM Sans', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 16px 80px;
}

/* ── HEADER ── */
.mmrx-header {
    width: 100%;
    max-width: 640px;
    padding: 28px 0 12px;
    text-align: center;
}

.mmrx-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--teal-dk);
    letter-spacing: -.5px;
}

    .mmrx-logo span {
        color: var(--navy);
    }

/* ── PROGRESS BAR ── */
.progress-track {
    width: 100%;
    max-width: 560px;
    margin: 20px auto 0;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

    .progress-labels span {
        font-size: .68rem;
        font-weight: 600;
        letter-spacing: .06em;
        text-transform: uppercase;
        color: var(--slate);
        opacity: .6;
        transition: opacity .3s, color .3s;
    }

        .progress-labels span.active {
            opacity: 1;
            color: var(--teal);
        }

.progress-bar-bg {
    height: 6px;
    background: #CFE8E5;
    border-radius: 99px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--teal), #26C6DA);
    border-radius: 99px;
    transition: width .5s cubic-bezier(.4,0,.2,1);
}

/* ── CARD ── */
.mmrx-card {
    width: 100% !important;
    max-width: 650px !important;
    min-width: 650px !important;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px 44px 36px;
    margin-top: 28px;
    animation: fadeUp .4s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-hint {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 6px;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: 8px;
}

.card-sub {
    font-size: .88rem;
    color: var(--slate);
    line-height: 1.55;
    margin-bottom: 26px;
}

/* ── OPTIONS ── */
.opt-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

    .opt-grid.two-col {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

.opt-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: 2px solid #E0ECEA;
    border-radius: 10px;
    background: var(--white);
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: .93rem;
    font-weight: 500;
    color: var(--navy);
    text-align: left;
    transition: all .18s ease;
}

    .opt-btn:hover {
        border-color: var(--teal);
        background: var(--teal-lt);
    }

    .opt-btn.selected {
        border-color: var(--teal);
        background: var(--teal-lt);
        color: var(--teal-dk);
        font-weight: 600;
    }

    .opt-btn .opt-icon {
        width: 26px;
        height: 26px;
        border-radius: 50%;
        border: 2px solid #B2DFDB;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: all .18s;
    }

    .opt-btn.selected .opt-icon {
        background: var(--teal);
        border-color: var(--teal);
        color: #fff;
    }

.opt-icon-check {
    font-size: .7rem;
}

/* ── CHECKBOX MULTI ── */
.check-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    border: 2px solid #E0ECEA;
    border-radius: 10px;
    cursor: pointer;
    font-size: .93rem;
    font-weight: 500;
    color: var(--navy);
    transition: all .18s;
}

    .check-item:hover {
        border-color: var(--teal);
        background: var(--teal-lt);
    }

    .check-item.checked {
        border-color: var(--teal);
        background: var(--teal-lt);
    }

.check-box {
    width: 20px;
    height: 20px;
    border: 2px solid #B2DFDB;
    border-radius: 5px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: .75rem;
    transition: all .18s;
}

.check-item.checked .check-box {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
}

/* ── INPUTS ── */
.field-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.field-row {
    display: grid;
    gap: 12px;
}

    .field-row.cols-3 {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .field-row.cols-2 {
        grid-template-columns: 1fr 1fr;
    }

.field label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--slate);
    margin-bottom: 6px;
}

.field input, .field select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #E0ECEA;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: .95rem;
    color: var(--navy);
    background: var(--white);
    outline: none;
    transition: border-color .18s;
}

    .field input:focus, .field select:focus {
        border-color: var(--teal);
    }

    .field input::placeholder {
        color: #B0BEC5;
    }

/* ── VALIDATION ── */
.err-msg {
    font-size: .8rem;
    color: var(--red);
    margin-top: -10px;
    margin-bottom: 10px;
    font-weight: 500;
}

/* ── BUTTONS ── */
.btn-next {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--teal), var(--teal-dk));
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .04em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 4px 18px rgba(0,137,123,.35);
}

    .btn-next:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 24px rgba(0,137,123,.45);
    }

    .btn-next:active {
        transform: translateY(0);
    }

.btn-back {
    background: none;
    border: none;
    color: var(--slate);
    font-family: 'DM Sans', sans-serif;
    font-size: .88rem;
    cursor: pointer;
    margin-top: 14px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── REVIEW CARD ── */
.review-stat {
    background: var(--teal-lt);
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 18px;
}

    .review-stat .stat-row {
        display: flex;
        justify-content: space-between;
        font-size: .92rem;
        color: var(--navy);
        padding: 4px 0;
    }

        .review-stat .stat-row strong {
            font-weight: 700;
        }

.review-sep {
    border: none;
    border-top: 2px dashed #B2DFDB;
    margin: 10px 0;
}

.review-pct {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--teal-dk);
    margin: 10px 0 4px;
}

.review-pct-label {
    text-align: center;
    font-size: .82rem;
    color: var(--slate);
    margin-bottom: 20px;
}

.consent-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 22px;
    cursor: pointer;
}

.consent-box {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border: 2px solid #B2DFDB;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    margin-left: 4px;
    transition: all .18s;
}

    .consent-box.checked {
        background: var(--teal);
        border-color: var(--teal);
        color: #fff;
    }

.consent-label {
    font-size: .83rem;
    color: var(--slate);
    line-height: 1.55;
}

.hipaa-note {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .78rem;
    color: var(--slate);
    opacity: .8;
    margin-top: 14px;
    justify-content: center;
}

/* ── SUCCESS ── */
.success-wrap {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.success-wrap h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--navy);
    margin-bottom: 10px;
}

.success-wrap p {
    color: var(--slate);
    font-size: .95rem;
    line-height: 1.6;
}

@media(max-width: 520px) {
    .mmrx-card {
        padding: 30px 22px 28px;
    }

    .field-row.cols-3 {
        grid-template-columns: 1fr 1fr;
    }
}












.questionnaire-footer-disclaimer {
    width: 100%;
    max-width: 650px !important;
    min-width: 650px !important;
    /*background-color: var(--off-white);*/
    /*border-top: 1px solid #ddd;*/
    color: var(--navy);
    /*background: var(--blue);*/
    text-align: left;
    padding: 20px 0px 0px;
}

    .questionnaire-footer-disclaimer h2 {
        font-family: 'Cormorant Garamond', serif;
        font-size: clamp(1.8rem, 4vw, 2.8rem);
        font-weight: 700;
        color: var(--navy);
        margin-bottom: 12px;
    }

    .questionnaire-footer-disclaimer p {
        font-size: 10px;
        color: rgba(10,22,40,.7);
        text-align: justify;
        /*margin-bottom: 32px;*/
    }






    /* popup contine or restart */


.resume-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(13, 27, 42, .55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.resume-modal {
    background: var(--white);
    border-radius: 18px;
    padding: 36px 40px 32px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
    border-top: 4px solid var(--blue);
}

.resume-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
}

.resume-modal h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.resume-modal p {
    font-size: .9rem;
    color: var(--slate);
    line-height: 1.6;
    margin-bottom: 24px;
}

.resume-step-badge {
    display: inline-block;
    background: var(--teal-lt);
    color: var(--blue-tertiary);
    font-size: .78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 99px;
    margin-bottom: 20px;
}

.resume-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-resume-yes {
    padding: 13px;
    background: linear-gradient(135deg, var(--blue), var(--blue-dk));
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: .97rem;
    cursor: pointer;
    box-shadow: 0 4px 18px var(--blue-glow);
    transition: opacity .2s, transform .15s;
}

    .btn-resume-yes:hover {
        opacity: .92;
        transform: translateY(-1px);
    }

.btn-resume-no {
    padding: 12px;
    background: none;
    color: var(--slate);
    border: 2px solid #E0ECEA;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}

    .btn-resume-no:hover {
        border-color: var(--blue);
        color: var(--blue-dk);
    }







    /* modal popup */

.policy-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(13, 27, 42, .6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.policy-modal {
    background: #fff;
    border-radius: 16px;
    max-width: 680px;
    width: 100%;
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(0,0,0,.2);
    border-top: 4px solid var(--blue);
}

.policy-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid #E0ECEA;
    flex-shrink: 0;
}

    .policy-modal-header h3 {
        font-family: 'Playfair Display', serif;
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--navy);
        margin: 0;
    }

.policy-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #94A3B8;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background .2s, color .2s;
    line-height: 1;
}

    .policy-close:hover {
        background: #F0F5F5;
        color: var(--navy);
    }

.policy-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    font-size: .9rem;
    line-height: 1.75;
    color: #546E7A;
}

    .policy-modal-body h1,
    .policy-modal-body h2,
    .policy-modal-body h3 {
        font-family: 'Playfair Display', serif;
        color: var(--navy, #0D1B2A);
        margin: 18px 0 8px;
    }

    .policy-modal-body h2 {
        font-size: 1.1rem;
    }

    .policy-modal-body h3 {
        font-size: 1rem;
    }

    .policy-modal-body p {
        margin-bottom: 10px;
    }

    .policy-modal-body a {
        color: var(--blue, #00b6cf);
        text-decoration: underline;
    }

.policy-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 40px 0;
    color: #94A3B8;
}

.policy-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #E0ECEA;
    border-top-color: var(--blue, #00b6cf);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.policy-error {
    color: #E53935;
    text-align: center;
    padding: 30px 0;
}

@media (max-width: 480px) {
    .policy-modal {
        max-height: 90vh;
        border-radius: 12px;
    }
}


