/* --- STARE STYLE (BEZ ZMIAN) --- */
:root { --rezerwacje-primary-color: #066970; --rezerwacje-primary-light: #f0fdfa; --rezerwacje-primary-dark: #044b50; --rezerwacje-text-color: #383838; --rezerwacje-border-color: #e2e8f0; --rezerwacje-bg-light: #F6FAFA; --rezerwacje-shadow: 0 4px 12px rgba(6, 105, 112, 0.08); --rezerwacje-success-bg: #e6f4f5; --rezerwacje-success-border: #066970; --rezerwacje-error-bg: #f8d7da; --rezerwacje-error-border: #dc3545; --rezerwacje-error-text: #721c24; }
.rezerwacje-calendar-wrapper { max-width: 800px; margin: 20px auto; padding: 20px; font-family: 'Inter', sans-serif; background: #fff; border: 1px solid var(--rezerwacje-border-color); border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); }
.rezerwacje-step { display: none; animation: fadeIn 0.3s; }
.rezerwacje-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.rezerwacje-step h3 { margin: 0 0 25px 0; padding-bottom: 10px; border-bottom: 2px solid var(--rezerwacje-primary-color); color: var(--rezerwacje-primary-color); font-size: 22px; font-weight: 700; }
.rezerwacje-therapists-list, .rezerwacje-services-list { display: grid; gap: 15px; }
.rezerwacje-therapist-card, .rezerwacje-service-card { background: white; border: 1px solid var(--rezerwacje-border-color); border-radius: 8px; padding: 20px; cursor: pointer; transition: all 0.3s; box-shadow: var(--rezerwacje-shadow); border-left: 4px solid var(--rezerwacje-border-color); }
.rezerwacje-therapist-card:hover, .rezerwacje-service-card:hover { border-color: var(--rezerwacje-primary-color); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08); transform: translateY(-2px); border-left-color: var(--rezerwacje-primary-color); }
.rezerwacje-therapist-card.selected, .rezerwacje-service-card.selected { border-color: var(--rezerwacje-primary-color); border-left-color: var(--rezerwacje-primary-color); background: var(--rezerwacje-primary-light); box-shadow: 0 2px 8px rgba(0, 121, 107, 0.2); }
.rezerwacje-therapist-card h4, .rezerwacje-service-card h4 { margin: 0 0 10px 0; color: var(--rezerwacje-primary-dark); font-size: 18px; font-weight: 700; }
.rezerwacje-therapist-card p, .rezerwacje-service-card p { margin: 0; font-size: 14px; color: #555; }
.rezerwacje-service-card .service-info { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; font-size: 14px; color: #666; }
.rezerwacje-service-card .service-price { font-size: 20px; font-weight: bold; color: var(--rezerwacje-primary-color); }
.rezerwacje-calendar { background: white; border: 1px solid var(--rezerwacje-border-color); border-radius: 8px; padding: 20px; }
.rezerwacje-calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.rezerwacje-calendar-header span { font-size: 18px; font-weight: 700; color: var(--rezerwacje-primary-dark); }
.rezerwacje-calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.rezerwacje-calendar-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border: 1px solid var(--rezerwacje-border-color); border-radius: 50%; cursor: pointer; transition: all 0.2s; font-size: 14px; font-weight: 500; }
.rezerwacje-calendar-day.disabled { background: var(--rezerwacje-bg-light); color: #bbb; cursor: not-allowed; opacity: 0.7; }
.rezerwacje-calendar-day:not(.disabled):hover { background: var(--rezerwacje-primary-light); color: var(--rezerwacje-primary-dark); border-color: var(--rezerwacje-primary-color); }
.rezerwacje-calendar-day.has-availability { font-weight: 700; color: var(--rezerwacje-primary-dark); border-color: var(--rezerwacje-primary-color); background-color: #f0fdfa; }
.rezerwacje-calendar-day.selected { background: var(--rezerwacje-primary-color); color: white; border-color: var(--rezerwacje-primary-color); font-weight: 700; }
.rezerwacje-calendar-day.header { font-weight: bold; background: transparent; border: none; border-radius: 0; cursor: default; color: #777; aspect-ratio: auto; font-size: 13px; }
.rezerwacje-time-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.rezerwacje-time-slot { background: white; border: 2px solid var(--rezerwacje-border-color); border-radius: 8px; padding: 15px; text-align: center; cursor: pointer; transition: all 0.2s; font-weight: 500; }
.rezerwacje-time-slot:hover { border-color: var(--rezerwacje-primary-color); background: var(--rezerwacje-primary-light); }
.rezerwacje-time-slot.selected { border-color: var(--rezerwacje-primary-color); background: var(--rezerwacje-primary-color); color: white; font-weight: 700; }
.rezerwacje-time-slot.disabled { background: var(--rezerwacje-bg-light); color: #bbb; cursor: not-allowed; opacity: 0.7; border-style: dashed; }
.rezerwacje-form-group { margin-bottom: 20px; }
.rezerwacje-form-group label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 14px; }
.rezerwacje-form-group input, .rezerwacje-form-group textarea { width: 100%; padding: 12px; border: 1px solid var(--rezerwacje-border-color); border-radius: 8px; font-size: 15px; transition: all 0.2s; box-sizing: border-box; }
.rezerwacje-form-group input:focus, .rezerwacje-form-group textarea:focus { outline: none; border-color: var(--rezerwacje-primary-color); box-shadow: 0 0 0 3px var(--rezerwacje-primary-light); }
.rezerwacje-summary { background: var(--rezerwacje-primary-light); border: 1px solid var(--rezerwacje-primary-color); border-radius: 8px; padding: 20px; margin: 0 0 25px 0; }
.rezerwacje-summary h4 { margin: 0 0 15px 0; color: var(--rezerwacje-primary-dark); font-size: 18px; }
.rezerwacje-summary p { margin: 10px 0; color: #333; }
.rezerwacje-summary p strong { color: #000; }
.rezerwacje-btn { background: var(--rezerwacje-primary-color); color: white; border: none; padding: 12px 24px; border-radius: 8px; cursor: pointer; font-size: 16px; font-weight: 700; transition: all 0.2s; text-transform: uppercase; letter-spacing: 0.5px; }
.rezerwacje-btn:hover { background: var(--rezerwacje-primary-dark); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); transform: translateY(-1px); }
.rezerwacje-btn.rezerwacje-btn-nav { background: transparent; color: var(--rezerwacje-primary-color); padding: 8px 12px; width: auto; }
.rezerwacje-btn.rezerwacje-btn-nav:hover { background: var(--rezerwacje-primary-light); transform: none; box-shadow: none; }
.rezerwacje-btn-primary { width: 100%; font-size: 18px; padding: 15px; }
.rezerwacje-navigation { display: flex; justify-content: flex-start; margin-top: 20px; }
.rezerwacje-btn-back { background: #f0f0f0; color: #555; width: auto; }
.rezerwacje-btn-back:hover { background: #e0e0e0; color: #333; transform: none; box-shadow: none; }
.rezerwacje-success { background: var(--rezerwacje-success-bg); border: 1px solid var(--rezerwacje-success-border); border-radius: 8px; padding: 30px; text-align: center; }
.rezerwacje-success p { font-size: 16px; margin: 10px 0; color: #155724; }
.rezerwacje-loading { display: flex; justify-content: center; align-items: center; min-height: 150px; text-align: center; padding: 40px; color: #666; }
.rezerwacje-loading::after { content: ''; width: 40px; height: 40px; border: 4px solid var(--rezerwacje-primary-light); border-top-color: var(--rezerwacje-primary-color); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }
.rezerwacje-error { background: var(--rezerwacje-error-bg); border: 1px solid var(--rezerwacje-error-border); border-radius: 8px; padding: 15px; margin: 20px 0; color: var(--rezerwacje-error-text); }
.rezerwacje-therapist-card { display: flex; align-items: center; gap: 15px; }
.rezerwacje-therapist-avatar { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; background-color: var(--rezerwacje-primary-light); border: 2px solid var(--rezerwacje-primary-color); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.rezerwacje-therapist-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rezerwacje-therapist-avatar .rezerwacje-therapist-initials { font-size: 24px; font-weight: 700; color: var(--rezerwacje-primary-dark); }
.rezerwacje-therapist-details { flex: 1; }
.rezerwacje-therapist-details p { margin-top: 5px; }
.rezerwacje-therapist-details .rezerwacje-next-slot-therapist { font-size: 13px; font-weight: 500; color: var(--rezerwacje-text-color); background-color: var(--rezerwacje-primary-light); border-radius: 4px; padding: 6px 10px; margin-top: 10px; border: 1px solid var(--rezerwacje-primary-color); }
.rezerwacje-therapist-details .rezerwacje-next-slot-therapist strong { font-weight: 700; color: var(--rezerwacje-primary-dark); }

/* === NOWE STYLE: LISTA TERAPEUTÓW (KAFELKOWA) === */

.rezerwacje-list-wrapper { display: flex; flex-direction: column; gap: 30px; max-width: 1000px; margin: 0 auto; font-family: 'Inter', sans-serif; }
.rezerwacje-list-card { display: flex; background: #fff; border: 1px solid #eee; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.03); transition: box-shadow 0.3s ease; }
.rezerwacje-list-card:hover { box-shadow: 0 5px 20px rgba(0,0,0,0.08); }
.rezerwacje-card-info { flex: 1.2; padding: 25px; border-right: 1px solid #f0f0f0; }
.rezerwacje-card-header { display: flex; gap: 15px; margin-bottom: 20px; }
.rezerwacje-card-avatar { width: 80px; height: 80px; flex-shrink: 0; }
.rezerwacje-card-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--rezerwacje-primary-color); }
.rezerwacje-card-avatar .initials { width: 100%; height: 100%; border-radius: 50%; background: var(--rezerwacje-primary-light); color: var(--rezerwacje-primary-dark); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: bold; }
.rezerwacje-card-details h3 { margin: 0 0 5px 0; font-size: 20px; color: #222; }
.rezerwacje-card-subtitles { font-size: 14px; color: #666; margin-bottom: 10px; font-weight: 500; }
.rezerwacje-languages { font-size: 13px; color: #444; }
.rezerwacje-card-specializations h4 { font-size: 14px; font-weight: 700; margin: 0 0 10px 0; color: #222; }
.team-content-list { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.team-content-list li { font-size: 12px; background: #f4f4f4; padding: 4px 10px; border-radius: 15px; color: #555; white-space: nowrap; }
.team-content-list li::before { content: none; }
.rezerwacje-card-booking { flex: 1; padding: 25px; background: #fff; min-width: 350px; }
.rezerwacje-card-booking-header label { display: block; font-size: 12px; color: #888; margin-bottom: 4px; }
.rezerwacje-service-select { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; margin-bottom: 20px; background-color: #fff; }
.rezerwacje-mini-calendar { position: relative; }
.rezerwacje-mini-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.rezerwacje-mini-nav button { background: none; border: none; cursor: pointer; font-size: 18px; color: var(--rezerwacje-primary-dark); padding: 0 10px; }
.rezerwacje-mini-nav button:disabled { color: #ccc; cursor: default; }
.mini-dates-row { display: flex; justify-content: space-around; width: 100%; }
.mini-date-col { text-align: center; font-size: 13px; color: #555; line-height: 1.3; font-weight: 600; width: 25%; }
.rezerwacje-slots-container { display: flex; justify-content: space-around; min-height: 120px; }
.mini-slots-col { width: 25%; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.mini-slot-btn { display: block; width: 90%; padding: 6px 0; text-align: center; background: var(--rezerwacje-primary-color); color: #fff; border-radius: 20px; font-size: 13px; font-weight: 500; text-decoration: none; cursor: pointer; transition: background 0.2s; border: none; }
.mini-slot-btn:hover { background: var(--rezerwacje-primary-dark); }
.rezerwacje-loading-sm { text-align: center; width: 100%; color: #999; font-size: 13px; padding: 20px 0; }
.rezerwacje-more-hours { text-align: center; margin-top: 15px; }
.btn-more-hours { background: transparent; border: 1px solid var(--rezerwacje-border-color); color: var(--rezerwacje-text-color); font-size: 12px; padding: 6px 12px; border-radius: 20px; cursor: pointer; text-decoration: none; transition: all 0.2s; font-weight: 500; }
.btn-more-hours:hover { border-color: var(--rezerwacje-primary-color); color: var(--rezerwacje-primary-dark); }
@media (max-width: 768px) { .rezerwacje-list-card { flex-direction: column; } .rezerwacje-card-info { border-right: none; border-bottom: 1px solid #f0f0f0; } }

/* NOWE: Style dla "Najbliższy termin" */
.rezerwacje-next-available-info { font-size: 13px; color: #155724; background: #d4edda; border: 1px solid #c3e6cb; border-radius: 4px; padding: 8px 12px; margin-top: 12px; display: inline-block; }
.rezerwacje-next-available-info.unavailable { color: #721c24; background: #f8d7da; border-color: #f5c6cb; }
.rezerwacje-next-available-info strong { font-weight: 700; }

/* MODAL REZERWACJI */
.rezerwacje-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 9999; display: flex; justify-content: center; align-items: center; }
.rezerwacje-modal-content { background: #fff; width: 90%; max-width: 500px; border-radius: 8px; padding: 0; box-shadow: 0 5px 15px rgba(0,0,0,0.2); animation: fadeIn 0.2s; }
.rezerwacje-modal-header { padding: 15px 20px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.rezerwacje-modal-header h3 { margin: 0; font-size: 18px; }
.rezerwacje-modal-close { background: none; border: none; font-size: 24px; cursor: pointer; }
.rezerwacje-modal-body { padding: 20px; }
.rezerwacje-summary-box { background: #f9f9f9; padding: 15px; border-radius: 6px; margin-bottom: 20px; font-size: 14px; }
.rezerwacje-summary-box p { margin: 5px 0; }

/* NOWE: Style dla linku profilowego */
.rezerwacje-profile-link { color: #222; text-decoration: none; transition: color 0.2s; }
.rezerwacje-profile-link:hover { color: var(--rezerwacje-primary-color); }

/* NOWE: Style dla tekstu promocyjnego */
.rezerwacje-promo-text { margin-top: 15px; padding: 10px; background-color: #f0fdfa; border: 1px solid var(--rezerwacje-primary-color); border-radius: 6px; color: var(--rezerwacje-primary-dark); font-size: 13px; font-weight: 500; }