/* =========================================================
   HOMETHERAPY QUIZ
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Helvetica,
        Arial,
        sans-serif;

    background: #f4f1ec;
    color: #252525;

    line-height: 1.5;
}


/* =========================================================
   MAIN LAYOUT
   ========================================================= */

.quiz-wrapper {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 48px 24px;
}

.quiz-card {
    width: 100%;
    max-width: 720px;

    background: #ffffff;

    border: 1px solid #e7e2db;
    border-radius: 24px;

    padding: 52px;

    box-shadow:
        0 18px 50px rgba(40, 35, 30, 0.06);
}


/* =========================================================
   TYPOGRAPHY
   ========================================================= */

.brand {
    margin-bottom: 28px;

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 0.15em;
    text-transform: uppercase;

    color: #77736e;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 22px;

    font-size: 38px;
    line-height: 1.12;
    font-weight: 650;

    letter-spacing: -0.025em;
}

h2 {
    margin-bottom: 22px;

    font-size: 27px;
    line-height: 1.3;
    font-weight: 620;
}

h3 {
    margin-bottom: 10px;

    font-size: 19px;
    line-height: 1.35;
    font-weight: 650;
}

h4 {
    margin-bottom: 8px;

    font-size: 15px;
    font-weight: 650;

    color: #55514d;
}


/* Result formula titles */
#result-title,
#full-result-title {
    font-size: 30px;
    line-height: 1.2;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.intro {
    max-width: 570px;

    margin-bottom: 18px;

    font-size: 19px;
    line-height: 1.6;

    color: #46423e;
}

.quiz-meta {
    margin-bottom: 34px;

    font-size: 14px;

    color: #7a756f;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.primary-button,
.secondary-button {
    min-height: 52px;

    padding: 14px 26px;

    border-radius: 12px;

    font-family: inherit;
    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.08s ease;
}

.primary-button {
    border: 1px solid #272624;

    background: #272624;
    color: #ffffff;
}

.primary-button:hover {
    background: #3b3936;
    border-color: #3b3936;
}

.primary-button:active,
.secondary-button:active {
    transform: translateY(1px);
}

.secondary-button {
    border: 1px solid #d5d0ca;

    background: #ffffff;
    color: #3f3c38;
}

.secondary-button:hover {
    background: #f7f5f2;
    border-color: #bcb6af;
}

.primary-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}


/* =========================================================
   PROGRESS
   ========================================================= */

.progress-header {
    display: flex;
    justify-content: flex-end;

    margin-bottom: 10px;

    font-size: 13px;
    font-weight: 600;

    color: #77736e;
}

.progress-track {
    width: 100%;
    height: 5px;

    margin-bottom: 38px;

    overflow: hidden;

    background: #ebe7e1;

    border-radius: 999px;
}

.progress-bar {
    width: 0;
    height: 100%;

    background: #363330;

    border-radius: 999px;

    transition: width 0.3s ease;
}


/* =========================================================
   QUESTIONS
   ========================================================= */

#question-text {
    margin-bottom: 30px;
}

.answers {
    display: grid;
    gap: 12px;
}

.answer-button {
    width: 100%;

    padding: 18px 20px;

    border: 1px solid #dfdad4;
    border-radius: 14px;

    background: #ffffff;
    color: #302e2b;

    font-family: inherit;
    font-size: 16px;
    line-height: 1.45;
    text-align: left;

    cursor: pointer;

    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        transform 0.08s ease;
}

.answer-button:hover {
    border-color: #8c867f;
    background: #faf9f7;
}

.answer-button:active {
    transform: translateY(1px);
}

.answer-button.selected {
    border-color: #302e2b;
    background: #f1efeb;
}

.navigation {
    margin-top: 32px;
}


/* =========================================================
   SHORT RESULT
   ========================================================= */

.result-label {
    margin-bottom: 14px;

    font-size: 13px;
    font-weight: 650;

    letter-spacing: 0.11em;
    text-transform: uppercase;

    color: #817c75;
}

#result-title {
    margin-bottom: 38px;
}

.result-section {
    padding: 22px 0;

    border-top: 1px solid #ece8e3;
}

.result-section:last-of-type {
    border-bottom: 1px solid #ece8e3;
}

.result-section p {
    margin-bottom: 0;

    font-size: 16px;
    line-height: 1.6;

    color: #45413d;
}


/* =========================================================
   LEAD FORM
   ========================================================= */

.lead-section {
    margin-top: 42px;

    padding: 32px;

    background: #f7f4ef;

    border: 1px solid #e6e0d8;
    border-radius: 18px;
}

.lead-section h2 {
    margin-bottom: 12px;
}

.lead-intro {
    margin-bottom: 26px;

    max-width: 520px;

    font-size: 16px;
    line-height: 1.55;

    color: #605b55;
}

#lead-form {
    display: grid;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;

    gap: 7px;
}

.form-group label {
    display: block;

    font-size: 14px;
    font-weight: 600;

    color: #403d39;
}

.form-group input {
    display: block;

    width: 100%;
    min-height: 54px;

    padding: 14px 16px;

    border: 1px solid #d1cbc4;
    border-radius: 11px;

    outline: none;

    background: #ffffff;
    color: #292724;

    font-family: inherit;
    font-size: 16px;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.form-group input::placeholder {
    color: #a19c96;
}

.form-group input:focus {
    border-color: #55504b;

    box-shadow:
        0 0 0 3px rgba(60, 55, 50, 0.08);
}

#full-result-button {
    width: fit-content;

    margin-top: 4px;
}

.form-message {
    min-height: 1px;
    margin: 0;

    font-size: 14px;

    color: #8b3d35;
}


/* =========================================================
   FULL RESULT
   ========================================================= */

#full-result {
    margin-top: 12px;
}

#full-result-title {
    margin-bottom: 38px;
}

.full-result-section {
    margin-top: 28px;

    padding: 30px;

    border: 1px solid #e6e1db;
    border-radius: 18px;

    background: #ffffff;
}

.full-result-section > h2 {
    margin-bottom: 8px;

    font-size: 14px;
    font-weight: 650;

    letter-spacing: 0.09em;
    text-transform: uppercase;

    color: #837e78;
}

.full-result-section > h3 {
    margin-bottom: 14px;

    font-size: 26px;
}

.full-result-section > p {
    font-size: 16px;
    line-height: 1.65;

    color: #48443f;
}

.result-combination {
    margin-top: -6px;
    margin-bottom: 18px;

    font-size: 14px !important;
    font-weight: 600;

    color: #77716b !important;
}

.full-result-subsection {
    margin-top: 24px;
    padding-top: 22px;

    border-top: 1px solid #eee9e4;
}

.full-result-subsection p {
    margin-bottom: 0;

    line-height: 1.6;
}

.full-result-subsection ul {
    margin: 12px 0 0;

    padding-left: 22px;
}

.full-result-subsection li {
    margin-bottom: 8px;

    line-height: 1.5;
}


/* =========================================================
   CONSULTATION
   ========================================================= */

.consultation-section {
    margin-top: 36px;

    padding: 32px;

    background: #f3f0ea;

    border-radius: 18px;
}

.consultation-section h2 {
    margin-bottom: 12px;
}

.consultation-section p {
    max-width: 560px;

    line-height: 1.6;

    color: #504c47;
}

.consultation-section .quiz-meta {
    margin-top: 12px;
    margin-bottom: 0;

    font-size: 13px;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

button:focus-visible,
input:focus-visible {
    outline: 2px solid #383532;
    outline-offset: 3px;
}


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

.hidden {
    display: none !important;
}


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

@media (max-width: 640px) {

    .quiz-wrapper {
        min-height: 100vh;

        align-items: flex-start;

        padding: 0;
    }

    .quiz-card {
        min-height: 100vh;

        border: none;
        border-radius: 0;

        padding: 32px 22px 46px;

        box-shadow: none;
    }

    .brand {
        margin-bottom: 22px;
    }

    h1 {
        font-size: 31px;
    }

    #result-title,
    #full-result-title {
        font-size: 26px;
        line-height: 1.22;
    }

    h2 {
        font-size: 23px;
    }

    .intro {
        font-size: 17px;
    }

    .answer-button {
        min-height: 56px;

        padding: 16px 17px;
    }

    .lead-section {
        margin-left: -4px;
        margin-right: -4px;

        padding: 24px 20px;
    }

    #full-result-button {
        width: 100%;
    }

    .full-result-section {
        padding: 24px 20px;
    }

    .full-result-section > h3 {
        font-size: 23px;
    }

    .consultation-section {
        padding: 24px 20px;
    }

}
.consultation-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;

    margin-top: 8px;
}

.consultation-button:hover,
.consultation-button:focus,
.consultation-button:visited {
    color: #ffffff;
    text-decoration: none;
}