/* ==========================================================================
   Car Services & Booking System - Public Stylesheet
   Theme: Racing Red, Pure White, Carbon Black
   ========================================================================== */

:root {
    --csb-primary: #dc2626;
    --csb-primary-hover: #b91c1c;
    --csb-primary-rgb: 220, 38, 38;
    --csb-secondary: #09090b;
    --csb-accent: #ef4444;
    --csb-bg: #ffffff;
    --csb-card-bg: #ffffff;
    --csb-text: #18181b;
    --csb-muted: #71717a;
    --csb-border: #e4e4e7;
    --csb-light-gray: #f8fafc;
    --csb-radius: 10px;
    --csb-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --csb-shadow-hover: 0 20px 30px -10px rgba(220, 38, 38, 0.15), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --csb-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.csb-wrap, .csb-catalog-container, .csb-category-wrap, .csb-mechanic-box, .csb-tracking-box {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--csb-text);
    box-sizing: border-box;
    line-height: 1.5;
}

.csb-wrap *, .csb-wrap *::before, .csb-wrap *::after {
    box-sizing: inherit;
}

/* --------------------------------------------------------------------------
   Category Header Banner
   -------------------------------------------------------------------------- */
.csb-category-banner {
    position: relative;
    border-radius: var(--csb-radius);
    overflow: hidden;
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--csb-secondary) 0%, #1f2937 100%);
    color: #ffffff;
    display: flex;
    flex-direction: row;
    align-items: center;
    box-shadow: var(--csb-shadow);
    border: 1px solid #27272a;
}

.csb-category-banner-content {
    flex: 1;
    padding: 40px;
    z-index: 2;
}

.csb-category-badge {
    display: inline-block;
    background: var(--csb-primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.csb-category-title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.csb-category-desc {
    color: #d4d4d8;
    font-size: 15px;
    max-width: 600px;
    margin: 0;
}

.csb-category-banner-media {
    width: 35%;
    min-height: 220px;
    position: relative;
    overflow: hidden;
}

.csb-category-banner-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --------------------------------------------------------------------------
   Subcategory Tabs Navigation
   -------------------------------------------------------------------------- */
.csb-tabs-wrapper {
    margin-bottom: 35px;
}

.csb-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    border-bottom: 2px solid var(--csb-border);
    padding-bottom: 12px;
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.csb-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    background: #f4f4f5;
    color: var(--csb-text);
    border: 1px solid var(--csb-border);
    border-radius: var(--csb-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--csb-transition);
    outline: none;
}

.csb-tab-btn:hover {
    background: #e4e4e7;
    color: var(--csb-secondary);
}

.csb-tab-btn.active {
    background: var(--csb-primary);
    color: #ffffff;
    border-color: var(--csb-primary);
    box-shadow: 0 4px 12px rgba(var(--csb-primary-rgb), 0.35);
}

.csb-tab-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
}

/* --------------------------------------------------------------------------
   Services Grid & Cards
   -------------------------------------------------------------------------- */
.csb-services-grid, .csb-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.csb-service-card, .csb-package-card {
    background: var(--csb-card-bg);
    border: 1px solid var(--csb-border);
    border-radius: var(--csb-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--csb-shadow);
    transition: var(--csb-transition);
    position: relative;
}

.csb-service-card:hover, .csb-package-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--csb-shadow-hover);
    border-color: rgba(var(--csb-primary-rgb), 0.4);
}

.csb-card-media {
    position: relative;
    width: 100%;
    height: 190px;
    background: #18181b;
    overflow: hidden;
}

.csb-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.csb-service-card:hover .csb-card-media img,
.csb-package-card:hover .csb-card-media img {
    transform: scale(1.05);
}

.csb-duration-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.csb-card-ribbon {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--csb-primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.csb-card-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.csb-card-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--csb-secondary);
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.csb-card-desc {
    color: var(--csb-muted);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.csb-card-features {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
    font-size: 13px;
    color: #3f3f46;
}

.csb-card-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.csb-card-features li::before {
    content: "✓";
    color: var(--csb-primary);
    font-weight: bold;
}

.csb-card-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f4f4f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.csb-price-box {
    display: flex;
    flex-direction: column;
}

.csb-price-label {
    font-size: 11px;
    color: var(--csb-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.csb-price-amount {
    font-size: 22px;
    font-weight: 800;
    color: var(--csb-secondary);
}

.csb-price-amount.is-sale {
    color: var(--csb-primary);
}

.csb-regular-del {
    font-size: 14px;
    color: #a1a1aa;
    text-decoration: line-through;
    margin-left: 5px;
    font-weight: normal;
}

/* --------------------------------------------------------------------------
   Buttons & Controls
   -------------------------------------------------------------------------- */
.csb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--csb-radius);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--csb-transition);
}

.csb-btn-primary {
    background: var(--csb-primary);
    color: #ffffff !important;
}

.csb-btn-primary:hover {
    background: var(--csb-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--csb-primary-rgb), 0.35);
}

.csb-btn-secondary {
    background: var(--csb-secondary);
    color: #ffffff !important;
}

.csb-btn-secondary:hover {
    background: #27272a;
}

.csb-btn-outline {
    background: transparent;
    color: var(--csb-secondary) !important;
    border: 1px solid var(--csb-border);
}

.csb-btn-outline:hover {
    background: #f4f4f5;
}

.csb-btn-block {
    width: 100%;
}

/* --------------------------------------------------------------------------
   Modal Popup (Book Now Flow)
   -------------------------------------------------------------------------- */
.csb-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 9, 11, 0.7);
    backdrop-filter: blur(5px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.csb-modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.csb-modal-container {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid #e4e4e7;
}

.csb-modal-overlay.is-active .csb-modal-container {
    transform: scale(1);
}

.csb-modal-header {
    background: var(--csb-secondary);
    color: #ffffff;
    padding: 20px 25px;
    position: relative;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.csb-modal-header h3 {
    color: #ffffff;
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.csb-modal-item-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.csb-modal-item-name {
    font-size: 15px;
    color: #f4f4f5;
    font-weight: 600;
}

.csb-modal-item-price {
    background: var(--csb-primary);
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
}

.csb-modal-close-btn {
    position: absolute;
    top: 18px;
    right: 20px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    opacity: 0.8;
}

.csb-modal-close-btn:hover {
    opacity: 1;
}

.csb-modal-body {
    padding: 25px;
}

/* --------------------------------------------------------------------------
   Dynamic Form Elements
   -------------------------------------------------------------------------- */
.csb-form-group {
    padding: 8px;
    box-sizing: border-box;
}

.csb-col-100 { width: 100%; }
.csb-col-50  { width: 50%; }
.csb-col-33  { width: 33.333%; }

.csb-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #27272a;
    margin-bottom: 6px;
}

.csb-required {
    color: var(--csb-primary);
}

.csb-field-desc {
    font-size: 12px;
    color: var(--csb-muted);
    margin-bottom: 6px;
}

.csb-input, .csb-textarea, .csb-select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d4d4d8;
    border-radius: var(--csb-radius);
    font-size: 14px;
    font-family: inherit;
    color: var(--csb-text);
    background: #ffffff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.csb-input:focus, .csb-textarea:focus, .csb-select:focus {
    outline: none;
    border-color: var(--csb-primary);
    box-shadow: 0 0 0 3px rgba(var(--csb-primary-rgb), 0.15);
}

.csb-select option:disabled {
    color: #a1a1aa;
    background-color: #f4f4f5;
    font-style: italic;
}

.csb-slot-status-hint {
    padding: 4px 2px;
    transition: all 0.2s ease;
}

.csb-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    padding: 4px 0;
}

.csb-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--csb-primary);
    cursor: pointer;
}

.csb-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.csb-radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.csb-radio-item input {
    accent-color: var(--csb-primary);
}

/* Alert / Notification banners */
.csb-alert {
    padding: 12px 16px;
    border-radius: var(--csb-radius);
    font-size: 14px;
    margin-bottom: 15px;
    display: none;
}

.csb-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.csb-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* --------------------------------------------------------------------------
   Mechanic Walk-In Intake Form
   -------------------------------------------------------------------------- */
.csb-mechanic-box {
    background: #ffffff;
    border: 1px solid var(--csb-border);
    border-radius: 12px;
    box-shadow: var(--csb-shadow);
    padding: 30px;
    margin: 25px 0;
}

.csb-mechanic-box-header {
    border-bottom: 2px solid var(--csb-border);
    padding-bottom: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.csb-mechanic-badge {
    background: var(--csb-secondary);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Customer Bookings Table
   -------------------------------------------------------------------------- */
.csb-table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--csb-border);
    border-radius: var(--csb-radius);
    box-shadow: var(--csb-shadow);
}

.csb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
}

.csb-table th {
    background: var(--csb-secondary);
    color: #ffffff;
    padding: 12px 16px;
    font-weight: 600;
}

.csb-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--csb-border);
}

.csb-table tr:hover td {
    background: #f8fafc;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .csb-category-banner {
        flex-direction: column;
    }
    .csb-category-banner-media {
        width: 100%;
        height: 180px;
    }
    .csb-category-banner-content {
        padding: 25px;
    }
    .csb-col-50, .csb-col-33 {
        width: 100%;
    }
    .csb-services-grid, .csb-packages-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Auth & Account Forms (Login & Register)
   -------------------------------------------------------------------------- */
.csb-auth-container {
    max-width: 520px;
    margin: 30px auto;
}

.csb-auth-tabs {
    display: flex;
    background: #f4f4f5;
    padding: 4px;
    border-radius: var(--csb-radius);
    margin-bottom: 20px;
    border: 1px solid var(--csb-border);
}

.csb-auth-tab-btn {
    flex: 1;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: calc(var(--csb-radius) - 2px);
    font-size: 14px;
    font-weight: 600;
    color: #71717a;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.csb-auth-tab-btn:hover {
    color: #18181b;
}

.csb-auth-tab-btn.active {
    background: #ffffff;
    color: var(--csb-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.csb-auth-panel {
    display: none;
}

.csb-auth-panel.active {
    display: block;
}

.csb-auth-box {
    background: #ffffff;
    border: 1px solid var(--csb-border);
    border-radius: var(--csb-radius);
    box-shadow: var(--csb-shadow);
    padding: 30px;
}

.csb-auth-title {
    margin: 0 0 6px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--csb-secondary);
}

.csb-auth-subtitle {
    margin: 0 0 20px 0;
    font-size: 13px;
    color: #71717a;
}

/* Account Type Radio Selector */
.csb-account-type-toggle {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.csb-type-radio-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 14px 10px;
    border: 2px solid var(--csb-border);
    border-radius: var(--csb-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafafa;
    position: relative;
}

.csb-type-radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.csb-type-radio-label .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    margin-bottom: 6px;
    color: #71717a;
}

.csb-type-radio-label strong {
    font-size: 13px;
    color: #18181b;
    margin-bottom: 2px;
}

.csb-type-radio-label small {
    font-size: 11px;
    color: #71717a;
}

.csb-type-radio-label:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}

.csb-type-radio-label.active {
    border-color: var(--csb-primary);
    background: #ffffff;
    box-shadow: 0 0 0 1px var(--csb-primary);
}

.csb-type-radio-label.active .dashicons,
.csb-type-radio-label.active strong {
    color: var(--csb-primary);
}

.csb-btn-block {
    width: 100%;
    display: block;
    text-align: center;
}

