/* Booking page — extends index.css header styles */
body {
    padding-bottom: 40px;
}

.booking-page {
    padding-top: 0;
}

.booking-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin: 28px 0 24px;
    padding: 28px 32px;
    background: linear-gradient(135deg, #1a1f2e, #131722);
    border-radius: 28px;
    border: 1px solid rgba(240,166,202,0.15);
    flex-wrap: wrap;
}

.booking-hero h1 {
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, #fff, #f0a6ca);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 8px;
}

.booking-hero p {
    opacity: 0.8;
    font-size: 0.95rem;
    max-width: 520px;
}

.booking-hero-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.booking-hero-tags span {
    font-size: 0.75rem;
    background: rgba(240,166,202,0.1);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(240,166,202,0.2);
}

.preselect-banner {
    margin-top: 14px;
    padding: 10px 14px;
    background: rgba(58,207,107,0.12);
    border: 1px solid rgba(58,207,107,0.35);
    border-radius: 14px;
    font-size: 0.82rem;
    color: #3acf6b;
}

.preselect-banner strong { color: #edf2f8; }

.booking-hero-contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 30px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: #edf2f8;
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.2s;
    white-space: nowrap;
}

.contact-chip:hover { border-color: #f0a6ca; color: #f0a6ca; }
.contact-chip.wa:hover { border-color: #25d366; color: #25d366; }

.booking-steps {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.step-item {
    flex: 1;
    min-width: 120px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #1a1f2e;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    font-size: 0.8rem;
    opacity: 0.55;
    transition: 0.25s;
}

.step-item.active {
    opacity: 1;
    border-color: rgba(240,166,202,0.4);
    background: rgba(240,166,202,0.08);
}

.step-item.done {
    opacity: 0.85;
    border-color: rgba(58,207,107,0.3);
}

.step-item.done .step-num {
    background: #3acf6b;
    color: #0f1117;
}

.step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(240,166,202,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.step-item.active .step-num {
    background: #f0a6ca;
    color: #0f1117;
}

.booking-promos {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.booking-promo-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: linear-gradient(125deg, #1f2538, #131826);
    border-radius: 20px;
    border-left: 3px solid #f0a6ca;
    font-size: 0.78rem;
}

.booking-promo-chip strong {
    color: #f0a6ca;
    margin-left: 4px;
}

.booking-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 280px;
    gap: 24px;
    align-items: start;
}

.info-panel {
    background: #1a1f2e;
    border-radius: 32px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.05);
}

.master-selector { margin-bottom: 24px; }

.master-selector label,
.service-selector label {
    font-weight: 600;
    display: block;
    margin-bottom: 12px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: #f0a6ca;
}

.master-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 420px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.master-card-booking {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: #0f1117;
    border: 2px solid #2a2f3e;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.25s;
    position: relative;
    align-items: flex-start;
}

.master-card-booking:hover {
    border-color: rgba(240,166,202,0.4);
    transform: translateX(4px);
}

.master-card-booking.active {
    border-color: #f0a6ca;
    background: rgba(240,166,202,0.08);
    box-shadow: 0 0 0 1px rgba(240,166,202,0.3);
}

.master-card-booking .mc-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0a6ca;
    flex-shrink: 0;
}

.master-card-booking .mc-body { flex: 1; min-width: 0; }

.master-card-booking .mc-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.master-card-booking .mc-spec {
    color: #f0a6ca;
    font-size: 0.78rem;
    margin-bottom: 6px;
}

.master-card-booking .mc-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.68rem;
    opacity: 0.75;
}

.master-card-booking .mc-rating {
    color: #ffd966;
    font-size: 0.75rem;
}

.master-card-booking .mc-bio {
    font-size: 0.72rem;
    opacity: 0.65;
    margin-top: 6px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.master-card-booking .mc-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.6rem;
    background: #3acf6b;
    color: #0f1117;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
}

.master-card-booking .mc-check {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: #f0a6ca;
    font-size: 1.1rem;
    opacity: 0;
    transition: 0.2s;
}

.master-card-booking.active .mc-check { opacity: 1; }

.master-preview {
    background: linear-gradient(135deg, rgba(240,166,202,0.08), rgba(240,166,202,0.02));
    border: 1px solid rgba(240,166,202,0.2);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 20px;
    font-size: 0.8rem;
}

.master-preview .mp-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.master-preview .mp-row img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #f0a6ca;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 320px;
    overflow-y: auto;
}

.service-item {
    background: #0f1117;
    border-radius: 18px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border: 2px solid #2a2f3e;
    transition: 0.2s;
    gap: 12px;
}

.service-item:hover { border-color: rgba(240,166,202,0.35); }

.service-item.selected {
    border-color: #f0a6ca;
    background: rgba(240,166,202,0.08);
}

.service-info h4 { font-weight: 500; font-size: 0.9rem; }
.service-info small { opacity: 0.65; font-size: 0.75rem; }
.service-info .svc-desc {
    font-size: 0.72rem;
    opacity: 0.55;
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-price {
    color: #f0a6ca;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
}

.service-item .svc-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(240,166,202,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f0a6ca;
    flex-shrink: 0;
}

.calendar-panel {
    background: #1a1f2e;
    border-radius: 32px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.05);
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.month-name { font-size: 1.2rem; font-weight: 600; }

.calendar-nav > button {
    background: #0f1117;
    border: 1px solid #2a2f3e;
    color: white;
    padding: 8px 14px;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.2s;
}

.calendar-nav > button:hover { border-color: #f0a6ca; color: #f0a6ca; }

.quick-dates {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.quick-date-btn {
    padding: 6px 14px;
    border-radius: 20px;
    background: #0f1117;
    border: 1px solid #2a2f3e;
    color: #edf2f8;
    font-size: 0.75rem;
    cursor: pointer;
    transition: 0.2s;
}

.quick-date-btn:hover,
.quick-date-btn.active {
    border-color: #f0a6ca;
    background: rgba(240,166,202,0.1);
    color: #f0a6ca;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #9aa3b5;
}

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

.cal-day {
    aspect-ratio: 1/1;
    background: #0f1117;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    font-weight: 500;
    font-size: 0.85rem;
    border: 1px solid #2a2f3e;
}

.cal-day.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #1a1f2e;
}

.cal-day.weekend { background: #2a1f2a; border-color: #f0a6ca30; }

.cal-day.selected {
    background: #f0a6ca;
    color: #0f1117;
    border-color: #f0a6ca;
    font-weight: 700;
}

.cal-day.has-slots:not(.disabled):not(.selected) {
    border-left: 3px solid #3acf6b;
}

.cal-day.today:not(.selected) {
    box-shadow: inset 0 0 0 1px #f0a6ca;
}

.time-slots { margin-top: 24px; }
.time-slots h3 { font-size: 0.95rem; margin-bottom: 10px; }

.slots-legend {
    display: flex;
    gap: 16px;
    font-size: 0.72rem;
    opacity: 0.7;
    margin-bottom: 12px;
}

.slots-legend .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
}

.slots-legend .dot.available { background: #3acf6b; }
.slots-legend .dot.booked { background: #ff6b6b; }

.slots-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.time-slot {
    background: #0f1117;
    border: 1px solid #2a2f3e;
    border-radius: 40px;
    padding: 8px 16px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: 0.2s;
}

.time-slot.available:hover,
.time-slot.selected-slot {
    background: #f0a6ca;
    color: #0f1117;
    border-color: #f0a6ca;
    transform: scale(1.05);
}

.time-slot.booked {
    background: #2a1f2a;
    border-color: #ff6b6b40;
    color: #ffaaaa;
    cursor: not-allowed;
    text-decoration: line-through;
    opacity: 0.5;
}

.time-slot.past {
    background: #2a2f3e;
    opacity: 0.35;
    cursor: not-allowed;
}

.client-form {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.client-form h3 {
    font-size: 0.95rem;
    margin-bottom: 14px;
    color: #f0a6ca;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 12px 16px;
    background: #0f1117;
    border: 1px solid #2a2f3e;
    border-radius: 16px;
    color: white;
    font-size: 0.88rem;
    transition: 0.2s;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #f0a6ca;
    box-shadow: 0 0 0 2px rgba(240,166,202,0.15);
}

.form-field-full { grid-column: 1 / -1; }

.form-field textarea {
    min-height: 72px;
    resize: vertical;
}

.book-btn {
    width: 100%;
    margin-top: 20px;
    background: linear-gradient(95deg, #f0a6ca, #d47e9e);
    border: none;
    padding: 14px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1rem;
    color: #0f1117;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.book-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(240,166,202,0.35);
}

.book-btn:disabled {
    opacity: 0.45;
    cursor: default;
}

.booking-summary {
    background: #1a1f2e;
    border-radius: 28px;
    padding: 22px;
    border: 1px solid rgba(240,166,202,0.15);
    position: sticky;
    top: 90px;
}

.booking-summary h3 {
    font-size: 0.95rem;
    margin-bottom: 16px;
    color: #f0a6ca;
}

.summary-rows { margin-bottom: 16px; }

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.82rem;
}

.summary-row span { opacity: 0.65; }
.summary-row strong { text-align: right; font-weight: 500; }

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0 8px;
    font-size: 1.1rem;
}

.summary-total strong {
    color: #f0a6ca;
    font-size: 1.3rem;
}

.summary-hint {
    font-size: 0.7rem;
    opacity: 0.55;
    margin-top: 8px;
}

.info-note {
    font-size: 0.72rem;
    margin-top: 16px;
    color: #9aa3b5;
    line-height: 1.5;
}

.loading {
    text-align: center;
    padding: 24px;
    color: #9aa3b5;
    font-size: 0.85rem;
}

.booking-page-footer {
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.5;
    margin-top: 32px;
    padding: 0 24px;
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1e2a3a;
    padding: 14px 28px;
    border-radius: 60px;
    z-index: 1000;
    opacity: 0;
    transition: 0.3s;
    border: 1px solid rgba(240,166,202,0.3);
    display: flex;
    gap: 10px;
    align-items: center;
    max-width: 90vw;
}

.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.error { border-color: #ff6b6b; }

.success-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.success-modal.open { display: flex; }

.success-modal-content {
    background: #1a1f2e;
    border-radius: 28px;
    padding: 36px;
    text-align: center;
    max-width: 420px;
    border: 1px solid rgba(240,166,202,0.25);
    animation: modalIn 0.35s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.success-icon {
    font-size: 3.5rem;
    color: #3acf6b;
    margin-bottom: 16px;
}

.success-modal-content h2 { margin-bottom: 10px; }
.success-modal-content p { opacity: 0.75; margin-bottom: 24px; font-size: 0.9rem; }

.success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.success-actions .btn-primary,
.success-actions .btn-outline {
    padding: 10px 20px;
    font-size: 0.85rem;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
}

@media (max-width: 1100px) {
    .booking-grid { grid-template-columns: 1fr 1fr; }
    .booking-summary { grid-column: 1 / -1; position: static; }
}

@media (max-width: 850px) {
    .booking-page { padding: 0; }
    .booking-grid { grid-template-columns: 1fr; gap: 16px; }
    .booking-hero {
        flex-direction: column;
        padding: 18px 16px;
        margin: 16px 0;
        border-radius: 20px;
    }
    .booking-hero h1 { font-size: 1.4rem; }
    .booking-hero p { font-size: 0.85rem; }
    .booking-hero-tags span { font-size: 0.68rem; padding: 4px 8px; }
    .booking-steps { gap: 6px; }
    .step-item { min-width: calc(50% - 3px); flex: unset; padding: 10px 8px; font-size: 0.72rem; }
    .step-num { width: 22px; height: 22px; font-size: 0.65rem; }
    .info-panel, .calendar-panel, .booking-summary { border-radius: 20px; padding: 16px; }
    .master-cards { max-height: 280px; }
    .master-card-booking { padding: 12px; }
    .master-card-booking .mc-avatar { width: 52px; height: 52px; }
    .form-row { grid-template-columns: 1fr; }
    .calendar-days { gap: 3px; }
    .cal-day { font-size: 0.72rem; border-radius: 8px; min-height: 36px; aspect-ratio: unset; }
    .weekdays { font-size: 0.65rem; }
    .time-slot { padding: 7px 12px; font-size: 0.78rem; }
    .booking-promos { gap: 6px; }
    .booking-promo-chip { font-size: 0.7rem; padding: 6px 10px; }
}

@media (max-width: 640px) {
    .booking-hero-contacts { width: 100%; flex-direction: column; }
    .contact-chip { width: 100%; justify-content: center; }
    .booking-summary { order: -1; }
    .slots-grid { gap: 6px; }
    .book-btn { padding: 12px; font-size: 0.9rem; }
    .success-modal-content { padding: 24px 20px; }
}
