:root {
    --primary: hsla(282, 61%, 27%, 1);
    --background: hsla(0, 0%, 100%, 1);
    --accent: hsla(40, 100%, 50%, 1);
    --text: #333;
    --light-text: #666;
    --border: #e0e0e0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --gradient: linear-gradient(135deg, hsla(282, 61%, 27%, 1) 0%, hsla(282, 61%, 37%, 1) 100%);
    --pale-button: hsla(282, 61%, 27%, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.quiz-container {
    background: var(--background);
    border-radius: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    min-height: 600px;
}

.header {
    background: var(--gradient);
    color: white;
    padding: 25px 30px;
    text-align: center;
}

.header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.header p {
    opacity: 0.9;
    font-size: 14px;
}

.progress-container {
    width: 100%;
    height: 6px;
    background-color: #f0f0f0;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: var(--accent);
    transition: width 0.5s ease;
    width: 0%;
}

.question-container {
    padding: 40px 30px;
    display: none;
}

.question-container.active {
    display: block;
}

.question-number {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.question-text {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.4;
}

.answers-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.answer-option {
    padding: 20px;
    border: 2px solid var(--border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.answer-option:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.answer-option.selected {
    border-color: var(--primary);
    background-color: rgba(82, 27, 105, 0.05);
}

.answer-option .emoji {
    font-size: 24px;
    margin-right: 15px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.answer-option .checkmark {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--border);
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.answer-option.selected .checkmark {
    border-color: var(--primary);
    background-color: var(--primary);
}

.answer-option.selected .checkmark::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: white;
}

.slider-container {
    margin-top: 30px;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.slider-value {
    font-weight: 600;
    color: var(--primary);
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e0e0e0;
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    border: none;
}

.select-container {
    position: relative;
    margin-top: 20px;
}

.select-container select {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    background-color: white;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.select-container::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--light-text);
    border-bottom: 2px solid var(--light-text);
    transform: translateY(-50%) rotate(45deg);
    pointer-events: none;
}

.buttons-container {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.back-button {
    padding: 18px 25px;
    background-color: var(--pale-button);
    color: var(--primary);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.back-button:hover {
    background-color: hsla(282, 61%, 27%, 0.2);
}

.next-button {
    padding: 18px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 2;
    box-shadow: 0 4px 10px rgba(82, 27, 105, 0.3);
}

.next-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(82, 27, 105, 0.4);
}

.next-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.loading-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    display: none;
    padding: 40px;
}

.loading-text {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 40px;
    text-align: center;
    color: var(--primary);
}

.lottery-animation {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.lottery-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.bank-name {
    font-size: 32px;
    font-weight: 700;
    color: white;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: absolute;
    width: 100%;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 20px;
}

.bank-name.active {
    opacity: 1;
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.loading-dots {
    display: flex;
    gap: 8px;
}

.loading-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary);
    animation: pulse-dots 1.5s infinite ease-in-out;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pulse-dots {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.results-screen {
    padding: 40px 30px;
    display: none;
}

.results-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
    color: var(--primary);
    line-height: 1.3;
}

.results-subtitle {
    font-size: 16px;
    color: var(--light-text);
    text-align: center;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.bank-offers {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

.bank-offer {
    background-color: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.bank-offer:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.bank-banner {
    width: 100%;
    height: 140px;
    background-size: cover;
    background-position: center;
}

.bank-details {
    padding: 25px;
}

.bank-name-result {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary);
}

.bank-features {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 20px;
    line-height: 1.5;
}

.apply-button {
    display: block;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.bank-offer:nth-child(1) .apply-button {
    background: var(--gradient);
    color: white;
}

.bank-offer:nth-child(2) .apply-button {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.apply-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.people-illustration {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.people-illustration svg {
    width: 200px;
    height: 150px;
}

@media (max-width: 600px) {
    .quiz-container {
        min-height: 500px;
    }
    
    .question-container {
        padding: 30px 20px;
    }
    
    .question-text {
        font-size: 20px;
    }
    
    .answer-option {
        padding: 15px;
    }
    
    .results-title {
        font-size: 24px;
    }
    
    .lottery-animation {
        height: 300px;
    }
    
    .bank-name {
        font-size: 24px;
    }
}