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

body {
    font-family: "PT Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #212529;
    line-height: 24px;
    overflow-x: hidden;
    background: #FFFFFF;
}

.quiz-container {
    width: 100%;
    min-height: 100vh;
    background: #FFFFFF;
    position: relative;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.screen.active {
    opacity: 1;
    visibility: visible;
}

.quiz-split {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.quiz-photo-section {
    flex: 0 0 50%;
    width: 50%;
    position: relative;
    overflow: hidden;
    background: #FFFFFF;
}

.quiz-main-photo {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    display: block;
}

.quiz-content-section {
    flex: 0 0 50%;
    width: 50%;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    position: relative;
}

.quiz-header {
    padding: 30px 40px;
    text-align: center;
}

.quiz-logo {
    width: 200px;
    height: 77px;
    display: inline-block;
    object-fit: contain;
}

.quiz-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 80px;
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}

.quiz-loading-screen {
    align-items: center;
    text-align: center;
}

.quiz-step-indicator {
    margin-bottom: 30px;
}

.quiz-step-indicator h3 {
    font-size: 20px;
    font-weight: 700;
    color: #E91E63;
    letter-spacing: 1px;
}

@media (min-width: 1025px) {
    .quiz-step-indicator h3 {
        font-size: 28px;
        text-align: center;
    }
}

.quiz-question-block {
    margin-bottom: 20px;
}

.quiz-question-block h2 {
    font-family: "PT Sans", sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #50115A;
    line-height: 1.4;
    text-align: center;
}

.quiz-input-hint {
    font-family: "PT Sans", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #757575;
    text-align: center;
    margin-top: 8px;
    margin-bottom: 0;
}

.quiz-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.quiz-answer-btn {
    width: 100%;
    padding: 18px 30px;
    font-family: "PT Sans", sans-serif;
    font-size: 22px;
    font-weight: 700;
    border: 2px solid #E0E0E0;
    background: #FFFFFF;
    color: #212529;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.quiz-answer-btn:hover {
    background: #F5F5F5;
    border-color: #D0D0D0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.quiz-answer-btn.selected {
    background: #4CAF50;
    border-color: #4CAF50;
    color: #FFFFFF;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}


.quiz-answer-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.quiz-answer-btn:active::after {
    width: 300px;
    height: 300px;
}

.quiz-attention-icon,
.quiz-note-icon {
    font-size: 80px;
    margin: 0 auto 25px;
    text-align: center;
}

.quiz-attention-title {
    font-family: "PT Sans", sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #E51875;
    margin-bottom: 20px;
    line-height: 1.2;
    text-align: center;
}

.quiz-attention-description {
    font-family: "PT Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #212529;
    line-height: 24px;
    margin-bottom: 40px;
    text-align: center;
}

.quiz-note-title {
    font-family: "PT Sans", sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #50115A;
    margin-bottom: 15px;
    text-align: center;
}

.quiz-note-description {
    font-family: "PT Sans", sans-serif;
    font-size: 19px;
    font-weight: 400;
    color: #212529;
    line-height: 28px;
    margin-bottom: 35px;
    text-align: center;
}

.quiz-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: "PT Sans", sans-serif;
    font-size: 22px;
    font-weight: 700;
    background: #4CAF50;
    color: #FFFFFF;
    padding: 18px 50px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.4);
    transition: all 0.3s ease;
    margin: 0 auto;
}

.quiz-cta-primary:hover {
    background: #45a049;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.5);
}

.quiz-cta-primary:active {
    transform: translateY(0);
}

.quiz-cta-next {
    font-family: "PT Sans", sans-serif;
    font-size: 22px;
    font-weight: 700;
    background: #4CAF50;
    color: #FFFFFF;
    padding: 16px 45px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
    text-align: center;
    margin: 0 auto;
    display: block;
}

.quiz-cta-next:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.quiz-input-group {
    margin-bottom: 30px;
}

.quiz-birthday-group {
    display: flex;
    gap: 12px;
    margin-bottom: 35px;
}

.quiz-select-field {
    flex: 1;
    padding: 18px 20px;
    font-family: "PT Sans", sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #212529;
    background: #FFFFFF;
    border: 2px solid #E0E0E0;
    border-radius: 50px;
    transition: all 0.3s ease;
    outline: none;
    cursor: pointer;
    text-align: center;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.quiz-select-field:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.quiz-input-field {
    width: 100%;
    padding: 18px 24px;
    font-family: "PT Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #212529;
    background: #FFFFFF;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    transition: all 0.3s ease;
    outline: none;
}

.quiz-input-field::placeholder {
    color: #9E9E9E;
}

.quiz-input-field:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.quiz-input-field.error {
    border-color: #D32F2F;
}

.quiz-error-message {
    margin-top: 12px;
    padding: 12px 16px;
    background: #FFEBEE;
    border-left: 4px solid #D32F2F;
    border-radius: 4px;
    color: #D32F2F;
    font-family: "PT Sans", sans-serif;
    font-size: 14px;
    line-height: 20px;
    animation: fadeInUp 0.4s ease;
}


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

.quiz-loading-title {
    font-family: "PT Sans", sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #50115A;
    margin-bottom: 30px;
}

.quiz-loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #F0F0F0;
    border-top-color: #E91E63;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { 
        transform: rotate(360deg); 
    }
}

.quiz-loading-progress {
    width: 100%;
    max-width: 400px;
    height: 8px;
    background: #F0F0F0;
    border-radius: 10px;
    overflow: hidden;
    margin: 25px auto 0;
}

.quiz-loading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #E91E63, #4CAF50);
}

.quiz-loading-progress-bar.loading-active {
    animation: loadingProgress 3s ease-in-out forwards;
}

@keyframes loadingProgress {
    from { 
        width: 0%; 
    }
    to { 
        width: 100%; 
    }
}

.quiz-footer {
    padding: 15px 40px;
    text-align: center;
    border-top: 1px solid #F0F0F0;
}

.quiz-footer p {
    font-family: "PT Sans", sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: #505050;
    margin-bottom: 4px;
}

.quiz-footer-links {
    margin-top: 4px;
}

.quiz-footer-links a {
    font-family: "PT Sans", sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: #505050;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.quiz-footer-links a:hover {
    color: #212529;
}

@media (max-width: 1024px) {
    .quiz-split {
        flex-direction: column;
    }
    
    .quiz-photo-section,
    .quiz-content-section {
        flex: 1;
        width: 100%;
    }
    
    .quiz-main-photo {
        height: 33vh;
        min-height: 180px;
        object-fit: cover;
        object-position: center top;
    }
    
    .quiz-photo-overlay {
        bottom: 10px;
        left: 20px;
    }
    
    .quiz-logo {
        display: none;
    }
    
    .quiz-step-indicator h3 {
        font-size: 32px;
        text-align: center;
        letter-spacing: 0.5px;
    }
}

@media (max-width: 768px) {
    .quiz-header {
        padding: 20px 25px;
    }
    
    .quiz-logo {
        width: 160px;
        height: 62px;
        object-fit: contain;
    }
    
    .quiz-content-wrapper {
        padding: 40px 30px;
        justify-content: flex-start;
        padding-top: 60px;
    }
    
    #welcome-screen .quiz-content-wrapper {
        padding-top: 30px;
    }
    
    .quiz-footer {
        padding: 12px 25px;
    }
}

@media (max-width: 480px) {
    .quiz-content-wrapper {
        padding: 30px 20px;
    }
    
    .quiz-answer-btn {
        padding: 14px 20px;
    }

    .quiz-birthday-group {
        flex-direction: column;
        gap: 12px;
    }

    .quiz-select-field {
        width: 100%;
    }
}
