/* ==============================
WIZARD OVERLAY
============================== */

#wizard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

#wizard-overlay.active {
    display: flex;
}


/* ==============================
CONTAINER
============================== */

.wizard-container {
    background: white;
    width: 720px;
    max-width: 92%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    display:flex;
    flex-direction:column;
    max-height:90vh;
}


/* ==============================
HEADER
============================== */

.wizard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #e6e8ef;
    background: #f7f8fb;
}

.wizard-subheader {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 24px;
    border-bottom: 1px solid #e6e8ef;
    background: #ffffff;
}


/* CTA Badge */

.wizard-badge {
    background: #ff7a00;
    color: white;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
}

.wizard-progress-text {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    margin-left: 2px;
}

.wizard-close {

    background: none;
    border: none;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 6px;
    color: #777;
    transition: .2s;
}

.wizard-close svg {
    width: 22px;
    height: 22px;
}

.wizard-close:hover {
    background: #eef3f9;
    color: #2b5f9e;
}

.wizard-close:hover {
    color: #333;
}

.wizard-brand img {
    height: 45px;
    width: auto;
    max-width: none;
    display: block;
}


/* ==============================
BODY
============================== */

.wizard-body {
    padding: 5px 28px 28px 28px;
    flex:1;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
}

/* ==============================
Steps
============================== */

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
}

.wizard-step label {
    display: block;
    margin-top: 14px;
    margin-bottom: 6px;
    font-size: 16px;
}


/* ==============================
HEADLINE
============================== */

.wizard-step h3 {
    font-size: 20px;
    font-weight: 300;
    color: #2b5f9e;
    margin-bottom: 8px;
}


/* ==============================
INFO TEXT
============================== */

.wizard-info {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.45;
    background: #f7f9fc;
    padding: 10px 12px;
    border-radius: 6px;
    margin-top: 6px;
    margin-bottom: 18px;

    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.wizard-info svg {
    width: 16px;
    height: 16px;
    color: #2b5f9e;
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.85;
}

/* ==============================
STEP TITLES
============================== */

.wizard-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 500;
    color: #2b5f9e;
    margin-bottom: 6px;
}

.wizard-title svg {
    width: 20px;
    height: 20px;
    color: #2b5f9e;
    opacity: 0.9;
}


/* ==============================
INPUTS
============================== */

.wizard-step input,
.wizard-select {
    width: 100%;
    padding: 12px;
    margin-bottom: 14px;
    border: 1px solid #d8dde6;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

/* ==============================
LICENSE PLATE STYLE
============================== */

input[name="kennzeichen"],
input[name="gegner_kennzeichen"] {
    font-family: monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.wizard-step input:focus,
.wizard-select:focus {
    outline: none;
    border-color: #2b5f9e;
    box-shadow: 0 0 0 2px rgba(43, 95, 158, 0.1);
}

/* ==============================
SELECT IMPROVEMENT
============================== */

.wizard-select {

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    padding-right: 40px;
    cursor: pointer;

    /* Custom Arrow */

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%232b5f9e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 8 9 11 12 8'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;

}

/* Hover */

.wizard-select:hover {

    border-color: #2b5f9e;

}


/* ==============================
OPTIONS
============================== */

.wizard-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.wizard-options button {
    padding: 10px 16px;
    border: 1px solid #d8dde6;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all .15s ease;
}

.wizard-options button:hover {
    border-color: #2b5f9e;
    color: #2b5f9e;
}

.wizard-options button.active {
    background: #2b5f9e;
    border-color: #2b5f9e;
    color: white;
}


/* ==============================
DIVIDER
============================== */

.wizard-divider {
    height: 1px;
    background: #e6e8ef;
    margin: 24px 0;
}


/* ==============================
UPLOAD BOX
============================== */

.upload-box {

    border: 2px dashed #d8dde6;
    border-radius: 12px;

    padding: 32px 24px;

    text-align: center;
    cursor: pointer;

    margin-bottom: 16px;

    transition: all .2s ease;
    position: relative;

    background: #fafafa;

}

.upload-box:hover {

    border-color: #2b5f9e;
    background: #f5f9ff;

}

.upload-box input {

    position: absolute;
    width: 100%;
    height: 100%;

    opacity: 0;

    cursor: pointer;

    left: 0;
    top: 0;

}

.upload-box i {

    width: 32px;
    height: 32px;

    margin-bottom: 8px;

    color: #2b5f9e;

}

.upload-box p {

    margin: 0;
    font-weight: 500;
    font-size: 15px;

}

.upload-box span {

    display: block;
    font-size: 13px;
    color: #777;
    margin-top: 6px;

}


/* ==============================
UPLOAD PREVIEW
============================== */

#upload-preview {

    display: grid;
    grid-template-columns: repeat(auto-fill, 90px);

    gap: 10px;

    margin-top: 12px;
    margin-bottom: 10px;

}


/* ==============================
UPLOAD THUMB
============================== */

.upload-thumb {

    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e6ef;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.upload-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ==============================
UPLOAD REMOVE
============================== */

.upload-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
}

.upload-remove:hover {
    background: #ff7a00;
}

/* ==============================
UPLOAD COUNTER
============================== */

.upload-counter {
    font-size: 13px;
    color: #6b7280;
    margin-top: 6px;
    margin-bottom: 6px;
}

/* ==============================
FOOTER
============================== */

.wizard-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 10px;
    padding: 16px 24px;
    background: #f7f8fb;
    border-top: 1px solid #e6e8ef;
}

.wizard-back {
    background: none;
    border: none;
    font-size: 14px;
    color: #777;
    cursor: pointer;
}

.wizard-back:hover {
    color: #2b5f9e;
}

.wizard-next,
.wizard-submit {
    background: #ff7a00;
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    margin-left: auto;
    cursor: pointer;
}

.wizard-next:hover,
.wizard-submit:hover {
    background: #e96f00;

}

.wizard-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.wizard-submit {
    display: none;
}

.wizard-close-success {
    background: #ff7a00;
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.wizard-close-success:hover {
    background: #e96f00;
}

/* ==============================
LEGAL TEXT
============================== */

.wizard-legal {
    margin-top: 16px;
    font-size: 13px;
    color: #666;
    max-width: 480px;
}

.wizard-legal label {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    cursor: pointer;
}

.wizard-legal a {
    color: #2b5f9e;
    text-decoration: none;
}

.wizard-legal a:hover {
    text-decoration: underline;
}

/* ==============================
FEHLER-HANDLING
============================== */

/* ==============================
ERROR BOX
============================== */

.wizard-error {

    background: #fff5f5;
    border-left: 4px solid #e03131;

    padding: 12px 14px;
    border-radius: 6px;

    font-size: 14px;
    color: #c92a2a;

    margin-bottom: 14px;

    display: none;
    align-items: flex-start;
    gap: 8px;

    line-height: 1.4;

}

.wizard-error.active {
    display: flex;
}

.wizard-error svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}


/* ==============================
SUCCESS SCREEN
============================== */

.wizard-success {
    text-align: center;
    padding: 40px 20px;
    max-width: 520px;
    margin: auto;
}

.wizard-success-icon {
    margin-bottom: 18px;
}

.wizard-success-icon svg {
    width: 52px;
    height: 52px;
    color: #2b5f9e;
    display: block;
    margin: 0 auto;
}

.wizard-success h2 {
    font-size: 22px;
    margin-bottom: 12px;
}

.wizard-success-lead {
    font-size: 16px;
    margin-bottom: 8px;
}

.wizard-success-info {
    color: #555;
    margin-bottom: 22px;
}

.wizard-success-box {

    background: #f7f8fb;
    border-radius: 10px;
    padding: 18px;
    text-align: left;
    font-size: 16px;
    line-height: 1.3;
    margin-bottom: 24px;

}

.wizard-success-box ul {
    padding-left: 18px;
    margin-top: 10px;
}

.wizard-success-box li {
    margin-bottom: 6px;
}