/* ===== Reset & Variables ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* my-PV Corporate Design v4 – Hauptfarben */
    --teal: #006699;
    --un-blau: var(--teal);
    --teal-light: #3399cc;
    --teal-50: #e6f1f7;
    --teal-100: #b3d4e6;
    --teal-700: #004d73;
    --green: #99cc00;
    --un-gruen: var(--green);
    --green-dark: #7DAA00;
    --green-light: #AADD11;
    --green-50: #f4f9e6;
    --green-100: #e1efb3;
    --green-700: #7da800;
    --navy: #333333;
    --orange: #ff6600;
    --dark: #333333;
    --gray: #636E72;
    --gray-light: #B2BEC3;
    --gray-lighter: #DFE6E9;
    --gray-bg: #f5f5f5;
    --white: #FFFFFF;
    /* Layered shadows for subtler depth */
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px -8px rgba(0, 0, 0, 0.12);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px -4px rgba(0, 0, 0, 0.08);
    --shadow-card-hover: 0 2px 4px rgba(0, 0, 0, 0.05), 0 12px 28px -6px rgba(0, 0, 0, 0.14);
    --radius: 4px;
    --radius-sm: 4px;
    --radius-pill: 9999px;
    --focus-ring: 0 0 0 3px rgba(0, 102, 153, 0.18);
    --focus-ring-green: 0 0 0 3px rgba(153, 204, 0, 0.22);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Open Sans', sans-serif;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    color: var(--dark);
    line-height: 1.5;
    min-height: 100vh;
    background: var(--white);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 16px 72px;
}

/* ===== Overlay ===== */
.overlay {
    display: none;
}

/* ===== Wizard Card ===== */
.wizard {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 760px;
    min-height: 744px;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid #d8e8f1;
    border-top: 4px solid var(--teal);
    border-radius: var(--radius);
    box-shadow: 0 28px 50px rgba(0, 102, 153, 0.12);
    overflow: hidden;
    animation: wizardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes wizardIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== Header ===== */
.wizard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 40px 24px;
    gap: 16px;
    border-bottom: 1px solid #e4edf2;
}

.wizard-title {
    font-size: 1.56rem;
    font-weight: 400;
    color: var(--teal);
    letter-spacing: 0;
    line-height: 1.2;
}

.logo {
    flex-shrink: 0;
    text-align: right;
}

.logo-svg {
    width: 136px;
    height: auto;
}

/* ===== Progress Bar ===== */
.progress {
    padding: 8px 40px 46px;
}

.progress-track {
    position: relative;
    height: 5px;
    background: var(--gray-lighter);
    border-radius: var(--radius);
    overflow: visible;
}

.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 16.67%;
    background: var(--teal);
    border-radius: var(--radius);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    width: 10px;
    height: 12px;
    background: var(--green);
    transform: translateY(-50%);
}

.progress-label {
    position: absolute;
    left: 0;
    top: 25px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--teal);
    z-index: 1;
    pointer-events: none;
}

/* ===== Steps Container ===== */
.steps-wrapper {
    position: relative;
    flex: 1 1 auto;
    overflow: hidden;
    min-height: 302px;
}

.steps-container {
    padding: 0 40px 34px;
}

.step {
    display: none;
    animation: stepIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.step.active {
    display: block;
}

.step.slide-out-left {
    animation: slideOutLeft 0.25s ease-in both;
}

.step.slide-out-right {
    animation: slideOutRight 0.25s ease-in both;
}

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

@keyframes slideOutLeft {
    to {
        opacity: 0;
        transform: translateX(-20px);
    }
}

@keyframes slideOutRight {
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

/* ===== Question Headings ===== */
.question {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--teal);
    margin-bottom: 32px;
    line-height: 1.35;
    text-align: left;
}

.question.mt {
    margin-top: 34px;
}

.question-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 32px;
}

.question-row.mt {
    margin-top: 34px;
}

.question-row .question {
    flex: 1 1 auto;
    margin-bottom: 0;
    min-width: 0;
}

.info-tooltip {
    position: relative;
    flex: 0 0 auto;
    margin-top: 3px;
}

.info-button {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #c9ddea;
    border-radius: 50%;
    background: var(--white);
    color: var(--teal);
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition), color var(--transition), background var(--transition);
}

@media (hover: hover) {
    .info-button:hover {
        border-color: var(--teal);
        background: #f8fbfd;
    }
}

.info-button:focus-visible {
    border-color: var(--teal);
    box-shadow: var(--focus-ring);
    outline: none;
}

.info-tooltip__bubble {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    z-index: 10;
    width: 320px;
    max-width: calc(100vw - 48px);
    padding: 12px 14px;
    border: 1px solid #d8e8f1;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-card-hover);
    color: var(--dark);
    font-size: 0.86rem;
    font-weight: 400;
    line-height: 1.5;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    visibility: hidden;
}

.info-tooltip__bubble::after {
    content: '';
    position: absolute;
    right: 8px;
    bottom: -6px;
    width: 10px;
    height: 10px;
    border-right: 1px solid #d8e8f1;
    border-bottom: 1px solid #d8e8f1;
    background: var(--white);
    transform: rotate(45deg);
}

.info-tooltip__bubble p {
    margin: 0 0 8px;
}

.info-tooltip__bubble ul {
    margin: 0;
    padding-left: 18px;
}

.info-tooltip__bubble li {
    margin: 0 0 6px;
}

.info-tooltip__bubble li:last-child {
    margin-bottom: 0;
}

.info-tooltip:hover .info-tooltip__bubble,
.info-tooltip:focus-within .info-tooltip__bubble {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.hint {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 12px;
}

/* ===== Card Grid ===== */
.card-grid {
    display: grid;
    gap: 12px;
}

.card-grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ===== Selection Cards ===== */
.select-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 24px 16px 26px;
    background: var(--white);
    border: 1px solid #c9ddea;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
    font-size: inherit;
    outline: none;
    text-align: center;
    min-height: 130px;
    min-width: 0;
}

@media (hover: hover) {
    .select-card:hover {
        border-color: var(--teal);
        background: #f8fbfd;
    }
}

.select-card:focus-visible {
    border-color: var(--teal);
    box-shadow: var(--focus-ring);
}

.select-card.selected {
    border-color: var(--green);
    background: rgba(153, 204, 0, 0.04);
    box-shadow: inset 0 0 0 1px var(--green);
}

.select-card.selected .card-icon {
    color: var(--green-dark);
}


.card-icon {
    width: 38px;
    height: 38px;
    color: var(--teal);
    transition: color var(--transition);
    flex-shrink: 0;
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.card-label {
    font-size: 0.88rem;
    font-weight: 400;
    color: #555;
    line-height: 1.35;
    max-width: 100%;
    overflow-wrap: anywhere;
    hyphens: auto;
}

/* ===== Radio Group ===== */
.radio-group {
    display: inline-flex;
    gap: 8px;
}

.radio-btn {
    padding: 12px 24px;
    border: 1px solid #c9ddea;
    border-radius: var(--radius);
    background: var(--white);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--dark);
    cursor: pointer;
    transition: all var(--transition);
    outline: none;
}

@media (hover: hover) {
    .radio-btn:hover {
        border-color: var(--gray-light);
        background: var(--gray-bg);
    }
}

.radio-btn:focus-visible {
    box-shadow: var(--focus-ring);
}

.radio-btn.selected {
    border-color: var(--teal);
    background: var(--teal);
    color: var(--white);
}

/* ===== Form Inputs ===== */
.input-row {
    max-width: 360px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-suffix {
    font-size: 0.85rem;
    color: var(--gray);
    white-space: nowrap;
}

.optional-label {
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--gray);
}

.form-input,
.form-select {
    width: 100%;
    min-height: 46px;
    padding: 12px 16px;
    border: 1px solid #c9ddea;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.94rem;
    font-weight: 400;
    color: var(--dark);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.form-input::placeholder {
    color: var(--gray-light);
}

.form-input:focus,
.form-select:focus {
    border-color: var(--teal);
    box-shadow: var(--focus-ring);
}

.form-input.is-invalid,
.form-select.is-invalid {
    border-color: #c62828;
    background-color: #fff5f5;
}

.form-input.is-invalid:focus,
.form-select.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.16);
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23636E72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
    cursor: pointer;
}

.input-with-unit {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 100%;
}

.input-with-unit .form-input {
    padding-right: 56px;
}

.input-unit {
    position: absolute;
    right: 16px;
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--gray);
    pointer-events: none;
}

/* Remove number input spinners */
.form-input[type="number"]::-webkit-inner-spin-button,
.form-input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.form-input[type="number"] {
    -moz-appearance: textfield;
}

/* ===== Range Slider ===== */
.slider-row {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 420px;
}

.form-range {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: var(--gray-lighter);
    outline: none;
    cursor: pointer;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--green);
    border: 3px solid var(--white);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.form-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.form-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--green);
    border: 3px solid var(--white);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.form-range::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 3px;
}

.slider-value {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--teal);
    white-space: nowrap;
    min-width: 60px;
    text-align: right;
}

/* ===== Conditional Section ===== */
.conditional-section {
    display: none;
    animation: condIn 0.3s ease both;
}

.conditional-section.visible {
    display: block;
}

.conditional-section .question {
    color: var(--gray);
}

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

/* ===== Contact Form (Step 6) ===== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-row-inline {
    display: flex;
    gap: 10px;
}

.form-row-inline .form-input {
    flex: 1;
    min-width: 0;
}

.form-row-inline .form-select {
    flex: 1.5;
    min-width: 0;
}

.contact-form .form-input:focus {
    border-color: var(--teal);
    box-shadow: var(--focus-ring);
}

/* Checkbox */
.checkbox-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    margin-top: 12px;
    padding: 0 18px;
    min-height: 48px;
    border: 1px solid #c9ddea;
    border-radius: var(--radius);
    background: var(--white);
    transition: all var(--transition);
}

.checkbox-row input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--teal);
    border-radius: var(--radius);
    transition: all var(--transition);
    position: relative;
}

.checkbox-row input:checked + .checkbox-custom {
    background: var(--teal);
    border-color: var(--teal);
}

.checkbox-row input:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-row input:focus-visible + .checkbox-custom {
    box-shadow: var(--focus-ring);
}

.checkbox-row.is-invalid .checkbox-custom {
    border-color: #c62828;
    background-color: #fff5f5;
}

.checkbox-row.is-invalid .checkbox-label {
    color: #c62828;
}

.checkbox-label {
    font-size: 0.95rem;
    color: #4a4f54;
    line-height: 1.35;
    font-weight: 400;
}

/* Submit Button */
.btn-submit {
    margin-top: 8px;
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius);
    background: var(--teal);
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
    transition: all var(--transition);
    outline: none;
    box-shadow: none;
}

@media (hover: hover) {
    .btn-submit:hover:not(:disabled) {
        background: var(--teal-700);
        box-shadow: none;
    }
}

.btn-submit:active:not(:disabled) {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
    box-shadow: none;
}

/* ===== Footer Navigation ===== */
.wizard-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex: 0 0 auto;
    padding: 20px 40px 36px;
    min-height: 100px;
    border-top: 1px solid #e4edf2;
}

.btn-back {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--gray);
    cursor: pointer;
    padding: 8px 4px;
    transition: color var(--transition);
    outline: none;
    visibility: hidden;
}

.btn-back.visible {
    visibility: visible;
}

@media (hover: hover) {
    .btn-back:hover {
        color: var(--dark);
    }
}

.btn-next {
    min-width: 129px;
    height: 44px;
    padding: 0 26px;
    border: none;
    border-radius: var(--radius);
    background: var(--teal);
    color: var(--white);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 400;
    cursor: pointer;
    transition: all var(--transition);
    outline: none;
    margin-left: auto;
}

.btn-next::after {
    content: ' \2192';
    margin-left: 8px;
}

@media (hover: hover) {
    .btn-next:hover:not(:disabled) {
        background: var(--teal-700);
    }
}

.btn-next:disabled {
    opacity: 1;
    background: #dfe4e9;
    color: #9aa1a8;
    cursor: not-allowed;
}

.btn-next.hidden {
    display: none;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    body {
        padding: 28px 12px;
        align-items: flex-start;
    }

    .wizard-header {
        padding: 24px 20px 20px;
        flex-wrap: wrap;
    }

    .wizard-title {
        font-size: 1.35rem;
    }

    .logo-svg {
        width: 116px;
    }

    .progress {
        padding: 8px 20px 38px;
    }

    .steps-container {
        padding: 0 20px 28px;
    }

    .wizard-footer {
        padding: 20px;
        min-height: 130px;
    }

    .card-grid.cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .select-card {
        padding: 18px 10px 20px;
        min-height: 112px;
    }

    .card-icon {
        width: 34px;
        height: 34px;
    }

    .card-label {
        font-size: 0.82rem;
    }

    .btn-next {
        min-width: 116px;
    }

    .input-row {
        max-width: 100%;
    }

    .slider-row {
        max-width: 100%;
    }
}

@media (max-width: 380px) {
    .card-grid.cols-3,
    .card-grid.cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Utility: slider track fill ===== */
.form-range {
    --range-progress: 32%;
}

/* Webkit slider track fill via linear-gradient */
@supports selector(::-webkit-slider-runnable-track) {
    .form-range {
        background: linear-gradient(
            to right,
            var(--green) 0%,
            var(--green) var(--range-progress),
            var(--gray-lighter) var(--range-progress),
            var(--gray-lighter) 100%
        );
        border-radius: 3px;
    }
}

/* Firefox slider track fill */
.form-range::-moz-range-progress {
    background: var(--green);
    border-radius: 3px;
    height: 6px;
}

.form-range::-moz-range-track {
    background: var(--gray-lighter);
    border-radius: 3px;
    height: 6px;
}

/* ===== Success / Product Recommendation ===== */
.success-screen {
    display: block;
    padding: 56px 48px 40px;
    text-align: center;
}

.success-check {
    width: 72px;
    height: 72px;
    margin: 0 auto 28px;
    background: var(--un-gruen);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
}

.success-check svg {
    display: block;
}

.success-heading {
    font-family: var(--font);
    font-weight: 400;
    font-size: 1.75rem;
    color: var(--un-blau);
    margin: 0 0 32px;
    letter-spacing: 0;
    line-height: 1.2;
}

#recommendationResult {
    text-align: left;
    max-width: 620px;
    margin: 0 auto;
}

.recommendation__explanation {
    font-size: 0.95rem;
    color: var(--dark);
    line-height: 1.65;
    margin: 0 0 24px;
    text-align: left;
}

.recommendation__hints {
    list-style: none;
    padding: 20px 24px;
    margin: 0 0 32px;
    background: #f5f7f9;
    border-left: 3px solid var(--un-blau);
}

.recommendation__hints li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 10px;
    font-size: 0.92rem;
    color: var(--dark);
    line-height: 1.6;
}

.recommendation__hints li:last-child {
    margin-bottom: 0;
}

.recommendation__hints li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    background: var(--un-blau);
    border-radius: 0;
}

.recommendation__hints .recommendation__tip {
    color: var(--un-blau);
}

.recommendation__hints .recommendation__tip::before {
    background: var(--un-gruen);
}

.recommendation__hints .recommendation__endcustomer-notice {
    color: #666;
}

.recommendation__hints .recommendation__endcustomer-notice::before {
    background: var(--un-gruen);
}

.recommendation__hints a {
    color: var(--un-blau);
    text-decoration: underline;
    font-weight: 400;
}

.recommendation__cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 0 0 28px;
    justify-items: center;
}

.recommendation__cards--multi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.recommendation-card {
    background: var(--white);
    border: 1px solid rgba(0, 102, 153, 0.18);
    border-radius: var(--radius);
    padding: 20px 20px 24px;
    width: 100%;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.recommendation-card:hover {
    border-color: var(--un-blau);
    box-shadow: 0 4px 12px rgba(0, 102, 153, 0.08);
}

.recommendation-card--small {
    max-width: 280px;
}

.recommendation-card__image {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin-bottom: 16px;
    background: #f5f7f9;
    border-radius: var(--radius);
}

.recommendation-card__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.recommendation-card__name {
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 400;
    color: var(--un-blau);
    margin: 0;
}

.recommendation-card__link {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--radius);
    background: var(--un-blau);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 400;
    text-decoration: none;
    transition: background 0.15s ease;
}

.recommendation-card__link:hover {
    background: var(--teal-700);
}

.recommendation__footer {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    margin: 24px 0 0;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 102, 153, 0.12);
}

@media (max-width: 600px) {
    .success-screen {
        padding: 40px 20px 28px;
    }

    .recommendation__cards--multi {
        grid-template-columns: 1fr;
    }
}

/* ===== Endscreen UI ===== */
.wizard--success .steps-wrapper {
    min-height: auto;
    overflow: visible;
}

.wizard--success .wizard-footer {
    display: none;
}

.wizard--success .success-screen {
    padding: 0;
    text-align: left;
}

.success-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: var(--un-blau);
    font-size: 0.68rem;
    line-height: 1.2;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.success-eyebrow__mark {
    width: 7px;
    height: 7px;
    background: var(--un-gruen);
    flex: 0 0 auto;
}

.wizard--success .success-heading {
    margin: 0 0 12px;
    color: #555;
    font-size: 1.72rem;
    font-weight: 300;
    line-height: 1.25;
}

.wizard--success #recommendationResult {
    max-width: none;
    margin: 0;
}

.recommendation-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    min-height: 248px;
    margin: 0 0 30px;
    border: 1px solid #dfe5e8;
    border-radius: var(--radius);
    background: var(--white);
    overflow: hidden;
}

.recommendation-panel--no-media {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
}

.recommendation-panel__body {
    min-width: 0;
    padding: 28px 24px 28px 25px;
}

.recommendation-panel__media {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 0;
    padding: 20px;
    background: #f3f3f3;
}

.recommendation-panel .recommendation-card__body {
    align-items: flex-start;
    gap: 4px;
    margin: 0 0 16px;
}

.recommendation-panel .recommendation-card__name {
    color: var(--un-blau);
    font-size: 1.58rem;
    line-height: 1.25;
    text-align: left;
}

.recommendation-panel .recommendation__explanation {
    margin: 0 0 16px;
    color: #4f565a;
    font-size: 0.78rem;
    line-height: 1.65;
}

.recommendation-panel .recommendation__hints {
    margin: 0;
    padding: 0;
    background: transparent;
    border-left: 0;
}

.recommendation-panel .recommendation__hints li {
    margin: 0 0 11px;
    padding-left: 20px;
    color: #3f4548;
    font-size: 0.76rem;
    line-height: 1.55;
}

.recommendation-panel .recommendation__hints li::before {
    top: 0.57em;
    width: 7px;
    height: 7px;
    background: var(--un-gruen);
}

.recommendation-panel .recommendation__hints .recommendation__tip,
.recommendation-panel .recommendation__hints .recommendation__endcustomer-notice {
    color: #3f4548;
}

.recommendation-panel .recommendation__hints a {
    color: var(--un-blau);
}

.recommendation-panel .recommendation-card__image {
    width: min(220px, 100%);
    height: 208px;
    margin: 0;
    object-fit: contain;
    background: transparent;
}

.recommendation-panel__media .recommendation-card__image + .recommendation-card__image {
    width: 96px;
    height: 96px;
}

.recommendation-product__placeholder {
    width: min(220px, 100%);
    aspect-ratio: 1 / 0.95;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 0.7rem;
    text-align: center;
    border-radius: var(--radius);
    background:
        repeating-linear-gradient(
            45deg,
            #fff 0,
            #fff 8px,
            #e4e9ec 8px,
            #e4e9ec 14px
        );
}

.recommendation-next-steps {
    margin: 0 0 28px;
    padding: 25px 26px;
    border-radius: var(--radius);
    background: #f3f3f3;
}

.recommendation-next-steps__heading {
    margin: 0 0 14px;
    color: var(--un-blau);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.4;
}

.recommendation-next-steps .recommendation__footer {
    margin: 0 0 12px;
    padding: 0;
    border-top: 0;
    color: #3f4548;
    font-size: 0.78rem;
    font-style: normal;
    line-height: 1.75;
    text-align: left;
}

.recommendation-next-steps__list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.recommendation-next-steps__list li {
    position: relative;
    margin: 0 0 10px;
    padding-left: 20px;
    color: #3f4548;
    font-size: 0.78rem;
    line-height: 1.6;
}

.recommendation-next-steps__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.58em;
    width: 7px;
    height: 7px;
    background: var(--un-gruen);
}

.recommendation-next-steps__closing {
    margin: 0;
    color: #3f4548;
    font-size: 0.78rem;
    line-height: 1.65;
}

.recommendation-actions {
    margin: 0 0 4px;
}

.recommendation-action.recommendation-card__link {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 0 24px;
    border-radius: var(--radius);
    background: var(--un-gruen);
    color: #253100;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
}

.recommendation-action.recommendation-card__link:hover {
    background: var(--green-dark);
    color: var(--white);
}

.recommendation-action__arrow {
    font-size: 1.05rem;
    line-height: 1;
}

@media (max-width: 600px) {
    .wizard--success .success-screen {
        padding: 0;
    }

    .wizard--success .success-heading {
        font-size: 1.45rem;
    }

    .recommendation-panel {
        grid-template-columns: 1fr;
    }

    .recommendation-panel__media {
        min-height: 190px;
        order: -1;
    }

    .recommendation-panel__body,
    .recommendation-next-steps {
        padding: 22px 20px;
    }

    .recommendation-action.recommendation-card__link {
        width: 100%;
        justify-content: center;
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== Autocomplete Fields ===== */
.field-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--gray);
    margin-bottom: 6px;
}

.autocomplete-field {
    position: relative;
}

.autocomplete-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.autocomplete-input-wrap .form-input {
    padding-right: 40px;
}

.autocomplete-input-wrap .form-input:disabled {
    background: var(--gray-bg);
    color: var(--dark);
    opacity: 1;
}

.edit-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--teal);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: color var(--transition);
}

.edit-btn:hover {
    color: var(--green);
}

.edit-btn.hidden {
    display: none;
}

.autocomplete-results {
    display: none;
    margin-top: 4px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    border: 1px solid var(--gray-lighter);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    max-height: 260px;
    overflow-y: auto;
    z-index: 10;
}

.autocomplete-results.open {
    display: block;
}

.autocomplete-result {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--gray-lighter);
    transition: all 0.15s ease;
}

.autocomplete-result:last-child {
    border-bottom: none;
}

.autocomplete-result:hover {
    background: rgba(0, 102, 153, 0.06);
    border-left: 3px solid var(--teal);
    padding-left: 11px;
}

.autocomplete-result-name {
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--dark);
}

.autocomplete-result-address {
    font-size: 0.78rem;
    color: var(--gray);
    margin-top: 2px;
}

.autocomplete-not-listed {
    padding: 10px 14px;
    cursor: pointer;
    color: var(--teal);
    font-size: 0.82rem;
    font-weight: 400;
    border-top: 1px solid var(--gray-lighter);
    transition: background 0.15s ease;
}

.autocomplete-not-listed:hover {
    background: var(--gray-bg);
}

.autocomplete-manual-entry {
    padding: 12px 14px;
}

.autocomplete-manual-entry input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--gray-lighter);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.85rem;
    margin-bottom: 8px;
    outline: none;
    transition: border-color var(--transition);
}

.autocomplete-manual-entry input:focus {
    border-color: var(--green);
}

.autocomplete-manual-entry input::placeholder {
    color: var(--gray-light);
}

.autocomplete-manual-apply {
    width: 100%;
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--teal);
    color: var(--white);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 400;
    cursor: pointer;
    transition: background var(--transition);
}

.autocomplete-manual-apply:hover {
    background: var(--teal-light);
}
