/* =========================================================
   SAMUTRIKA PATTU INSPIRED THEME
========================================================= */

:root {
    --maroon: #64152A;
    --maroon-dark: #43101D;
    --maroon-light: #8A3048;

    --gold: #C89B3C;
    --gold-light: #E4C875;

    --cream: #FFF9EF;
    --ivory: #FFFDF9;

    --text: #2C2022;
    --muted: #75696A;

    --border: #E7D9C7;

    --white: #FFFFFF;

    --success: #2E7D5B;
    --error: #B42318;

    --shadow:
        0 25px 70px rgba(67, 16, 29, 0.12);

    --radius: 18px;
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    min-height: 100vh;

    font-family: "DM Sans", sans-serif;

    color: var(--text);

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(200, 155, 60, 0.08),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 90%,
            rgba(100, 21, 42, 0.08),
            transparent 30%
        ),
        var(--cream);
}


/* =========================================================
   PAGE
========================================================= */

.page-wrapper {
    width: 100%;
    min-height: 100vh;
}


/* =========================================================
   HEADER
========================================================= */

.header {
    width: 100%;

    padding: 22px 6%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(255, 253, 249, 0.94);

    border-bottom: 1px solid var(--border);

    position: sticky;
    top: 0;
    z-index: 20;

    backdrop-filter: blur(14px);
}


.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}


.brand-mark {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    color: var(--white);

    font-family: "Playfair Display", serif;
    font-weight: 700;

    background: var(--maroon);

    box-shadow:
        0 8px 20px rgba(100, 21, 42, 0.2);
}


.brand-name {
    display: flex;
    flex-direction: column;

    line-height: 1.05;

    font-size: 13px;
    letter-spacing: 1.8px;
}


.brand-name span {
    color: var(--maroon);
}


.brand-name strong {
    color: var(--gold);

    font-weight: 700;
}


.assessment-label {
    padding: 8px 14px;

    border: 1px solid rgba(200, 155, 60, 0.45);

    border-radius: 100px;

    color: var(--maroon);

    background: rgba(200, 155, 60, 0.08);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1.2px;
}


/* =========================================================
   MAIN
========================================================= */

.main-container {
    width: min(920px, calc(100% - 32px));

    margin: 0 auto;

    padding: 70px 0 100px;
}


/* =========================================================
   INTRO
========================================================= */

.intro {
    text-align: center;

    margin-bottom: 42px;
}


.eyebrow {
    display: inline-block;

    margin-bottom: 13px;

    color: var(--gold);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2.5px;
}


.intro h1 {
    font-family: "Playfair Display", serif;

    color: var(--maroon-dark);

    font-size: clamp(34px, 5vw, 52px);

    line-height: 1.12;

    margin-bottom: 16px;
}


.intro p {
    max-width: 560px;

    margin: 0 auto;

    color: var(--muted);

    font-size: 15px;

    line-height: 1.7;
}


/* =========================================================
   PROGRESS
========================================================= */

.progress-section {
    margin-bottom: 22px;
}


.progress-top {
    display: flex;
    justify-content: space-between;

    margin-bottom: 9px;

    color: var(--muted);

    font-size: 12px;
    font-weight: 600;
}


.progress-track {
    width: 100%;
    height: 6px;

    overflow: hidden;

    border-radius: 20px;

    background: #EDE4D8;
}


.progress-bar {
    width: 20%;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--maroon),
            var(--gold)
        );

    transition: width 0.35s ease;
}


/* =========================================================
   FORM CARD
========================================================= */

.form-step {
    display: none;

    padding: clamp(25px, 5vw, 44px);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    background: var(--white);

    box-shadow: var(--shadow);

    animation: fadeIn 0.3s ease;
}


.form-step.active {
    display: block;
}


@keyframes fadeIn {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================================
   STEP HEADING
========================================================= */

.step-heading {
    display: flex;
    align-items: flex-start;

    gap: 15px;

    padding-bottom: 27px;

    margin-bottom: 30px;

    border-bottom: 1px solid #F0E7DC;
}


.step-number {
    min-width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: var(--gold);

    background: var(--maroon-dark);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 1px;
}


.step-heading h2 {
    margin-bottom: 5px;

    color: var(--maroon-dark);

    font-family: "Playfair Display", serif;

    font-size: 27px;
}


.step-heading p {
    color: var(--muted);

    font-size: 13px;
}


/* =========================================================
   FORM GRID
========================================================= */

.form-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 24px 20px;
}


.full-width {
    grid-column: 1 / -1;
}


.field {
    width: 100%;
}


.field-spacing {
    margin-top: 30px;
}


.field > label {
    display: block;

    margin-bottom: 10px;

    color: var(--text);

    font-size: 13px;
    font-weight: 700;

    line-height: 1.5;
}


.field > label span {
    color: var(--maroon-light);
}


/* =========================================================
   INPUTS
========================================================= */

input[type="text"],
input[type="tel"],
input[type="email"] {

    width: 100%;

    height: 52px;

    padding: 0 16px;

    border: 1px solid var(--border);

    border-radius: 11px;

    outline: none;

    color: var(--text);

    background: var(--ivory);

    font-family: inherit;
    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


input::placeholder {
    color: #A69A9B;
}


input:focus {
    border-color: var(--gold);

    background: var(--white);

    box-shadow:
        0 0 0 4px rgba(200, 155, 60, 0.10);
}


input.input-error {
    border-color: var(--error);
}


/* =========================================================
   OPTIONS
========================================================= */

.option-list {
    display: grid;

    grid-template-columns: 1fr;

    gap: 9px;
}


.option-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 10px;
}


.small-grid {
    grid-template-columns: repeat(3, 1fr);
}


.branch-grid {
    max-width: 700px;
}


.option-card {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 52px;

    padding: 13px 15px;

    border: 1px solid var(--border);

    border-radius: 11px;

    cursor: pointer;

    background: var(--ivory);

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.option-card:hover {
    border-color: var(--gold);

    background: #FFFBF3;

    transform: translateY(-1px);
}


.option-card input {
    position: absolute;

    opacity: 0;
}


.option-card span {
    position: relative;

    padding-left: 29px;

    color: var(--text);

    font-size: 13px;
    font-weight: 500;

    line-height: 1.4;
}


.option-card span::before {
    content: "";

    position: absolute;

    left: 0;
    top: 50%;

    width: 17px;
    height: 17px;

    border: 1.5px solid #CDBEB0;

    border-radius: 50%;

    background: var(--white);

    transform: translateY(-50%);

    transition: all 0.2s ease;
}


.option-card input:checked + span::before {
    border-color: var(--maroon);

    box-shadow:
        inset 0 0 0 4px var(--white);

    background: var(--maroon);
}


.option-card:has(input:checked) {
    border-color: var(--gold);

    background: #FFF9EC;

    box-shadow:
        0 4px 16px rgba(100, 21, 42, 0.06);
}


.branch-card {
    justify-content: center;

    min-height: 64px;
}


.branch-card span {
    padding-left: 27px;
}


.branch-card span::before {
    left: -1px;
}


/* =========================================================
   ERRORS
========================================================= */

.error-message,
.group-error {
    display: block;

    min-height: 16px;

    margin-top: 5px;

    color: var(--error);

    font-size: 11px;
}


.option-error .option-card {
    border-color: rgba(180, 35, 24, 0.5);
}


/* =========================================================
   BUTTONS
========================================================= */

.button-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-top: 35px;

    padding-top: 25px;

    border-top: 1px solid #F0E7DC;
}


.btn {
    min-height: 50px;

    padding: 0 22px;

    border: none;

    border-radius: 11px;

    cursor: pointer;

    font-family: inherit;

    font-size: 13px;
    font-weight: 700;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.btn:hover {
    transform: translateY(-1px);
}


.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    color: var(--white);

    background: var(--maroon);

    box-shadow:
        0 8px 20px rgba(100, 21, 42, 0.18);
}


.btn-primary:hover {
    background: var(--maroon-dark);

    box-shadow:
        0 10px 25px rgba(100, 21, 42, 0.25);
}


.btn-primary span {
    font-size: 17px;
}


.btn-secondary {
    color: var(--maroon);

    border: 1px solid var(--border);

    background: var(--ivory);
}


.btn-secondary:hover {
    border-color: var(--gold);

    background: #FFF9EC;
}


/* =========================================================
   FINAL NOTE
========================================================= */

.final-note {
    display: flex;
    align-items: flex-start;

    gap: 13px;

    margin-top: 30px;

    padding: 17px;

    border: 1px solid #E8D7AF;

    border-radius: 12px;

    background: #FFFBF1;
}


.note-icon {
    min-width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: var(--white);

    background: var(--success);

    font-size: 13px;
    font-weight: 700;
}


.final-note strong {
    display: block;

    margin-bottom: 3px;

    color: var(--maroon-dark);

    font-size: 13px;
}


.final-note p {
    color: var(--muted);

    font-size: 12px;

    line-height: 1.5;
}


/* =========================================================
   SUCCESS
========================================================= */

.success-screen {
    display: none;

    padding: 60px 35px;

    text-align: center;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    background: var(--white);

    box-shadow: var(--shadow);
}


.success-screen.active {
    display: block;

    animation: fadeIn 0.4s ease;
}


.success-icon {
    width: 68px;
    height: 68px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 20px;

    border-radius: 50%;

    color: var(--white);

    background: var(--success);

    font-size: 28px;
    font-weight: 700;
}


.success-screen h2 {
    margin-bottom: 12px;

    color: var(--maroon-dark);

    font-family: "Playfair Display", serif;

    font-size: 32px;
}


.success-screen p {
    max-width: 520px;

    margin: 0 auto 25px;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================================
   LOADING
========================================================= */

.loading-overlay {
    position: fixed;

    inset: 0;

    z-index: 100;

    display: none;

    align-items: center;
    justify-content: center;
    flex-direction: column;

    gap: 15px;

    background: rgba(67, 16, 29, 0.55);

    backdrop-filter: blur(6px);
}


.loading-overlay.active {
    display: flex;
}


.loader {
    width: 42px;
    height: 42px;

    border: 3px solid rgba(255, 255, 255, 0.35);

    border-top-color: var(--gold-light);

    border-radius: 50%;

    animation: spin 0.8s linear infinite;
}


.loading-overlay p {
    color: var(--white);

    font-size: 13px;
    font-weight: 600;
}


@keyframes spin {

    to {
        transform: rotate(360deg);
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .header {
        padding: 17px 20px;
    }


    .assessment-label {
        display: none;
    }


    .main-container {
        width: min(100% - 20px, 620px);

        padding: 45px 0 60px;
    }


    .intro {
        margin-bottom: 30px;
    }


    .intro h1 {
        font-size: 34px;
    }


    .intro p {
        font-size: 14px;
    }


    .form-step {
        padding: 22px 18px;
    }


    .step-heading {
        gap: 11px;

        margin-bottom: 24px;
    }


    .step-number {
        min-width: 38px;
        height: 38px;

        font-size: 10px;
    }


    .step-heading h2 {
        font-size: 23px;
    }


    .form-grid {
        grid-template-columns: 1fr;
    }


    .full-width {
        grid-column: auto;
    }


    .option-grid,
    .small-grid {
        grid-template-columns: 1fr;
    }


    .branch-grid {
        grid-template-columns: 1fr;
    }


    .button-row {
        flex-direction: column-reverse;
        align-items: stretch;
    }


    .btn {
        width: 100%;
    }


    .success-screen {
        padding: 45px 22px;
    }


    .success-screen h2 {
        font-size: 27px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .brand-name {
        font-size: 11px;
    }


    .brand-mark {
        width: 40px;
        height: 40px;
    }


    .intro h1 {
        font-size: 30px;
    }


    .step-heading h2 {
        font-size: 21px;
    }

}