:root {
    --primary-btn: #2563eb;
    --primary-hover: #1d4ed8;
    --border-color: #cbd5e1;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
}

/* Modal Alapbeállítások Asztali Nézetben */
.modal-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.wizard-modal {
    background: #fff;
    display: flex;
    width: 100%;
    max-width: 850px;
    height: 580px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    position: relative;
}

.wizard-sidebar {
    width: 250px;
    background-color: #27272a;
    color: #fff;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
}

.wizard-step-item {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 8px;
    color: #a1a1aa;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wizard-step-item.active {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    font-weight: 600;
}

.wizard-content {
    flex: 1;
    padding: 35px;
    overflow-y: auto;
    position: relative;
}

.wizard-step-panel {
    display: none;
}

.wizard-step-panel.active {
    display: block;
}

/* Bezáró X gomb */
.modal-close-x {
    position: absolute;
    top: 12px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    z-index: 1050;
}

/* ==========================================
   MODERN FORM ÉS GOMB STÍLUSOK (Win95 kinezet javítása)
   ========================================== */

/* Modern Input, Select, Textarea */
.wizard-content input[type="text"],
.wizard-content input[type="email"],
.wizard-content input[type="tel"],
.wizard-content input[type="date"],
.wizard-content select,
.wizard-content textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    color: #1e293b;
    background-color: #ffffff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.wizard-content input:focus,
.wizard-content select:focus,
.wizard-content textarea:focus {
    border-color: var(--primary-btn);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.wizard-content label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 5px;
}

.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Modern Gombok */
.book-btn, 
.btn-primary {
    background-color: var(--primary-btn) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
}

.book-btn:hover, 
.btn-primary:hover {
    background-color: var(--primary-hover) !important;
}

/* Vissza (Back) / Mégse Gomb stílusa */
button.category-btn,
.btn-secondary {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

button.category-btn:hover,
.btn-secondary:hover {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
}

/* Idősávok gombjai */
.time-slot-btn {
    transition: all 0.2s ease;
}

.time-slot-btn:hover:not(:disabled) {
    border-color: var(--primary-btn) !important;
    color: var(--primary-btn) !important;
}

/* Summary Box */
.summary-box {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.summary-total {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1e293b;
    border-top: 2px solid var(--border-color);
    padding-top: 10px;
    margin-top: 10px;
}

/* ==========================================
   MOBIL RESZPONZÍV JAVÍTÁS (Pixel & iPhone)
   ========================================== */
@media screen and (max-width: 900px) {
    .modal-backdrop {
        padding: 5px !important;
    }

    .wizard-modal {
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 95vh !important;
        max-height: 95vh !important;
        border-radius: 12px !important;
    }

    /* Felső sötét sáv javítása mobilon */
    .wizard-sidebar {
        width: 100% !important;
        min-width: 100% !important;
        height: auto !important;
        padding: 10px 35px 10px 10px !important; /* Hely az X gombnak */
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        box-sizing: border-box !important;
    }

    .wizard-sidebar > div:first-child {
        display: flex !important;
        flex-direction: row !important;
        gap: 6px !important;
        overflow-x: auto !important;
        width: 100% !important;
        padding-bottom: 4px !important;
        -webkit-overflow-scrolling: touch;
    }

    .wizard-step-item {
        padding: 6px 10px !important;
        font-size: 0.75rem !important;
        white-space: nowrap !important; /* meggátolja a csúnya törést */
        margin-bottom: 0 !important;
        flex-shrink: 0 !important;
    }

    .wizard-sidebar > div:last-child {
        display: none !important;
    }

    .wizard-content {
        width: 100% !important;
        padding: 20px 15px !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
    }

    .form-row {
        flex-direction: column !important;
        gap: 0 !important;
    }

    .modal-close-x {
        top: 8px !important;
        right: 12px !important;
        color: #ffffff !important;
    }
}

.header-banner {
    background-color: #AF4B2F !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1.15rem !important;
    text-align: center;
    padding: 16px 20px;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(175, 75, 47, 0.25);
}

@media (max-width: 768px) {
    .header-banner {
        font-size: 1rem !important;
        padding: 14px 15px;
    }
}

/* ==========================================
   SZOLGÁLTATÁS KÁRTYÁK ELVÁLASZTÁSA (.services-grid & .service-card)
   ========================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.service-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #AF4B2F;
    border-radius: 8px;
    padding: 18px 20px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(175, 75, 47, 0.12);
    border-color: #AF4B2F;
}

.service-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    background-color: #f8fafc;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.price-badge {
    float: right;
    font-size: 1.15rem;
    font-weight: 700;
    color: #AF4B2F;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .service-card {
        padding: 15px 16px;
    }
}