/* ArihantAI Booking Module Styles
   Calendly-like booking experience
*/

/* ============================================
   Booking Page Layout
   ============================================ */

.booking-page {
    min-height: 80vh;
    background: #f8fafc;
}

/* ============================================
   Booking Type Cards
   ============================================ */

.booking-type-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.booking-type-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--brand-primary, #0A2463);
}

.booking-type-color {
    width: 6px;
    height: 60px;
    border-radius: 100px;
    flex-shrink: 0;
}

.booking-type-content {
    flex: 1;
}

.booking-type-content h4 {
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.booking-type-arrow {
    color: #ccc;
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.booking-type-card:hover .booking-type-arrow {
    transform: translateX(5px);
    color: var(--brand-primary, #0A2463);
}

/* ============================================
   Calendar Container
   ============================================ */

.booking-calendar-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.booking-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
}

.booking-type-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.booking-type-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.booking-body {
    padding: 2rem;
}

/* ============================================
   Calendar Widget
   ============================================ */

#booking-calendar {
    font-family: inherit;
}

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

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-nav-btn {
    background: #f5f5f5;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-nav-btn:hover {
    background: var(--brand-primary, #0A2463);
    color: white;
}

.calendar-month {
    font-weight: 600;
    font-size: 1.1rem;
}

.calendar-weekday {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #888;
    padding: 8px;
    text-transform: uppercase;
}

.calendar-day {
    text-align: center;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.calendar-day:hover:not(.disabled):not(.selected) {
    background: #f0f4ff;
}

.calendar-day.selected {
    background: var(--brand-primary, #0A2463);
    color: white;
}

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

.calendar-day.today {
    border: 2px solid var(--brand-primary, #0A2463);
}

.calendar-day.has-slots::after {
    content: '';
    display: block;
    width: 4px;
    height: 4px;
    background: #22c55e;
    border-radius: 50%;
    margin: 2px auto 0;
}

/* ============================================
   Time Slots
   ============================================ */

.time-slots-container {
    max-height: 400px;
    overflow-y: auto;
}

.time-slot {
    display: block;
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 8px;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    background: white;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.time-slot:hover {
    border-color: var(--brand-primary, #0A2463);
    background: #f0f4ff;
}

.time-slot.selected {
    background: var(--brand-primary, #0A2463);
    color: white;
    border-color: var(--brand-primary, #0A2463);
}

.time-slot-confirm {
    display: none;
    margin-left: auto;
}

.time-slot.selected .time-slot-confirm {
    display: inline;
}

/* ============================================
   Booking Form
   ============================================ */

.booking-form-container {
    padding: 2rem;
    border-top: 1px solid #eee;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.booking-form-container .form-control {
    padding: 12px 16px;
    border-radius: 10px;
    border: 2px solid #e5e5e5;
    transition: border-color 0.2s ease;
}

.booking-form-container .form-control:focus {
    border-color: var(--brand-primary, #0A2463);
    box-shadow: none;
}

.booking-form-container .btn-primary {
    background: var(--brand-primary, #0A2463);
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.booking-form-container .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 36, 99, 0.3);
}

/* ============================================
   Confirmation Page
   ============================================ */

.booking-confirmed-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.confirmed-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.confirmed-icon i {
    font-size: 2.5rem;
    color: white;
}

.booking-details {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e5e5e5;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: #888;
    font-weight: 500;
}

.detail-value {
    font-weight: 600;
    color: #1a1a1a;
}

/* ============================================
   Cancel Page
   ============================================ */

.booking-cancel-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* ============================================
   Widget Styles
   ============================================ */

.booking-widget-embed {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .booking-body .row {
        flex-direction: column;
    }
    
    .booking-body .col-md-6 {
        border-right: none !important;
        border-bottom: 1px solid #eee;
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .booking-body .col-md-6:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
    
    .booking-confirmed-card,
    .booking-cancel-card {
        padding: 2rem;
    }
}
