:root {
    color-scheme: light dark;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'SF Pro Display', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top, #172554, #020617 65%);
    color: #0f172a;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
}

.survey-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 28px;
    padding: clamp(24px, 5vw, 40px);
    max-width: 640px;
    width: 100%;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.25);
    backdrop-filter: blur(6px);
}

h1 {
    margin-top: 0;
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.2;
    color: #0f172a;
}

.meta {
    color: #475569;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rating {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
    gap: 14px;
}

.rating input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rating label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 12px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 82px;
}

.rating label span {
    font-size: 0.9rem;
    color: #475569;
}

.rating label::before {
    content: '★';
    font-size: 1.4rem;
    color: #94a3b8;
    line-height: 1;
}

.rating input:checked + label,
.rating label:hover,
.rating label:focus-visible {
    background: linear-gradient(135deg, #fde68a, #facc15);
    border-color: #facc15;
    box-shadow: 0 12px 25px rgba(250, 204, 21, 0.35);
}

.rating input:checked + label::before,
.rating label:hover::before {
    color: #fbbf24;
}

label[for^="dropdown"] {
    font-weight: 600;
    color: #0f172a;
}

select,
textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #cbd5f5;
    border-radius: 18px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select:focus,
textarea:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

textarea {
    min-height: 140px;
    resize: vertical;
}

button {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.3);
}

button:active {
    transform: translateY(0);
}

.message {
    padding: 14px 18px;
    border-radius: 18px;
    margin-bottom: 8px;
    font-weight: 500;
}

.success {
    background: #ecfccb;
    color: #365314;
}

.error {
    background: #fee2e2;
    color: #991b1b;
}

.policy-link {
    text-align: center;
    color: #475569;
    font-size: 0.9rem;
    margin-top: 16px;
}

.policy-link a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.language-footer {
    margin-top: auto;
    width: 100%;
    text-align: center;
    color: #cbd5f5;
    font-size: 0.9rem;
    padding-top: 24px;
}

.language-footer .language-switcher {
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.language-footer label {
    font-weight: 600;
    color: #e2e8f0;
}

.language-switcher__controls {
    display: flex;
    justify-content: center;
}

.language-switcher select {
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: #fff;
    min-width: 170px;
    color: #0f172a;
}

@media (max-width: 640px) {
    body {
        padding: 16px;
    }

    .card {
        border-radius: 20px;
    }

    .rating {
        grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    }
}
