* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-selector select {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    color: #333;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 32px;
}

.language-selector select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.option-btn:focus-visible,
.submit-btn:focus-visible,
.language-selector select:focus-visible {
    outline: 3px solid #1a73e8;
    outline-offset: 3px;
}

.container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 500px;
    width: 100%;
    padding: 40px;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 10px;
}

.description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.question h2 {
    color: #333;
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 30px;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.option-btn {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    width: 100%;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.option-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
    transform: none;
}

.option-btn[data-value="1"] {
    background: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%);
    border-color: #96e6a1;
}

.option-btn[data-value="2"] {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    border-color: #8fd3f4;
}

.option-btn[data-value="3"] {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    border-color: #fdcb6e;
}

.option-btn[data-value="4"] {
    background: linear-gradient(135deg, #fab1a0 0%, #ff7675 100%);
    border-color: #ff7675;
}

.option-btn[data-value="5"] {
    background: linear-gradient(135deg, #ff7675 0%, #d63031 100%);
    border-color: #d63031;
}

.option-btn:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.option-btn.selected {
    border-width: 3px;
    border-color: #111;
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.6),
        0 8px 18px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

.option-btn .emoji {
    font-size: 2rem;
    margin-right: 15px;
}

.option-btn .label {
    color: #2d3436;
    font-weight: 600;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    margin-top: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.submit-btn:disabled {
    background: #e0e0e0;
    color: #9e9e9e;
    cursor: not-allowed;
}

.submit-btn:not(:disabled):active {
    transform: scale(0.98);
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.3);
}

.location-notice {
    text-align: center;
    margin-top: 20px;
    padding: 12px;
    background: #e3f2fd;
    border-radius: 8px;
    border: 1px solid #90caf9;
}

.location-notice p {
    color: #1565c0;
    font-size: 0.85rem;
    margin: 0;
}

.message {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    display: none;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    display: block;
}

.message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    display: block;
}

.message.warning {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    display: block;
}

.loader {
    display: none;
    text-align: center;
    margin: 20px 0;
}

.loader:after {
    content: "";
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.thank-you {
    text-align: center;
    animation: fadeIn 0.5s ease-in;
}

.thank-you-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 3rem;
    color: white;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.thank-you h2 {
    color: #667eea;
    font-size: 1.8rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.thank-you h3 {
    color: #764ba2;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.thank-you p {
    color: #666;
    font-size: 1rem;
}

.hidden {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .container,
    .thank-you,
    .thank-you-icon,
    .message,
    .loader:after {
        animation: none !important;
    }
}

@media (max-width: 600px) {
    .language-selector {
        top: 10px;
        right: 10px;
    }
    
    .language-selector select {
        font-size: 0.85rem;
        padding: 6px 10px;
        padding-right: 28px;
    }
    
    .container {
        padding: 30px 20px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .question h2 {
        font-size: 1.1rem;
    }

    .option-btn {
        padding: 15px 20px;
    }

    .option-btn .emoji {
        font-size: 1.5rem;
        margin-right: 12px;
    }

    .option-btn .label {
        font-size: 0.95rem;
    }
    
    .thank-you-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .thank-you h2 {
        font-size: 1.3rem;
    }
    
    .thank-you h3 {
        font-size: 1.1rem;
    }
}
