* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(180deg, #f5f7fb 0%, #eef2f8 100%);
    color: #111827;
}

.container {
    min-height: 100vh;
    padding: 24px 16px 32px;
    max-width: 520px;
    margin: 0 auto;
}

.page-header h1 {
    margin: 0 0 8px;
    font-size: 26px;
    line-height: 1.2;
}

.page-header .lead {
    margin: 0 0 20px;
    color: #4b5563;
    font-size: 16px;
    line-height: 1.4;
}

.question-block {
    margin-bottom: 20px;
    padding: 16px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(5, 5, 5, 0.02);
}

.question-title {
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
}


.rating {
    display: flex;
    padding: 12px;
    border-radius: 50px;
    justify-content: center;
}

.rating label {
    position: relative;
    cursor: pointer;
    user-select: none;
    transition: transform 0.15s ease;
}

.rating label:hover span {
    transform: scale(1.5);
}

.rating input {
    display: none;
}

.rating span {
    display: flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #777;
    font-weight: 600;
    transition: all 0.2s ease;
}

.rating input:checked + span {
    transform: scale(1.3);
    color: #fff;
}

.rating-item-1 span,
.rating-item-2 span,
.rating-item-3 span {
    color: #c53030;
}
.rating-item-1 input:checked + span,
.rating-item-2 input:checked + span,
.rating-item-3 input:checked + span {
    background: #e11d48;
}

.rating-item-4 span,
.rating-item-5 span {
    color: #c2410c;
}
.rating-item-4 input:checked + span,
.rating-item-5 input:checked + span {
    background: #f97316;
}

.rating-item-6 span,
.rating-item-7 span {
    color: #b45309;
}
.rating-item-6 input:checked + span,
.rating-item-7 input:checked + span {
    background: #eab308;
}

.rating-item-8 span,
.rating-item-9 span,
.rating-item-10 span {
    color: #15803d;
}
.rating-item-8 input:checked + span,
.rating-item-9 input:checked + span,
.rating-item-10 input:checked + span {
    background: #22c55e;
}

.review-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 14px;
    resize: vertical;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 15px;
    line-height: 1.4;
    font-family: inherit;
    background: #f9fafb;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.review-textarea:focus {
    border-color: #25338a;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;
}

.yesno-block {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.yesno-option {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.yesno-option input {
    display: none;
}

.yesno-option span {
    display: inline-flex;
    padding: 10px 18px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-weight: 600;
    color: #374151;
    transition: all 0.2s ease;
}

.yesno-option:hover span {
    background: #e5e7eb;
}

.yesno-option input:checked + span {
    background: #25338a;
    color: white;
    border-color: #25338a;
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.25);
}

.primary-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 12px;
    padding: 14px 16px;
    background: linear-gradient(90deg, #25338a, #1d4ed8);
    border: none;
    color: #fff;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    font-size: 14pt;
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.3);
}

.primary-btn:active {
    transform: translateY(0);
}

.success-state {
    margin-top: 32px;
    padding: 32px 24px;
    background: #fff;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.1);
}

.success-state h1 {
    margin: 16px 0 8px;
    font-size: 26px;
}

.success-state p {
    margin: 0 0 20px;
    color: #4b5563;
    line-height: 1.5;
}

.checkmark {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    font-size: 30px;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 30px rgba(22, 163, 74, 0.25);
}

@media (min-width: 640px) {
    .container {
        padding: 32px 24px 40px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .question-block {
        padding: 20px;
    }
}
