/* Booking Modal Core */
.booking-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.booking-modal.active {
    display: flex;
}

.booking-modal-container {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.booking-modal-header {
    background: #0F172A;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.booking-modal-title {
    font-size: 20px;
    font-weight: 600;
}

.booking-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-modal-body {
    padding: 20px;
}

/* Attorney Header Section */
.booking-attorney-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E2E8F0;
    margin-bottom: 20px;
}

.booking-attorney-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #0F172A;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    flex-shrink: 0;
    overflow: hidden;
}

.booking-attorney-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.booking-attorney-info {
    flex: 1;
}

.booking-attorney-name {
    font-size: 18px;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 4px;
}

.booking-attorney-meta {
    font-size: 14px;
    color: #64748B;
}

.booking-attorney-rate {
    text-align: right;
}

.booking-rate-amount {
    font-size: 24px;
    font-weight: 700;
    color: #0F172A;
}

.booking-rate-label {
    font-size: 11px;
    color: #94A3B8;
    text-transform: uppercase;
}

/* Sections */
.booking-section {
    margin-bottom: 24px;
}

.booking-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* Date Selection */
.booking-date-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.booking-date-card {
    flex-shrink: 0;
    width: 72px;
    padding: 12px 8px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    background: white;
    transition: all 0.2s;
}

.booking-date-card:hover {
    border-color: #64748B;
}

.booking-date-card.selected {
    background: #0F172A;
    color: white;
    border-color: #0F172A;
}

.booking-date-weekday {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.booking-date-day {
    font-size: 18px;
    font-weight: 600;
}

.booking-date-month {
    font-size: 11px;
}

.booking-more-dates-btn {
    width: 100%;
    padding: 12px;
    background: #F8FAFC;
    border: 2px dashed #CBD5E0;
    border-radius: 8px;
    color: #64748B;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

/* Time Slots */
.booking-time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
}

.booking-time-slot {
    padding: 10px;
    border: 2px solid #E2E8F0;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    background: white;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.booking-time-slot:hover {
    border-color: #64748B;
}

.booking-time-slot.selected {
    background: #0F172A;
    color: white;
    border-color: #0F172A;
}

/* Continue Button */
.booking-continue-btn {
    width: 100%;
    padding: 14px;
    background: #0F172A;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* Loading States */
.booking-loading {
    text-align: center;
    padding: 40px;
}

.booking-spinner,
.booking-spinner-small {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top-color: #0F172A;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.booking-spinner-small {
    width: 24px;
    height: 24px;
    border-width: 3px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Progress Bar */
.booking-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    position: relative;
}

.booking-progress-step {
    flex: 1;
    text-align: center;
    padding: 8px;
    font-size: 13px;
    color: #94A3B8;
    position: relative;
}

.booking-progress-step.completed {
    color: #10B981;
}

.booking-progress-step.active {
    color: #0F172A;
    font-weight: 600;
}

/* Booking Info Box */
.booking-info {
    background: #F8FAFC;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.booking-info-title {
    font-size: 14px;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 12px;
}

.booking-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.booking-detail {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.detail-label {
    color: #64748B;
}

.detail-value {
    color: #0F172A;
    font-weight: 500;
}

/* Contact Form */
.booking-form-group {
    margin-bottom: 16px;
}

.booking-form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #0F172A;
    margin-bottom: 6px;
}

.booking-form-label .required {
    color: #EF4444;
}

.booking-form-input,
.booking-form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
}

.booking-form-input:focus,
.booking-form-textarea:focus {
    outline: none;
    border-color: #0F172A;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.05);
}

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

/* How It Works Box */
.booking-how-it-works {
    background: #EFF6FF;
    border-left: 3px solid #3B82F6;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 20px;
}

.booking-how-title {
    font-size: 13px;
    font-weight: 600;
    color: #1E40AF;
    margin-bottom: 8px;
}

.booking-how-list {
    font-size: 13px;
    color: #3730A3;
    line-height: 1.6;
    padding-left: 20px;
    margin: 0;
}

/* Form Actions */
.booking-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-secondary {
    flex: 1;
    padding: 12px 20px;
    background: white;
    color: #64748B;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #F8FAFC;
    border-color: #CBD5E0;
}

.btn-primary {
    flex: 2;
    padding: 12px 20px;
    background: #0F172A;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #1E293B;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Success Screen */
.booking-success {
    text-align: center;
    padding: 40px 20px;
}

.booking-success-icon {
    width: 64px;
    height: 64px;
    background: #10B981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
}

.booking-success-title {
    font-size: 24px;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 16px;
}

.booking-success-text {
    color: #64748B;
    font-size: 15px;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

/* Calendar Modal */
.booking-calendar-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10001;
    padding: 20px;
    align-items: center;
    justify-content: center;
}

.booking-calendar-modal.active {
    display: flex;
}

.booking-calendar-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    max-width: 400px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

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

.booking-calendar-month {
    font-size: 18px;
    font-weight: 600;
}

.calendar-nav-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #E2E8F0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

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

.calendar-day-header {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #64748B;
    padding: 8px 0;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.calendar-day.selected {
    background: #0F172A;
    color: white;
}

.calendar-day.disabled {
    color: #CBD5E0;
    cursor: not-allowed;
}

.calendar-day.today {
    border: 2px solid #3B82F6;
}

.booking-calendar-actions {
    margin-top: 20px;
    text-align: center;
}

.booking-date-card.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #F8FAFC;
    border-color: #E2E8F0 !important;
}

.booking-date-card.disabled:hover {
    border-color: #E2E8F0 !important;
    background: #F8FAFC;
}
