/* =========================================================
   SURAJ SHIKSHA
   FEEDBACK PORTAL
   ========================================================= */


/* =========================================================
   APP SHELL
   ========================================================= */

.feedback-app {

    min-height:
        100svh;

    max-width:
        760px;

    margin:
        0 auto;

    background:
        var(--ivory);

    display:
        flex;

    flex-direction:
        column;

    position:
        relative;
}


/* =========================================================
   GLOBAL HEADER
   SAME ON EVERY STEP
   ========================================================= */

.feedback-header {

    height:
        68px;

    display:
        grid;

    grid-template-columns:
        44px 1fr auto;

    align-items:
        center;

    padding:
        0 22px;

    border-bottom:
        1px solid var(--border-soft);

    position:
        sticky;

    top:
        0;

    z-index:
        100;

    background:
        rgba(250, 251, 249, 0.92);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);
}


/* BACK BUTTON */

.back-button {

    width:
        40px;

    height:
        40px;

    border:
        1px solid var(--border);

    border-radius:
        12px;

    background:
        var(--white);

    color:
        var(--text);

    display:
        grid;

    place-items:
        center;

    font-size:
        19px;

    transition:
        var(--transition);
}

.back-button:hover {

    border-color:
        #c7cfcb;

    transform:
        translateX(-1px);
}

.back-button:active {

    transform:
        translateX(-2px);
}


/* LOGO */

.header-logo {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;
}

.header-logo img {

    width:
        110px;

    max-height:
        34px;

    object-fit:
        contain;
}


/* STEP */

.header-step {

    font-size:
        10px;

    font-weight:
        700;

    color:
        var(--text-muted);

    letter-spacing:
        0.04em;

    white-space:
        nowrap;
}


/* =========================================================
   GLOBAL PROGRESS
   SAME ON EVERY STEP
   ========================================================= */

.progress-section {

    padding:
        15px 22px 0;
}


.progress-top {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    margin-bottom:
        8px;

    font-size:
        9px;

    font-weight:
        800;

    letter-spacing:
        0.14em;

    color:
        #87919a;
}


.progress-track {

    width:
        100%;

    height:
        3px;

    overflow:
        hidden;

    border-radius:
        999px;

    background:
        #e7ebe9;
}


.progress-bar {

    height:
        100%;

    width:
        17%;

    border-radius:
        999px;

    background:
        var(--gold);

    transition:
        width 350ms cubic-bezier(.22,.61,.36,1);
}


/* =========================================================
   STEP CONTENT
   ========================================================= */

.step-container {

    flex:
        1;

    padding:
        38px 22px 120px;

    transition:
        opacity 160ms ease,
        transform 160ms ease;
}


.step-container.leaving {

    opacity:
        0;

    transform:
        translateX(12px);
}


/* =========================================================
   STEP INTRO
   ========================================================= */

.step-intro {

    margin-bottom:
        34px;
}


.step-intro h1 {

    margin:
        9px 0 11px;

    font-size:
        clamp(30px, 6vw, 46px);

    line-height:
        1.04;

    letter-spacing:
        -0.045em;

    font-weight:
        720;

    color:
        #152231;
}


.step-intro p {

    max-width:
        600px;

    margin:
        0;

    color:
        #77818a;

    font-size:
        14px;

    line-height:
        1.65;
}


/* =========================================================
   QUESTION
   ========================================================= */

.question-block {

    margin-bottom:
        30px;

    padding-bottom:
        29px;

    border-bottom:
        1px solid var(--border-soft);
}


.question-block:last-child {

    border-bottom:
        none;

    margin-bottom:
        0;

    padding-bottom:
        0;
}


.question-head {

    display:
        flex;

    align-items:
        flex-start;

    justify-content:
        space-between;

    gap:
        12px;

    margin-bottom:
        14px;
}


.question-head h2 {

    margin:
        0;

    font-size:
        17px;

    line-height:
        1.38;

    letter-spacing:
        -0.015em;

    font-weight:
        650;

    color:
        #1c2935;
}


.required-dot {

    color:
        var(--gold);

    margin-left:
        2px;
}


.optional {

    flex:
        none;

    margin-top:
        3px;

    color:
        #9ba3a9;

    font-size:
        10px;

    white-space:
        nowrap;
}


/* =========================================================
   TEXT INPUT
   ========================================================= */

.text-input {

    width:
        100%;

    min-height:
        52px;

    padding:
        14px 15px;

    border:
        1px solid #dfe4e1;

    border-radius:
        14px;

    outline:
        none;

    background:
        var(--white);

    color:
        var(--text);

    font-size:
        14px;

    box-shadow:
        0 2px 8px rgba(20, 30, 40, 0.02);

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}


.text-input::placeholder {

    color:
        #a6adb2;
}


.text-input:focus {

    border-color:
        #bda576;

    box-shadow:
        0 0 0 4px rgba(178, 141, 78, 0.10);
}


.textarea {

    min-height:
        145px;

    resize:
        vertical;

    line-height:
        1.6;
}


/* =========================================================
   SELECT
   ========================================================= */

.select-input {

    cursor:
        pointer;

    appearance:
        auto;
}


/* =========================================================
   CHOICE LIST
   ========================================================= */

.choice-list {

    display:
        grid;

    gap:
        9px;
}


/* CHOICE */

.choice {

    width:
        100%;

    min-height:
        56px;

    display:
        grid;

    grid-template-columns:
        30px 1fr 24px;

    align-items:
        center;

    gap:
        10px;

    padding:
        11px 13px;

    text-align:
        left;

    border:
        1px solid #e1e5e3;

    border-radius:
        15px;

    background:
        var(--white);

    color:
        #293641;

    font-size:
        13px;

    line-height:
        1.4;

    cursor:
        pointer;

    transition:
        transform var(--transition),
        border-color var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}


.choice:hover {

    border-color:
        #c7cfcc;

    transform:
        translateY(-1px);
}


.choice.selected {

    border-color:
        var(--gold);

    background:
        #fcf8ef;

    box-shadow:
        0 6px 20px rgba(178, 141, 78, 0.10);
}


/* INDEX */

.choice-index {

    width:
        28px;

    height:
        28px;

    border-radius:
        9px;

    display:
        grid;

    place-items:
        center;

    background:
        #f2f4f3;

    color:
        #8b949b;

    font-size:
        10px;

    font-weight:
        800;
}


.choice.selected .choice-index {

    background:
        var(--gold);

    color:
        white;
}


/* CHECK */

.choice-check {

    color:
        var(--gold);

    opacity:
        0;

    transition:
        opacity var(--transition);
}


.choice.selected .choice-check {

    opacity:
        1;
}


/* =========================================================
   CHECKBOX
   ========================================================= */

.checkbox {

    width:
        28px;

    height:
        28px;

    border:
        1px solid #d8dddb;

    border-radius:
        9px;

    display:
        grid;

    place-items:
        center;

    background:
        white;

    color:
        white;

    font-size:
        12px;

    font-weight:
        800;
}


.checkbox.checked {

    background:
        var(--gold);

    border-color:
        var(--gold);
}


/* =========================================================
   STAR RATING
   ========================================================= */

.rating-wrap {

    padding:
        10px 0 2px;
}


.stars {

    display:
        flex;

    justify-content:
        center;

    align-items:
        center;

    gap:
        7px;
}


.star {

    width:
        45px;

    height:
        45px;

    border:
        none;

    background:
        transparent;

    color:
        #d8dcd9;

    font-size:
        38px;

    line-height:
        1;

    padding:
        0;

    cursor:
        pointer;

    transition:
        transform var(--transition),
        color var(--transition);
}


.star:hover {

    transform:
        scale(1.12);
}


.star.active {

    color:
        var(--gold);

    transform:
        scale(1.03);
}


/* RATING LABEL */

.rating-caption {

    display:
        grid;

    grid-template-columns:
        1fr auto 1fr;

    align-items:
        center;

    gap:
        8px;

    margin-top:
        9px;

    color:
        #9aa2a7;

    font-size:
        9px;
}


.rating-caption strong {

    color:
        #47535d;

    font-size:
        11px;

    text-align:
        center;
}


.rating-caption span:last-child {

    text-align:
        right;
}


/* =========================================================
   ERROR
   ========================================================= */

.field-error {

    min-height:
        16px;

    margin-top:
        7px;

    color:
        var(--danger);

    font-size:
        11px;
}


/* =========================================================
   BOTTOM NAVIGATION
   GLOBAL
   ========================================================= */

.feedback-navigation {

    position:
        fixed;

    left:
        50%;

    bottom:
        0;

    z-index:
        90;

    width:
        min(760px, 100%);

    transform:
        translateX(-50%);

    display:
        flex;

    justify-content:
        flex-end;

    padding:
        12px 22px
        calc(12px + env(safe-area-inset-bottom));

    background:
        rgba(250, 251, 249, 0.94);

    border-top:
        1px solid var(--border-soft);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);
}


.continue-button {

    min-width:
        155px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 520px) {

    .feedback-header {

        height:
            62px;

        padding:
            0 14px;
    }


    .header-logo img {

        width:
            105px;
    }


    .header-step {

        font-size:
            9px;
    }


    .progress-section {

        padding:
            13px 14px 0;
    }


    .step-container {

        padding:
            30px 16px 110px;
    }


    .step-intro {

        margin-bottom:
            28px;
    }


    .step-intro h1 {

        font-size:
            clamp(30px, 8vw, 40px);
    }


    .question-block {

        margin-bottom:
            25px;

        padding-bottom:
            25px;
    }


    .question-head h2 {

        font-size:
            16px;
    }


    .choice {

        min-height:
            54px;

        padding:
            10px 12px;
    }


    .star {

        width:
            42px;

        height:
            42px;

        font-size:
            34px;
    }


    .feedback-navigation {

        padding-left:
            16px;

        padding-right:
            16px;
    }


    .continue-button {

        width:
            100%;
    }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 360px) {

    .step-container {

        padding-left:
            14px;

        padding-right:
            14px;
    }


    .star {

        width:
            37px;

        height:
            37px;

        font-size:
            30px;
    }


    .rating-caption {

        font-size:
            8px;
    }
}