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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    width: 100vw;
    background: #f5f5f5;
}

@media (min-width: 768px) {
    body {
        height: 100vh;
        overflow: hidden;
    }
}

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

@media (min-width: 768px) {
    .quiz-container {
        height: 100%;
    }
}

.quiz-step {
    display: none;
    width: 100%;
    min-height: 100vh;
    position: relative;
}

@media (min-width: 768px) {
    .quiz-step {
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
    }
}

.quiz-step.active {
    display: flex;
}

/* Desktop Layout */
@media (min-width: 768px) {
    .quiz-step {
        flex-direction: row;
    }

    .step-left {
        width: 45%;
        background: linear-gradient(135deg, #003366 0%, #001a33 100%);
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 40px;
    }

    .step-left::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><text x="50" y="500" font-size="200" fill="rgba(255,255,255,0.05)" font-weight="bold">Bank Polski</text></svg>');
        background-size: cover;
        background-position: center;
        opacity: 0.3;
        filter: blur(2px);
    }

    .step-right {
        width: 55%;
        background: #ffffff;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        gap: 40px;
    }
}

/* Mobile Layout */
@media (max-width: 767px) {
    .quiz-step {
        flex-direction: column;
    }

    .step-left {
        width: 100%;
        min-height: 45vh;
        background: linear-gradient(135deg, #003366 0%, #001a33 100%);
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 30px 20px;
    }

    .step-left::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><text x="50" y="500" font-size="200" fill="rgba(255,255,255,0.05)" font-weight="bold">Bank Polski</text></svg>');
        background-size: cover;
        background-position: center;
        opacity: 0.3;
        filter: blur(2px);
    }

    .step-right {
        width: 100%;
        flex: 1;
        background: #ffffff;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 30px 20px;
    }
}

.logo-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.logo-circle {
    background: #ffffff;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.logo-text {
    font-size: 14px;
    color: #000;
    font-weight: 600;
    margin-top: 4px;
    text-align: center;
}

.step-indicator {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    z-index: 2;
    margin-bottom: 30px;
}

.question {
    color: #ffffff;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    line-height: 1.3;
    position: relative;
    z-index: 2;
    margin-bottom: 15px;
}

.instruction {
    color: #ffffff;
    font-size: 16px;
    font-weight: 400;
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
}

.progress-bar {
    display: flex;
    gap: 8px;
    position: relative;
    z-index: 2;
    margin-top: auto;
}

.progress-segment {
    height: 4px;
    flex: 1;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    transition: background 0.3s ease;
}

.progress-segment.active {
    background: #ffffff;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 0;
    max-width: 500px;
    width: 100%;
    align-self: center;
}

.option {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ffffff;
    position: relative;
}

.option:hover {
    border-color: #003366;
}

.option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-custom {
    width: 24px;
    height: 24px;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    background: #ffffff;
}

.option input[type="radio"]:checked + .radio-custom {
    background: #003366;
    border-color: #003366;
}

.option input[type="radio"]:checked + .radio-custom::after {
    content: '✓';
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
}

.option input[type="radio"]:checked ~ .option-text {
    color: #003366;
    font-weight: 600;
}

.option.selected {
    border-color: #003366;
    background: #f0f7ff;
}

.option-text {
    color: #333333;
    font-size: 16px;
    line-height: 1.5;
    flex: 1;
}

.navigation-buttons {
    display: flex;
    gap: 15px;
    margin-top: 0;
    max-width: 500px;
    width: 100%;
    align-self: center;
}

.btn-back,
.btn-next,
.btn-submit {
    flex: 1;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
    background: #ffffff;
    color: #333333;
}

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

.btn-next,
.btn-submit {
    background: #003366;
    color: #ffffff;
    border-color: #003366;
}

.btn-next:hover:not(:disabled),
.btn-submit:hover:not(:disabled) {
    background: #002244;
    border-color: #002244;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.3);
}

.btn-back:hover:not(:disabled) {
    border-color: #003366;
    color: #003366;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 0;
    max-width: 500px;
    width: 100%;
    align-self: center;
}

.form-group {
    width: 100%;
}

.contact-form input[type="text"],
.contact-form input[type="tel"] {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #333333;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="tel"]:focus {
    outline: none;
    border-color: #003366;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.contact-form input::placeholder {
    color: #999999;
}

.phone-group {
    display: flex;
    gap: 10px;
}

.phone-code-selector {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    min-width: 120px;
    gap: 8px;
}

.flag-icon {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
}

.country-code {
    font-size: 16px;
    color: #333333;
    font-weight: 500;
}

.dropdown-arrow {
    font-size: 12px;
    color: #999999;
    margin-left: auto;
}

.phone-group input[type="tel"] {
    flex: 1;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .question {
        font-size: 22px;
    }

    .instruction {
        font-size: 14px;
    }

    .option {
        padding: 15px;
    }

    .option-text {
        font-size: 14px;
    }

    .navigation-buttons {
        flex-direction: column;
    }

    .btn-back,
    .btn-next,
    .btn-submit {
        width: 100%;
    }
}

