/* ==========================================
   NATURAL DIADEM
   ROOT CAUSE INVESTIGATION PROGRAM
   FIT ASSESSMENT
========================================== */

:root {
    --purple: #3D1F47;
    --purple-light: #5B2F68;
    --gold: #C9A053;
    --gold-dark: #B88F46;
    --cream: #F8F4E8;
    --white: #FFFFFF;
    --text: #444444;
    --muted-text: #666666;
    --border: #ECE4D3;
    --light-gray: #EFEFEF;
    --error: #A63D40;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    padding: 40px 20px;
    overflow-x: hidden;
    font-family: "Lato", sans-serif;
    color: var(--text);
    line-height: 1.8;
    background:
        linear-gradient(
            180deg,
            #F8F4E8 0%,
            #FCFAF5 100%
        );
}

.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* ==========================================
   HERO
========================================== */

.hero {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 45px;
    text-align: center;
}

.logo {
    display: block;
    width: 210px;
    max-width: 100%;
    height: auto;
    margin: 0 auto 20px;
}

.hero h1 {
    font-family: "Playfair Display", serif;
    font-size: 46px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--purple);
}

.hero h1 span {
    display: block;
    margin-top: 10px;
    font-size: 34px;
    color: var(--gold);
}

.hero-text {
    max-width: 700px;
    margin: 30px auto 0;
    font-size: 20px;
    color: var(--muted-text);
}

/* ==========================================
   GENERAL CARDS
========================================== */

.card {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 55px;
    overflow: hidden;
    background: var(--white);
    border-radius: 22px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    animation: fadeUp 0.45s ease;
}

.card h2 {
    margin-bottom: 25px;
    font-family: "Playfair Display", serif;
    font-size: 36px;
    line-height: 1.3;
    color: var(--purple);
    text-align: center;
}

.card h3 {
    margin-bottom: 15px;
    font-family: "Playfair Display", serif;
    color: var(--purple);
}

.card > p {
    margin-bottom: 18px;
}

/* ==========================================
   WELCOME SCREEN
========================================== */

.info-box {
    margin: 35px 0;
    padding: 30px;
    background: #FCFAF5;
    border-left: 6px solid var(--gold);
    border-radius: 14px;
}

.info-box ul {
    list-style: none;
}

.info-box li {
    padding: 10px 0;
    font-size: 18px;
}

.notice {
    margin-bottom: 40px;
    padding: 30px;
    background: #FFF9ED;
    border: 1px solid #E8D9B7;
    border-radius: 15px;
}

.notice p + p {
    margin-top: 15px;
}
/* ==========================================
   CONTACT INFORMATION
========================================== */

.contact-information {
    margin: 35px 0 10px;
    padding: 30px;
    background: #FCFAF5;
    border: 1px solid var(--border);
    border-radius: 15px;
}

.contact-information h3 {
    margin-bottom: 10px;
    font-family: "Playfair Display", serif;
    font-size: 24px;
    color: var(--purple);
}

.contact-information > p {
    margin-bottom: 25px;
    color: var(--muted-text);
}

.form-group {
    margin-bottom: 20px;
}

.form-group:last-of-type {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--purple);
}

.form-group input {
    width: 100%;
    min-height: 54px;
    padding: 13px 16px;
    font-family: "Lato", sans-serif;
    font-size: 17px;
    color: var(--text);
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 10px;
    outline: none;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.form-group input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 160, 83, 0.15);
}
/* ==========================================
   BUTTONS
========================================== */

button {
    min-height: 58px;
    padding: 16px 40px;
    cursor: pointer;
    font-family: "Lato", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--white);
    background: var(--gold);
    border: none;
    border-radius: 50px;
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

button:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.13);
}

button:focus-visible,
.result-button:focus-visible,
.option:focus-within {
    outline: 3px solid rgba(201, 160, 83, 0.45);
    outline-offset: 3px;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
    box-shadow: none;
}

#begin-btn,
#next-btn,
#submit-btn {
    display: block;
    margin: 35px auto 0;
    background: var(--gold);
    color: var(--white);
}

#begin-btn:hover,
#next-btn:hover,
#submit-btn:hover {
    background: var(--gold-dark);
}

.secondary {
    color: #555555;
    background: var(--light-gray);
}

.secondary:hover {
    color: #444444;
    background: #DDDDDD;
}

/* ==========================================
   ASSESSMENT
========================================== */

#assessment {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.progress-wrapper {
    width: 100%;
    margin-bottom: 45px;
}

.progress-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.progress-top small {
    display: block;
    font-size: 14px;
    line-height: 1.4;
    color: #777777;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.progress-top h3 {
    margin-top: 6px;
    font-family: "Playfair Display", serif;
    font-size: 30px;
    line-height: 1.3;
    color: var(--purple);
}

#question-number {
    flex-shrink: 0;
    font-weight: 700;
    color: #777777;
}

.progress-bar {
    width: 100%;
    height: 14px;
    overflow: hidden;
    background: #ECECEC;
    border-radius: 50px;
}

.progress-fill {
    width: 0;
    height: 100%;
    background:
        linear-gradient(
            90deg,
            #C9A053,
            #E0BF74
        );
    border-radius: inherit;
    transition: width 0.35s ease;
}

/* ==========================================
   QUESTION CARD
========================================== */

#question-container {
    width: 100%;
    margin-bottom: 35px;
    padding: 45px;
    overflow: hidden;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.07);
}

.question-card,
.question-header,
.options-container {
    width: 100%;
    min-width: 0;
}

.question-title {
    margin-bottom: 25px;
    overflow-wrap: anywhere;
    font-family: "Playfair Display", serif;
    font-size: 32px;
    line-height: 1.45;
    color: var(--purple);
}

.question-subtitle {
    margin-bottom: 30px;
    color: var(--muted-text);
}

/* ==========================================
   ANSWER OPTIONS
========================================== */

.options-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.option {
    position: relative;
    display: flex;
    align-items: flex-start;
    width: 100%;
    min-width: 0;
    min-height: 64px;
    margin: 0;
    padding: 18px 20px;
    overflow: hidden;
    cursor: pointer;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 14px;
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.option:hover {
    background: #FCFAF5;
    border-color: var(--gold);
    transform: translateY(-1px);
}

.option.selected {
    background: #FFF7E6;
    border-color: var(--gold);
    box-shadow: 0 8px 18px rgba(201, 160, 83, 0.2);
}

.option.disabled {
    pointer-events: none;
    opacity: 0.4;
}

.option input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.option-text {
    display: block;
    width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
    white-space: normal;
    font-size: 17px;
    line-height: 1.55;
    color: var(--text);
}

/* ==========================================
   VALIDATION
========================================== */

.validation-message {
    width: 100%;
    margin-top: 22px;
    padding: 14px 18px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--error);
    background: #FFF3F3;
    border: 1px solid #E8BDBE;
    border-radius: 10px;
}

/* ==========================================
   NAVIGATION
========================================== */

.navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    margin-top: 40px;
}

.navigation button {
    margin-top: 0;
}

/* ==========================================
   REVIEW PAGE
========================================== */

#review-container {
    width: 100%;
    margin-top: 35px;
}

.review-item {
    width: 100%;
    padding: 25px 0;
    border-bottom: 1px solid #E8E8E8;
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.review-question {
    flex: 1;
    margin-bottom: 10px;
    overflow-wrap: anywhere;
    font-family: "Playfair Display", serif;
    font-size: 20px;
    line-height: 1.45;
    color: var(--purple);
}

.review-edit-btn {
    flex-shrink: 0;
    min-height: auto;
    padding: 9px 20px;
    font-size: 15px;
}

.review-answer {
    margin-bottom: 5px;
    font-size: 17px;
    line-height: 1.7;
    color: #555555;
}

.review-answer ul {
    padding-left: 24px;
}

.review-answer li + li {
    margin-top: 6px;
}

/* ==========================================
   RESULTS PAGE
========================================== */

#results-content {
    width: 100%;
    padding: 20px;
    text-align: center;
}

.result-wrapper {
    width: 100%;
}

.result-eyebrow {
    margin-bottom: 12px !important;
    font-size: 14px !important;
    font-weight: 700;
    color: var(--gold-dark);
    letter-spacing: 1px;
    text-transform: uppercase;
}

#results-content .result-title {
    margin-bottom: 20px;
    overflow-wrap: anywhere;
    font-family: "Playfair Display", serif;
    font-size: 42px;
    line-height: 1.3;
    color: var(--purple);
}

#results-content .result-message {
    max-width: 700px;
    margin: 0 auto 35px;
    font-size: 19px;
    line-height: 1.8;
}

.result-details {
    max-width: 720px;
    margin: 0 auto 35px;
    padding: 28px 32px;
    text-align: left;
    background: #FCFAF5;
    border-left: 5px solid var(--gold);
    border-radius: 14px;
}

.result-details ul {
    padding-left: 24px;
}

.result-details li + li {
    margin-top: 10px;
}

.result-next-step {
    max-width: 720px;
    margin: 0 auto 30px;
    padding: 30px;
    background: #FFF9ED;
    border: 1px solid #E8D9B7;
    border-radius: 15px;
}

.result-next-step h3 {
    margin-bottom: 12px;
    font-family: "Playfair Display", serif;
    font-size: 25px;
    color: var(--purple);
}

#results-content .result-next-step p {
    margin-bottom: 25px;
    font-size: 17px;
}

.result-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 16px 36px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--white);
    text-decoration: none;
    background: var(--gold);
    border-radius: 50px;
    transition:
        background-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.result-button:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.13);
}
/* ==========================================
   PROGRAM FIT CONSULTATION
========================================== */

.result-consultation {
    max-width: 720px;
    margin: 35px auto 30px;
    padding: 30px;
    text-align: center;
    background: #FCFAF5;
    border: 1px solid var(--border);
    border-radius: 15px;
}

.result-consultation h3 {
    margin-bottom: 12px;
    font-family: "Playfair Display", serif;
    font-size: 23px;
    color: var(--purple);
}

#results-content .result-consultation p {
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 1.75;
    color: var(--muted-text);
}

.result-consultation .consultation-button {
    color: var(--purple);
    background: transparent;
    border: 2px solid var(--gold);
}

.result-consultation .consultation-button:hover {
    color: var(--white);
    background: var(--gold);
}
.result-disclaimer {
    max-width: 720px;
    margin: 30px auto;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

#results-content .result-disclaimer p {
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #777777;
}

.restart-btn {
    margin-top: 10px;
}

/* ==========================================
   UTILITIES
========================================== */

.hidden {
    display: none !important;
}

/* ==========================================
   ANIMATION
========================================== */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 768px) {
    body {
        padding: 20px 15px;
    }

    .hero {
        margin-bottom: 35px;
    }

    .logo {
        width: 170px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero h1 span {
        font-size: 28px;
    }

    .hero-text {
        font-size: 18px;
    }

    .card {
        padding: 32px 26px;
        border-radius: 18px;
    }

    .card h2 {
        font-size: 31px;
    }

    .progress-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .progress-top h3 {
        font-size: 27px;
    }

    #question-container {
        padding: 32px 26px;
    }

    .question-title {
        font-size: 28px;
    }

    .option {
        min-height: 60px;
        padding: 16px 18px;
    }

    .option-text {
        font-size: 16px;
    }

    .navigation {
        flex-direction: column-reverse;
    }

    .navigation button,
    #begin-btn,
    #submit-btn {
        width: 100%;
    }

    .review-header {
        flex-direction: column;
        gap: 10px;
    }

    .review-edit-btn {
        width: auto;
    }

    #results-content {
        padding: 5px;
    }

    #results-content .result-title {
        font-size: 34px;
    }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 480px) {
    body {
        padding: 15px 10px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero h1 span {
        font-size: 24px;
    }

    .hero-text {
        font-size: 16px;
    }

    .card {
        padding: 27px 20px;
    }

    .card h2 {
        font-size: 28px;
    }

    .info-box,
    .notice {
        padding: 22px 18px;
    }

    .info-box li {
        font-size: 16px;
    }

    .progress-wrapper {
        margin-bottom: 30px;
    }

    .progress-top h3 {
        font-size: 24px;
    }

    #question-container {
        padding: 27px 20px;
        border-radius: 17px;
    }

    .question-title {
        margin-bottom: 18px;
        font-size: 25px;
        line-height: 1.4;
    }

    .question-subtitle {
        margin-bottom: 22px;
    }

    .options-container {
        gap: 13px;
    }

    .option {
        padding: 15px 16px;
        border-radius: 12px;
    }

    .navigation {
        margin-top: 28px;
    }

    button,
    .result-button {
        min-height: 54px;
        padding: 14px 24px;
        font-size: 16px;
    }

    #results-content .result-title {
        font-size: 30px;
    }

    .result-details,
.result-next-step,
.result-consultation,
.contact-information {
    padding: 22px 18px;
}
