﻿@font-face {
    font-family: 'AllianzSans';
    src: url('/Content/fonts/AllianzSansTR.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'AllianzSans';
    src: url('/Content/fonts/AllianzSansTR-Light.ttf') format('truetype');
    font-weight: 300;
}

@font-face {
    font-family: 'AllianzSans';
    src: url('/Content/fonts/AllianzSansTR-Bold.ttf') format('truetype');
    font-weight: 700;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'AllianzSans', Arial, sans-serif;
    overflow: hidden;
}

.end-screen {
    position: fixed;
    inset: 0;
    background: #000 url('/Content/bg.jpeg') center center / cover no-repeat;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    padding-top: 8vh;
}

    .end-screen::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 50% 42%, rgba(0,0,0,.08), rgba(0,0,0,.42));
        z-index: 1;
        pointer-events: none;
    }

.end-wrap {
    position: relative;
    z-index: 2;
    width: min(1200px, 92vw);
    min-height: 700px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.normal-state {
    display: block;
    width: 100%;
}

    .normal-state.hide {
        display: none;
    }

.end-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto 28px;
}

.wait-logo {
    display: block;
    width: min(220px, 42vw);
    height: auto;
    margin: 0 auto 10px;
}

.wait-motto {
    display: block;
    width: min(300px, 48vw);
    height: auto;
    margin: 0 auto 22px;
}

.survey-card {
    width: 460px;
    max-width: 92vw;
    margin: 0 auto;
    background: rgba(210, 216, 236, .94);
    border-radius: 8px;
    box-shadow: 0 18px 55px rgba(0,0,0,.35);
    padding: 18px 18px 16px;
    text-align: left;
}

.q-title {
    color: #2c4a7a;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.25;
    margin-bottom: 10px;
}

    .q-title.q2 {
        margin-top: 12px;
        margin-bottom: 10px;
    }

.stars {
    display: flex;
    gap: 6px;
    align-items: center;
    margin: 6px 0 8px;
}

.star {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 34px;
    line-height: 1;
    color: rgba(255,255,255,.92);
    text-shadow: 0 6px 14px rgba(0,0,0,.18);
    padding: 0;
    transition: transform .15s ease, color .2s ease;
}

    .star:hover {
        transform: translateY(-1px);
    }

    .star.on {
        color: #ffd24d;
        text-shadow: 0 10px 22px rgba(0,0,0,.28);
    }

.comment {
    width: 100%;
    border: none;
    outline: none;
    resize: none;
    border-radius: 8px;
    background: rgba(255,255,255,.96);
    padding: 10px 12px;
    font-size: 14px;
    color: #1b2b4a;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}

.btn-send {
    display: block;
    margin: 12px auto 0;
    width: 140px;
    height: 34px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255,255,255,.92);
    color: #2c4a7a;
    font-weight: 800;
    letter-spacing: .6px;
    box-shadow: 0 14px 28px rgba(0,0,0,.22);
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}

    .btn-send:hover:not(:disabled) {
        background: #ffffff;
        box-shadow: 0 16px 32px rgba(0,0,0,.28);
    }

    .btn-send:active:not(:disabled) {
        transform: translateY(1px);
    }

    .btn-send:disabled {
        opacity: .7;
        cursor: default;
    }

.msg {
    margin-top: 10px;
    min-height: 18px;
    color: rgba(255,255,255,.92);
    font-size: 13px;
}

    .msg.ok {
        color: #bff5c8;
    }

    .msg.err {
        color: #ffd2d2;
    }

.final-screen {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    padding: 40px 20px;
}

    .final-screen.show {
        display: flex;
        animation: finalFade .45s ease;
    }

.final-logo {
    display: block;
    width: min(260px, 42vw);
    height: auto;
    margin-bottom: 18px;
}

.final-motto {
    display: block;
    width: min(300px, 48vw);
    height: auto;
    margin: 0 auto 22px;
}

.final-text {
    color: #fff;
    font-weight: 700;
    font-size: clamp(28px, 4.2vw, 62px);
    line-height: 1.25;
    text-align: center;
    max-width: 1100px;
    text-shadow: 0 4px 18px rgba(0,0,0,.20);
}

@keyframes finalFade {
    from {
        opacity: 0;
        transform: scale(.985);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 520px) {
    .wait-logo,
    .final-logo {
        width: min(210px, 62vw);
    }

    .wait-motto,
    .final-motto {
        width: min(390px, 88vw);
        margin-bottom: 24px;
    }

    .survey-card {
        padding-left: 16px;
        padding-right: 16px;
    }

    .star {
        font-size: 30px;
    }

    .final-text {
        font-size: 24px;
        line-height: 1.35;
    }
}
