
/* =========================================
   RESET
========================================= */

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;

    font-family:
        Arial,
        "Noto Sans Devanagari",
        sans-serif;

    background: #f4f5f7;

    color: #222;
}


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

.page {
    width: 100%;

    max-width: 720px;

    margin: 0 auto;

    padding:
        0
        16px
        35px;
}


/* =========================================
   HEADER
========================================= */

.header {
    text-align: center;

    padding:
        28px
        10px
        10px;
}

.logo {
    width: 58px;
    height: 58px;

    margin: 0 auto 10px;

    display: flex;

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

    background: white;

    border-radius: 50%;

    font-size: 28px;

    box-shadow:
        0 5px 20px
        rgba(0, 0, 0, 0.08);
}

.header h2 {
    margin: 0;

    font-size: 19px;

    font-weight: 700;
}

.header-line {
    width: 45px;
    height: 3px;

    margin: 13px auto 0;

    border-radius: 10px;

    background: #222;
}


/* =========================================
   INTRO
========================================= */

.intro {
    text-align: center;

    padding:
        28px
        4px
        25px;
}

.badge {
    display: inline-block;

    padding:
        7px
        14px;

    border-radius: 20px;

    background: #e9eaec;

    color: #555;

    font-size: 13px;

    font-weight: 700;

    margin-bottom: 15px;
}

.intro h1 {
    margin: 0;

    font-size: 31px;

    line-height: 1.5;

    letter-spacing: -0.4px;
}

.intro h1 span {
    display: block;
}

.intro p {
    max-width: 570px;

    margin:
        13px auto
        0;

    color: #707780;

    font-size: 15px;

    line-height: 1.7;
}


/* =========================================
   FEEDBACK CARD
========================================= */

.feedback-card {
    background: white;

    border-radius: 20px;

    padding: 28px;

    box-shadow:
        0 12px 35px
        rgba(0, 0, 0, 0.07);
}


/* =========================================
   CARD TITLE
========================================= */

.card-title {
    display: flex;

    align-items: center;

    gap: 13px;

    margin-bottom: 23px;
}

.number {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

    display: flex;

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

    background: #f0f1f3;

    border-radius: 12px;

    color: #555;

    font-size: 14px;

    font-weight: 700;
}

.card-title h3 {
    margin: 0 0 4px;

    font-size: 20px;
}

.card-title p {
    margin: 0;

    color: #7b828a;

    font-size: 14px;
}


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

.feedback-choice {
    width: 100%;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;

    margin-bottom: 23px;

    position: relative;

    z-index: 5;
}

.choice-button {
    width: 100%;

    min-height: 72px;

    padding: 10px;

    border: 2px solid #e0e3e6;

    border-radius: 14px;

    background: #fafafa;

    color: #30343a;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    font-family: inherit;

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;

    position: relative;

    z-index: 10;

    pointer-events: auto;

    transition:
        background 0.2s,
        border-color 0.2s,
        transform 0.15s;
}

.choice-button:hover {
    background: #f0f1f3;
}

.choice-button:active {
    transform: scale(0.98);
}

.choice-button.active {
    background: #222;

    border-color: #222;

    color: white;
}

.choice-icon {
    font-size: 22px;
}


/* =========================================
   FEEDBACK AREA
========================================= */

.feedback-area {
    width: 100%;

    position: relative;

    z-index: 1;
}

.hidden {
    display: none !important;
}


/* =========================================
   TEXT AREA
========================================= */

.feedback-area label {
    display: block;

    margin-bottom: 9px;

    font-size: 16px;

    font-weight: 700;
}

textarea {
    width: 100%;

    min-height: 190px;

    display: block;

    padding: 16px;

    border:
        2px solid
        #e1e4e8;

    border-radius: 13px;

    background: #fafafa;

    color: #222;

    outline: none;

    resize: vertical;

    font-family:
        Arial,
        "Noto Sans Devanagari",
        sans-serif;

    font-size: 17px;

    line-height: 1.7;
}

textarea:focus {
    background: white;

    border-color: #555;

    box-shadow:
        0 0 0 3px
        rgba(0, 0, 0, 0.05);
}

textarea::placeholder {
    color: #999;
}

.hint {
    margin:
        8px
        0
        0;

    color: #888;

    font-size: 12px;
}


/* =========================================
   VOICE BOX
========================================= */

.voice-box {
    width: 100%;

    padding:
        28px
        18px;

    text-align: center;

    border:
        2px dashed
        #d7dbe0;

    border-radius: 16px;

    background: #f8f9fa;
}

.microphone {
    width: 70px;
    height: 70px;

    margin:
        0 auto
        14px;

    display: flex;

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

    background: white;

    border-radius: 50%;

    font-size: 30px;

    box-shadow:
        0 5px 18px
        rgba(0, 0, 0, 0.08);
}

.voice-box h3 {
    margin:
        4px
        0
        7px;

    font-size: 19px;
}

.voice-description {
    margin:
        0 auto
        18px;

    max-width: 450px;

    color: #777;

    font-size: 14px;

    line-height: 1.6;
}


/* =========================================
   RECORDING STATUS
========================================= */

.recording-status {
    min-height: 24px;

    margin:
        0
        0
        15px;

    color: #555;

    font-size: 13px;

    font-weight: 700;
}


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

.voice-button {
    width: 100%;

    min-height: 50px;

    margin-bottom: 9px;

    padding:
        10px
        14px;

    border: none;

    border-radius: 11px;

    font-family: inherit;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition:
        opacity 0.2s,
        transform 0.15s;
}

.voice-button:active {
    transform: scale(0.99);
}

.voice-button:disabled {
    opacity: 0.4;

    cursor: not-allowed;
}

.record-button {
    background: #222;

    color: white;
}

.stop-button {
    background: #666;

    color: white;
}

.replay-button {
    background: #dedfe1;

    color: #222;
}

.again-button {
    background: #dedfe1;

    color: #222;
}


/* =========================================
   SUBMIT BUTTON
========================================= */

.submit-button {
    width: 100%;

    min-height: 58px;

    margin-top: 23px;

    padding:
        10px
        18px;

    border: none;

    border-radius: 13px;

    background: #222;

    color: white;

    font-family: inherit;

    font-size: 18px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s,
        transform 0.15s;
}

.submit-button:hover {
    background: #111;
}

.submit-button:active {
    transform: scale(0.99);
}

.submit-button span {
    margin-left: 8px;

    font-size: 22px;
}


/* =========================================
   BOTTOM NOTE
========================================= */

.bottom-note {
    text-align: center;

    margin-top: 17px;

    color: #777;

    font-size: 12px;

    line-height: 1.6;
}


/* =========================================
   FOOTER
========================================= */

footer {
    text-align: center;

    padding:
        27px
        10px
        0;

    color: #777;

    font-size: 13px;
}

footer span {
    color: #aaa;
}


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

@media (max-width: 520px) {

    .page {
        padding:
            0
            11px
            25px;
    }

    .header {
        padding:
            20px
            8px
            8px;
    }

    .logo {
        width: 52px;
        height: 52px;

        font-size: 25px;
    }

    .header h2 {
        font-size: 17px;
    }

    .intro {
        padding:
            22px
            2px
            21px;
    }

    .badge {
        font-size: 12px;

        padding:
            6px
            12px;
    }

    .intro h1 {
        font-size: 24px;

        line-height: 1.5;
    }

    .intro p {
        font-size: 14px;

        line-height: 1.65;
    }

    .feedback-card {
        padding:
            20px
            15px;

        border-radius: 17px;
    }

    .card-title {
        align-items: flex-start;

        gap: 10px;
    }

    .number {
        width: 42px;
        height: 42px;

        font-size: 12px;
    }

    .card-title h3 {
        font-size: 18px;
    }

    .card-title p {
        font-size: 12px;

        line-height: 1.5;
    }

    .feedback-choice {
        gap: 8px;
    }

    .choice-button {
        min-height: 70px;

        flex-direction: column;

        gap: 4px;

        font-size: 13px;
    }

    .choice-icon {
        font-size: 21px;
    }

    textarea {
        min-height: 175px;

        padding: 14px;

        font-size: 16px;
    }

    .voice-box {
        padding:
            24px
            12px;
    }

    .microphone {
        width: 62px;
        height: 62px;

        font-size: 27px;
    }

    .voice-box h3 {
        font-size: 17px;
    }

    .voice-description {
        font-size: 13px;
    }

    .voice-button {
        min-height: 50px;

        font-size: 13px;
    }

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

        font-size: 17px;
    }
}

