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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden;
}

@supports (height: 100dvh) {
    body {
        min-height: 100dvh;
    }
}

.container {
    max-width: 800px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #81C784);
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}





.quiz-container {
    padding: 40px;
    min-height: 500px;
}

.step {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.step-header {
    text-align: center;
    margin-bottom: 40px;
}

.step-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step-header p {
    font-size: 1.1rem;
    color: #7f8c8d;
    font-weight: 400;
}

.question-container h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

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

.option {
    display: flex;
    align-items: center;
    padding: 25px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid transparent;
    border-radius: 15px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
}

.option:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.option:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    z-index: -1;
}



.option.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.option-icon {
    font-size: 2.5rem;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.option:hover .option-icon {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 1);
}

.option:active .option-icon {
    transform: scale(0.95);
}

.option-text {
    flex: 1;
}

.option-text strong {
    display: block;
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.option-text span {
    font-size: 1rem;
    color: #7f8c8d;
    font-weight: 400;
}

.form-container {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.error-message {
    background: rgba(255, 87, 87, 0.1);
    border: 2px solid rgba(255, 87, 87, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

.error-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.error-text {
    color: #d63031;
    font-size: 1rem;
    line-height: 1.4;
}

.error-text small {
    display: block;
    margin-top: 5px;
    color: #636e72;
    font-size: 0.85rem;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-group input:hover {
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(255, 255, 255, 1);
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

.checkbox-group {
    margin-bottom: 30px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.9rem;
    color: #7f8c8d;
    line-height: 1.4;
}

.checkbox-label span {
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    margin-right: 10px;
    margin-top: 2px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkbox-label:hover .checkmark {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.05);
}

.checkbox-label:active .checkmark {
    transform: scale(0.95);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-label a {
    color: #667eea;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.submit-btn:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}





.submit-btn.loading {
    pointer-events: none;
}

.submit-btn.loading span {
    opacity: 0;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.submit-btn.loading .loading-spinner {
    opacity: 1;
}

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





.success-container {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.success-container h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #4CAF50, #81C784);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.success-container p {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 15px;
    line-height: 1.6;
}

.gift-info {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(129, 199, 132, 0.1));
    border-radius: 15px;
    border: 2px solid rgba(76, 175, 80, 0.2);
}

.gift-icon {
    font-size: 2.5rem;
    margin-right: 15px;
}

.gift-text {
    text-align: left;
    font-size: 1rem;
    color: #2c3e50;
}

.navigation {
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.8);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-btn {
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    background: rgba(255, 255, 255, 0.8);
    color: #7f8c8d;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
}

.nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(127, 140, 141, 0.2);
    background: rgba(255, 255, 255, 1);
}

.nav-btn:active {
    transform: translateY(0) scale(0.96);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}





.nav-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.nav-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, #5a6fd8 0%, #6c4190 100%);
}





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

@media (max-width: 768px) {
    body {
        padding: 10px;
        min-height: 100vh;
    }
    
    @supports (height: 100dvh) {
        body {
            min-height: 100dvh;
        }
    }
    
    .container {
        margin: 5px;
        border-radius: 12px;
    }
    
    .progress-bar {
        height: 4px;
    }
    
    .quiz-container {
        padding: 15px 12px;
        min-height: 380px;
    }
    
    .step-header {
        margin-bottom: 25px;
    }
    
    .step-header h1 {
        font-size: 1.6rem;
        margin-bottom: 10px;
        line-height: 1.2;
    }
    
    .step-header p {
        font-size: 0.95rem;
    }
    
    .question-container h2 {
        font-size: 1.3rem;
        margin-bottom: 20px;
        line-height: 1.3;
    }
    
    .option {
        padding: 15px;
        flex-direction: row;
        text-align: left;
        gap: 15px;
        min-height: 60px;
    }
    
    .option-icon {
        font-size: 2rem;
        width: 50px;
        height: 50px;
        margin-right: 0;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .option-text strong {
        font-size: 1.1rem;
    }
    
    .option-text span {
        font-size: 0.85rem;
    }
    
    .form-container {
        max-width: 100%;
    }
    
    .input-group {
        margin-bottom: 18px;
    }
    
    .input-group label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .input-group input {
        padding: 12px 15px;
        font-size: 0.95rem;
        min-height: 44px;
        box-sizing: border-box;
    }
    
    .submit-btn {
        padding: 15px;
        font-size: 1rem;
    }
    
    .checkbox-group {
        margin-bottom: 20px;
    }
    
    .checkbox-label {
        font-size: 0.85rem;
    }
    
    .success-container {
        padding: 25px 15px;
    }
    
    .success-container h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .success-container p {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .gift-info {
        margin-top: 20px;
        padding: 15px;
        flex-direction: column;
        text-align: center;
    }
    
    .gift-icon {
        font-size: 2rem;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .gift-text {
        font-size: 0.9rem;
        text-align: center;
    }
    
    .navigation {
        padding: 12px 15px;
        flex-direction: row;
        gap: 10px;
    }
    
    .nav-btn {
        flex: 1;
        padding: 10px 15px;
        font-size: 0.9rem;
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
    }
    
    .container {
        margin: 0;
        border-radius: 10px;
    }
    
    .progress-bar {
        height: 3px;
    }
    
    .error-message {
        padding: 10px;
        margin-bottom: 15px;
    }
    
    .error-icon {
        font-size: 1.2rem;
        margin-right: 10px;
    }
    
    .error-text {
        font-size: 0.9rem;
    }
    
    .error-text small {
        font-size: 0.75rem;
    }
    
    .quiz-container {
        padding: 15px 10px;
        min-height: 350px;
    }
    
    .step-header {
        margin-bottom: 20px;
    }
    
    .step-header h1 {
        font-size: 1.4rem;
        margin-bottom: 8px;
        line-height: 1.1;
    }
    
    .step-header p {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .question-container h2 {
        font-size: 1.1rem;
        margin-bottom: 15px;
        line-height: 1.2;
    }
    
    .options {
        gap: 12px;
    }
    
    .option {
        padding: 12px;
        gap: 12px;
        min-height: 50px;
    }
    
    .option-icon {
        font-size: 1.8rem;
        width: 40px;
        height: 40px;
    }
    
    .option-text strong {
        font-size: 1rem;
        margin-bottom: 3px;
    }
    
    .option-text span {
        font-size: 0.8rem;
        line-height: 1.2;
    }
    
    .input-group {
        margin-bottom: 15px;
    }
    
    .input-group label {
        font-size: 0.85rem;
        margin-bottom: 5px;
    }
    
    .input-group input {
        padding: 10px 12px;
        font-size: 0.9rem;
        min-height: 44px;
        box-sizing: border-box;
    }
    
    .submit-btn {
        padding: 12px;
        font-size: 0.95rem;
        min-height: 44px;
    }
    
    .checkbox-group {
        margin-bottom: 15px;
    }
    
    .checkbox-label {
        font-size: 0.8rem;
        line-height: 1.3;
        min-height: 44px;
        align-items: center;
    }
    
    .checkmark {
        width: 16px;
        height: 16px;
        margin-right: 8px;
    }
    
    .checkbox-label input[type="checkbox"]:checked + .checkmark::after {
        font-size: 10px;
    }
    
    .success-container {
        padding: 20px 10px;
    }
    
    .success-icon {
        font-size: 3rem;
        margin-bottom: 15px;
    }
    
    .success-container h1 {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }
    
    .success-container p {
        font-size: 0.9rem;
        margin-bottom: 10px;
        line-height: 1.4;
    }
    
    .gift-info {
        margin-top: 15px;
        padding: 12px;
    }
    
    .gift-icon {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    
    .gift-text {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .navigation {
        padding: 10px;
        gap: 8px;
    }
    
    .nav-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 360px) {
    .progress-bar {
        height: 2px;
    }
    
    .quiz-container {
        padding: 12px 8px;
        min-height: 320px;
    }
    
    .step-header {
        margin-bottom: 15px;
    }
    
    .step-header h1 {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }
    
    .step-header p {
        font-size: 0.8rem;
    }
    
    .question-container h2 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .options {
        gap: 8px;
    }
    
    .option {
        padding: 8px;
        gap: 8px;
        min-height: 44px;
    }
    
    .option-icon {
        font-size: 1.6rem;
        width: 35px;
        height: 35px;
    }
    
    .option-text strong {
        font-size: 0.95rem;
    }
    
    .option-text span {
        font-size: 0.75rem;
    }
    
    .input-group {
        margin-bottom: 12px;
    }
    
    .input-group input {
        padding: 8px 10px;
        font-size: 0.85rem;
        min-height: 40px;
        box-sizing: border-box;
    }
    
    .submit-btn {
        padding: 10px;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    .success-container {
        padding: 15px 8px;
    }
    
    .success-container h1 {
        font-size: 1.4rem;
    }
    
    .success-container p {
        font-size: 0.85rem;
    }
    
    .gift-info {
        margin-top: 12px;
        padding: 10px;
    }
    
    .gift-text {
        font-size: 0.8rem;
    }
    
    .navigation {
        padding: 8px;
        gap: 6px;
    }
    
    .nav-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
        min-height: 40px;
    }
}

@media (max-height: 600px) and (orientation: landscape) {
    .quiz-container {
        padding: 10px;
        min-height: auto;
    }
    
    .step-header {
        margin-bottom: 15px;
    }
    
    .step-header h1 {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .step-header p {
        font-size: 0.9rem;
    }
    
    .question-container h2 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .options {
        gap: 10px;
    }
    
    .option {
        padding: 12px;
    }
    
    .success-container {
        padding: 15px;
    }
    
    .navigation {
        padding: 8px 15px;
    }
}

.ip-block-warning {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ip-block-warning .warning-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

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

.ip-block-warning .warning-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
}

.ip-block-warning .warning-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 10px;
    text-align: center;
}

.ip-block-warning .warning-content p strong {
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
    margin-top: 8px;
}

.ip-block-warning .warning-note {
    font-size: 0.9rem;
    opacity: 0.9;
    font-style: italic;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

@media (max-width: 480px) {
    .ip-block-warning {
        padding: 20px 15px;
    }
    
    .ip-block-warning .warning-icon {
        font-size: 2.5rem;
    }
    
    .ip-block-warning .warning-content h3 {
        font-size: 1.2rem;
    }
    
    .ip-block-warning .warning-content p {
        font-size: 0.9rem;
    }
} 