:root {
    --sb-primary-color: #008080;
    --sb-primary-hover: #006666;
    --sb-bg-color: #ffffff;
    --sb-text-color: #333333;
    --sb-complete-color: #28a745;
    --sb-border-radius: 12px;
}

.smart-booking-widget {
    max-width: 420px;
    margin: 30px auto;
    background: var(--sb-bg-color);
    border-radius: var(--sb-border-radius);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    padding: 20px;
    font-family: inherit;
    color: var(--sb-text-color);
}

.sb-title-centered {
    text-align: center !important;
    margin-bottom: 10px !important;
}

/* Horizontal Scroller Layout Styles for Mobile [appointment_booking_mobile] */
.smart-booking-widget.sb-scroller-mobile {
    max-width: 380px;
    padding: 24px 16px;
    margin: 15px auto;
    border-radius: 25px;
}

.smart-booking-widget.sb-scroller-mobile h3 {
    margin-bottom: 10px !important;
}

.sb-days-scroller-wrapper {
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    margin: 0 -16px 20px -16px;
    padding: 6px 16px;
}

.sb-days-scroller-wrapper::-webkit-scrollbar {
    display: none;
}

.sb-days-scroller {
    display: flex;
    gap: 10px;
}

.sb-day-card {
    min-width: 64px;
    padding: 10px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.sb-day-card .sb-card-dow {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 2px;
}

.sb-day-card .sb-card-day {
    font-size: 18px;
    font-weight: bold;
    color: #0f172a;
}

.sb-day-card .sb-card-month {
    font-size: 10px;
    color: #94a3b8;
    margin-top: 2px;
}

.sb-day-card:hover:not(.sb-disabled) {
    border-color: var(--sb-primary-color);
    background: rgba(0, 128, 128, 0.05);
}

.sb-day-card.sb-selected {
    background: var(--sb-primary-color) !important;
    border-color: var(--sb-primary-color) !important;
}

.sb-day-card.sb-selected .sb-card-dow,
.sb-day-card.sb-selected .sb-card-day,
.sb-day-card.sb-selected .sb-card-month {
    color: #ffffff !important;
}

.sb-day-card.sb-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f1f5f9;
}

.sb-selected-day-label {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    color: var(--sb-primary-color);
    margin-bottom: 12px;
}

.sb-mobile-slots-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
    gap: 8px;
}

.sb-mobile-slot-btn {
    padding: 10px 6px;
    border: 1px solid var(--sb-primary-color);
    background: #ffffff;
    color: var(--sb-primary-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.sb-mobile-slot-btn:hover {
    background: var(--sb-primary-color);
    color: #ffffff;
}

.sb-mobile-selection-summary {
    background: rgba(0, 128, 128, 0.08);
    border-left: 4px solid var(--sb-primary-color);
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--sb-text-color);
    margin-bottom: 15px;
}

.sb-scroller-header {
    position: relative;
    margin-bottom: 20px;
}

.sb-scroller-header h3 {
    margin: 0;
    padding-left: 35px;
    padding-right: 35px;
}

.sb-back-icon-btn {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #f1f3f5;
    color: var(--sb-text-color);
    border: 1px solid #dee2e6;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 5;
    padding: 0;
    line-height: 1;
}

.sb-back-icon-btn:hover {
    background: #e2e6ea;
    color: #000000;
}

/* Steps Indicator (Full Widget) */
.sb-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.sb-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
    color: #888888;
    z-index: 1;
}

.sb-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 6px;
    transition: all 0.3s ease;
}

.sb-step.sb-active .sb-step-num {
    background: var(--sb-primary-color);
    color: #ffffff;
}

.sb-step.sb-active span {
    color: var(--sb-primary-color);
    font-weight: 600;
}

.sb-step.sb-complete .sb-step-num {
    background: var(--sb-complete-color, #28a745) !important;
    color: #ffffff !important;
}

.sb-step-divider {
    flex: 1;
    height: 2px;
    background: #e9ecef;
    margin: 0 10px;
    margin-bottom: 22px;
}

.sb-view h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--sb-text-color);
    font-size: 20px;
}

/* Calendar Styles */
.sb-calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.sb-calendar-nav button {
    background: #f1f3f5;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

.sb-calendar-nav button:hover {
    background: #e2e6ea;
}

.sb-month-label {
    font-weight: bold;
    font-size: 16px;
}

.sb-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 10px;
}

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

.sb-day-btn {
    aspect-ratio: 1;
    border: 1px solid #dee2e6;
    background: var(--sb-bg-color);
    color: var(--sb-text-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.sb-day-btn:hover:not(:disabled) {
    border-color: var(--sb-primary-color);
    background: rgba(0, 128, 128, 0.05);
    color: var(--sb-primary-color);
}

.sb-day-btn:disabled {
    background: #f8f9fa;
    color: #ced4da;
    border-color: #f1f3f5;
    cursor: not-allowed;
}

.sb-day-btn.sb-selected-day {
    background: var(--sb-primary-color) !important;
    color: #ffffff !important;
    border-color: var(--sb-primary-color) !important;
}

.sb-slots-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.sb-slots-container p {
    grid-column: 1 / -1;
    width: 100%;
    margin: 10px 0;
    line-height: 1.5;
}

.sb-slot-btn {
    padding: 12px;
    border: 1px solid var(--sb-primary-color);
    background: var(--sb-bg-color);
    color: var(--sb-primary-color);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.sb-slot-btn:hover {
    background: var(--sb-primary-color);
    color: #ffffff;
}

/* Form Styles */
.sb-form-group {
    margin-bottom: 16px;
    text-align: left;
}

.sb-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

.sb-form-group input,
.sb-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 14px;
    background: var(--sb-bg-color);
    color: var(--sb-text-color);
}

.sb-form-group input:focus,
.sb-form-group textarea:focus {
    outline: none;
    border-color: var(--sb-primary-color);
    box-shadow: 0 0 0 3px rgba(0,128,128,0.1);
}

.sb-submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--sb-primary-color);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.sb-submit-btn:hover {
    background: var(--sb-primary-hover);
}

.sb-back-btn {
    background: none;
    border: none;
    color: var(--sb-primary-color);
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 15px;
    padding: 0;
}

.sb-success-box {
    text-align: center;
    padding: 30px 10px;
}

.sb-success-icon {
    width: 60px;
    height: 60px;
    background: #28a745;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 20px;
}
