/* WPBookso Public Styles - Modern Minimalist 2025 */

:root {
    --primary: #4f46e5;
    --primary-hover: #3730a3;
    --primary-light: #6366f1;
    --accent: #06b6d4;
    --accent-hover: #0891b2;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-input: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-light: #cbd5e1;
    --border-input: #d1d5db;
    --success: #059669;
    --success-light: #dcfce7;
    --error: #dc2626;
    --error-light: #fef2f2;
    --warning: #d97706;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --spacing: 20px;
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-base: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 24px;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base */
.wpbookso-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', system-ui, sans-serif;
    font-size: var(--font-size-base);
    line-height: 1.6;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

/* Typography */
.wpbookso-form-header {
    margin-bottom: 40px;
    text-align: center;
    padding: 32px;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.wpbookso-form-header h3 {
    margin: 0;
    font-size: 32px;
    font-weight: var(--font-weight-bold);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.wpbookso-form-header h3::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

/* Forms */
.wpbookso-form-row {
    margin-bottom: 32px;
}

.wpbookso-form-row label {
    display: block;
    margin-bottom: 12px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.wpbookso-form-row input,
.wpbookso-form-row select,
.wpbookso-form-row textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: var(--font-size-base);
    transition: var(--transition);
    box-sizing: border-box;
    box-shadow: var(--shadow-sm);
}

.wpbookso-form-row input:focus,
.wpbookso-form-row select:focus,
.wpbookso-form-row textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-input);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1), var(--shadow);
    transform: translateY(-1px);
}

.wpbookso-form-row input::placeholder,
.wpbookso-form-row textarea::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.wpbookso-form-section {
    margin: 40px 0;
    padding: 32px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: relative;
}

.wpbookso-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: var(--radius) var(--radius) 0 0;
}

.wpbookso-form-section h4 {
    margin: 0 0 24px 0;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    position: relative;
    padding-left: 32px;
}

.wpbookso-form-section h4::before {
    content: '📝';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

/* Calendar */
.wpbookso-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.wpbookso-main-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding: 24px;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.wpbookso-nav-btn {
    padding: 12px 24px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    min-width: 160px;
}

.wpbookso-nav-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.wpbookso-nav-btn:active {
    transform: translateY(0);
}

#wpbookso-week-title {
    margin: 0;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wpbookso-calendar-grid {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.wpbookso-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
}

.wpbookso-day-header {
    padding: 20px 12px;
    text-align: center;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-right: 1px solid var(--border);
    position: relative;
}

.wpbookso-day-header:last-child {
    border-right: none;
}

.wpbookso-day-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    opacity: 0.7;
}

.wpbookso-dates-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
}

.wpbookso-date-cell {
    padding: 16px 12px;
    text-align: center;
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    border-right: 1px solid var(--border);
    font-size: var(--font-size-base);
    transition: var(--transition-fast);
}

.wpbookso-date-cell:last-child {
    border-right: none;
}

.wpbookso-date-cell.today {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    font-weight: var(--font-weight-bold);
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.wpbookso-date-cell.today::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    z-index: -1;
}

/* Courts */
.wpbookso-courts-container {
    padding: 32px 0;
}

.wpbookso-court-section {
    margin-bottom: 48px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.wpbookso-court-section:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.wpbookso-court-title {
    margin: 0;
    padding: 24px 32px;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    border-bottom: 1px solid var(--border);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.wpbookso-court-title::before {
    content: '🏸';
    position: absolute;
    left: 24px;
    font-size: 20px;
}


.wpbookso-court-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* Google Calendar Style Grid */
.wpbookso-time-grid {
    background: var(--bg-card);
    border-radius: 0 0 var(--radius) var(--radius);
    overflow: hidden;
}

.wpbookso-time-grid-content {
    display: grid;
    grid-template-columns: 90px repeat(5, 1fr);
}

.wpbookso-time-labels {
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    border-right: 2px solid var(--border);
}

.wpbookso-time-header {
    padding: 16px 12px;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wpbookso-time-label {
    padding: 0;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    text-align: center;
    border-bottom: 1px solid var(--border);
    background: var(--bg-tertiary);
    transition: var(--transition-fast);
    position: relative;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.wpbookso-time-label:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

/* Calendar Header Grid in Courts */
.wpbookso-calendar-header-grid {
    display: grid;
    grid-template-columns: 90px repeat(5, 1fr);
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    border-bottom: 2px solid var(--border);
}

.wpbookso-time-header-corner {
    padding: 16px 12px;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    text-align: center;
    background: transparent;
    border-right: 2px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpbookso-day-header-cell {
    padding: 12px 8px;
    text-align: center;
    background: var(--bg-tertiary);
    border-right: 1px solid var(--border);
    transition: var(--transition-fast);
    position: relative;
}

.wpbookso-day-header-cell:last-child {
    border-right: none;
}

.wpbookso-day-header-cell.today {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
}

.wpbookso-day-header-cell.today::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
}

.wpbookso-day-name {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.wpbookso-day-header-cell.today .wpbookso-day-name {
    color: white;
}

.wpbookso-day-number {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

.wpbookso-day-header-cell.today .wpbookso-day-number {
    color: white;
}

.wpbookso-day-header-cell.sunday .wpbookso-day-name,
.wpbookso-day-header-cell.sunday .wpbookso-day-number {
    color: var(--error);
}

.wpbookso-day-header-cell.sunday.today .wpbookso-day-name,
.wpbookso-day-header-cell.sunday.today .wpbookso-day-number {
    color: white;
}

.wpbookso-day-column {
    border-right: 1px solid var(--border);
    background: var(--bg-card);
}

.wpbookso-day-column:last-child {
    border-right: none;
}

/* Google Calendar Style Time Slots */
.wpbookso-time-slot-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    min-height: 52px;
    background: var(--bg-card);
    border: none;
    border-bottom: 1px solid var(--border);
    font-size: 11px;
    font-weight: var(--font-weight-bold);
    color: var(--success);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    padding: 4px;
    box-sizing: border-box;
    text-align: center;
    line-height: 1.2;
}

.wpbookso-time-slot-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.wpbookso-time-slot-btn:hover {
    background: linear-gradient(135deg, var(--success), var(--accent));
    color: white;
    transform: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.wpbookso-time-slot-btn:hover::before {
    left: 100%;
}

.wpbookso-time-slot-btn.selected {
    background: linear-gradient(135deg, var(--success), #10b981);
    color: transparent;
    box-shadow: none;
    transform: none;
    z-index: 2;
    font-size: 18px;
    position: relative;
    outline: 2px solid var(--success);
    outline-offset: -1px;
}

.wpbookso-time-slot-btn.selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 20px;
    font-weight: var(--font-weight-bold);
}

.wpbookso-time-slot-btn.booked {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.8;
    font-size: 10px;
    font-weight: var(--font-weight-semibold);
}

.wpbookso-time-slot-btn.booked:hover {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    transform: none;
    box-shadow: none;
}

.wpbookso-time-slot-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    min-height: 52px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 10px;
    font-weight: var(--font-weight-semibold);
    text-align: center;
    box-sizing: border-box;
}

.wpbookso-no-availability {
    grid-column: 1 / -1;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    background: var(--bg-secondary);
    font-size: var(--font-size-lg);
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
}

.wpbookso-loading {
    grid-column: 1 / -1;
    padding: 60px 20px;
    text-align: center;
    color: var(--primary);
    font-weight: var(--font-weight-medium);
    background: var(--bg-card);
    font-size: var(--font-size-base);
    position: relative;
}

.wpbookso-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 2px solid var(--border);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Services */
.wpbookso-service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 24px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.wpbookso-service-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    border-radius: var(--radius) 0 0 var(--radius);
    opacity: 0;
    transition: var(--transition);
}

.wpbookso-service-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.wpbookso-service-item:hover::before {
    opacity: 1;
}

.wpbookso-service-info {
    flex: 1;
    margin-right: 20px;
}

.wpbookso-service-name {
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: var(--font-size-base);
    line-height: 1.4;
    display: block;
}

.wpbookso-service-unit-price {
    font-weight: var(--font-weight-semibold);
    color: var(--primary);
    font-size: var(--font-size-sm);
    margin-bottom: 8px;
    line-height: 1.3;
    display: block;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wpbookso-service-desc {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin-top: 0;
    line-height: 1.5;
    display: block;
    font-style: italic;
}

/* Quantity Controls */
.wpbookso-service-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-right: 24px;
}

.wpbookso-quantity-btn {
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.wpbookso-quantity-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-color: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.wpbookso-quantity-btn:active {
    transform: translateY(0);
}

.wpbookso-service-controls .wpbookso-quantity-input {
    width: 80px !important;
    height: 44px;
    text-align: center;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-lg);
    padding: 0;
    box-shadow: var(--shadow-sm);
}

.wpbookso-service-controls .wpbookso-quantity-input:focus {
    border-color: var(--primary);
    background: var(--bg-input);
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1), var(--shadow);
}

.wpbookso-service-total {
    min-width: 100px;
    text-align: right;
    font-weight: var(--font-weight-bold);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: var(--font-size-lg);
}

/* Racket Rental Section */
.wpbookso-racket-rental {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 32px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.wpbookso-racket-rental::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
}

.wpbookso-racket-rental h4 {
    margin: 0 0 24px 0;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    position: relative;
    padding-left: 32px;
}

.wpbookso-racket-rental h4::before {
    content: '🏸';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

/* Combined Booking and Financial Summary */
.wpbookso-booking-financial-summary {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 32px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.wpbookso-booking-financial-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--success), var(--accent));
}

/* Booking Summary Section */
.wpbookso-booking-summary-section {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0 0 24px 0;
    margin-bottom: 24px;
    box-shadow: none;
    position: relative;
    border-bottom: 2px solid var(--border);
}

.wpbookso-booking-summary-section::before {
    display: none;
}

.wpbookso-booking-summary {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
    box-shadow: none;
    position: relative;
    overflow: visible;
}

.wpbookso-booking-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--success), var(--accent));
}

.wpbookso-booking-summary h4 {
    margin: 0 0 24px 0;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
    position: relative;
    padding-left: 32px;
}

.wpbookso-booking-summary h4::before,
.wpbookso-booking-summary-section h4::before {
    content: '📅';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

.wpbookso-booking-summary-section h4 {
    margin: 0 0 20px 0;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    position: relative;
    padding-left: 32px;
}

.wpbookso-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-fast);
}

.wpbookso-summary-item:last-child {
    border-bottom: none;
}

.wpbookso-summary-item:hover {
    background: rgba(79, 70, 229, 0.05);
    padding-left: 12px;
    padding-right: 12px;
    margin: 0 -12px;
    border-radius: var(--radius-sm);
}

.wpbookso-summary-label {
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-base);
}

.wpbookso-summary-value {
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-base);
}

/* Price Summary */
.wpbookso-price-breakdown {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-top: 0;
    box-shadow: none;
    position: relative;
    overflow: visible;
}

.wpbookso-price-breakdown::before {
    display: none;
}

.wpbookso-booking-summary-section h4,
.wpbookso-price-breakdown h4 {
    margin: 0 0 20px 0;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    position: relative;
    padding-left: 32px;
}

.wpbookso-price-breakdown h4::before {
    content: '💰';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

.wpbookso-price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-fast);
}

.wpbookso-price-item:hover {
    background: rgba(79, 70, 229, 0.05);
    padding-left: 12px;
    padding-right: 12px;
    margin: 0 -12px;
    border-radius: var(--radius-sm);
}

.wpbookso-price-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-lg);
    border-top: 2px solid var(--border);
    background: rgba(79, 70, 229, 0.05);
    padding: 16px;
    margin: 20px 0 0 0;
    border-radius: var(--radius);
}

.wpbookso-price-total .wpbookso-price-label {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

.wpbookso-price-total .wpbookso-price-value {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
}

.wpbookso-price-label {
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-base);
}

.wpbookso-price-value {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-base);
}

.wpbookso-payment-info {
    text-align: center;
    margin-top: 16px;
    padding: 16px;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-style: italic;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.wpbookso-payment-label {
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
}

/* Buttons */
.wpbookso-submit-btn {
    width: 100%;
    padding: 20px 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white !important;
    border: none;
    border-radius: var(--radius);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: var(--transition);
    margin-top: 16px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wpbookso-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.wpbookso-submit-btn:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary));
    color: white !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.wpbookso-submit-btn:hover::before {
    left: 100%;
}

.wpbookso-submit-btn:active {
    transform: translateY(0);
}

.wpbookso-submit-btn:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.wpbookso-submit-btn:disabled::before {
    display: none;
}

/* Results */
.wpbookso-result {
    margin-top: 24px;
    padding: 16px;
    border-radius: var(--radius);
    font-weight: var(--font-weight-medium);
}

.wpbookso-result.wpbookso-success {
    background: var(--bg-secondary);
    border: 1px solid var(--success);
    color: var(--success);
}

.wpbookso-result.wpbookso-error {
    background: var(--bg-secondary);
    border: 1px solid var(--error);
    color: var(--error);
}

.wpbookso-field-error {
    border-color: var(--error) !important;
}

/* Payment */
.wpbookso-payment-option {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
}

.wpbookso-checkbox-label {
    display: flex !important;
    align-items: center;
    margin: 0 !important;
    font-weight: var(--font-weight-medium) !important;
}

.wpbookso-checkbox-label input[type="checkbox"] {
    width: auto !important;
    margin-right: 12px;
    accent-color: var(--primary);
}

.wpbookso-checkbox-text {
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
}

/* Loading */
.wpbookso-loading {
    text-align: center;
    padding: 32px;
    color: var(--text-muted);
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .wpbookso-container {
        padding: 12px;
        margin: 0 auto;
    }
    
    .wpbookso-main-navigation {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }
    
    .wpbookso-nav-btn {
        min-width: 100%;
        padding: 14px;
        font-size: 14px;
    }
    
    .wpbookso-calendar-header-grid {
        grid-template-columns: 60px repeat(5, 1fr);
        gap: 1px;
    }
    
    .wpbookso-time-grid-content {
        grid-template-columns: 60px repeat(5, 1fr);
        gap: 1px;
    }
    
    .wpbookso-time-header-corner {
        padding: 6px 2px;
        font-size: 8px;
        word-wrap: break-word;
    }
    
    .wpbookso-day-header-cell {
        padding: 6px 2px;
        min-height: 60px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .wpbookso-day-name {
        font-size: 8px;
        margin-bottom: 2px;
        line-height: 1;
    }
    
    .wpbookso-day-number {
        font-size: 12px;
        line-height: 1;
    }
    
    .wpbookso-time-label {
        padding: 0;
        font-size: 9px;
        height: 32px;
        min-height: 32px;
    }
    
    .wpbookso-time-slot-btn {
        height: 32px;
        min-height: 32px;
        font-size: 7px;
        padding: 1px;
        line-height: 1.1;
    }
    
    .wpbookso-time-slot-btn.booked {
        font-size: 7px;
    }
    
    .wpbookso-time-slot-btn.selected {
        outline-width: 1px;
        font-size: 14px;
    }
    
    .wpbookso-time-slot-btn.selected::after {
        font-size: 12px;
    }
    
    .wpbookso-time-slot-empty {
        height: 32px;
        min-height: 32px;
        font-size: 7px;
    }
    
    .wpbookso-service-item {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 16px;
    }
    
    .wpbookso-service-info {
        margin-right: 0;
    }
    
    .wpbookso-service-controls {
        margin-right: 0;
    }
    
    .wpbookso-court-title {
        padding: 12px 16px;
        font-size: var(--font-size-sm);
    }
    
    .wpbookso-court-title::before {
        left: 12px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .wpbookso-container {
        padding: 8px;
        margin: 0;
    }
    
    .wpbookso-main-navigation {
        padding: 12px;
        margin-bottom: 16px;
    }
    
    .wpbookso-nav-btn {
        padding: 12px;
        font-size: 13px;
    }
    
    .wpbookso-calendar-header-grid {
        grid-template-columns: 50px repeat(5, 1fr);
        gap: 0.5px;
    }
    
    .wpbookso-time-grid-content {
        grid-template-columns: 50px repeat(5, 1fr);
        gap: 0.5px;
    }
    
    .wpbookso-time-header-corner {
        padding: 4px 1px;
        font-size: 7px;
        word-break: break-all;
        line-height: 1;
    }
    
    .wpbookso-day-header-cell {
        padding: 4px 1px;
        min-height: 50px;
        font-size: 7px;
    }
    
    .wpbookso-day-name {
        font-size: 7px;
        margin-bottom: 1px;
        line-height: 1;
    }
    
    .wpbookso-day-number {
        font-size: 10px;
        line-height: 1;
    }
    
    .wpbookso-time-label {
        padding: 0;
        font-size: 8px;
        height: 28px;
        min-height: 28px;
    }
    
    .wpbookso-time-slot-btn {
        height: 28px;
        min-height: 28px;
        font-size: 6px;
        padding: 0.5px;
        line-height: 1;
    }
    
    .wpbookso-time-slot-btn.booked {
        font-size: 6px;
    }
    
    .wpbookso-time-slot-btn.selected {
        outline-width: 1px;
        font-size: 12px;
    }
    
    .wpbookso-time-slot-btn.selected::after {
        font-size: 10px;
    }
    
    .wpbookso-time-slot-empty {
        height: 28px;
        min-height: 28px;
        font-size: 6px;
    }
    
    .wpbookso-court-title {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .wpbookso-court-title::before {
        left: 8px;
        font-size: 14px;
    }
    
    .wpbookso-court-section {
        margin-bottom: 32px;
    }
}

/* Utilities */
.wpbookso-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.wpbookso-text-center {
    text-align: center;
}

.wpbookso-text-right {
    text-align: right;
}

.wpbookso-mb-0 {
    margin-bottom: 0;
}

.wpbookso-mt-0 {
    margin-top: 0;
}