/**
 * Multi-Step Event Form CSS - Mit Präfix-Support und kompakter Pizza-Auswahl
 * Datei: assets/css/multi-step-form.css
 */

/* Reset and base */
.msef-container * {
    box-sizing: border-box;
}

/* Main container - matches the dark rounded design */
.msef-container {
    max-width: 900px;
    margin: 0 auto;
    background: #4a4a4a;
    border-radius: 20px;
    padding: 50px 60px;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
}

/* Header */
.msef-header {
    text-align: center;
    margin-bottom: 50px;
}

.msef-title {
    color: #d4a843;
    font-size: 32px;
    font-weight: 400;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Progress bar - thin horizontal bar */
.msef-progress-container {
    margin: 30px 0 60px;
}

.msef-progress-bar {
    height: 4px;
    background: #ffffff;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.msef-progress-indicator {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #d4a843;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Steps */
.msef-step {
    display: none;
    margin-bottom: 40px;
}

.msef-step[data-step="1"] {
    display: block;
}

.msef-step-title {
    color: #ffffff;
    font-size: 36px;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 400;
}

/* Event type options - 4 cards in a row */
.msef-event-types {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin: 40px 0 60px;
}

.msef-event-type-option {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 3px solid transparent;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.msef-event-type-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.msef-event-type-option.selected {
    border-color: #d4a843;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.msef-event-icon {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.msef-event-icon img {
    max-height: 60px;
    max-width: 60px;
}

.msef-event-type-option span {
    color: #d4a843;
    font-weight: 600;
    font-size: 16px;
}

/* Input fields - single large input */
.msef-input-container {
    position: relative;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Large single input field */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    height: 60px;
    padding: 0 25px;
    border: 3px solid #d4a843;
    border-radius: 15px;
    font-size: 18px;
    background: #ffffff;
    color: #4a4a4a;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
    text-align: center;
    min-height: 60px;
}

input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.3);
}

textarea {
    padding: 20px 25px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: #999;
    font-size: 16px;
}

/* PRÄFIX-SPEZIFISCHE INPUT STYLES */
#msef-event-date {
    width: 100% !important;
    height: 60px !important;
    padding: 0 25px !important;
    border: 3px solid #d4a843 !important;
    border-radius: 15px !important;
    font-size: 18px !important;
    background: #ffffff !important;
    color: #4a4a4a !important;
    font-family: inherit !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    text-align: center !important;
    cursor: pointer !important;
    user-select: none !important;
}

#msef-event-date:focus {
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.3) !important;
}

#msef-event-date::placeholder {
    color: #999 !important;
    font-size: 16px !important;
}

/* ==========================================================================
   KOMPAKTE PIZZA-AUSWAHL CSS - Neue Version
   ========================================================================== */

/* Pizza Counter oben - NEUE VERSION */
.msef-pizza-counter-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    padding: 15px;
    background: linear-gradient(135deg, #d4a843 0%, #c09539 100%);
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 15px rgba(212, 168, 67, 0.3);
}

.msef-counter-badge {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    backdrop-filter: blur(10px);
}

.msef-counter-text {
    font-size: 18px;
    font-weight: 600;
}

/* Kompakte Pizza Selection Container */
.msef-pizza-selection-compact {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

/* Pizza Kategorien - NEUE VERSION */
.msef-pizza-category-compact {
    background: #fff;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.msef-pizza-category-compact:hover {
    border-color: #d4a843;
    box-shadow: 0 4px 15px rgba(212, 168, 67, 0.1);
}

/* Kategorie Header */
.msef-category-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #dee2e6;
}

.msef-category-header i {
    color: #d4a843;
    font-size: 18px;
}

.msef-category-header span {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

/* Pizza Grid - NEUE VERSION */
.msef-pizza-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    padding: 20px;
}

/* Pizza Items - NEUE VERSION */
.msef-pizza-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
}

.msef-pizza-item:hover {
    background: #fff;
    border-color: #d4a843;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 168, 67, 0.15);
}

/* Pizza Checkbox - NEUE VERSION */
.msef-pizza-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.msef-pizza-checkbox i {
    color: white;
    font-size: 14px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
}

/* Selected State - NEUE VERSION */
.msef-pizza-item.selected {
    background: #fff;
    border-color: #d4a843;
    color: #d4a843;
    box-shadow: 0 4px 15px rgba(212, 168, 67, 0.2);
}

.msef-pizza-item.selected .msef-pizza-checkbox {
    background: linear-gradient(135deg, #d4a843 0%, #c09539 100%);
    border-color: #d4a843;
}

.msef-pizza-item.selected .msef-pizza-checkbox i {
    opacity: 1;
    transform: scale(1);
}

/* Disabled State (wenn 4 ausgewählt) */
.msef-pizza-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.msef-pizza-item.disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
    background: #f8f9fa;
}

/* Selection Hint - NEUE VERSION */
.msef-pizza-selection-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    color: #1976d2;
    font-size: 14px;
    transition: all 0.3s ease;
}

.msef-pizza-selection-hint i {
    font-size: 16px;
}

/* Verschiedene Hint-States */
.msef-pizza-selection-hint.success {
    background: #e8f5e8;
    border-color: #4caf50;
    color: #2e7d32;
}

.msef-pizza-selection-hint.warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.msef-pizza-selection-hint.error {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.msef-pizza-selection-hint.info {
    background: #e3f2fd;
    border-color: #bbdefb;
    color: #1976d2;
}

/* Legacy Support - Verstecke alte Pizza-Auswahl wenn neue vorhanden */
.msef-pizza-selection-compact ~ .msef-pizza-selection {
    display: none !important;
}

.msef-pizza-counter-top ~ .msef-pizza-counter {
    display: none !important;
}

/* OLD Pizza selection styling - für Fallback */
.msef-pizza-selection {
    max-width: 700px;
    margin: 0 auto;
}

.msef-pizza-category {
    margin-bottom: 30px;
}

.msef-pizza-category h3 {
    color: #d4a843;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.msef-pizza-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 8px;
}

.msef-pizza-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    background: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    text-align: center;
}

.msef-pizza-option:hover {
    border-color: #d4a843;
    transform: translateY(-2px);
}

.msef-pizza-option.selected {
    border-color: #d4a843;
    background: #fff8ef;
}

.msef-pizza-option.selected .msef-pizza-name {
    color: #d4a843;
    font-weight: bold;
}

.msef-pizza-name {
    font-weight: 500;
    color: #4a4a4a;
    display: block;
    font-size: 14px;
}

.msef-pizza-ingredients {
    font-size: 13px;
    color: #666;
    font-style: italic;
    display: block;
    line-height: 1.3;
}

.msef-pizza-counter {
    text-align: center;
    margin-top: 25px;
    font-size: 18px;
    font-weight: 600;
    color: #d4a843;
    padding: 10px;
    background: rgba(212, 168, 67, 0.1);
    border-radius: 8px;
    max-width: 300px;
    margin: 25px auto 0;
}

/* Contact form specific styling */
.msef-step[data-step="7"] .msef-input-container {
    margin-bottom: 25px;
}

/* Input with icons */
.msef-input-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    background: #d4a843;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    color: #ffffff;
    font-size: 18px;
    z-index: 2;
    box-shadow: 4px 2px 12px rgba(0, 0, 0, 0.25);
}

.msef-step[data-step="7"] input[type="text"],
.msef-step[data-step="7"] input[type="email"],
.msef-step[data-step="7"] input[type="tel"],
.msef-step[data-step="7"] textarea {
    padding-left: 80px;
    border: none;
    background: #ffffff;
    border-radius: 15px;
    height: 60px;
    text-align: left;
}

/* PRÄFIX-SPEZIFISCHE STEP 7 INPUTS */
.msef-step[data-step="7"] #msef-name,
.msef-step[data-step="7"] #msef-email,
.msef-step[data-step="7"] #msef-phone,
.msef-step[data-step="7"] #msef-message {
    padding-left: 80px;
    border: none;
    background: #ffffff;
    border-radius: 15px;
    height: 60px;
    text-align: left;
}

.msef-step[data-step="7"] textarea,
.msef-step[data-step="7"] #msef-message {
    padding-top: 20px;
    padding-left: 80px;
}

/* Phone prefix - inside the white input area */
.msef-phone-prefix {
    position: absolute;
    left: 65px;
    top: 37%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 3;
    color: #666;
    font-weight: 500;
    pointer-events: none;
    background: #ffffff;
    height: 54px;
    padding-right: 8px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.msef-country-flag {
    font-size: 16px;
}

.msef-step[data-step="7"] input[type="tel"],
.msef-step[data-step="7"] #msef-phone {
    padding-left: 141px;
}

/* Checkbox */
.msef-checkbox-container {
    margin: 30px auto 40px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    max-width: 600px;
    justify-content: center;
}

.msef-checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: #d4a843;
    cursor: pointer;
    flex-shrink: 0;
}

.msef-checkbox-container label {
    cursor: pointer;
    line-height: 1.4;
    color: #ffffff;
    font-size: 16px;
}

.msef-privacy-link {
    color: #d4a843;
    text-decoration: underline;
}

/* Submit button */
.msef-submit-container {
    text-align: center;
    margin-top: 40px;
}

.msef-submit-button {
    background: #d4a843;
    color: #ffffff;
    border: none;
    border-radius: 15px;
    padding: 18px 60px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 200px;
}

.msef-submit-button:hover:not(:disabled) {
    background: #c09539;
    transform: translateY(-2px);
}

.msef-submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Navigation buttons */
.msef-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    gap: 20px;
}

.msef-button {
    padding: 15px 40px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
    min-width: 140px;
}

.msef-prev-button {
    background: #cccccc;
    color: #666666;
}

.msef-prev-button:hover:not(:disabled) {
    background: #bbbbbb;
    transform: translateY(-2px);
}

.msef-prev-button:disabled {
    background: #cccccc;
    color: #888888;
    cursor: not-allowed;
}

.msef-next-button {
    background: #d4a843;
    color: #ffffff;
}

.msef-next-button:hover {
    background: #c09539;
    transform: translateY(-2px);
}

/* Time and guest display */
.msef-time-display,
.msef-guest-display {
    text-align: center;
    font-size: 48px;
    margin-bottom: 40px;
    color: #ffffff;
    font-weight: 300;
}

/* =================== NOUISLIDER STYLING =================== */

/* Slider container - Optimiert für Touch */
.msef-slider-container {
    margin: 0 40px 40px;
    position: relative;
}

.msef-time-range,
.msef-guest-range {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    font-size: 16px;
    color: #cccccc;
}

/* noUiSlider Base - Überschreibt Standard-Styles */
.noUi-target {
    background: #ffffff !important;
    border-radius: 6px !important;
    border: none !important;
    box-shadow: none !important;
    height: 12px !important;
    margin: 20px 0 !important;
    position: relative !important;
    cursor: pointer !important;
}

.noUi-base {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.noUi-connects {
    overflow: hidden;
    z-index: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 6px;
}

/* noUiSlider Connect (Fortschritt-Balken) */
.noUi-connect {
    background: linear-gradient(90deg, #d4a843 0%, #c09539 100%) !important;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    transform-origin: 0 0;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

/* noUiSlider Handle (Zieh-Element) - Touch-optimiert */
.noUi-handle {
    background: #d4a843 !important;
    border: none !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    cursor: pointer !important;
    display: block !important;
    outline: none !important;
    position: absolute !important;
    transition: all 0.2s ease !important;

    /* Touch-optimiert */
    touch-action: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    user-select: none !important;

    /* Desktop Größe - KORREKTE POSITION */
    height: 24px !important;
    width: 24px !important;
    right: -12px !important; /* Handle wird von rechts positioniert */
    top: -6px !important; /* Zentriert auf dem Slider */
    left: auto !important;
    z-index: 3 !important;
}

/* Handle States */
.noUi-handle:hover,
.noUi-handle:focus {
    transform: scale(1.2) !important;
    box-shadow: 0 6px 20px rgba(212, 168, 67, 0.4) !important;
    border-radius: 50% !important;
}

.noUi-handle:active,
.noUi-active .noUi-handle {
    transform: scale(1.3) !important;
    box-shadow: 0 8px 24px rgba(212, 168, 67, 0.5) !important;
    border-radius: 50% !important;
}

/* Handle Pseudo-Elements komplett entfernen */
.noUi-handle:before,
.noUi-handle:after {
    display: none !important;
    content: none !important;
}

/* Origin (Start/End Punkte) */
.noUi-origin {
    position: absolute;
    right: 0;
    top: 0;
    left: 0;
    bottom: 0;
    border-radius: 2px;
}

/* Tooltips (deaktiviert, da wir custom Displays haben) */
.noUi-tooltip {
    display: none;
}

/* Disabled state */
.noUi-target[disabled] {
    cursor: not-allowed;
    opacity: 0.5;
}

.noUi-target[disabled] .noUi-handle {
    cursor: not-allowed;
}

/* Vertikaler Slider (falls benötigt) */
.noUi-vertical {
    width: 12px;
    height: 200px;
}

.noUi-vertical .noUi-handle {
    width: 36px;
    height: 36px;
    left: -12px;
    top: -18px;
}

/* Messages */
.msef-message-container {
    margin-top: 30px;
    text-align: center;
}

.msef-message {
    padding: 15px 25px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-weight: 500;
    display: none;
}

.msef-success-message {
    background: rgba(40, 167, 69, 0.9);
    color: #ffffff;
}

.msef-error-message {
    background: rgba(220, 53, 69, 0.9);
    color: #ffffff;
}

/* Animations für Pizza-Auswahl */
.pizza-selected-animation {
    animation: pizzaSelect 0.6s ease;
}

@keyframes pizzaSelect {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); background: #fff8f0; }
    100% { transform: scale(1); }
}

.counter-update {
    animation: counterPulse 0.3s ease;
}

@keyframes counterPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.shake-animation {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* =================== MOBILE OPTIMIERUNGEN =================== */

/* Mobile Slider Optimierungen */
@media (max-width: 768px) {
    .msef-slider-container {
        margin: 0 20px 40px;
        padding: 25px 0;
    }

    /* noUiSlider Mobile */
    .noUi-target {
        height: 16px !important;
        margin: 30px 0 !important;
    }

    .noUi-handle {
        width: 32px !important;
        height: 32px !important;
        right: -16px !important; /* Zentriert auf Mobile */
        top: -8px !important;
        left: auto !important;
        border-radius: 50% !important;
        /* Verbesserte Touch-Erkennung */
        touch-action: none;
        -webkit-tap-highlight-color: transparent;
    }

    .noUi-handle:active,
    .noUi-active .noUi-handle {
        transform: scale(1.3) !important;
        box-shadow: 0 10px 30px rgba(212, 168, 67, 0.6) !important;
        border-radius: 50% !important;
    }

    /* Vergrößerte Touch-Area für Mobile */
    .noUi-handle::before {
        content: '';
        position: absolute;
        top: -15px;
        left: -15px;
        right: -15px;
        bottom: -15px;
        border-radius: 50%;
        background: transparent;
    }

    .noUi-connect {
        background: linear-gradient(90deg, #d4a843 0%, #c09539 100%);
    }
}

/* Extra kleine Mobile Screens */
@media (max-width: 480px) {
    .msef-slider-container {
        margin: 0 15px 40px;
        padding: 20px 0;
    }

    .noUi-handle {
        width: 28px !important;
        height: 28px !important;
        right: -14px !important;
        top: -6px !important;
        left: auto !important;
        border-radius: 50% !important;
    }

    .msef-time-range,
    .msef-guest-range {
        font-size: 14px;
        margin-bottom: 25px;
    }
}

/* =================== RESPONSIVE DESIGN =================== */

@media (max-width: 768px) {
    .msef-container {
        margin: 20px;
        padding: 40px 30px;
        border-radius: 15px;
    }
    
    .msef-title {
        font-size: 24px;
    }
    
    .msef-step-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .msef-event-types {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 30px 20px 40px;
    }
    
    .msef-event-type-option {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        padding: 15px 20px;
        min-height: auto;
        gap: 15px;
        border-radius: 12px;
    }
    
    .msef-event-icon {
        height: 35px;
        width: 35px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .msef-event-icon img {
        max-height: 30px;
        max-width: 30px;
    }
    
    .msef-event-type-option span {
        font-size: 16px;
        margin: 0;
        font-weight: 500;
    }
    
    .msef-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .msef-button {
        width: 100%;
    }
    
    .msef-time-display,
    .msef-guest-display {
        font-size: 36px;
    }
    
    .msef-pizza-options {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    
    .msef-pizza-option {
        padding: 8px 10px;
    }
    
    .msef-pizza-name {
        font-size: 13px;
    }

    /* Kompakte Pizza-Auswahl Mobile */
    .msef-pizza-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 10px;
        padding: 15px;
    }
    
    .msef-pizza-item {
        padding: 10px 12px;
        font-size: 13px;
        min-height: 44px; /* Mindest-Touch-Target-Größe */
        display: flex;
        align-items: center;
    }
    
    .msef-counter-badge {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .msef-counter-text {
        font-size: 16px;
    }
    
    .msef-category-header {
        padding: 12px 15px;
    }
    
    .msef-pizza-counter-top {
        padding: 12px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .msef-container {
        margin: 10px;
        padding: 30px 20px;
    }
    
    .msef-title {
        font-size: 20px;
    }
    
    .msef-step-title {
        font-size: 24px;
    }
    
    .msef-event-types {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .msef-event-type-option {
        padding: 15px 20px;
        min-height: auto;
        border-radius: 12px;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea {
        font-size: 16px;
        padding-left: 42px;
    }
    
    .msef-step[data-step="7"] input[type="tel"],
    .msef-step[data-step="7"] #msef-phone {
        padding-left: 125px;
    }
    
    .msef-phone-prefix {
        left: 62px;
        font-size: 14px;
        gap: 3px;
        height: 54px;
        padding-right: 6px;
    }

    /* Kompakte Pizza-Auswahl Mobile */
    .msef-pizza-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 12px;
    }
    
    .msef-pizza-item {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .msef-pizza-checkbox {
        width: 20px;
        height: 20px;
    }
    
    .msef-pizza-checkbox i {
        font-size: 12px;
    }
    
    .msef-counter-badge {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .msef-counter-text {
        font-size: 14px;
    }
}

/* =================== PRÄFIX DATEPICKER MOBILE FIX =================== */

/* Verhindere native Datepicker auf Mobile für präfix ID */
#msef-event-date::-webkit-datetime-edit,
#msef-event-date::-webkit-datetime-edit-fields-wrapper,
#msef-event-date::-webkit-datetime-edit-text,
#msef-event-date::-webkit-datetime-edit-month-field,
#msef-event-date::-webkit-datetime-edit-day-field,
#msef-event-date::-webkit-datetime-edit-year-field,
#msef-event-date::-webkit-inner-spin-button,
#msef-event-date::-webkit-clear-button,
#msef-event-date::-webkit-calendar-picker-indicator {
    display: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

/* Mobile Input Field Design Match */
@media (max-width: 768px) {
    #msef-event-date {
        width: 100% !important;
        height: 60px !important;
        padding: 0 25px !important;
        border: 3px solid #d4a843 !important;
        border-radius: 15px !important;
        font-size: 18px !important;
        background: #ffffff !important;
        color: #4a4a4a !important;
        text-align: center !important;
        cursor: pointer !important;
        /* Verhindere native Mobile Datepicker */
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
    }
}

/* Verhindere Zoom beim Input-Focus auf iOS */
@media screen and (max-device-width: 767px) {
    #msef-event-date {
        font-size: 16px !important; /* Verhindert Zoom auf iOS */
    }
}

/* =================== JAHR-DROPDOWN STYLING (OHNE PFEILE) =================== */

/* Custom Jahr-Dropdown - OHNE Dropdown-Pfeile */
.msef-year-dropdown {
    background: transparent !important;
    border: none !important;
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    font-family: inherit !important;
    padding: 0 5px !important;
    margin: 0 !important;
    cursor: pointer !important;
    outline: none !important;
    min-width: 50px !important;
    
    /* Dropdown-Pfeil komplett entfernen */
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    
    /* KEIN Background-Image für Pfeil */
    background-image: none !important;
    
    /* Transition für smooth Hover */
    transition: background-color 0.2s ease, border-radius 0.2s ease !important;
}

.msef-year-dropdown:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 3px !important;
}

.msef-year-dropdown:focus {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-radius: 3px !important;
}

/* Jahr-Dropdown Optionen */
.msef-year-dropdown option {
    background-color: #4a4a4a !important;
    color: #ffffff !important;
    padding: 5px 10px !important;
}

.msef-year-dropdown option:hover {
    background-color: #d4a843 !important;
}

/* Flatpickr Month Dropdown - AUCH OHNE PFEILE */
.flatpickr-monthDropdown-months {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: none !important;
    padding-right: 10px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
}

.flatpickr-monthDropdown-months:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 3px !important;
}

/* Mobile Anpassungen für Jahr-Dropdown */
@media (max-width: 768px) {
    .msef-year-dropdown {
        font-size: 14px !important;
        min-width: 45px !important;
        padding: 0 3px !important;
    }
    
    .flatpickr-monthDropdown-months {
        font-size: 14px !important;
        padding-right: 8px !important;
    }
}

/* =================== PLZ AUTO-COMPLETE DROPDOWN - KORRIGIERTE VERSION =================== */

/* PLZ Auto-Complete Feedback - ENTFERNT um Kunden nicht zu irritieren */
#msef-event-location {
    /* Keine störenden Farbwechsel mehr */
    transition: none;
}

/* Alle PLZ-Feedback-Farben entfernt */
#msef-event-location.plz-success,
#msef-event-location.plz-loading,
#msef-event-location.plz-error,
#msef-event-location.plz-no-results {
    /* Behalte normale Input-Farben */
    background-color: #ffffff !important;
    border-color: #d4a843 !important;
    background-image: none !important;
}

/* Suggestions Dropdown - IMMER DUNKEL mit korrigiertem Hover */
.msef-suggestions-dropdown {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    border: 1px solid #d4a843 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    background: #3a3a3a !important; /* Immer dunkler Hintergrund */
    z-index: 1000 !important;
    max-height: 200px !important;
    overflow-y: auto !important;
    position: absolute !important;
    color: #ffffff !important; /* Immer weiße Schrift */
}

.msef-suggestion-item {
    padding: 12px 15px !important;
    cursor: pointer !important;
    border-bottom: 1px solid #555 !important; /* Immer dunklere Trennlinien */
    transition: all 0.2s ease !important;
    font-size: 16px !important;
    color: #ffffff !important; /* Immer weiße Schrift */
    background: transparent !important; /* Transparenter Hintergrund */
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    border-left: 4px solid transparent !important;
}

.msef-suggestion-item:last-child {
    border-bottom: none !important;
}

/* KORRIGIERTER HOVER-EFFEKT - Dunkler Hintergrund mit weißer Schrift */
.msef-suggestion-item:hover {
    background-color: #2a2a2a !important; /* Dunklerer Hintergrund beim Hover */
    color: #ffffff !important; /* Weiße Schrift bleibt */
    border-left-color: #d4a843 !important; /* Goldener linker Rand */
    transform: translateX(2px) !important;
    border-left-width: 6px !important;
}

/* Active/Selected State - IMMER GOLD */
.msef-suggestion-item.active {
    background-color: #d4a843 !important; /* Immer Gold */
    color: #ffffff !important;
    border-left-color: #ffffff !important;
    transform: translateX(3px) !important;
    border-left-width: 6px !important;
}

/* Match Type Indicators - ANGEPASSTE FARBEN für bessere Sichtbarkeit */
.msef-suggestion-item[data-type="exact"] {
    border-left-color: #28a745 !important; /* Grün für exakte Treffer */
    font-weight: 600 !important;
}

.msef-suggestion-item[data-type="starts"] {
    border-left-color: #007bff !important; /* Blau für Treffer am Anfang */
    font-weight: 500 !important;
}

.msef-suggestion-item[data-type="contains"] {
    border-left-color: #ffc107 !important; /* Gelb für enthaltene Treffer */
}

.msef-suggestion-item[data-type="partial"] {
    border-left-color: #17a2b8 !important; /* Türkis für teilweise Treffer */
}

/* Hover für verschiedene Match Types - ALLE MIT KORREKTEN FARBEN */
.msef-suggestion-item[data-type="exact"]:hover {
    background-color: #2a2a2a !important;
    color: #ffffff !important;
    border-left-color: #28a745 !important;
}

.msef-suggestion-item[data-type="starts"]:hover {
    background-color: #2a2a2a !important;
    color: #ffffff !important;
    border-left-color: #007bff !important;
}

.msef-suggestion-item[data-type="contains"]:hover {
    background-color: #2a2a2a !important;
    color: #ffffff !important;
    border-left-color: #ffc107 !important;
}

.msef-suggestion-item[data-type="partial"]:hover {
    background-color: #2a2a2a !important;
    color: #ffffff !important;
    border-left-color: #17a2b8 !important;
}

/* Priority Indicators (Icons) */
.msef-suggestion-item[data-priority="high"]::before {
    content: '📍';
    font-size: 14px;
    margin-right: 5px;
}

.msef-suggestion-item[data-priority="medium"]::before {
    content: '📮';
    font-size: 14px;
    margin-right: 5px;
}

/* Scroll-Styling für Dropdown */
.msef-suggestions-dropdown::-webkit-scrollbar {
    width: 8px;
}

.msef-suggestions-dropdown::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 4px;
}

.msef-suggestions-dropdown::-webkit-scrollbar-thumb {
    background: #d4a843;
    border-radius: 4px;
}

.msef-suggestions-dropdown::-webkit-scrollbar-thumb:hover {
    background: #c09539;
}

/* Loading Animation */
.plz-loading-indicator {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #d4a843;
    border-radius: 50%;
    border-top-color: transparent;
    animation: plz-spin 1s linear infinite;
}

@keyframes plz-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Focus State für Accessibility */
.msef-suggestion-item:focus {
    outline: 2px solid #d4a843 !important;
    outline-offset: -2px !important;
    background-color: #d4a843 !important; /* Gold bei Focus */
    color: #ffffff !important; /* Weiße Schrift */
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .msef-suggestions-dropdown {
        max-height: 150px !important;
        font-size: 14px !important;
        left: 20px !important;
        right: 20px !important;
        width: auto !important;
    }
    
    .msef-suggestion-item {
        padding: 10px 12px !important;
        font-size: 14px !important;
    }
}

/* Extra kleine Screens */
@media (max-width: 480px) {
    .msef-suggestions-dropdown {
        max-height: 120px !important;
        left: 10px !important;
        right: 10px !important;
    }
    
    .msef-suggestion-item {
        padding: 8px 10px !important;
        font-size: 13px !important;
    }
}

/* Dark Mode Support - KEINE ÄNDERUNGEN da immer dunkel */
@media (prefers-color-scheme: dark) {
    /* PLZ Dropdown ist bereits immer dunkel - keine Änderungen */
    
    .msef-pizza-category-compact {
        background: #2a2a2a;
        border-color: #444;
    }
    
    .msef-category-header {
        background: linear-gradient(135deg, #333 0%, #2a2a2a 100%);
        border-bottom-color: #444;
    }
    
    .msef-category-header span {
        color: #fff;
    }
    
    .msef-pizza-item {
        background: #333;
        color: #fff;
    }
    
    .msef-pizza-item:hover {
        background: #3a3a3a;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .msef-suggestions-dropdown {
        border: 2px solid #d4a843 !important; /* Verstärkter Rand */
    }
    
    .msef-suggestion-item {
        border-bottom: 1px solid #d4a843 !important; /* Sichtbarere Trenner */
    }

    .msef-suggestion-item:hover {
        background-color: #1a1a1a !important; /* Noch dunkler für hohen Kontrast */
        border-left-width: 8px !important; /* Dickerer Rand */
    }

    .msef-pizza-item {
        border-width: 3px;
    }
    
    .msef-pizza-item.selected {
        border-width: 4px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .msef-suggestion-item {
        transition: none !important;
    }
    
    .plz-loading-indicator {
        animation: none !important;
    }

    .msef-pizza-item,
    .msef-pizza-checkbox i,
    .msef-counter-badge,
    .msef-pizza-selection-hint {
        transition: none !important;
        animation: none !important;
    }
}
/**
 * Custom Datepicker CSS für Multi-Step Event Form
 * Füge diese Styles zu deiner multi-step-form.css hinzu
 */

/* =================== CUSTOM DATEPICKER STYLES =================== */

.msef-custom-datepicker {
    background: #4a4a4a;
    border: 2px solid #d4a843;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #ffffff;
    min-width: 300px;
    max-width: 400px;
    margin: 0 auto;
    position: absolute;
    z-index: 1000;
}

/* Datepicker Header */
.msef-datepicker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 15px;
}

.msef-datepicker-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: center;
}

/* Navigation Buttons */
.msef-datepicker-prev,
.msef-datepicker-next {
    background: #d4a843;
    border: none;
    color: #ffffff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.msef-datepicker-prev:hover,
.msef-datepicker-next:hover {
    background: #c09539;
    transform: scale(1.1);
}

.msef-datepicker-prev:active,
.msef-datepicker-next:active {
    transform: scale(0.95);
}

/* Month und Year Dropdowns - OHNE PFEILE wie in der Live-Version */
.msef-month-dropdown,
.msef-year-dropdown {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    outline: none !important;
    
    /* Dropdown-Pfeil komplett entfernen */
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: none !important;
    
    transition: all 0.2s ease !important;
}

.msef-month-dropdown:hover,
.msef-year-dropdown:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #d4a843 !important;
}

.msef-month-dropdown:focus,
.msef-year-dropdown:focus {
    border-color: #d4a843 !important;
    box-shadow: 0 0 0 2px rgba(212, 168, 67, 0.3) !important;
}

/* Dropdown Optionen */
.msef-month-dropdown option,
.msef-year-dropdown option {
    background-color: #4a4a4a !important;
    color: #ffffff !important;
    padding: 8px 12px !important;
}

.msef-month-dropdown option:hover,
.msef-year-dropdown option:hover {
    background-color: #d4a843 !important;
}

/* Kalender Container */
.msef-datepicker-calendar {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    backdrop-filter: blur(10px);
}

/* Wochentage Header */
.msef-datepicker-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: #d4a843;
}

/* Tage Grid */
.msef-datepicker-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

/* Einzelne Tage */
.msef-datepicker-day {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid transparent;
}

.msef-datepicker-day:hover:not(.disabled):not(.empty) {
    background: rgba(212, 168, 67, 0.2);
    border-color: #d4a843;
    transform: scale(1.05);
}

/* Heute */
.msef-datepicker-day.today {
    background: #d4a843;
    color: #ffffff;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(212, 168, 67, 0.4);
}

.msef-datepicker-day.today:hover {
    background: #c09539;
    transform: scale(1.1);
}

/* Deaktivierte Tage */
.msef-datepicker-day.disabled {
    color: #666666;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.02);
    opacity: 0.4;
}

.msef-datepicker-day.disabled:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.02);
}

/* Leere Tage */
.msef-datepicker-day.empty {
    cursor: default;
    background: transparent;
    visibility: hidden;
}

/* Ausgewählter Tag */
.msef-datepicker-day.selected {
    background: #d4a843;
    color: #ffffff;
    font-weight: bold;
    border-color: #ffffff;
    box-shadow: 0 4px 12px rgba(212, 168, 67, 0.5);
    transform: scale(1.1);
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .msef-custom-datepicker {
        min-width: 280px;
        max-width: 320px;
        padding: 15px;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%);
    }
    
    .msef-datepicker-header {
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .msef-datepicker-prev,
    .msef-datepicker-next {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .msef-month-dropdown,
    .msef-year-dropdown {
        font-size: 14px !important;
        padding: 6px 8px !important;
    }
    
    .msef-datepicker-calendar {
        padding: 12px;
    }
    
    .msef-datepicker-weekdays {
        font-size: 12px;
        gap: 4px;
        margin-bottom: 8px;
    }
    
    .msef-datepicker-days {
        gap: 4px;
    }
    
    .msef-datepicker-day {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

/* Extra kleine Screens */
@media (max-width: 480px) {
    .msef-custom-datepicker {
        min-width: 260px;
        max-width: 300px;
        padding: 12px;
    }
    
    .msef-datepicker-title {
        gap: 8px;
    }
    
    .msef-month-dropdown,
    .msef-year-dropdown {
        font-size: 13px !important;
        padding: 4px 6px !important;
    }
    
    .msef-datepicker-day {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .msef-datepicker-weekdays {
        font-size: 11px;
    }
}

/* Dark Mode und High Contrast Support */
@media (prefers-contrast: high) {
    .msef-custom-datepicker {
        border: 3px solid #d4a843;
    }
    
    .msef-datepicker-day {
        border: 2px solid transparent;
    }
    
    .msef-datepicker-day:hover:not(.disabled):not(.empty) {
        border-color: #d4a843;
        border-width: 2px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .msef-datepicker-day,
    .msef-datepicker-prev,
    .msef-datepicker-next,
    .msef-month-dropdown,
    .msef-year-dropdown {
        transition: none !important;
    }
    
    .msef-datepicker-day:hover:not(.disabled):not(.empty) {
        transform: none !important;
    }
    
    .msef-datepicker-prev:hover,
    .msef-datepicker-next:hover {
        transform: none !important;
    }
}