/* SteamBooking Frontend Styles - Modern Redesign */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

/* Base Container - Clean Simple Design */
.erb-booking-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
}

/* Step Container - Clean Design */
.erb-step {
    background: #ffffff;
    padding: 24px;
    margin-bottom: 16px;
    border-radius: 8px;
    border: 1px solid #f3f4f6;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.erb-step.erb-step-hidden {
    display: none !important;
}

.erb-step.erb-step-active {
    display: block !important;
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.erb-step:not(.erb-step-active) {
    display: none;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Clean Typography */
.erb-step h3 {
    margin: 0 0 24px 0;
    color: #1f2937;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}

/* Compact Calendar Design */
.erb-unified-calendar-container {
    background: #f9fafb;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.erb-calendar {
    background: transparent;
    border: none;
    padding: 0;
    width: 100%;
    margin-bottom: 16px;
    box-sizing: border-box;
    overflow: hidden;
}

.erb-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: white;
}

.erb-calendar-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.erb-calendar-prev,
.erb-calendar-next {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.erb-calendar-prev:hover,
.erb-calendar-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.erb-calendar-prev:active,
.erb-calendar-next:active {
    transform: translateY(0);
}

.erb-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
    width: 100%;
    box-sizing: border-box;
}

.erb-calendar-weekday {
    text-align: center;
    padding: 8px 4px;
    font-weight: 600;
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-sizing: border-box;
    width: 100%;
}

.erb-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    width: 100%;
    box-sizing: border-box;
}

.erb-calendar-day {
    aspect-ratio: 1 / 1;
    width: 100%;
    border-radius: 8px;
    border: 2px solid transparent;
    padding: 4px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 12px;
    position: relative;
    box-sizing: border-box;
    min-height: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.erb-calendar-day:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Calendar States - Beautiful Colors */
.erb-calendar-day.available {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-weight: 600;
    border-color: #059669;
}

.erb-calendar-day.available:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.erb-calendar-day.limited {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-weight: 600;
    border-color: #d97706;
}

.erb-calendar-day.limited:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.erb-calendar-day.full {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-weight: 600;
    cursor: not-allowed;
    border-color: #dc2626;
}

.erb-calendar-day.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.5);
}

.erb-calendar-day.other-month,
.erb-calendar-day.past {
    background: #f8fafc;
    color: #cbd5e1;
    cursor: not-allowed;
    opacity: 0.5;
}

.erb-calendar-day.non-operating {
    background: #ffffff !important;
    color: #64748b;
    cursor: not-allowed;
    opacity: 0.6;
    border: 1px solid #e2e8f0;
}

.erb-calendar-day.non-operating:hover {
    transform: none;
    background: #ffffff !important;
    color: #64748b;
    box-shadow: none;
}

.erb-calendar-day.today::before {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.erb-day-number {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 1px;
}

.erb-availability-count {
    font-size: 9px;
    background: rgba(255, 255, 255, 0.3);
    color: inherit;
    padding: 1px 4px;
    border-radius: 8px;
    font-weight: 500;
    min-width: 12px;
    text-align: center;
}

/* Mobile Responsive Design - Ensure Everything Fits */
@media (max-width: 768px) {
    .erb-booking-container {
        max-width: 100%;
        margin: 0;
        padding: 0;
        border-radius: 0;
        min-height: 100vh;
    }
    
    .erb-step {
        margin: 8px;
        padding: 16px;
        border-radius: 16px;
    }
    
    .erb-step h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .erb-unified-calendar-container {
        padding: 8px;
        border-radius: 8px;
        margin-bottom: 12px;
    }
    
    .erb-calendar-header {
        padding: 8px 12px;
        margin-bottom: 8px;
    }
    
    .erb-calendar-header h3 {
        font-size: 14px;
    }
    
    .erb-calendar-prev,
    .erb-calendar-next {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .erb-calendar-weekday {
        padding: 4px 2px;
        font-size: 9px;
    }
    
    .erb-calendar-days {
        gap: 2px;
    }
    
    .erb-calendar-day {
        border-radius: 6px;
        padding: 2px;
        font-size: 10px;
        min-height: 32px;
        width: 100%;
        max-width: calc((100vw - 56px) / 7);
    }
    
    .erb-day-number {
        font-size: 11px;
        margin-bottom: 0px;
    }
    
    .erb-availability-count {
        font-size: 7px;
        padding: 1px 2px;
        min-width: 8px;
    }
    
    .erb-time-slots {
        grid-template-columns: 1fr;
        gap: 8px;
        padding-top: 12px;
    }
    
    .erb-time-slot {
        padding: 12px 8px;
        font-size: 14px;
    }
    
    .erb-form-group input,
    .erb-form-group textarea,
    .erb-form-group select {
        padding: 12px 14px;
        font-size: 16px;
    }
    
    .erb-button,
    .erb-btn,
    .erb-btn-next,
    .erb-btn-back,
    .erb-btn-pay {
        padding: 14px 20px;
        font-size: 16px;
        margin-top: 16px;
    }
    
    .erb-navigation-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .erb-booking-summary {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .erb-summary-item {
        margin-bottom: 10px;
        padding: 8px 0;
    }
    
    .erb-summary-item.erb-total {
        font-size: 16px;
        padding-top: 12px;
        margin-top: 12px;
    }
}

/* Mobile - Compact but clean */
@media (max-width: 480px) {
    .erb-booking-container {
        padding: 8px;
    }
    
    .erb-unified-calendar-container {
        padding: 6px;
        margin: 0 0 8px 0;
        border-radius: 8px;
        width: 100%;
    }
    
    .erb-calendar {
        padding: 0;
        margin: 0 0 8px 0;
        width: 100%;
    }
    
    .erb-calendar-header {
        margin-bottom: 6px;
        padding: 6px 8px;
    }
    
    .erb-calendar-header h3 {
        font-size: 12px;
    }
    
    .erb-calendar-prev,
    .erb-calendar-next {
        width: 26px;
        height: 26px;
        font-size: 10px;
        border-radius: 6px;
    }
    
    .erb-calendar-weekday {
        padding: 2px 1px;
        font-size: 8px;
    }
    
    .erb-calendar-days {
        gap: 1px;
    }
    
    .erb-calendar-day {
        aspect-ratio: 1 / 1;
        border-radius: 4px;
        padding: 1px;
        font-size: 9px;
        /* Tighter fit for mobile */
        max-width: calc((100vw - 40px) / 7);
        width: 100%;
        min-height: 28px;
    }
    
    .erb-day-number {
        font-size: 10px;
    }
    
    .erb-availability-count {
        font-size: 6px;
        padding: 0px 2px;
        min-width: 6px;
    }
}

/* Extra small screens - minimal but functional */
@media (max-width: 360px) {
    .erb-booking-container {
        padding: 6px;
    }
    
    .erb-unified-calendar-container {
        padding: 4px;
        margin: 0 0 6px 0;
        width: 100%;
    }
    
    .erb-calendar {
        padding: 0;
        margin: 0 0 6px 0;
        width: 100%;
    }
    
    .erb-calendar-header {
        padding: 4px 6px;
        margin-bottom: 4px;
    }
    
    .erb-calendar-header h3 {
        font-size: 11px;
    }
    
    .erb-calendar-prev,
    .erb-calendar-next {
        width: 24px;
        height: 24px;
        font-size: 9px;
    }
    
    .erb-calendar-days {
        gap: 1px;
    }
    
    .erb-calendar-day {
        aspect-ratio: 1 / 1;
        border-radius: 3px;
        padding: 1px;
        /* Absolutely ensure fit on tiny screens */
        max-width: calc((100vw - 24px) / 7);
        width: 100%;
        min-height: 24px;
    }
    
    .erb-day-number {
        font-size: 9px;
    }
    
    .erb-availability-count {
        font-size: 5px;
        padding: 0px 1px;
        min-width: 5px;
    }
}

/* Modern Time Slots Design */
.erb-time-slots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 0;
    padding-top: 16px;
    border-top: 2px solid rgba(102, 126, 234, 0.1);
}

.erb-unified-calendar-container .erb-form-group {
    margin-bottom: 0;
}

.erb-unified-calendar-container .erb-form-group label {
    font-weight: 600;
    color: #334155;
    margin-bottom: 12px;
    font-size: 16px;
    display: block;
    text-align: center;
}

.erb-time-slot {
    padding: 16px 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    color: #475569;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.erb-time-slot::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.6s ease;
}

.erb-time-slot:hover::before {
    left: 100%;
}

.erb-time-slot:hover {
    transform: translateY(-4px);
    border-color: #667eea;
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.2);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.erb-time-slot:active {
    transform: translateY(-2px);
}

.erb-time-slot.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(102, 126, 234, 0.4);
}

.erb-time-slot.unavailable {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.6;
}

.erb-time-slot.unavailable:hover {
    transform: none;
    border-color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background: #f1f5f9;
    color: #94a3b8;
}

/* Booked slots styling - red background */
.erb-time-slot.booked {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #dc2626;
    color: white;
    cursor: not-allowed;
    opacity: 1;
}

.erb-time-slot.booked:hover {
    transform: none;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    color: white;
}

/* Prep time blocked slots styling - orange/amber background */
.erb-time-slot.prep-blocked {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-color: #d97706;
    color: white;
    cursor: not-allowed;
    opacity: 1;
}

.erb-time-slot.prep-blocked:hover {
    transform: none;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-color: #d97706;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    color: white;
}

/* Modern Form Design */
.erb-customer-form {
    display: grid;
    gap: 24px;
}

.erb-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    position: relative;
}

.erb-form-group label {
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    font-size: 16px;
    display: block;
    transition: color 0.3s ease;
}

.erb-form-group input,
.erb-form-group textarea,
.erb-form-group select {
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

.erb-form-group input:focus,
.erb-form-group textarea:focus,
.erb-form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: white;
    transform: translateY(-2px);
}

.erb-form-group input:focus + label,
.erb-form-group textarea:focus + label,
.erb-form-group select:focus + label {
    color: #667eea;
}

/* Modern Button Design */
.erb-button,
.erb-btn,
.erb-btn-next,
.erb-btn-back,
.erb-btn-pay {
    padding: 12px 24px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    text-align: center;
    display: inline-block;
    text-decoration: none;
    width: 100%;
    margin-top: 16px;
    margin-bottom: 0;
    margin-right: 0;
    box-sizing: border-box;
}

.erb-btn:hover,
.erb-btn-next:hover,
.erb-btn-back:hover,
.erb-btn-pay:hover {
    background: #2563eb;
}

.erb-btn-secondary {
    background: #6b7280;
}

.erb-btn-secondary:hover {
    background: #4b5563;
}
.erb-btn-next:hover,
.erb-btn-back:hover,
.erb-btn-pay:hover {
    background: #2563eb;
}

.erb-btn:active,
.erb-btn-next:active,
.erb-btn-back:active,
.erb-btn-pay:active {
    background: #1d4ed8;
}

.erb-btn:disabled,
.erb-btn-next:disabled,
.erb-btn-back:disabled,
.erb-btn-pay:disabled {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 12px rgba(156, 163, 175, 0.2);
}

.erb-btn-back {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    box-shadow: 0 8px 20px rgba(107, 114, 128, 0.3);
}

.erb-btn-back:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    box-shadow: 0 12px 28px rgba(107, 114, 128, 0.4);
}

.erb-navigation-buttons {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.erb-navigation-buttons .erb-button,
.erb-navigation-buttons .erb-btn {
    margin-top: 0;
    flex: 1;
}

/* Beautiful Booking Summary */
.erb-booking-summary {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 28px;
    border-radius: 16px;
    margin-bottom: 28px;
    border: 2px solid rgba(102, 126, 234, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.erb-booking-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.erb-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.erb-summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.erb-summary-item.erb-total {
    border-top: 2px solid rgba(102, 126, 234, 0.2);
    margin-top: 20px;
    padding-top: 20px;
    font-weight: 700;
    font-size: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.erb-label {
    color: #64748b;
    font-weight: 500;
    font-size: 16px;
}

.erb-value {
    font-weight: 600;
    color: #334155;
    font-size: 16px;
}

/* Modern Payment Section */
.erb-payment-section {
    margin: 28px 0;
}

.erb-payment-section h4 {
    color: #334155;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Payment Message - Discreet Blinking */
.erb-payment-message {
    text-align: center;
    margin-bottom: 16px;
}

.erb-finalize-message {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    letter-spacing: 1px;
    animation: subtle-blink 3s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes subtle-blink {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.3; }
}

#erb-card-element {
    padding: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#erb-card-element:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: white;
    transform: translateY(-2px);
}

#erb-card-errors {
    color: #ef4444;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 8px;
    border-left: 4px solid #ef4444;
    display: none; /* Hide by default, show only when there are actual errors */
}

#erb-card-errors:not(:empty) {
    display: block;
}

.erb-terms {
    margin: 28px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    border: 2px solid rgba(14, 165, 233, 0.2);
}

.erb-terms label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.6;
    color: #334155;
    font-weight: 500;
}

.erb-terms input {
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

/* Beautiful Messages */
.erb-message {
    padding: 20px 24px;
    border-radius: 12px;
    margin: 20px 0;
    font-weight: 500;
    font-size: 16px;
    border-left: 4px solid;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.erb-message.erb-success,
.erb-success-message {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-left-color: #10b981;
    color: #065f46;
    text-align: center;
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
}

.erb-success-message::before {
    content: '✨';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 32px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.erb-message.erb-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-left-color: #ef4444;
    color: #991b1b;
}

.erb-message.erb-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left-color: #3b82f6;
    color: #1e40af;
}

.erb-success-message p {
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.6;
    padding-top: 20px;
}

/* Modern Loading */
.erb-loading {
    text-align: center;
    padding: 48px 32px;
    color: #64748b;
    font-size: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    margin: 24px 0;
}

.erb-loading::after,
.erb-spinner {
    content: '';
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: erb-spin 1s linear infinite;
    margin: 0 auto 24px;
}

@keyframes erb-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tablet and Desktop Improvements */
@media (min-width: 768px) {
    .erb-booking-container {
        max-width: 600px;
        margin: 20px auto;
        padding: 24px;
        border-radius: 16px;
    }
    
    .erb-step {
        padding: 24px;
        margin-bottom: 20px;
        border-radius: 12px;
    }
    
    .erb-calendar {
        padding: 16px;
        border-radius: 12px;
    }
    
    .erb-calendar-day {
        min-height: 60px;
    }
    
    .erb-time-slots {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding-top: 24px;
    }
    
    .erb-button,
    .erb-btn {
        width: auto;
        display: inline-block;
    }
    
    .erb-summary-item {
        flex-direction: row;
        gap: 0;
    }
}

/* Mobile Phone - Ultra Compact to Ensure Fit */
@media (max-width: 480px) {
    .erb-booking-container {
        margin: 0;
        padding: 0;
        border-radius: 0;
    }
    
    .erb-step {
        margin: 4px;
        padding: 12px;
        border-radius: 12px;
    }
    
    .erb-step h3 {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .erb-unified-calendar-container {
        padding: 8px;
        margin-bottom: 12px;
    }
    
    .erb-calendar-header h3 {
        font-size: 14px;
    }
    
    .erb-calendar-prev,
    .erb-calendar-next {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .erb-calendar-weekday {
        padding: 3px 0;
        font-size: 9px;
    }
    
    .erb-calendar-days {
        gap: 2px;
    }
    
    .erb-calendar-day {
        border-radius: 6px;
        padding: 3px 1px;
        font-size: 10px;
        min-height: 32px;
        width: 100%;
        max-width: calc((100vw - 48px) / 7);
    }
    
    .erb-day-number {
        font-size: 11px;
    }
    
    .erb-availability-count {
        font-size: 7px;
        padding: 1px 2px;
        min-width: 8px;
    }
    
    .erb-time-slot {
        padding: 12px 8px;
        font-size: 14px;
    }
    
    .erb-form-group input,
    .erb-form-group textarea,
    .erb-form-group select {
        padding: 10px 12px;
        font-size: 16px;
    }
}

/* Extra Small Screens - Maximum Compactness */
@media (max-width: 360px) {
    .erb-step {
        margin: 2px;
        padding: 8px;
    }
    
    .erb-unified-calendar-container {
        padding: 6px;
    }
    
    .erb-calendar-days {
        gap: 1px;
    }
    
    .erb-calendar-day {
        border-radius: 4px;
        padding: 2px 1px;
        min-height: 28px;
        max-width: calc((100vw - 32px) / 7);
    }
    
    .erb-day-number {
        font-size: 10px;
    }
    
    .erb-availability-count {
        font-size: 6px;
        padding: 0px 2px;
        min-width: 6px;
    }
    
    .erb-calendar-weekday {
        font-size: 8px;
        padding: 2px 0;
    }
}

/* Desktop Enhancements */
@media (min-width: 769px) {
    .erb-booking-container {
        max-width: 900px;
        margin: 32px auto;
        border-radius: 24px;
    }
    
    .erb-step {
        margin: 32px;
        padding: 40px;
        border-radius: 24px;
    }
    
    .erb-step h3 {
        font-size: 32px;
        margin-bottom: 40px;
    }
    
    .erb-unified-calendar-container {
        padding: 32px;
        margin-bottom: 32px;
    }
    
    /* Desktop Calendar Grid - Full Month View */
    .erb-calendar {
        background: white;
        border-radius: 12px;
        border: 1px solid #e5e7eb;
        overflow: hidden;
    }
    
    .erb-calendar-header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 20px 24px;
        margin-bottom: 0;
        border-bottom: none;
    }
    
    .erb-calendar-header h3 {
        color: white;
        font-size: 24px;
        margin: 0;
    }
    
    .erb-calendar-prev,
    .erb-calendar-next {
        background: rgba(255, 255, 255, 0.2);
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.3);
        padding: 8px 16px;
        border-radius: 6px;
        font-weight: 500;
    }
    
    .erb-calendar-prev:hover,
    .erb-calendar-next:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: translateY(-1px);
    }
    
    .erb-calendar-weekdays {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 0;
        background: #f8f9fa;
        padding: 16px 0;
        margin: 0;
    }
    
    .erb-calendar-weekday {
        padding: 12px;
        text-align: center;
        font-weight: 600;
        font-size: 14px;
        color: #495057;
        border-right: 1px solid #e9ecef;
    }
    
    .erb-calendar-weekday:last-child {
        border-right: none;
    }
    
    .erb-calendar-days {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 0;
        min-height: 400px;
    }
    
    .erb-calendar-day {
        aspect-ratio: auto;
        min-height: 80px;
        padding: 12px;
        margin: 0;
        border-radius: 0;
        border: 1px solid #e9ecef;
        border-top: none;
        border-left: none;
        background: white;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        position: relative;
        box-shadow: none;
        transition: all 0.2s ease;
    }
    
    .erb-calendar-day:nth-child(7n) {
        border-right: none;
    }
    
    .erb-calendar-day:hover {
        background: #f8f9fa;
        transform: none;
        box-shadow: inset 0 0 0 2px #e9ecef;
    }
    
    .erb-calendar-day.available {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        color: white;
        font-weight: 600;
        border-color: #059669;
    }
    
    .erb-calendar-day.available:hover {
        background: linear-gradient(135deg, #059669 0%, #047857 100%);
        box-shadow: inset 0 0 0 2px #047857;
    }
    
    .erb-calendar-day.limited {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
        color: white;
        font-weight: 600;
        border-color: #d97706;
    }
    
    .erb-calendar-day.limited:hover {
        background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
        box-shadow: inset 0 0 0 2px #b45309;
    }
    
    .erb-calendar-day.full {
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
        color: white;
        font-weight: 600;
        cursor: not-allowed;
        border-color: #dc2626;
    }
    
    .erb-calendar-day.selected {
        background: #667eea;
        color: white;
        border-color: #667eea;
        transform: none;
        box-shadow: inset 0 0 0 3px #764ba2;
    }
    
    .erb-calendar-day.other-month {
        background: #f8f9fa;
        color: #adb5bd;
        opacity: 0.6;
    }
    
    .erb-calendar-day.non-operating {
        background: #ffffff !important;
        color: #64748b !important;
        opacity: 0.6 !important;
    }
    
    .erb-calendar-day.today::before {
        top: 8px;
        right: 8px;
        width: 10px;
        height: 10px;
    }
    
    .erb-day-number {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 4px;
    }
    
    .erb-day-slots {
        font-size: 11px;
        color: #6c757d;
        text-align: center;
        line-height: 1.2;
    }
    
    .erb-calendar-day.available .erb-day-slots {
        color: white;
        font-weight: 600;
    }
    
    .erb-calendar-day.limited .erb-day-slots {
        color: white;
        font-weight: 600;
    }
    
    .erb-calendar-day.full .erb-day-slots {
        color: white;
        font-weight: 600;
    }
    
    .erb-calendar-day.selected .erb-day-slots {
        color: white;
        font-weight: 600;
    }
    
    .erb-time-slots {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding-top: 32px;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .erb-time-slot {
        padding: 20px;
        font-size: 18px;
        border-radius: 12px;
    }
    
    .erb-navigation-buttons {
        flex-direction: row;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Coupon Code Styling */
.erb-coupon-wrapper {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.erb-coupon-wrapper input {
    flex: 1;
    text-transform: uppercase;
}

.erb-btn-coupon {
    min-width: 80px;
    padding: 10px 16px;
    background-color: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.erb-btn-coupon:hover:not(:disabled) {
    background-color: #005a87;
}

.erb-btn-coupon:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.erb-coupon-message {
    margin-top: 8px;
    font-size: 14px;
    padding: 6px 0;
    min-height: 20px;
}

.erb-coupon-success {
    color: #006600;
    font-weight: 500;
}

.erb-coupon-error {
    color: #cc0000;
    font-weight: 500;
}

/* Summary Pricing Styles */
.erb-summary-item.erb-discount {
    color: #006600;
    font-style: italic;
}

.erb-summary-item.erb-discount .erb-discount-value {
    font-weight: 600;
}

.erb-summary-item.erb-subtotal {
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.erb-summary-item.erb-total {
    border-top: 2px solid #333333;
    padding-top: 8px;
    margin-top: 8px;
    font-weight: 700;
    font-size: 1.1em;
}

/* FREE booking styling */
.erb-summary-item.erb-total .erb-value:contains("FREE") {
    color: #006600;
    font-weight: 900;
    font-size: 1.2em;
}

/* Free booking button styling */
.erb-btn-pay:contains("Confirm Free Booking") {
    background-color: #006600;
    color: white;
}

.erb-btn-pay:contains("Confirm Free Booking"):hover {
    background-color: #004400;
}

/* International Phone Number Input */
.erb-phone-input-container {
    display: flex;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: visible;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.erb-phone-input-container:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: white;
    transform: translateY(-2px);
}

.erb-country-selector {
    display: flex;
    align-items: center;
    background: #f8fafc;
    padding: 16px 12px;
    border-right: 1px solid #e2e8f0;
    min-width: 100px;
    justify-content: center;
    font-weight: 600;
    color: #475569;
    user-select: none;
    cursor: pointer;
    transition: background 0.2s ease;
    position: relative;
}

.erb-country-selector:hover {
    background: #e2e8f0;
}

.erb-flag {
    font-size: 18px;
    margin-right: 6px;
}

.erb-country-code {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-right: 4px;
}

.erb-dropdown-arrow {
    font-size: 10px;
    color: #6b7280;
    transition: transform 0.2s ease;
}

.erb-country-selector.active .erb-dropdown-arrow {
    transform: rotate(180deg);
}

.erb-country-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.erb-country-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.erb-country-option:hover {
    background: #f8fafc;
}

.erb-country-option:last-child {
    border-bottom: none;
}

.erb-country-option.selected {
    background: #667eea;
    color: white;
}

.erb-country-option .erb-flag {
    margin-right: 8px;
}

.erb-country-option .erb-country-code {
    margin-right: 8px;
    font-weight: 600;
    min-width: 45px;
}

.erb-country-option .erb-country-name {
    font-size: 14px;
    color: #6b7280;
    flex: 1;
}

.erb-country-option.selected .erb-country-name {
    color: rgba(255, 255, 255, 0.9);
}

.erb-phone-number {
    flex: 1;
    border: none !important;
    padding: 16px 20px !important;
    font-size: 16px !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    outline: none !important;
    font-family: inherit;
}

.erb-phone-number:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
}

.erb-phone-helper {
    margin-top: 8px;
    padding: 0 4px;
}

.erb-phone-helper small {
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
}

.erb-phone-helper.erb-phone-valid small {
    color: #059669;
}

.erb-phone-helper.erb-phone-invalid small {
    color: #dc2626;
}

.erb-phone-format-example {
    color: #9ca3af;
    font-style: italic;
    font-size: 11px;
    margin-top: 2px;
}

/* Mobile responsiveness for phone input */
@media (max-width: 480px) {
    .erb-country-selector {
        padding: 12px 8px;
        min-width: 85px;
    }
    
    .erb-flag {
        font-size: 16px;
        margin-right: 4px;
    }
    
    .erb-country-code {
        font-size: 13px;
    }
    
    .erb-phone-number {
        padding: 12px 14px !important;
        font-size: 16px !important;
    }
    
    .erb-country-dropdown {
        max-height: 150px;
    }
    
    .erb-country-option {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .erb-btn-coupon {
        padding: 12px 16px;
        font-size: 16px;
    }
    
    /* Stack coupon input and button vertically on mobile */
    .erb-coupon-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    
    .erb-coupon-wrapper input {
        width: 100%;
        margin-bottom: 0;
    }
    
    .erb-btn-coupon {
        width: 100%;
        min-width: unset;
    }
}

/* Real-time update animations */
.erb-time-slot {
    transition: all 0.3s ease;
}

.erb-time-slot.booked {
    animation: slideToBooked 0.5s ease-out;
}

@keyframes slideToBooked {
    0% {
        transform: scale(1);
        background: var(--erb-primary);
    }
    50% {
        transform: scale(1.05);
        background: #f59e0b;
    }
    100% {
        transform: scale(1);
        background: linear-gradient(135deg, #ef4444, #dc2626);
    }
}

/* Notification styles */
.erb-slot-notification {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    animation: slideInNotification 0.3s ease-out;
}

@keyframes slideInNotification {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Terms & Conditions Modal */
.erb-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.erb-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.erb-modal-header {
    padding: 20px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.erb-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.erb-modal-close {
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: #6b7280;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.erb-modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.erb-modal-body {
    padding: 0 24px;
    flex: 1;
    overflow-y: auto;
    line-height: 1.6;
    color: #374151;
}

.erb-modal-body p {
    margin-bottom: 16px;
}

.erb-modal-body ul, .erb-modal-body ol {
    margin-bottom: 16px;
    padding-left: 20px;
}

.erb-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
}

/* Terms display styles */
.erb-terms {
    margin: 16px 0;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.erb-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    line-height: 1.4;
    cursor: pointer;
    color: #6b7280;
}

.erb-terms-text {
    flex: 1;
}

.erb-terms input[type="checkbox"] {
    margin: 2px 0 0 0;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.erb-terms a {
    color: #3b82f6;
    text-decoration: underline;
    font-size: 12px;
}

.erb-terms a:hover {
    color: #1d4ed8;
}

.erb-terms-optional {
    background: #f9fafb;
    border: 1px solid #d1d5db;
}

.erb-terms-optional h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

.erb-terms-text {
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
}

/* Responsive modal */
@media (max-width: 768px) {
    .erb-modal {
        padding: 10px;
    }
    
    .erb-modal-content {
        max-height: 90vh;
    }
    
    .erb-modal-header,
    .erb-modal-body,
    .erb-modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
}

