/* Base Reset & Fonts */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
    background: transparent;
    min-height: auto;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    height: auto;
    /* Allow shrink wrap */
}

/* Wizard Container */
.wizard-container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 20px;
    min-height: auto;
    /* Shrink to content */
    background: linear-gradient(135deg, #0f1f35 0%, #1a2a3f 100%);
    border-radius: 0;
    /* If embedding inside a rounded iframe, let iframe handle radius. */
    border-radius: 12px;
    box-shadow: none;
}

/* For very small heights, we might need a media query based on height? */
/* Let's just make the sidebar contents tighter */

/* Sidebar */
.wizard-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    /* Reduced from 30px 20px */
    background: rgba(20, 30, 50, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 53, 0.1);
    backdrop-filter: blur(10px);
}

.wizard-main-headline {
    font-size: 24px;
    /* Reduced from 32px */
    /* Reduced from 48px */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #ffffff;
}

.wizard-main-headline .highlight {
    color: #FF6B35;
    display: block;
}

.wizard-description {
    font-size: 14px;
    /* Reduced from 16px */
    font-weight: 400;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.wizard-benefit {
    display: none;
    /* Hide to save vertical space */
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.5);
}

/* Form Container */
.wizard-form-container {
    display: flex;
    flex-direction: column;
    padding: 30px;
    /* Reduced padding */
    background: rgba(30, 42, 64, 0.5);
    border-radius: 12px;
}

/* Progress Bar */
.progress-bar-wrapper {
    width: 100%;
    height: 4px;
    /* Thinner */
    background-color: rgba(255, 107, 53, 0.15);
    border-radius: 10px;
    margin-bottom: 15px;
    /* Reduced from 25px */
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #FF6B35 0%, #FF8C5A 100%);
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.4);
}

/* Form Steps */
.form-steps-container {
    flex: 1;
    min-height: 300px;
    /* Reduced min-height */
}

.form-step {
    display: none;
    flex-direction: column;
    gap: 32px;
    animation: fadeIn 0.4s ease-in-out;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-question {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-question-label {
    font-size: 16px;
    /* Reduced from 18px */
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
    letter-spacing: 0.3px;
    margin-bottom: 5px;
}

.form-question-label.required::after {
    content: ' *';
    color: #FF6B35;
}

.form-question-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: -8px;
}

/* Inputs */
.form-input {
    width: 100%;
    padding: 10px 12px;
    /* Reduced from 14px 16px */
    font-size: 15px;
    font-family: inherit;
    border: 2px solid rgba(255, 107, 53, 0.2);
    border-radius: 10px;
    background-color: rgba(42, 63, 95, 0.4);
    color: #ffffff;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-input:focus {
    border-color: #FF6B35;
    background-color: rgba(42, 63, 95, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-input:hover:not(:disabled) {
    border-color: rgba(255, 107, 53, 0.4);
    background-color: rgba(42, 63, 95, 0.5);
}

/* Select */
.select-wrapper {
    position: relative;
    width: 100%;
}

.form-select {
    width: 100%;
    padding: 14px 40px 14px 16px;
    font-size: 15px;
    font-family: inherit;
    border: 2px solid rgba(255, 107, 53, 0.2);
    border-radius: 10px;
    background-color: rgba(42, 63, 95, 0.4);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    appearance: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-select option {
    background-color: #1a2a3f;
    color: #ffffff;
    padding: 10px;
}

.form-select:focus {
    border-color: #FF6B35;
    background-color: rgba(42, 63, 95, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.select-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #FF6B35;
    pointer-events: none;
}

/* Radio buttons */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background-color: rgba(42, 63, 95, 0.4);
    border: 2px solid rgba(255, 107, 53, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover {
    background-color: rgba(42, 63, 95, 0.6);
    border-color: rgba(255, 107, 53, 0.4);
}

.radio-option input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #FF6B35;
}

.radio-option label {
    flex: 1;
    font-size: 15px;
    color: #ffffff;
    cursor: pointer;
}

.radio-option input[type="radio"]:checked+label {
    font-weight: 600;
}

.radio-option:has(input[type="radio"]:checked) {
    background-color: rgba(255, 107, 53, 0.15);
    border-color: #FF6B35;
}

/* Buttons */
.form-buttons {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    /* Reduced from 40px */
}

.btn-previous,
.btn-next {
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.btn-previous {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-previous:hover:not(:disabled) {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-next {
    background: linear-gradient(90deg, #FF6B35 0%, #FF8C5A 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-next:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

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

.arrow {
    font-size: 18px;
}

/* Errors */
.error-message {
    font-size: 13px;
    color: #FF4444;
    margin-top: -8px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Results */
.result-container {
    text-align: center;
    padding: 40px;
}

.result-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

.result-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.result-box {
    background: rgba(255, 107, 53, 0.1);
    border: 2px solid #FF6B35;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
}

.result-price {
    font-size: 48px;
    font-weight: 700;
    color: #FF6B35;
    margin-bottom: 10px;
}

.result-details {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsiveness */
@media (max-width: 1024px) {
    .wizard-container {
        grid-template-columns: 1fr;
        gap: 15px;
        /* Reduced from 40px */
        padding: 10px;
        /* Reduced from 30px 20px */
    }

    .wizard-sidebar {
        padding: 15px;
        /* Reduced from 40px 30px */
        text-align: center;
    }

    .wizard-main-headline {
        font-size: 28px;
        /* Reduced */
        margin-bottom: 5px;
    }
}

@media (max-width: 768px) {
    .wizard-container {
        padding: 10px;
        /* Reduced from 20px 16px */
        gap: 15px;
        /* Reduced from 24px */
    }

    .wizard-sidebar {
        padding: 30px 24px;
    }

    .wizard-main-headline {
        font-size: 32px;
    }

    .wizard-form-container {
        padding: 30px 24px;
    }

    .form-question-label {
        font-size: 16px;
    }

    .form-input,
    .form-select {
        padding: 12px 14px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .wizard-main-headline {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .wizard-description {
        font-size: 13px;
    }

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

    .btn-previous,
    .btn-next {
        width: 100%;
        justify-content: center;
    }
}