/* ============================================
   OBSIDIAN STUDIOS BOOKING WIDGET STYLES
   Theme: PREMIUM MONOCHROME (BLACK & WHITE)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --b-bg: #000000;
    --b-card: #080808;
    --b-border: rgba(255, 255, 255, 0.08);
    --b-accent: #ffffff;
    --b-text: #ffffff;
    --b-text-dim: #888888;
    --b-glass: rgba(10, 10, 10, 0.85);
    --b-font: 'Outfit', sans-serif;
}

/* Modal Overlay */
.booking-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(25px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.booking-modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* Modal Container */
.booking-modal {
    width: 100%;
    max-width: 500px;
    background: var(--b-bg);
    border: 1px solid var(--b-border);
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 1);
    transform: scale(0.95) translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    margin: 1.5rem;
    font-family: var(--b-font);
}

.booking-modal-overlay.active .booking-modal {
    transform: scale(1) translateY(0);
}

/* Header */
.booking-header {
    padding: 2rem 2.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.booking-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--b-text);
}

.booking-close {
    background: var(--b-card);
    border: 1px solid var(--b-border);
    color: var(--b-text-dim);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.booking-close:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: rotate(90deg);
}

/* Content Area */
.booking-content {
    padding: 0 2.5rem 2.5rem;
    max-height: 80vh;
    overflow-y: auto;
}

/* Custom Scrollbar for Content */
.booking-content::-webkit-scrollbar {
    width: 4px;
}

.booking-content::-webkit-scrollbar-track {
    background: transparent;
}

.booking-content::-webkit-scrollbar-thumb {
    background: var(--b-border);
    border-radius: 10px;
}

/* Progress Steps */
.booking-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding: 1rem 0;
}

.booking-step-indicator {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-circle {
    width: 38px;
    height: 38px;
    background: var(--b-card);
    border: 1px solid var(--b-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--b-text-dim);
    transition: all 0.4s;
}

.booking-step-indicator.active .step-circle {
    background: #fff;
    color: #000;
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.booking-step-indicator.completed .step-circle {
    background: #222;
    color: #888;
    border-color: #333;
}

.step-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--b-text-dim);
}

.booking-step-indicator.active .step-label {
    color: #fff;
}

/* Calendar Redesign */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.calendar-title {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.2px;
}

.calendar-nav {
    display: flex;
    background: var(--b-card);
    border: 1px solid var(--b-border);
    border-radius: 14px;
    padding: 4px;
}

.nav-btn {
    background: transparent;
    border: none;
    color: #fff;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.nav-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
}

.nav-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 12px;
}

.weekday {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #444;
    text-align: center;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: default;
    border: 1px solid transparent;
    background: transparent;
    color: #333;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.calendar-day.available {
    background: var(--b-card);
    border-color: var(--b-border);
    color: #fff;
    cursor: pointer;
}

.calendar-day.available:hover {
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.calendar-day.selected {
    background: #fff !important;
    color: #000 !important;
    border-color: #fff !important;
    font-weight: 800;
}

/* Time Slot Redesign */
.slots-title {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.time-slot {
    padding: 1.2rem;
    background: var(--b-card);
    border: 1px solid var(--b-border);
    border-radius: 18px;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.4s;
    text-align: center;
}

.time-slot:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.02);
}

.time-slot.selected {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* Form Styling */
.booking-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #444;
    margin-bottom: 12px;
}

.form-input {
    width: 100%;
    background: var(--b-card);
    border: 1px solid var(--b-border);
    padding: 1.2rem 1.5rem;
    border-radius: 18px;
    color: #fff;
    font-size: 1rem;
    font-family: var(--b-font);
    outline: none;
    transition: all 0.3s;
}

.form-input:focus {
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

/* Meeting Options */
.meeting-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.meeting-option {
    background: var(--b-card);
    padding: 1.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--b-border);
    cursor: pointer;
    transition: 0.4s;
}

.meeting-option h4 {
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.meeting-option p {
    font-size: 0.7rem;
    color: var(--b-text-dim);
}

.meeting-option.selected {
    border-color: #fff;
    background: #fff;
}

.meeting-option.selected h4,
.meeting-option.selected p {
    color: #000;
}

/* Actions Wrapper */
.booking-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-secondary {
    background: var(--b-card);
    border: 1px solid var(--b-border);
    color: #fff;
    padding: 1.2rem;
    border-radius: 18px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s;
    flex: 1;
}

.btn-secondary:hover {
    border-color: #444;
}

.btn-primary-booking {
    background: #fff;
    color: #000;
    border: none;
    padding: 1.2rem;
    border-radius: 18px;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s;
    flex: 2;
}

.btn-primary-booking:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn-primary-booking:disabled {
    background: #111;
    color: #222;
    cursor: not-allowed;
}

/* Digital Ticket */
.digital-ticket {
    background: #fff;
    color: #000;
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
}

.ticket-brand {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 4px;
    margin-bottom: 2rem;
    opacity: 0.3;
}

.ticket-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.ticket-confirmed {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #000;
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 1px;
    margin-bottom: 3rem;
}

.ticket-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-align: left;
    margin-bottom: 3rem;
}

.ticket-label {
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 4px;
}

.ticket-value {
    font-size: 1rem;
    font-weight: 700;
}

.ticket-value.highlight {
    font-size: 1.2rem;
    font-weight: 800;
}

.ticket-id {
    border-top: 1px dashed #ddd;
    padding-top: 2rem;
}

.ticket-id-label {
    font-size: 0.6rem;
    font-weight: 800;
    color: #aaa;
}

.ticket-id-value {
    font-size: 1rem;
    font-weight: 800;
}

/* Loading/Success Messaging */
.sold-out-message {
    text-align: center;
    padding: 4rem 1rem;
    border: 1px solid var(--b-border);
    border-radius: 24px;
}

.sold-out-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.sold-out-title {
    font-size: 1.4rem;
    font-weight: 800;
}

.sold-out-text {
    color: var(--b-text-dim);
    line-height: 1.6;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.booking-content>* {
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Spinner */
.booking-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}