/* -----------------------------
   Modal Backdrop & Wrapper
   ----------------------------- */
:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .bookaro-booking-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    animation: bookaro-fade-in 0.2s ease-out forwards;
}

:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .bookaro-profile-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 70;
    padding: 12vh 0 6vh;
}

:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .bookaro-profile-modal__card {
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    width: min(620px, 92vw);
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
}
:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .bookaro-booking-wrapper {
    width: min(96vw, 86rem);
    max-width: 86rem;
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    position: relative;
    background: rgba(255,255,255,1);
    border-radius: 1.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 2rem;
    box-sizing: border-box;
    transform: translateY(20px);
    opacity: 0;
    animation: bookaro-slide-up 0.3s 0.1s ease-out forwards;
    transition: width 420ms cubic-bezier(.2,.8,.2,1), max-width 420ms cubic-bezier(.2,.8,.2,1), box-shadow 420ms cubic-bezier(.2,.8,.2,1), transform 420ms cubic-bezier(.2,.8,.2,1);
}

:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .bookaro-modal-shell {
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .bookaro-modal-shell--sm {
    width: min(92vw, 24rem);
    max-width: 24rem;
}

:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .bookaro-modal-shell--md {
    width: min(92vw, 28rem);
    max-width: 28rem;
}

:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .bookaro-modal-shell--lg {
    width: min(92vw, 42rem);
    max-width: 42rem;
}

:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .bookaro-modal-shell--xl {
    width: min(96vw, 72rem);
    max-width: 72rem;
}

:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .bookaro-booking-wrapper.is-compact {
    width: min(96vw, 560px);
    max-width: 560px;
}

:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .bookaro-booking-wrapper.is-expanded {
    width: min(96vw, 86rem);
    max-width: 86rem;
}

:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .bookaro-booking-btn.--secondary,
.bookaro-booking-btn.bookaro-scope.--secondary {
    background: rgba(0,0,0,0.05);
    color: #333;
    box-shadow: none;
    margin-right: 0.5rem;
}
:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .bookaro-booking-btn.--secondary:hover,
.bookaro-booking-btn.bookaro-scope.--secondary:hover {
    background: rgba(0,0,0,0.1);
}

:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .step-title {
    margin: 0;
    flex: 1;
}

/* Loader Overlay */
:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .modal-loader {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    border-radius: 1.5rem; /* match wrapper radius */
}

/* Spinner */
:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .spinner {
    width: 3rem;
    height: 3rem;
    border: 0.4rem solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: bookaro-spin 1s linear infinite;
}

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

/* -----------------------------
   Headings & Close Button
   ----------------------------- */
:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .bookaro-booking-wrapper h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: #111;
    letter-spacing: 0.5px;
}
:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .modal-close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255,255,255,0.6);
    border: none;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    font-size: 1.25rem;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .modal-close-button:hover {
    background: rgba(255,255,255,0.8);
}

/* Redirect overlay when sending to checkout */
:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .bookaro-redirecting-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
}

:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .bookaro-redirecting-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px 22px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
    text-align: center;
    max-width: 360px;
}

:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .bookaro-redirecting-title {
    font-weight: 700;
    font-size: 1rem;
    color: #111827;
}

:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .bookaro-redirecting-subtitle {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #6b7280;
}

/* -----------------------------
   Slot Grid & Pills
   ----------------------------- */
:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .slot-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}
:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .slot-pill {
    flex: 1 0 30%;
    padding: 0.75rem;
    background: rgba(0,0,0,0.05);
    border: none;
    border-radius: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .slot-pill.selected {
    color: #fff;
}

:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .slot-pill .slot-count {
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

/* -----------------------------
   Buttons, Errors & Animations
   ----------------------------- */
:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .bookaro-booking-btn,
.bookaro-booking-btn:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) {
    width: 100%;
    display: inline-block;
    padding: 0.75rem 1.5rem;
    margin-top: 1rem;
    color: #fff;
    border: none;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* -----------------------------
   Modern Booking Layout
   ----------------------------- */
:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .bookaro-booking-grid {
    display: grid;
    gap: 24px;
}

:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .bookaro-booking-grid.is-compact {
    grid-template-columns: 1fr;
}

:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .bookaro-booking-grid.is-compact .bookaro-booking-col--times {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
}

:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .bookaro-booking-grid.is-expanded .bookaro-booking-col--times {
    opacity: 1;
    transform: translateY(0);
    max-height: 2000px;
}

@media (min-width: 900px) {
    :is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .bookaro-booking-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        align-items: start;
    }
}

:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .bookaro-booking-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .bookaro-booking-col--times {
    transition: opacity 320ms cubic-bezier(.2,.8,.2,1), transform 320ms cubic-bezier(.2,.8,.2,1), max-height 420ms cubic-bezier(.2,.8,.2,1);
}

@media (prefers-reduced-motion: reduce) {
    :is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .bookaro-booking-wrapper,
    :is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .bookaro-booking-col--times {
        transition: none;
    }
}

:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .bookaro-booking-actions {
    margin-top: 4px;
}

:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .bookaro-booking-actions .bookaro-booking-btn {
    width: 100%;
}

:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .bookaro-form-grid {
    display: grid;
    gap: 16px;
}

@media (min-width: 900px) {
    :is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .bookaro-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    :is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .bookaro-form-grid .bookaro-field-span-full {
        grid-column: 1 / -1;
    }
    :is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .bookaro-form-grid .bookaro-field-span-half {
        grid-column: span 1;
    }
}

:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .bookaro-booking-btn.bookaro-auto-insert,
.bookaro-booking-btn.bookaro-scope.bookaro-auto-insert {
    margin: 1.25rem 0;
}
:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .bookaro-booking-btn:hover,
.bookaro-booking-btn.bookaro-scope:hover {
    transform: translateY(-2px);
}
:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .error {
    color: #d33;
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

@keyframes bookaro-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes bookaro-slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .form-group {
    margin-bottom: 1rem;
}
:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
}
:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .form-group input,
:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .form-group select,
:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    box-sizing: border-box;
}
:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .form-group textarea {
    min-height: 96px;
    resize: vertical;
}
:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .form-group select[multiple] {
    min-height: 120px;
}

:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .bookaro-booking-btn.back-btn,
.bookaro-booking-btn.bookaro-scope.back-btn {
    max-width: 80px !important;
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: right !important;
    margin-left: auto !important;
    margin-right: 20px !important;
}

:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .bookaro-booking-btn.bookaro-view-btn,
:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .bookaro-booking-btn.bookaro-booking-launch,
.bookaro-booking-btn.bookaro-scope.bookaro-view-btn,
.bookaro-booking-btn.bookaro-scope.bookaro-booking-launch {
    font-size: 0.8rem !important;
    border-radius: 0 !important;
}

:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .bookaro-booking-btn.login-button,
.bookaro-booking-btn.bookaro-scope.login-button {
    width: fit-content !important;
}

:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .bookaro-booking-btn.login-button:hover,
.bookaro-booking-btn.bookaro-scope.login-button:hover {
    color: #fff !important;
}

/* -----------------------------
   Lite Limit Notice
   ----------------------------- */
:is(.bookaro-scope,#bookaro-booking-app,#bookaro-provider-dashboard,#bookaro-owner-dashboard) .bookaro-lite-limit-notice,
.bookaro-lite-limit-notice.bookaro-scope {
    margin: 0.75rem 0;
    padding: 0.75rem 1rem;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #664d03;
    border-radius: 0.5rem;
    font-size: 0.9rem;
}

/* -----------------------------
   Services Cards
   ----------------------------- */
.bookaro-services-cards {
    display: grid;
    gap: 16px;
}

.bookaro-services-cards--list {
    display: flex;
    flex-direction: column;
}

.bookaro-services-cards--cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.bookaro-services-cards--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bookaro-services-cards--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bookaro-services-cards--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bookaro-services-cards--cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bookaro-services-cards--cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

@media (max-width: 768px) {
    .bookaro-services-cards--cols-3,
    .bookaro-services-cards--cols-4,
    .bookaro-services-cards--cols-5,
    .bookaro-services-cards--cols-6 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .bookaro-services-cards {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

.bookaro-service-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    background: transparent;
}

.bookaro-service-card-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 6px;
}

.bookaro-service-card-description {
    margin-bottom: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: inherit;
    opacity: 0.8;
}

.bookaro-service-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    opacity: 0.8;
}

.bookaro-service-card-price,
.bookaro-service-card-duration {
    display: inline-block;
}

.bookaro-service-card-action {
    margin-top: 12px;
}
