.booking-container {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    font-family: sans-serif;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.form-row { display: flex; gap: 15px; margin-bottom: 15px; }
.form-row > div { flex: 1; }

label { display: block; margin-top: 15px; margin-bottom: 5px; font-weight: bold; color: #333; }
label:first-child { margin-top: 0; }

select, input, textarea { 
    width: 100%; 
    padding: 10px; 
    border: 1px solid #ddd; 
    border-radius: 4px; 
    box-sizing: border-box; /* Previne depășirea lățimii la padding */
    font-family: inherit;
}

textarea { resize: vertical; }

/* Grila de Butoane pentru Ore */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
    gap: 10px;
    margin: 10px 0 20px 0;
}

.time-slot {
    padding: 10px 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    transition: all 0.2s ease;
    font-size: 14px;
}

/* Status Albastru: Disponibil */
.slot-available {
    background-color: #e7f3ff;
    border-color: #2196F3;
    color: #2196F3;
}

.slot-available:hover {
    background-color: #2196F3;
    color: white;
    transform: translateY(-2px);
}

/* Status Gri: Ocupat */
.slot-busy {
    background-color: #eeeeee;
    border-color: #ccc;
    color: #999;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Status Roșu: Selectat */
.slot-selected {
    background-color: #f44336 !important;
    border-color: #d32f2f !important;
    color: white !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Afișaj Preț și Detalii */
.price-display-box {
    text-align: right;
    background: #fff;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #eee;
}

#total_price {
    font-size: 1.4rem;
    color: #007bff;
    font-weight: bold;
}

.details-container {
    margin: 20px 0;
}

.helper-text {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

.btn-submit { 
    width: 100%; 
    padding: 15px; 
    background: #28a745; 
    color: white; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 10px;
}

.btn-submit:hover {
    background: #218838;
}

/* Info Reduceri */
.discount-info {
    background: #fff9c4; /* Galben pal pentru a atrage atenția */
    border-left: 5px solid #fbc02d;
    padding: 15px;
    margin-top: 25px;
    border-radius: 5px;
}

.discount-info h4 { margin: 0 0 10px 0; color: #827717; font-size: 16px; }
.discount-info ul { list-style: none; padding: 0; margin: 0; }
.discount-info li { margin-bottom: 5px; font-size: 13px; color: #333; }
.discount-info .note { font-size: 11px; color: #777; margin-top: 10px; }

.sport-selection {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.sport-card {
    flex: 1;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    background: white;
}
.sport-card img { width: 50px; display: block; margin: 0 auto 10px; }


.sport-card.selected {
    border-color: #2196F3;
    background-color: #e7f3ff;
    transform: translateY(-5px);
    
    
}
.persons-selection-grid {
    display: grid;
    /* Creează exact 3 coloane egale */
    grid-template-columns: repeat(3, 1fr); 
    gap: 10px;
    margin-bottom: 20px;
    max-width: 300px; /* Ajustează lățimea totală dacă butoanele par prea late */
}

.btn-person {
    width: 100%; /* Se va întinde cât permite coloana de grid */
    padding: 12px 0;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
}

.btn-person.active {
    background: #1a5276; /* Albastrul tău */
    color: #fff;
    border-color: #1a5276;
}

.btn-person:hover:not(.active) {
    background: #f0f0f0;
}


.sport-icon {
   
    font-size: 40px;
    margin-bottom: 10px;
    display: block;
}
.sport-card span {
    display: block;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Container pentru butoanele de ore */
.hours-selection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 pe rând pe mobil */
    gap: 10px;
    margin-top: 5px;
}

/* Butoanele de bază */
.btn-hour, .button-special-hour {
    background-color: #fff;
    border: 2px solid #ffcc00; /* Galbenul temei */
    color: #333;
    padding: 10px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Starea activă (Selectat) */
.btn-hour.active, .button-special-hour.active {
    background-color: #ffcc00;
    color: #000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Hover pentru desktop */
.btn-hour:hover {
    background-color: #fff9e6;
}

/* La 4+ ore putem sugera vizual că e un pachet special */
.button-special-hour {
    border-style: dashed; /* Opțional: un design ușor diferit pentru pachete */
}

button:disabled {
    background-color: #eee !important;
    border-color: #ccc !important;
    color: #888 !important;
    position: relative;
}

/* Opțional: un tooltip sau mesaj care să apară la hover pe buton dezactivat */
button:disabled:hover::after {
    content: "Interval indisponibil";
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 5px;
    font-size: 10px;
    border-radius: 4px;
    white-space: nowrap;
}