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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a365d 0%, #2d5a87 100%);
    min-height: 100vh;
    padding: 20px;
}

.survey-container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.survey-header {
    background: #1a365d;
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.survey-header h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.survey-header p {
    opacity: 0.9;
    font-size: 14px;
}

.progress-bar {
    height: 4px;
    background: #e2e8f0;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: #2d5a87;
    transition: width 0.3s ease;
    width: 0%;
}

.survey-content {
    padding: 30px 20px;
}

.question-container {
    display: none;
    animation: slideIn 0.3s ease;
}

.question-container.active {
    display: block;
}

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

.question {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 25px;
    line-height: 1.5;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option {
    padding: 18px;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    color: #4a5568;
    position: relative;
    overflow: hidden;
}

.option:hover {
    border-color: #2d5a87;
    background: #ebf4ff;
    transform: translateY(-2px);
}

.option:active {
    transform: translateY(0);
}

.option.selected {
    background: #2d5a87;
    color: white;
    border-color: #2d5a87;
}

.option-letter {
    font-weight: 700;
    margin-right: 8px;
    color: #1a365d;
}

.option.selected .option-letter {
    color: white;
}

.analysis {
    margin-top: 20px;
    padding: 15px;
    background: #f0fff4;
    border-left: 4px solid #48bb78;
    border-radius: 8px;
    font-size: 14px;
    color: #276749;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.results {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.results h2 {
    font-size: 28px;
    color: #2d3748;
    margin-bottom: 20px;
}

.score-circle {
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #2d5a87 0%, #1a365d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(45, 90, 135, 0.3);
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.result-summary {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 30px;
}

.recommendations {
    background: #ebf4ff;
    border: 2px solid #2d5a87;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.recommendations h3 {
    color: #1a365d;
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
}

.recommendations ul {
    list-style: none;
    padding: 0;
}

.recommendations li {
    padding: 8px 0;
    color: #2d3748;
    font-size: 14px;
    position: relative;
    padding-left: 20px;
}

.recommendations li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #2d5a87;
    font-weight: bold;
}

.btn-restart {
    background: #2d5a87;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.btn-restart:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 90, 135, 0.3);
}

.timer {
    text-align: center;
    color: #718096;
    font-size: 14px;
    margin-top: 20px;
}

.contact-form {
    display: none;
    animation: slideIn 0.3s ease;
}

.contact-form.active {
    display: block;
}

.contact-form h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    color: #2d3748;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #2d5a87;
}

.btn-start {
    background: #2d5a87;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
    margin-top: 10px;
    width: 100%;
}

.btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 90, 135, 0.3);
}

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

.save-status {
    font-size: 13px;
    color: #718096;
    margin: 15px 0;
}

.save-status.success {
    color: #48bb78;
}

.save-status.error {
    color: #e53e3e;
}

@media (max-width: 400px) {
    .survey-header h1 {
        font-size: 20px;
    }
    .question {
        font-size: 16px;
    }
    .option {
        font-size: 14px;
        padding: 15px;
    }
}
