﻿.booking-section {
    padding: 120px 20px;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('../img/salon_bg.jpg');
    background-color: #222;
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.booking-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.booking-box h1 {
    text-align: center;
    margin-bottom: 5px;
    text-transform: uppercase;
    color: #333;
}

.booking-box p {
    color: #777;
    margin-bottom: 30px;
}

.booking-box form {
    text-align: left;
}

label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
    font-size: 14px;
}

.booking-box select,
.booking-box input,
.booking-box textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 14px;
    background-color: #f9f9f9;
    color: #111;
}

.booking-box select:focus,
.booking-box input:focus,
.booking-box textarea:focus {
    border-color: #cda45e;
    outline: none;
    background-color: #fff;
}

.booking-box select:disabled {
    background-color: #f3f3f3;
    color: #666;
}

.date-time-group {
    display: flex;
    gap: 15px;
}

.date-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.date-card {
    flex: 0 0 auto;
    width: 70px;
    padding: 10px 5px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    background: #fff;
    color: #111;
    transition: 0.2s;
}

.date-card:hover {
    border-color: #cda45e;
    background: #f7f7f7;
    color: #111;
}

.date-card.active {
    background-color: #cda45e;
    color: #fff;
    border-color: #cda45e;
}

.date-card span {
    display: block;
    font-size: 12px;
}

.date-card strong {
    display: block;
    font-size: 16px;
    margin-top: 5px;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 10px;
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
}

.time-slot {
    padding: 8px;
    background: #fff;
    border: 1px solid #ddd;
    color: #111;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    font-size: 13px;
    transition: 0.2s;
}

.time-slot:hover {
    background-color: #f0f0f0;
    border-color: #cda45e;
    color: #111;
}

.time-slot.active {
    background-color: #cda45e;
    color: #fff;
    border-color: #cda45e;
    font-weight: bold;
}

/* wyłączone terminy */
.time-slot.disabled,
.time-slot.disabled:hover,
.time-slot.disabled:focus,
.time-slot.disabled:active,
.time-slot.disabled.active,
.time-grid .time-slot.disabled,
.time-grid .time-slot.disabled:hover,
.time-grid .time-slot.disabled:focus,
.time-grid .time-slot.disabled.active {
    background: #e9e9e9 !important;
    color: #bbb !important;
    border: 1px solid #ccc !important;
    cursor: not-allowed !important;
    text-decoration: line-through !important;
    pointer-events: none !important;
    opacity: 1 !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    outline: none !important;
    font-weight: normal !important;
    transition: none !important;
}

.time-grid .time-slot:focus {
    outline: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important; }


input[type= date] {
    background-color: #fff;
    color: #000;
    border: 1px solid #ddd;
}
input[type=date]:focus {
    border-color: #cda45e;
    outline: none;
    background-color: #fff;
}
input[type=date]:disabled {
    background-color: #e9e9e9;
    cursor: not-allowed;
    color: #000;
}
input[type=date]::-webkit-calendar-picker-indicator { filter: brightness(0); }

.hidden-input { display: none; }

.btn-book {
    width: 100%;
    padding: 15px;
    background-color: #a68b6c;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 25px;
    transition: 0.3s;
}
.btn-book:hover {
    background-color: #333;
}
