/* Frontend stílusok - Booking System */

.booking-form-wrapper {
    max-width: 1400px;
    margin: 40px auto;
    padding: 20px;
}

.booking-form-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    padding: 40px;
}

/* Két oszlopos layout - minden lépésben */
.booking-container-with-sidebar,
.booking-step {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    width: 100%;
}

.booking-step.active {
    display: flex !important;
}

.booking-main-content {
    flex: 0 0 calc(70% - 21px);
    min-width: 0;
}

.booking-sidebar {
    flex: 0 0 calc(30% - 9px);
    position: sticky;
    top: 20px;
}

.step-description {
    margin: -15px 0 25px 0;
    color: #7f8c8d;
    font-size: 15px;
}

.booking-form-title {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
    color: #2c3e50;
}

#booking-form {
    width: 100%;
}

.booking-step {
    display: none;
}

.booking-step.active {
    display: flex !important;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-title {
    font-size: 24px;
    margin-bottom: 25px;
    color: #2c3e50;
    padding-bottom: 15px;
    border-bottom: 3px solid #3498db;
}

.back-button {
    margin-bottom: 20px;
    padding: 10px 20px;
    background: #95a5a6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.back-button:hover {
    background: #7f8c8d;
    transform: translateX(-3px);
}

/* Kategória navigáció */
.category-nav {
    background: white;
    padding: 15px 0;
    margin: 0 -40px 30px -40px;
    padding-left: 40px;
    padding-right: 40px;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.category-nav::-webkit-scrollbar {
    height: 6px;
}

.category-nav::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.category-nav::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 3px;
}

.category-nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 25px;
    text-decoration: none;
    color: #555;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.3s;
}

.category-nav-item:hover {
    background: #e3f2fd;
    color: #3498db;
    border-color: #3498db;
}

.category-nav-item.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.category-icon {
    font-size: 18px;
}

/* Szolgáltatások kategóriánként */
.services-by-category {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.service-category {
    scroll-margin-top: 100px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #e0e0e0;
}

.category-icon-large {
    font-size: 36px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f8ff;
    border-radius: 12px;
}

.category-title-wrapper {
    flex: 1;
}

.category-title {
    margin: 0 0 5px 0;
    font-size: 24px;
    color: #2c3e50;
}

.category-description {
    margin: 0;
    color: #7f8c8d;
    font-size: 14px;
}

/* Szolgáltatások és szakemberek lista */
.services-list, .staff-list {
    display: grid;
    gap: 20px;
}

.service-option, .staff-option {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
    justify-content: space-between;
}

.service-option:hover, .staff-option:hover {
    border-color: #3498db;
    background: #f0f8ff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52,152,219,0.2);
}

.staff-option.selected {
    border-color: #3498db;
    background: #e3f2fd;
    box-shadow: 0 3px 10px rgba(52,152,219,0.3);
}

/* Szakember profilkép */
.staff-avatar, .staff-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
    flex-shrink: 0;
    border: 3px solid #e0e0e0;
}

.staff-avatar-placeholder {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #bdc3c7;
}

.service-color-indicator {
    width: 8px;
    height: 60px;
    border-radius: 4px;
    margin-right: 20px;
}

.service-info {
    flex: 1;
}

.service-info h4 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: #2c3e50;
}

.service-info p {
    margin: 0 0 10px 0;
    color: #7f8c8d;
    line-height: 1.5;
}

.service-details {
    display: flex;
    gap: 15px;
    font-size: 14px;
}

.service-details span {
    background: white;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
}

.add-service-btn, .select-staff-btn {
    padding: 12px 25px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-service-btn:hover, .select-staff-btn:hover {
    background: #2980b9;
    transform: scale(1.05);
}

.add-service-btn.added {
    background: #27ae60;
}

.add-service-btn.added .btn-icon {
    content: '✓';
}

.btn-icon {
    font-size: 18px;
    font-weight: bold;
}

/* Kosár sidebar */
.booking-cart {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.cart-title {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #2c3e50;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.selected-services-list {
    min-height: 150px;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.selected-services-list::-webkit-scrollbar {
    width: 6px;
}

.selected-services-list::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 3px;
}

.selected-services-list::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 3px;
}

.empty-cart {
    text-align: center;
    color: #95a5a6;
    padding: 40px 20px;
    font-style: italic;
}

.selected-service-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
}

.selected-service-item:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.service-item-color {
    width: 6px;
    height: 50px;
    border-radius: 3px;
    flex-shrink: 0;
}

.service-item-info {
    flex: 1;
    min-width: 0;
}

.service-item-name {
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 5px 0;
    font-size: 15px;
}

.service-item-details {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: #7f8c8d;
}

.remove-service-btn {
    background: #e74c3c;
    color: white;
    border: none;
    width: 28px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.remove-service-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.cart-summary {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: #555;
}

.summary-row.total-price {
    padding-top: 12px;
    border-top: 2px solid #e0e0e0;
    margin-top: 8px;
    font-size: 18px;
    color: #2c3e50;
}

.summary-row strong {
    color: #3498db;
}

.summary-row.total-price strong {
    color: #27ae60;
}

.continue-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.continue-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.continue-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Dátum választó */
.selected-service-info {
    padding: 15px;
    background: #e3f2fd;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #3498db;
}

.date-picker-wrapper {
    margin: 20px 0;
}

.date-picker-wrapper input[type="date"] {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s;
}

.date-picker-wrapper input[type="date"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
}

/* Heti naptár nézet */
.week-calendar {
    margin-bottom: 30px;
}

.week-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 10px;
}

.week-nav-btn {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.week-nav-btn:hover {
    border-color: #3498db;
    background: #e3f2fd;
}

.current-month {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.week-days {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.day-item {
    flex: 1;
    text-align: center;
    padding: 15px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.day-item:hover {
    border-color: #3498db;
    background: #e3f2fd;
}

.day-item.selected {
    background: #3498db;
    border-color: #3498db;
    color: white;
}

.day-item.disabled {
    background: #f8f9fa;
    color: #bdc3c7;
    cursor: not-allowed;
    opacity: 0.5;
}

.day-item.disabled:hover {
    border-color: #e0e0e0;
    background: #f8f9fa;
}

.day-name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
    opacity: 0.7;
}

.day-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
}

/* Időpontok - Vertikális lista */
#time-slots-container {
    margin-top: 30px;
    animation: fadeIn 0.5s;
}

.time-slots-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 500px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
    padding-right: 10px;
}

.time-slots-list-vertical::-webkit-scrollbar {
    width: 8px;
}

.time-slots-list-vertical::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.time-slots-list-vertical::-webkit-scrollbar-thumb {
    background: #bdc3c7;
    border-radius: 10px;
}

.time-slots-list-vertical::-webkit-scrollbar-thumb:hover {
    background: #95a5a6;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#time-slots-container h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.time-slot {
    padding: 18px 20px;
    text-align: left;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.time-slot:hover {
    border-color: #3498db;
    background: #e3f2fd;
}

.time-slot.selected {
    background: #3498db;
    color: white;
    border-color: #3498db;
    box-shadow: 0 3px 10px rgba(52,152,219,0.3);
}

.time-slot.booked {
    background: #f8f9fa;
    color: #bdc3c7;
    border-color: #e0e0e0;
    cursor: not-allowed;
    text-decoration: line-through;
    opacity: 0.6;
    position: relative;
}

.time-slot.booked:hover {
    border-color: #e0e0e0;
    background: #f8f9fa;
    transform: none;
}

.time-slot.past {
    background: #f5f5f5;
    color: #999;
    border-color: #ddd;
    cursor: not-allowed;
    opacity: 0.4;
}

.time-slot.past:hover {
    border-color: #ddd;
    background: #f5f5f5;
}

.time-slot.booked::after {
    content: '🔒 Foglalt';
    position: absolute;
    bottom: 2px;
    right: 5px;
    font-size: 9px;
    font-weight: normal;
    text-decoration: none;
    color: #e74c3c;
}

/* Űrlap */
.booking-summary {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 2px solid #e3f2fd;
}

.booking-summary h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    color: #2c3e50;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item .label {
    font-weight: 600;
    color: #7f8c8d;
}

.summary-item .value {
    font-weight: 600;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-booking-btn {
    width: 100%;
    padding: 18px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-booking-btn:hover {
    background: #229954;
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(39,174,96,0.3);
}

/* Siker üzenet */
.success-message {
    text-align: center;
    padding: 60px 40px;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #27ae60;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    animation: successPulse 0.6s ease-out;
}

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

.success-message h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #27ae60;
}

.success-message p {
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 30px;
}

.new-booking-btn {
    padding: 15px 40px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.new-booking-btn:hover {
    background: #2980b9;
    transform: scale(1.05);
}

/* Üzenetek */
.booking-message {
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.booking-message.error {
    background: #fee;
    border-left: 4px solid #e74c3c;
    color: #c0392b;
}

.booking-message.warning {
    background: #fff3cd;
    border-left: 4px solid #f39c12;
    color: #856404;
}

/* Betöltő */
.booking-loader {
    text-align: center;
    padding: 60px;
}

.spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Reszponzív */
@media (max-width: 1024px) {
    .booking-container-with-sidebar {
        flex-direction: column;
    }
    
    .booking-sidebar {
        width: 100%;
        position: static;
        order: -1;
    }
    
    .booking-cart {
        position: sticky;
        top: 20px;
        z-index: 50;
    }
}

@media (max-width: 768px) {
    .booking-form-wrapper {
        margin: 0;
        padding: 0;
    }
    
    .booking-form-container {
        border-radius: 0;
        box-shadow: none;
        padding: 20px 0px 140px; /* Extra padding alul a sticky bar miatt */
    }
    
    .booking-form-title {
        font-size: 24px;
    }
    
    .booking-main-content {
        flex: 1;
        width: 100%;
    }
    
    .step-title {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .category-icon {
    font-size: 12px;
}
    
    .step-description {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .service-option {
        flex-direction: column;
        text-align: left;
        padding: 15px;
    }
    
    .service-color-indicator {
        width: 100%;
        height: 4px;
        margin: 0 0 12px 0;
    }
    
    .service-info h4 {
        font-size: 16px;
    }
    
    .service-info p {
        font-size: 13px;
    }
    
    .service-details {
        font-size: 13px;
    }
    
    .service-select {
        width: 100%;
        margin-top: 12px;
    }
    
    .add-service-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 15px;
    }
    
    /* Szakember választás mobil */
    .staff-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin: 0;
        padding: 0;
    }
    
    .staff-option {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
        gap: 12px;
        width: 100%;
        text-align: left;
        margin: 0;
        box-sizing: border-box;
    }
    
    .staff-option-top {
        display: flex;
        gap: 12px;
        align-items: center;
    }
    
    .staff-avatar, .staff-avatar-placeholder {
        width: 60px;
        height: 60px;
        margin-right: 0;
        border-width: 2px;
        flex-shrink: 0;
    }
    
    .staff-avatar-placeholder {
        font-size: 24px;
    }
    
    .staff-option .service-info {
        flex: 1;
        min-width: 0;
        display: flex !important;
        flex-direction: column;
        gap: 4px;
    }
    
    .staff-option .service-info h4 {
        font-size: 16px !important;
        font-weight: 600 !important;
        margin: 0 !important;
        color: #2c3e50 !important;
        line-height: 1.3 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        display: block !important;
    }
    
    .staff-option .service-info p {
        font-size: 13px !important;
        line-height: 1.4 !important;
        margin: 0 !important;
        color: #7f8c8d !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .staff-option .service-select {
        width: 100%;
        display: flex;
        justify-content: stretch;
        margin: 0;
    }
    
    .select-staff-btn {
        padding: 12px 20px;
        font-size: 15px;
        white-space: nowrap;
        flex: 1;
        width: 100%;
    }
    
    .back-button {
        margin-bottom: 20px;
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .category-nav {
        margin: 0 -15px 20px -15px;
        padding: 10px 15px;
        gap: 8px;
    }
    
    .category-nav-item {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .category-header {
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    .category-icon-large {
        font-size: 16px;
        width: 30px;
        height: 30px;
    }
    
    .category-title {
        font-size: 18px;
    }
    
    .category-description {
        font-size: 12px;
    }
    
    /* Heti naptár responsive */
    .week-days {
        gap: 5px;
    }
    
    .day-item {
        padding: 10px 5px;
    }
    
    .day-name {
        font-size: 10px;
    }
    
    .day-number {
        font-size: 18px;
    }
    
    .time-slot {
        padding: 15px;
        font-size: 14px;
    }
    
    /* Mobil sticky bottom kosár */
    .booking-sidebar {
        position: fixed !important;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100% !important;
        z-index: 1000;
        margin: 0;
        top: auto !important; /* Felülírjuk az esetleges top értéket */
    }
    
    .booking-cart {
        border-radius: 0;
        padding: 16px 20px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        background: white;
        border: none;
        border-top: 1px solid #e0e0e0;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .cart-title,
    .selected-services-list,
    .empty-cart {
        display: none !important; /* Elrejtjük mobilon */
    }
    
    .cart-summary {
        background: transparent;
        padding: 0;
        margin: 0;
        display: block;
    }
    
    .summary-row {
        padding: 0;
        border: none;
        margin: 0;
    }
    
    .summary-row:not(.total-price) {
        display: none !important; /* Csak az összeg marad */
    }
    
    .summary-row.total-price {
        margin: 0;
        padding: 0;
        border: none;
        display: block;
        width: 100%;
    }
    
    .summary-row.total-price::before {
        content: attr(data-count);
        font-size: 12px;
        color: #7f8c8d;
        font-weight: 400;
        display: block;
        margin-bottom: 4px;
        line-height: 1.3;
    }
    
    .summary-row.total-price .label {
        font-size: 14px;
        color: #2c3e50;
        font-weight: 600;
        display: block;
        margin-bottom: 2px;
    }
    
    .summary-row.total-price .value {
        font-size: 24px;
        font-weight: 700;
        color: #27ae60;
        display: block;
        line-height: 1.2;
    }
    
    .continue-btn {
        padding: 14px 20px;
        font-size: 16px;
        border-radius: 25px;
        margin: 0;
        width: 100%;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    
    .continue-btn::after {
        content: '→';
        font-size: 18px;
    }
    
    /* Komplex mód - Heti időpont grid mobil */
    #time-slots-container {
        margin-top: 20px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .time-slots-list-vertical {
        overflow-x: auto;
        padding-bottom: 15px;
    }
    
    .timeslots-week-grid {
        grid-template-columns: repeat(7, minmax(80px, 1fr));
        gap: 6px;
        min-width: 600px;
    }
    
    .timeslot-complex {
        padding: 10px 6px;
        font-size: 13px;
    }
    
    .day-timeslots-column .day-header {
        font-size: 10px;
        padding: 6px 4px;
    }
}

/* ========================================
   EGYSZERŰ MÓD (Simple Mode)
   ======================================== */

.booking-system-wrapper.simple-mode {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.booking-system-wrapper.simple-mode *,
.booking-system-wrapper.simple-mode *::before,
.booking-system-wrapper.simple-mode *::after {
    box-sizing: border-box;
    margin: 0;
    
}

.booking-system-wrapper.simple-mode button {
    font-family: inherit;
    line-height: 1;
}

.booking-container-simple {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.booking-container-simple .booking-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    padding: 30px 20px 20px;
    margin: 0 !important;
    line-height: 1.2;
}

.simple-booking-layout {
    padding: 20px 30px 30px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.simple-booking-main {
    flex: 1;
    min-width: 0;
}

/* Naptár ikon gomb - alapértelmezetten rejtett (csak mobilon) */
.open-calendar-modal-btn {
    display: none;
}

/* Naptár modal - alapértelmezetten nem használt (csak mobilon) */
.calendar-modal-overlay {
    display: none;
}

/* Egyszerű naptár - bal oldal */
.simple-calendar-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    width: 350px;
    flex-shrink: 0;
}

.calendar-header-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header-simple h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 !important;
    padding: 0 !important;
    color: #2c3e50;
    line-height: 1;
}

.calendar-nav-btn {
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    color: #666;
}

.calendar-nav-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.calendar-nav-btn svg {
    display: block;
}

.calendar-grid-simple {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: transparent;
    color: #999;
    font-weight: 600;
    font-size: 11px;
    width: 100%;
    text-transform: uppercase;
}

.calendar-weekdays .weekday {
    padding: 8px 4px;
    text-align: center;
    line-height: 1;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    background: #f5f5f5;
    width: 100%;
}

.calendar-day-simple {
    background: white;
    padding: 8px 4px;
    text-align: center;
    min-height: 40px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 400;
    color: #555;
    border-radius: 2px;
}

.calendar-day-simple:not(.disabled):not(.past):hover {
    background: #e3f2fd;
}

.calendar-day-simple.selected {
    background: #3498db;
    color: white;
    font-weight: 600;
}

.calendar-day-simple.today {
    background: #e3f2fd;
    font-weight: 600;
    color: #3498db;
}

.calendar-day-simple.disabled,
.calendar-day-simple.past {
    background: #fafafa;
    color: #ddd;
    cursor: not-allowed;
}

.calendar-day-simple.has-bookings::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background: #3498db;
    border-radius: 50%;
}

/* Heti nézet - jobb oldal felső rész */
.week-view-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.week-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.week-navigation h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 !important;
    padding: 0 !important;
    color: #2c3e50;
}

.week-nav-btn {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.week-nav-btn:hover {
    border-color: #3498db;
    background: #e3f2fd;
}

.week-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.week-day-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.week-day-item:hover:not(.disabled):not(.past) {
    border-color: #3498db;
    background: #e3f2fd;
}

.week-day-item.selected {
    background: #3498db;
    border-color: #3498db;
    color: white;
}

.week-day-item.past,
.week-day-item.disabled {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
}

.week-day-name {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 4px;
    opacity: 0.7;
}

.week-day-number {
    display: block;
    font-size: 20px;
    font-weight: 700;
}

/* Időpontok - jobb oldal alsó rész - heti grid */
.simple-timeslots-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow-x: auto;
}

.timeslots-week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    min-width: 700px;
}

.day-timeslots-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.day-timeslots-column .day-header {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    padding: 8px 4px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 8px;
}

.timeslot-simple {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    padding: 10px 8px;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 14px;
    color: #3498db;
}

.timeslot-simple:hover:not(.disabled):not(.occupied) {
    border-color: #3498db;
    background: #e3f2fd;
}

.timeslot-simple.selected {
    background: #3498db;
    border-color: #3498db;
    color: white;
}

.timeslot-simple.occupied,
.timeslot-simple.disabled {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
    text-decoration: line-through;
}

.timeslot-simple.no-slots {
    background: transparent;
    border: 1px dashed #ddd;
    color: #ccc;
    cursor: default;
    font-size: 12px;
}

/* Timeslot-ok komplex módban (ugyanaz a stílus, mint simple) */
.timeslot-complex {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    padding: 10px 8px;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 14px;
    color: #3498db;
}

.timeslot-complex:hover:not(.disabled):not(.occupied) {
    border-color: #3498db;
    background: #e3f2fd;
}

.timeslot-complex.selected {
    background: #3498db;
    border-color: #3498db;
    color: white;
}

.timeslot-complex.occupied,
.timeslot-complex.disabled {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
    text-decoration: line-through;
}

.timeslot-complex.no-slots {
    background: transparent;
    border: 1px dashed #ddd;
    color: #ccc;
    cursor: default;
    font-size: 12px;
}

/* Modal popup a foglaláshoz */
.booking-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 10, 14, 0.55);
    backdrop-filter: blur(4px) saturate(120%);
    -webkit-backdrop-filter: blur(4px) saturate(120%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 220ms ease-out;
}

.booking-modal {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border-radius: 14px;
    max-width: 680px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 18px 50px rgba(22, 33, 62, 0.35), inset 0 1px 0 rgba(255,255,255,0.6);
    position: relative;
    animation: slideUp 260ms cubic-bezier(.2,.9,.3,1);
    border: 1px solid rgba(28,40,60,0.06);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(18px) scale(0.995); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, color 180ms ease;
    color: #7b8a97;
}

.modal-close-btn:hover {
    background: rgba(52,152,219,0.06);
    color: #2b6fb3;
    transform: rotate(90deg) scale(1.03);
}

.modal-content {
    padding: 28px 28px 30px;
}

.modal-content h3 {
    margin: 0 0 12px 0;
    font-size: 20px;
    color: #16304a;
    font-weight: 700;
}

.modal-content .summary-row {
    padding: 10px 0;
}

.modal-content .form-group {
    margin-bottom: 18px;
}

.modal-content .form-group input,
.modal-content .form-group textarea {
    padding: 12px 14px;
    border: 1px solid #e6edf3;
    background: #fff;
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.modal-content .submit-booking-btn {
    width: 100%;
    padding: 14px 16px;
    background: linear-gradient(90deg,#1772d6 0%, #2a9df4 100%);
    border: none;
    color: white;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(38,125,210,0.18);
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.modal-content .submit-booking-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(38,125,210,0.22);
}

.modal-content .submit-booking-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.simple-summary-card {
    background: transparent;
    width: 100%;
    box-shadow: none;
}

.simple-summary-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    color: #2c3e50;
    line-height: 1.2;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.summary-row:last-of-type {
    border-bottom: none;
}

.summary-label {
    font-weight: 500;
    color: #666;
}

.summary-value {
    font-weight: 600;
    color: #2c3e50;
}

/* Egyszerű űrlap */
.booking-form-simple {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #e0e0e0;
}

.booking-form-simple .form-group {
    margin-bottom: 20px;
}

.booking-form-simple label {
    display: block;
    margin-bottom: 8px !important;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.booking-form-simple input,
.booking-form-simple textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

/* Layout: name, email, phone on one row (desktop), stacked on mobile */
.booking-form-simple form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
    min-width: 0; /* allow children to shrink to prevent overflow */
}

@media (min-width: 780px) {
    .booking-form-simple form {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: start;
    }

    /* Ensure form-group children can shrink properly and not force overflow */
    .booking-form-simple form .form-group {
        min-width: 0;
    }

    /* Notes textarea should span all columns */
    .booking-form-simple form .form-group:nth-of-type(4) {
        grid-column: 1 / -1;
    }

    /* Submit button spans full width under the fields */
    .booking-form-simple .submit-booking-btn {
        grid-column: 1 / -1;
    }
}

.booking-form-simple input:focus,
.booking-form-simple textarea:focus {
    outline: none;
    border-color: #3498db;
}

.submit-booking-btn {
    width: 100%;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-booking-btn:hover {
    background: #2980b9;
}

/* Toast értesítés */
.booking-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 400px;
    font-size: 16px;
    font-weight: 600;
}

.booking-toast.success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.booking-toast.error {
    background: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%);
}

.booking-toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.booking-toast-message {
    flex: 1;
    line-height: 1.4;
}

.booking-toast.hiding {
    animation: slideOutRight 0.3s ease-out forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Mobilra optimalizálás */
@media (max-width: 768px) {
    .booking-toast {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        font-size: 14px;
        padding: 16px 20px;
    }

    .booking-system-wrapper.simple-mode {
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
        box-sizing: border-box;
    }
    
    .booking-container-simple .booking-title {
        font-size: 24px;
        padding: 20px 15px 15px;
        margin: 0;
    }
    
    .simple-booking-layout {
        flex-direction: column;
        padding: 0;
        box-sizing: border-box;
    }
    
    .simple-calendar-section {
        display: none !important; /* Elrejtjük mobilon */
    }
    
    /* Naptár ikon gomb mobilon */
    .open-calendar-modal-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: #3498db;
        color: white;
        border: none;
        border-radius: 12px;
        padding: 12px 20px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        margin: 0 0 15px 0;
        transition: all 0.2s;
        box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
    }
    
    .open-calendar-modal-btn:hover {
        background: #2980b9;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
    }
    
    .open-calendar-modal-btn svg {
        flex-shrink: 0;
    }
    
    /* Naptár modal */
    .calendar-modal-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 10000;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        animation: fadeIn 200ms ease-out;
    }
    
    .calendar-modal {
        background: white;
        border-radius: 16px;
        max-width: 400px;
        width: 100%;
        max-height: 90vh;
        overflow-y: auto;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        position: relative;
        animation: slideUp 250ms cubic-bezier(.2,.9,.3,1);
    }
    
    .calendar-modal-content {
        padding: 50px 20px 20px;
    }
    
    .calendar-modal .calendar-header-simple {
        margin-bottom: 15px;
    }
    
    .calendar-modal .modal-close-btn {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #f5f5f5;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
        z-index: 1;
    }
    
    .calendar-modal .modal-close-btn:hover {
        background: #e0e0e0;
        transform: rotate(90deg);
    }
    
    .calendar-weekdays .weekday {
        padding: 8px 4px;
        font-size: 12px;
    }
    
    .calendar-day-simple {
        padding: 12px 4px;
        min-height: 40px;
        font-size: 14px;
    }
    
    .week-view-section {
        padding: 15px 0 15px 0;
    }
    
    .week-navigation {
        display: none !important; /* Elrejtjük a navigációt mobilon */
    }
    
    /* Hónap megjelenítés mobilon */
    .week-view-section::before {
        content: attr(data-month);
        display: block;
        font-size: 16px;
        font-weight: 700;
        color: #2c3e50;
        margin-bottom: 20px;
        text-align: left;
        padding: 0;
        padding-bottom: 10px;
    }
    
    .week-days-grid {
        display: flex;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 20px;
    }

    .simple-booking-main {
        max-width: 100%;
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    .week-day-item {
        flex: 0 0 auto;
        width: 50px;
        height: 50px;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border-radius: 50px;
        background: #f8f9fa;
        border: 2px solid transparent;
        gap: 4px;
    }
    
    .week-day-item.selected {
        background: #3498db;
        border-color: #3498db;
    }
    
    .week-day-item.selected .week-day-number,
    .week-day-item.selected .week-day-name {
        color: white !important;
    }
    
    .week-day-number {
        font-size: 20px;
        font-weight: 700;
        color: #2c3e50;
        line-height: 1;
    }
    
    .week-day-name {
        font-size: 11px;
        font-weight: 600;
        color: #7f8c8d;
        text-transform: uppercase;
        line-height: 1;
    }
    
    .simple-timeslots-section {
        padding: 0 0 20px 0;
        overflow-x: visible;
        width: 100%;
        box-sizing: border-box;
    }
    
    .timeslots-week-grid {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0 !important;
        grid-template-columns: none !important;
    }
    
    .day-timeslots-column {
        display: contents; /* A napok oszlopai "eltűnnek", csak az időpontok maradnak */
    }
    
    .day-timeslots-column .day-header {
        display: none; /* Elrejtjük a nap fejléceket */
    }
    
    .timeslot-simple {
        width: 100%;
        max-width: 100%;
        padding: 18px 20px;
        font-size: 16px;
        border-radius: 12px;
        text-align: left;
        background: white;
        border: 2px solid #e0e0e0;
        margin: 0;
        box-sizing: border-box;
    }
    
    .timeslot-simple:not(.occupied):not(.no-slots):hover {
        border-color: #3498db;
        background: #f8f9fa;
    }
    
    .timeslot-simple.selected {
        background: #3498db;
        border-color: #3498db;
        color: white;
    }
    
    .booking-modal {
        max-height: 85vh;
    }
    
    .modal-content {
        padding: 30px 20px 20px;
    }
    
    .modal-close-btn {
        width: 36px;
        height: 36px;
        top: 10px;
        right: 10px;
    }
}
