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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1b00 25%, #1a0000 50%, #001a00 75%, #1a1a1a 100%);
    height: 100vh;
    color: white;
    margin: 0;
    padding: 0;
    overflow: auto;
}

.top-banner {
    width: 100%;
    height: 160px;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    padding: 0 20px;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.3;
}

.top-banner .logo {
    width: 60px;
    height: 60px;
    position: relative;
    z-index: 1;
}

.top-banner .logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #ff6b35;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
    animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% { box-shadow: 0 0 20px rgba(255, 107, 53, 0.5); }
    100% { box-shadow: 0 0 30px rgba(255, 193, 7, 0.8); }
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
    padding-top: 180px;
    justify-content: flex-start;
}

.quiz-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}

.quiz-form h2 {
    text-align: center;
    background: linear-gradient(45deg, #dc3545, #ffc107, #28a745);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 24px;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(220, 53, 69, 0.5);
    animation: titlePulse 3s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.quiz-description {
    text-align: center;
    background: linear-gradient(45deg, #dc3545, #ffc107);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 18px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out;
}

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

.progress-bar {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    height: 8px;
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #dc3545, #ffc107, #28a745);
    border-radius: 4px;
    width: 33.33%;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
}

.progress-text {
    position: absolute;
    top: -25px;
    right: 0;
    font-size: 14px;
    background: linear-gradient(45deg, #dc3545, #ffc107);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

.question-block {
    background: linear-gradient(145deg, rgba(45, 50, 55, 0.9), rgba(35, 40, 45, 0.9));
    border: 2px solid;
    border-image: linear-gradient(45deg, #dc3545, #ffc107, #28a745) 1;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transform: translateX(100px);
    opacity: 0;
    transition: all 0.5s ease;
    display: none;
}

.question-block.active {
    display: block;
    transform: translateX(0);
    opacity: 1;
    animation: slideInRight 0.6s ease-out;
}

.question-block.exiting {
    transform: translateX(-100px);
    opacity: 0;
}

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

.question-header {
    margin-bottom: 25px;
}

.question-number {
    display: inline-block;
    background: linear-gradient(45deg, #dc3545, #ffc107);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
    animation: bounceIn 0.8s ease-out 0.2s both;
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.3);
}

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

.question-block h3 {
    color: #ffffff;
    font-size: 18px;
    margin: 0;
    line-height: 1.3;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.option {
    position: relative;
    display: flex;
    align-items: center;
    padding: 12px 18px;
    background: linear-gradient(145deg, rgba(60, 65, 70, 0.8), rgba(50, 55, 60, 0.8));
    border: 2px solid rgba(80, 85, 90, 0.5);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    animation: fadeInLeft 0.6s ease-out calc(var(--option-index) * 0.1s + 0.6s) both;
}

.option:nth-child(1) { --option-index: 0; }
.option:nth-child(2) { --option-index: 1; }
.option:nth-child(3) { --option-index: 2; }
.option:nth-child(4) { --option-index: 3; }

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.option:hover {
    background: linear-gradient(145deg, rgba(70, 75, 80, 0.9), rgba(60, 65, 70, 0.9));
    border-color: #ffc107;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.2);
}

.option input[type="radio"] {
    margin-right: 15px;
    accent-color: #4a90e2;
    transform: scale(1.3);
}

.option-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, #ffc107, #28a745);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
    margin-right: 15px;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
}

.option span:last-child {
    color: #e0e6ed;
    font-size: 16px;
    font-weight: 500;
}

.option:has(input:checked) {
    background: linear-gradient(145deg, rgba(220, 53, 69, 0.2), rgba(255, 193, 7, 0.2));
    border-color: #dc3545;
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.3);
}

.option:has(input:checked) span:last-child {
    color: #ffffff;
    font-weight: 600;
}

.option:has(input:checked) .option-letter {
    background: linear-gradient(45deg, #dc3545, #ffc107);
    color: white;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(74, 144, 226, 0.6);
    pointer-events: none;
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.next-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(45deg, rgba(60, 65, 70, 0.8), rgba(50, 55, 60, 0.8));
    border: 2px solid rgba(80, 85, 90, 0.6);
    border-radius: 15px;
    color: #b0b8c0;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.next-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.next-btn:not(:disabled) {
    background: linear-gradient(45deg, #28a745, #20c997);
    border-color: #28a745;
    color: white;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.next-btn:not(:disabled):hover {
    background: linear-gradient(45deg, #218838, #1e7e34);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.6);
}

.success-screen {
    display: none;
    text-align: center;
    padding: 25px;
    background: linear-gradient(145deg, rgba(45, 50, 55, 0.9), rgba(35, 40, 45, 0.9));
    border: 2px solid;
    border-image: linear-gradient(45deg, #28a745, #ffc107, #dc3545) 1;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.success-screen.show {
    display: block;
    animation: successShow 0.8s ease-out;
}

@keyframes successShow {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.success-icon i {
    font-size: 60px;
    background: linear-gradient(45deg, #28a745, #ffc107);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    animation: successBounce 1s ease-out 0.3s both;
    filter: drop-shadow(0 0 10px rgba(40, 167, 69, 0.5));
}

@keyframes successBounce {
    0% { transform: scale(0) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}

.success-screen h2 {
    background: linear-gradient(45deg, #28a745, #ffc107, #dc3545);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 28px;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(40, 167, 69, 0.5);
}

.success-message {
    color: #e0e6ed;
    font-size: 16px;
    margin-bottom: 20px;
}

.bonus-offer {
    background: linear-gradient(45deg, rgba(220, 53, 69, 0.1), rgba(255, 193, 7, 0.1), rgba(40, 167, 69, 0.1));
    border: 2px solid;
    border-image: linear-gradient(45deg, #dc3545, #ffc107, #28a745) 1;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
}

.bonus-icon i {
    font-size: 35px;
    background: linear-gradient(45deg, #ffc107, #28a745);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    animation: giftPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 193, 7, 0.5));
}

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

.bonus-offer h3 {
    background: linear-gradient(45deg, #ffc107, #28a745);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 20px;
    margin-bottom: 8px;
}

.bonus-offer p {
    color: #b0b8c0;
    font-size: 14px;
}

.login-btn-success {
    background: linear-gradient(45deg, #28a745, #ffc107, #dc3545);
    border: none;
    color: white;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.4);
}

.login-btn-success:hover {
    background: linear-gradient(45deg, #218838, #e0a800, #c82333);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.6);
    filter: brightness(1.1);
}

.compact-questions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.question-item {
    background: linear-gradient(145deg, rgba(45, 50, 55, 0.9), rgba(35, 40, 45, 0.9));
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 12px;
    padding: 15px;
    backdrop-filter: blur(10px);
}

.question-item h3 {
    color: #ffffff;
    font-size: 16px;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

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

.compact-options label {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: rgba(60, 65, 70, 0.6);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #e0e6ed;
    font-size: 14px;
}

.compact-options label:hover {
    background: rgba(70, 75, 80, 0.8);
    border-color: #4a90e2;
}

.compact-options input[type="radio"] {
    margin-right: 10px;
    accent-color: #4a90e2;
}

.compact-options label:has(input:checked) {
    background: rgba(74, 144, 226, 0.2);
    color: #ffffff;
    border: 1px solid #4a90e2;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
        padding-top: 150px;
    }

    .quiz-form {
        max-width: 100%;
        padding: 0 5px;
    }

    .top-banner {
        padding: 0 15px;
        height: 120px;
    }

    .top-banner .logo {
        width: 45px;
        height: 45px;
    }

    .quiz-form h2 {
        font-size: 22px;
    }

    .quiz-description {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .question-block {
        padding: 15px;
        margin-bottom: 10px;
    }

    .question-block h3 {
        font-size: 16px;
    }

    .options {
        gap: 8px;
        margin-bottom: 15px;
    }

    .option {
        padding: 10px 15px;
    }

    .option span:last-child {
        font-size: 14px;
    }

    .next-btn {
        padding: 12px;
        font-size: 15px;
    }

    .success-screen h2 {
        font-size: 24px;
    }

    .success-icon i {
        font-size: 50px;
    }

    .question-header {
        margin-bottom: 15px;
    }

    .question-number {
        padding: 6px 12px;
        font-size: 12px;
        margin-bottom: 10px;
    }
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(45deg, rgba(60, 65, 70, 0.8), rgba(50, 55, 60, 0.8));
    border: 2px solid rgba(80, 85, 90, 0.6);
    border-radius: 15px;
    color: #b0b8c0;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.submit-btn:not(:disabled) {
    background: linear-gradient(45deg, #4a90e2, #7b68ee);
    border-color: #4a90e2;
    color: white;
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

.submit-btn:not(:disabled):hover {
    background: linear-gradient(45deg, #357abd, #6a5acd);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.6);
}

/* Simple Quiz Styles */
.simple-quiz {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.question-group {
    background: linear-gradient(145deg, rgba(45, 50, 55, 0.9), rgba(35, 40, 45, 0.9));
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.question-group h3 {
    color: #ffffff;
    font-size: 18px;
    margin: 0 0 15px 0;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.simple-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(60, 65, 70, 0.6);
    border: 1px solid rgba(80, 85, 90, 0.5);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #e0e6ed;
    font-size: 16px;
    font-weight: 500;
}

.simple-option:hover {
    background: rgba(70, 75, 80, 0.8);
    border-color: #4a90e2;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.simple-option input[type="radio"] {
    margin-right: 12px;
    accent-color: #4a90e2;
    transform: scale(1.2);
}

.simple-option:has(input:checked) {
    background: rgba(74, 144, 226, 0.2);
    border-color: #4a90e2;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.3);
}

.option-text {
    flex: 1;
    line-height: 1.3;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .simple-quiz {
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .question-group {
        padding: 15px;
        border-radius: 10px;
    }
    
    .question-group h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .simple-option {
        padding: 10px 14px;
        font-size: 15px;
        border-radius: 8px;
    }
    
    .simple-option input[type="radio"] {
        margin-right: 10px;
        transform: scale(1.1);
    }
}

@media (max-width: 480px) {
    .simple-quiz {
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .question-group {
        padding: 12px;
        border-radius: 8px;
    }
    
    .question-group h3 {
        font-size: 15px;
        margin-bottom: 10px;
        line-height: 1.3;
    }
    
    .option-group {
        gap: 8px;
    }
    
    .simple-option {
        padding: 8px 12px;
        font-size: 14px;
        border-radius: 6px;
    }
    
    .simple-option input[type="radio"] {
        margin-right: 8px;
        transform: scale(1.0);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 5px;
        padding-top: 110px;
    }

    .question-block {
        padding: 12px;
        margin-bottom: 8px;
        border-radius: 10px;
    }

    .question-block h3 {
        font-size: 15px;
        margin-bottom: 15px;
    }

    .options {
        gap: 6px;
        margin-bottom: 12px;
    }

    .option {
        padding: 8px 12px;
        border-radius: 8px;
    }

    .option span:last-child {
        font-size: 13px;
    }

    .top-banner {
        height: 90px;
        padding: 0 10px;
    }

    .top-banner .logo {
        width: 35px;
        height: 35px;
    }

    .quiz-form h2 {
        font-size: 20px;
        margin-bottom: 5px;
    }

    .quiz-description {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .success-screen {
        padding: 20px 15px;
    }

    .success-screen h2 {
        font-size: 20px;
    }

    .bonus-offer h3 {
        font-size: 18px;
    }

    .question-header {
        margin-bottom: 12px;
    }

    .question-number {
        padding: 4px 10px;
        font-size: 11px;
        margin-bottom: 8px;
    }

    .option-letter {
        width: 25px;
        height: 25px;
        font-size: 12px;
        margin-right: 10px;
    }

    .next-btn {
        padding: 10px;
        font-size: 14px;
        border-radius: 10px;
    }
}