/* Elbilspremie Wizard */
#elbilspremie-wizard {
    max-width: 500px;
    margin: 2rem auto;
    font-family: "open-sans", "Open Sans", sans-serif;
}

.ebp-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    overflow: hidden;
}

/* Header */
.ebp-header {
    background: #1a1a1a;
    color: #fff;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ebp-header-step {
    font-size: 0.9rem;
    opacity: 0.8;
}

.ebp-header-pct {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Progress bar */
.ebp-progress-wrap {
    background: #333;
    height: 4px;
}

.ebp-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #43A047);
    transition: width 0.4s ease;
}

/* Body */
.ebp-body {
    padding: 2.5rem 2rem;
}

/* Step animation */
.ebp-step {
    animation: ebpFadeIn 0.35s ease;
}

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

/* Question header row (icon + title) */
.ebp-question-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

/* Icon circle */
.ebp-icon-circle {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    background: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ebp-icon-circle svg {
    width: 24px;
    height: 24px;
    color: #4CAF50;
    stroke: #4CAF50;
}

/* Question */
.ebp-question {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: left;
    margin: 0;
    color: #1a1a1a;
}

.ebp-description {
    font-size: 0.95rem;
    color: #666;
    text-align: left;
    margin: 0 0 1.75rem;
    line-height: 1.5;
}

.ebp-description ul {
    text-align: left;
    padding-left: 1.25rem;
    margin: 0.75rem 0 0;
}

.ebp-description li {
    margin-bottom: 0.35rem;
}

/* Yes / No buttons */
.ebp-choices {
    display: flex;
    gap: 1rem;
}

#elbilspremie-wizard .ebp-btn-choice {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 4px !important;
    background: #f9f9f9 !important;
    background-color: #f9f9f9 !important;
    color: #1a1a1a !important;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
}

#elbilspremie-wizard .ebp-btn-choice:hover {
    background: #f0f0f0 !important;
    background-color: #f0f0f0 !important;
    border-color: #ccc !important;
    color: #1a1a1a !important;
}

.ebp-btn-choice svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

.ebp-btn-yes svg {
    stroke: #4CAF50;
    color: #4CAF50;
}

.ebp-btn-no svg {
    stroke: #D81132;
    color: #D81132;
}

/* Municipality step */
.ebp-search-wrap {
    position: relative;
    margin-bottom: 1rem;
}

.ebp-search-wrap svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    stroke: #999;
    pointer-events: none;
}

#elbilspremie-wizard .ebp-search-input {
    width: 100% !important;
    padding: 0.4rem 0.5rem 0.4rem 2.5rem !important;
    border: 2px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 1rem !important;
    outline: none !important;
    transition: border-color 0.2s;
    box-sizing: border-box !important;
    background: #fff !important;
    background-color: #fff !important;
    color: #333 !important;
    box-shadow: none !important;
    height: auto !important;
    min-height: 0 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

#elbilspremie-wizard .ebp-search-input:focus {
    border-color: #4CAF50 !important;
    box-shadow: none !important;
    outline: none !important;
}

.ebp-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
    margin-top: 4px;
}

.ebp-dropdown-item {
    padding: 0.6rem 1rem;
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ebp-dropdown-item:hover {
    background: #f5f5f5;
}

.ebp-dropdown-empty {
    padding: 0.75rem 1rem;
    color: #999;
    font-size: 0.9rem;
}

/* Municipality status card */
.ebp-status-card {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.ebp-status-card svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}

.ebp-status-card p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.ebp-status-eligible {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
}

.ebp-status-eligible svg {
    stroke: #4CAF50;
}

.ebp-status-maybe {
    background: #fff3e0;
    border: 1px solid #ffe0b2;
}

.ebp-status-maybe svg {
    stroke: #f57c00;
}

.ebp-status-not-eligible {
    background: #fce4ec;
    border: 1px solid #f8bbd0;
}

.ebp-status-not-eligible svg {
    stroke: #D81132;
}

#elbilspremie-wizard .ebp-btn-next {
    width: 100%;
    padding: 0.4rem 0.5rem !important;
    background: #4CAF50 !important;
    background-color: #4CAF50 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.2s;
    box-shadow: none !important;
    text-decoration: none !important;
}

#elbilspremie-wizard .ebp-btn-next:hover {
    background: #43A047 !important;
    background-color: #43A047 !important;
    color: #fff !important;
}

#elbilspremie-wizard .ebp-btn-next:disabled {
    background: #ccc !important;
    background-color: #ccc !important;
    cursor: not-allowed;
}

.ebp-btn-next svg {
    width: 18px;
    height: 18px;
}

/* Footer / back */
.ebp-footer {
    padding: 0.75rem 2rem 1.5rem;
    display: flex;
    justify-content: flex-start;
}

#elbilspremie-wizard .ebp-btn-back {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    color: #777 !important;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.25rem 0 !important;
    transition: color 0.2s;
    box-shadow: none !important;
    text-decoration: none !important;
}

#elbilspremie-wizard .ebp-btn-back:hover {
    color: #333 !important;
    background: none !important;
}

.ebp-btn-back svg {
    width: 16px;
    height: 16px;
}

/* Result screen */
.ebp-result {
    text-align: center;
    animation: ebpFadeIn 0.35s ease;
}

.ebp-result-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.ebp-result-icon svg {
    width: 36px;
    height: 36px;
    stroke: #fff;
}

.ebp-result-eligible .ebp-result-icon {
    background: #4CAF50;
}

.ebp-result-not-eligible .ebp-result-icon {
    background: #D81132;
}

.ebp-result h2 {
    font-size: 1.3rem;
    margin: 0 0 0.75rem;
    color: #1a1a1a;
}

.ebp-result p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 0 0 1rem;
}

.ebp-result-reasons {
    text-align: left;
    background: #fce4ec;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.ebp-result-reasons h3 {
    font-size: 0.95rem;
    margin: 0 0 0.5rem;
    color: #b71c1c;
}

.ebp-result-reasons ul {
    margin: 0;
    padding-left: 1.25rem;
}

.ebp-result-reasons li {
    font-size: 0.9rem;
    color: #c62828;
    margin-bottom: 0.25rem;
}

.ebp-result-warning {
    text-align: left;
    background: #fff3e0;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.ebp-result-warning svg {
    width: 22px;
    height: 22px;
    stroke: #f57c00;
    flex-shrink: 0;
    margin-top: 2px;
}

.ebp-result-warning p {
    margin: 0;
    font-size: 0.9rem;
    color: #e65100;
}

#elbilspremie-wizard .ebp-btn-readmore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem !important;
    background: #D81132 !important;
    background-color: #D81132 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.2s;
    margin-bottom: 0.75rem;
    box-shadow: none !important;
}

#elbilspremie-wizard .ebp-btn-readmore:hover {
    background: #b50e29 !important;
    background-color: #b50e29 !important;
    color: #fff !important;
}

.ebp-btn-readmore svg {
    width: 1.2rem;
    height: 1.2rem;
    flex-shrink: 0;
}

#elbilspremie-wizard .ebp-btn-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    color: #777 !important;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.5rem !important;
    transition: color 0.2s;
    box-shadow: none !important;
    text-decoration: none !important;
}

#elbilspremie-wizard .ebp-btn-reset:hover {
    color: #333 !important;
    background: none !important;
}

.ebp-btn-reset svg {
    width: 16px;
    height: 16px;
}

/* Badge in dropdown */
.ebp-badge {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-weight: 600;
}

.ebp-badge-eligible {
    background: #e8f5e9;
    color: #2e7d32;
}

.ebp-badge-maybe {
    background: #fff3e0;
    color: #e65100;
}

.ebp-badge-not-eligible {
    background: #fce4ec;
    color: #c62828;
}

/* Responsive */
@media (max-width: 540px) {
    #elbilspremie-wizard {
        margin: 1rem;
    }

    .ebp-body {
        padding: 1.5rem 1.25rem;
    }

    .ebp-header {
        padding: 1rem 1.25rem;
    }
}
