:root {
    --rsb-red: #D32F2F;
    --rsb-dark: #0a0a0a;
    --rsb-gray: #f5f5f5;
    --rsb-border: #e0e0e0;
}

/* Wrapper */
.rsb-wrapper {
    max-width: 1100px;
    margin: 30px auto;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #333;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

/* Left Content */
.rsb-main { flex: 2; min-width: 300px; }

/* Right Sidebar (Summary) */
.rsb-sidebar { flex: 1; min-width: 280px; }

/* Sticky Summary Card */
.rsb-summary-card {
    background: #fff;
    border: 1px solid var(--rsb-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 20px;
}
.rsb-summary-header {
    background: var(--rsb-red);
    color: #fff;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.rsb-summary-body { padding: 20px; font-size: 0.95rem; }
.rsb-summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; border-bottom: 1px solid #eee; padding-bottom: 5px; }
.rsb-total { font-size: 1.2rem; font-weight: bold; color: var(--rsb-red); margin-top: 15px; text-align: right; }

.rsb-btn-checkout {
    width: 100%;
    background: var(--rsb-red);
    color: white;
    border: none;
    padding: 15px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1rem;
}
.rsb-btn-checkout:hover { background: #b71c1c; }
.rsb-btn-checkout:disabled { background: #ccc; cursor: not-allowed; }

/* Section Headers */
.rsb-step-title {
    font-size: 1.4rem;
    color: var(--rsb-dark);
    margin-bottom: 20px;
    border-left: 5px solid var(--rsb-red);
    padding-left: 15px;
    display: flex;
    align-items: center;
    background: #f9f9f9;
    padding: 10px 15px;
}

/* Category Pills */
.rsb-cat-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    padding-bottom: 5px;
}
.rsb-cat-btn {
    padding: 12px 25px;
    background: #eee;
    border: none;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 4px;
    transition: 0.2s;
}
.rsb-cat-btn.active, .rsb-cat-btn:hover {
    background: var(--rsb-dark);
    color: white;
}
.rsb-cat-icon {
    margin-right: 8px;
    font-size: 1.2em;
    vertical-align: middle;
}

/* Service Grid */
.rsb-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}
.rsb-service-card {
    border: 1px solid var(--rsb-border);
    padding: 20px;
    cursor: pointer;
    background: white;
    transition: 0.2s;
    position: relative;
}
.rsb-service-card:hover { border-color: var(--rsb-red); transform: translateY(-2px); }
.rsb-service-card.selected {
    border: 2px solid var(--rsb-red);
    background: #fff5f5;
}
.rsb-check-icon {
    position: absolute;
    top: 10px; right: 10px;
    color: var(--rsb-red);
    display: none;
}
.rsb-service-card.selected .rsb-check-icon { display: block; }
.rsb-service-title { font-weight: bold; display: block; margin-bottom: 5px; }
.rsb-service-desc { font-size: 0.85rem; color: #666; }

/* Date & Time Section */
.rsb-datetime-container-full {
    background: white;
    border: 1px solid var(--rsb-border);
    padding: 10px;
    overflow-x: auto;
}
.rsb-7day-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    min-width: 600px; /* Ensure it doesn't squish too much on mobile */
}
.rsb-day-col {
    border: 1px solid #eee;
    background: #fafafa;
    text-align: center;
}
.rsb-day-col-header {
    background: #eee;
    padding: 10px 5px;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
    font-size: 0.9rem;
}
.rsb-day-col-body {
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Time Slots */
.rsb-time-slot {
    padding: 8px 2px;
    border: 1px solid #ddd;
    background: white;
    text-align: center;
    cursor: pointer;
    font-size: 0.8rem;
    border-radius: 3px;
}
.rsb-time-slot:hover { border-color: var(--rsb-red); }
.rsb-time-slot.selected { background: var(--rsb-red); color: white; border-color: var(--rsb-red); }
.rsb-closed { color:#999; font-style:italic; font-size: 0.8rem; padding: 10px 0; }
.rsb-time-slot.taken { background: #eee; color: #ccc; cursor: not-allowed; border-color: #eee; text-decoration: line-through; }

/* Form Inputs */
.rsb-input-row { display: flex; gap: 15px; margin-bottom: 15px; }
.rsb-input-group { flex: 1; }
.rsb-input-group label { display: block; font-weight: bold; font-size: 0.8rem; margin-bottom: 5px; text-transform: uppercase; }
.rsb-input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    background: #fcfcfc;
    font-size: 1rem;
}
.rsb-input-group input:focus { border-color: var(--rsb-red); outline: none; }

/* Hidden Steps */
.rsb-step-content { display: none; animation: fadeIn 0.5s; }
.rsb-step-content.active { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- NEW DESIGN IMPROVEMENTS --- */

/* Main Header */
.rsb-main-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
    width: 100%;
}
.rsb-main-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--rsb-dark);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}
.rsb-main-header p {
    font-size: 1.1rem;
    color: #666;
    margin-top: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}
.rsb-main-header::after {
    content: "";
    display: block;
    width: 50px;
    height: 4px;
    background: var(--rsb-red);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* 1. Progress Bar */
.rsb-progress { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; max-width: 400px; margin-left: auto; margin-right: auto; }
.rsb-progress-step { width: 35px; height: 35px; background: #eee; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; color: #999; transition: 0.3s; border: 2px solid transparent; cursor: pointer; }
.rsb-progress-step.active { background: var(--rsb-red); color: white; box-shadow: 0 4px 10px rgba(211, 47, 47, 0.3); }
.rsb-progress-line { flex: 1; height: 2px; background: #eee; margin: 0 10px; }

/* 2. Toast Notifications */
.rsb-toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 16px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s;
}
.rsb-toast.show { visibility: visible; opacity: 1; bottom: 50px; }
.rsb-toast.error { background-color: var(--rsb-red); }

/* 3. Admin Status Badges */
.rsb-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.rsb-badge-pending { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.rsb-badge-confirmed { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.rsb-badge-cancelled { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }