/**
 * Fullpage Booking Layout Styles
 * Premium single-page design with floating navigation and sticky sidebar
 *
 * @package Car_Wash_Booking
 */

/* ========================================
   CSS VARIABLES & BASE
   ======================================== */

.cwb-fullpage-booking {
    --fp-primary: var(--cwb-primary-color, #2271b1);
    --fp-primary-dark: var(--cwb-primary-dark, #1a5a8c);
    --fp-primary-light: #e8f4fc;
    --fp-secondary: var(--cwb-secondary-color, #10b981);
    --fp-text: var(--cwb-text-primary, #1a202c);
    --fp-text-muted: #64748b;
    --fp-bg: #f8fafc;
    --fp-white: #ffffff;
    --fp-border: #e2e8f0;
    --fp-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --fp-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --fp-radius: 16px;
    --fp-radius-sm: 10px;
    --fp-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--fp-text);
    line-height: 1.6;
    background: var(--fp-bg);
}

/* ========================================
   THEME COMPATIBILITY FIXES
   Fix for themes that use overflow:hidden on wrapper elements,
   which breaks position:sticky on the sidebar
   ======================================== */

/* Common theme wrappers that often have overflow:hidden */
.cwb-fullpage-booking~.wrapper,
.cwb-fullpage-booking~.site-content,
body:has(.cwb-fullpage-booking) .wrapper,
body:has(.cwb-fullpage-booking) .site-content,
body:has(.cwb-fullpage-booking) .neve-main,
body:has(.cwb-fullpage-booking) main.site-main,
body:has(.cwb-fullpage-booking) #content,
body:has(.cwb-fullpage-booking) .content-area,
body:has(.cwb-fullpage-booking) .ast-container,
body:has(.cwb-fullpage-booking) .generate-columns-container {
    overflow: visible !important;
}

/* Fallback for browsers that don't support :has() - uses JavaScript below */
.cwb-fullpage-active .wrapper,
.cwb-fullpage-active .site-content,
.cwb-fullpage-active .neve-main,
.cwb-fullpage-active main.site-main,
.cwb-fullpage-active #content,
.cwb-fullpage-active .content-area,
.cwb-fullpage-active .ast-container,
.cwb-fullpage-active .generate-columns-container {
    overflow: visible !important;
}

/* ========================================
   HERO HEADER
   ======================================== */

.cwb-fullpage-hero {
    background: linear-gradient(135deg, var(--fp-primary) 0%, var(--fp-primary-dark) 100%);
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 0 0 var(--fp-radius) var(--fp-radius);
}

.cwb-hero-title {
    font-size: 42px;
    font-weight: 700;
    color: white;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.cwb-hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   FLOATING SECTION NAVIGATION
   ======================================== */

.cwb-section-nav {
    position: fixed;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 12px;
    border-radius: var(--fp-radius);
    box-shadow: var(--fp-shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.cwb-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--fp-radius-sm);
    text-decoration: none;
    color: var(--fp-text-muted);
    transition: var(--fp-transition);
    white-space: nowrap;
}

.cwb-nav-item:hover {
    background: var(--fp-primary-light);
    color: var(--fp-primary);
}

.cwb-nav-item.active {
    background: var(--fp-primary);
    color: white;
}

.cwb-nav-number {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 600;
    background: var(--fp-border);
    color: var(--fp-text-muted);
    transition: var(--fp-transition);
}

.cwb-nav-item.active .cwb-nav-number {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.cwb-nav-item.completed .cwb-nav-number {
    background: var(--fp-secondary);
    color: white;
}

.cwb-nav-item.completed .cwb-nav-number::after {
    content: '✓';
    font-size: 12px;
}

.cwb-nav-label {
    font-size: 13px;
    font-weight: 500;
}

/* ========================================
   MAIN LAYOUT
   ======================================== */

.cwb-fullpage-main {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 60px;
    padding-left: 180px;
    /* Space for floating nav */
    align-items: start;
    /* Critical for sticky sidebar */
}

.cwb-fullpage-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ========================================
   SECTION STYLES
   ======================================== */

.cwb-fullpage-section {
    background: var(--fp-white);
    border-radius: var(--fp-radius);
    box-shadow: var(--fp-shadow);
    overflow: hidden;
    scroll-margin-top: 40px;
}

.cwb-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 32px;
    border-bottom: 1px solid var(--fp-border);
    background: linear-gradient(to bottom, #fafbfc, var(--fp-white));
}

.cwb-section-badge {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--fp-primary) 0%, var(--fp-primary-dark) 100%);
    color: white;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

.cwb-section-info {
    flex: 1;
}

.cwb-section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--fp-text);
    margin: 0 0 4px 0;
}

.cwb-section-desc {
    font-size: 14px;
    color: var(--fp-text-muted);
    margin: 0;
}

.cwb-section-selection {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--fp-primary-light);
    padding: 8px 16px;
    border-radius: 20px;
}

.cwb-selection-label {
    font-size: 12px;
    color: var(--fp-text-muted);
}

.cwb-selection-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--fp-primary);
}

.cwb-optional-badge {
    background: #fef3c7;
    color: #92400e;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cwb-section-content {
    padding: 32px;
}

/* ========================================
   VEHICLE TYPE ROW
   ======================================== */

.cwb-vehicle-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 4px;
    scroll-snap-type: x mandatory;
}

.cwb-vehicle-row::-webkit-scrollbar {
    height: 6px;
}

.cwb-vehicle-row::-webkit-scrollbar-thumb {
    background: var(--fp-border);
    border-radius: 3px;
}

.cwb-vehicle-card {
    flex: 0 0 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    border: 2px solid var(--fp-border);
    border-radius: var(--fp-radius-sm);
    background: var(--fp-white);
    cursor: pointer;
    transition: var(--fp-transition);
    scroll-snap-align: start;
    text-align: center;
}

.cwb-vehicle-card:hover {
    border-color: var(--fp-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(34, 113, 177, 0.15);
}

.cwb-vehicle-card.selected {
    border-color: var(--fp-primary);
    background: var(--fp-primary);
    color: white;
}

.cwb-vehicle-icon {
    font-size: 48px;
    line-height: 1;
}

.cwb-vehicle-icon img {
    width: 64px;
    height: 48px;
    object-fit: contain;
}

.cwb-vehicle-card.selected .cwb-vehicle-icon {
    filter: brightness(0) invert(1);
}

.cwb-vehicle-name {
    font-size: 14px;
    font-weight: 600;
    color: inherit;
}

/* ========================================
   PACKAGE GRID
   ======================================== */

.cwb-package-grid {
    display: grid;
    gap: 24px;
}

.cwb-package-grid[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.cwb-package-grid[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.cwb-package-grid[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

.cwb-package-card {
    display: flex;
    flex-direction: column;
    border: 2px solid var(--fp-border);
    border-radius: var(--fp-radius);
    background: var(--fp-white);
    overflow: hidden;
    cursor: pointer;
    transition: var(--fp-transition);
}

.cwb-package-card:hover {
    border-color: var(--fp-primary);
    transform: translateY(-4px);
    box-shadow: var(--fp-shadow-lg);
}

.cwb-package-card.selected {
    border-color: var(--fp-primary);
    box-shadow: 0 0 0 3px var(--fp-primary-light);
}

.cwb-package-header {
    padding: 20px 16px;
    text-align: center;
    border-bottom: 1px solid var(--fp-border);
}

.cwb-package-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--fp-text);
    margin: 0 0 12px 0;
}

.cwb-package-price {
    color: var(--fp-primary);
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

.cwb-package-duration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 13px;
    color: var(--fp-text-muted);
}

.cwb-package-body {
    padding: 16px 20px;
    flex: 1;
}

.cwb-package-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cwb-package-features li {
    font-size: 13px;
    color: var(--fp-text-muted);
    text-align: center;
    padding: 2px 0;
}

.cwb-package-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--fp-border);
}

.cwb-package-btn {
    width: 100%;
    padding: 12px 24px;
    border: 2px solid var(--fp-primary);
    border-radius: 24px;
    background: transparent;
    color: var(--fp-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--fp-transition);
}

.cwb-package-btn:hover,
.cwb-package-card.selected .cwb-package-btn {
    background: var(--fp-primary);
    color: white;
}

.cwb-package-card.selected .cwb-package-btn::after {
    content: ' ✓';
}

/* ========================================
   ADD-ONS GRID CARDS
   ======================================== */

.cwb-addon-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.cwb-addon-grid[data-columns="1"] {
    grid-template-columns: 1fr;
}

.cwb-addon-grid[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.cwb-addon-grid[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.cwb-addon-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--fp-white);
    border: 2px solid var(--fp-border);
    border-radius: var(--fp-radius);
    cursor: pointer;
    transition: var(--fp-transition);
}

.cwb-addon-card:hover {
    border-color: var(--fp-primary-light);
    background: #f8fafc;
}

.cwb-addon-card.selected {
    border-color: var(--fp-primary);
    background: var(--fp-primary-light);
}

.cwb-addon-card-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.cwb-addon-card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cwb-addon-card-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--fp-text);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cwb-addon-card-meta {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cwb-addon-card-duration {
    font-size: 12px;
    color: var(--fp-text-muted);
}

.cwb-addon-card-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--fp-primary);
    flex-shrink: 0;
    white-space: nowrap;
}

.cwb-addon-card-btn {
    padding: 6px 14px;
    border: 2px solid var(--fp-primary);
    border-radius: 16px;
    background: transparent;
    color: var(--fp-primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--fp-transition);
    flex-shrink: 0;
    white-space: nowrap;
}

.cwb-addon-card-btn:hover,
.cwb-addon-card.selected .cwb-addon-card-btn {
    background: var(--fp-primary);
    color: white;
}

.cwb-addon-card.selected .cwb-addon-card-btn::after {
    content: ' ✓';
}

/* ========================================
   WEEK CALENDAR
   ======================================== */

.cwb-week-calendar {
    background: var(--fp-white);
}

.cwb-week-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 24px 0;
}

.cwb-week-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--fp-text);
    margin: 0;
}

.cwb-week-nav {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--fp-border);
    border-radius: 50%;
    background: var(--fp-white);
    color: var(--fp-text);
    font-size: 16px;
    cursor: pointer;
    transition: var(--fp-transition);
}

.cwb-week-nav:hover {
    background: var(--fp-primary);
    border-color: var(--fp-primary);
    color: white;
}

.cwb-week-grid {
    display: grid;
    gap: 16px;
}

.cwb-week-grid[data-days="5"] {
    grid-template-columns: repeat(5, 1fr);
}

.cwb-week-grid[data-days="7"] {
    grid-template-columns: repeat(7, 1fr);
}

.cwb-day-column {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--fp-border);
    border-radius: var(--fp-radius-sm);
    overflow: hidden;
}

.cwb-day-header {
    padding: 16px;
    text-align: center;
    background: var(--fp-bg);
    border-bottom: 1px solid var(--fp-border);
}

.cwb-day-date {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 auto 4px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 600;
    color: var(--fp-text);
    background: var(--fp-white);
}

.cwb-day-header.today .cwb-day-date {
    background: var(--fp-primary);
    color: white;
}

.cwb-day-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--fp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cwb-day-slots {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    min-height: 200px;
}

.cwb-time-slot {
    padding: 10px 12px;
    border: 1px solid var(--fp-border);
    border-radius: 20px;
    background: var(--fp-white);
    font-size: 13px;
    font-weight: 500;
    color: var(--fp-text);
    text-align: center;
    cursor: pointer;
    transition: var(--fp-transition);
}

.cwb-time-slot:hover:not(.unavailable) {
    border-color: var(--fp-primary);
    background: var(--fp-primary-light);
}

.cwb-time-slot.selected {
    background: var(--fp-primary);
    border-color: var(--fp-primary);
    color: white;
}

.cwb-time-slot.unavailable {
    background: var(--fp-bg);
    color: #cbd5e1;
    cursor: not-allowed;
    text-decoration: line-through;
}

.cwb-time-slot.booked {
    position: relative;
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
    cursor: not-allowed;
    opacity: 0.8;
    text-decoration: none;
    flex-direction: column;
    gap: 4px;
    display: flex;
}

.cwb-booked-badge {
    font-size: 10px;
    font-weight: 600;
    color: #b91c1c;
    background: #fecaca;
    padding: 2px 6px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cwb-day-unavailable {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 150px;
    font-size: 13px;
    color: var(--fp-text-muted);
    font-style: italic;
}

.cwb-more-times {
    padding: 8px;
    border: none;
    background: transparent;
    color: var(--fp-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
}

/* ========================================
   CUSTOMER FORM
   ======================================== */

.cwb-appointment-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.cwb-summary-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--fp-bg);
    border: 1px solid var(--fp-border);
    border-radius: var(--fp-radius-sm);
}

.cwb-summary-icon {
    font-size: 32px;
}

.cwb-summary-info {
    display: flex;
    flex-direction: column;
}

.cwb-summary-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--fp-primary);
}

.cwb-summary-label {
    font-size: 12px;
    color: var(--fp-text-muted);
}

.cwb-summary-price .cwb-summary-value {
    font-size: 24px;
}

.cwb-customer-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cwb-form-row {
    display: flex;
    gap: 20px;
}

.cwb-form-row-2>.cwb-form-group {
    flex: 1;
}

.cwb-form-row-3>.cwb-form-group {
    flex: 1;
}

.cwb-form-full {
    flex: 1;
}

.cwb-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cwb-form-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--fp-text-muted);
}

.cwb-form-label .required {
    color: #ef4444;
}

.cwb-input,
.cwb-textarea {
    padding: 14px 16px;
    border: 2px solid var(--fp-border);
    border-radius: var(--fp-radius-sm);
    background: var(--fp-bg);
    font-size: 15px;
    color: var(--fp-text);
    transition: var(--fp-transition);
}

.cwb-input:focus,
.cwb-textarea:focus {
    outline: none;
    border-color: var(--fp-primary);
    background: var(--fp-white);
    box-shadow: 0 0 0 3px var(--fp-primary-light);
}

.cwb-textarea {
    resize: vertical;
    min-height: 100px;
}

.cwb-form-disclaimer {
    text-align: center;
    padding: 16px;
    background: var(--fp-bg);
    border-radius: var(--fp-radius-sm);
}

.cwb-form-disclaimer p {
    margin: 0;
    font-size: 13px;
    color: var(--fp-text-muted);
}

.cwb-form-actions {
    display: flex;
    justify-content: center;
    padding-top: 16px;
}

/* ========================================
   BUTTONS
   ======================================== */

.cwb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border: none;
    border-radius: 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--fp-transition);
}

.cwb-btn-primary {
    background: linear-gradient(135deg, var(--fp-primary) 0%, var(--fp-primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(34, 113, 177, 0.3);
}

.cwb-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 113, 177, 0.4);
}

.cwb-btn-large {
    padding: 18px 48px;
    font-size: 16px;
}

.cwb-btn-block {
    width: 100%;
}

.cwb-btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   SIDEBAR
   ======================================== */

.cwb-fullpage-sidebar {
    height: fit-content;
}

/* Sticky sidebar when enabled */
.cwb-fullpage-sidebar.cwb-sidebar-sticky {
    position: -webkit-sticky;
    /* Safari support */
    position: sticky;
    top: 40px;
    align-self: flex-start;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    z-index: 100;
}

.cwb-sidebar-card {
    background: var(--fp-white);
    border-radius: var(--fp-radius);
    box-shadow: var(--fp-shadow-lg);
    overflow: hidden;
}

.cwb-sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--fp-text);
    margin: 0;
    padding: 24px;
    border-bottom: 1px solid var(--fp-border);
    background: linear-gradient(to bottom, #fafbfc, var(--fp-white));
}

.cwb-sidebar-content {
    padding: 24px;
    min-height: 150px;
}

.cwb-sidebar-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    color: var(--fp-text-muted);
}

.cwb-sidebar-icon {
    font-size: 48px;
    opacity: 0.5;
    margin-bottom: 12px;
}

.cwb-sidebar-empty p {
    font-size: 14px;
    margin: 0;
}

.cwb-sidebar-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--fp-border);
}

.cwb-sidebar-item:last-child {
    border-bottom: none;
}

.cwb-sidebar-item-label {
    font-size: 14px;
    color: var(--fp-text-muted);
}

.cwb-sidebar-item-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--fp-text);
}

.cwb-sidebar-total {
    background: var(--fp-bg);
    padding: 20px 24px;
    border-top: 1px solid var(--fp-border);
}

.cwb-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: var(--fp-text-muted);
}

.cwb-total-final {
    padding-top: 16px;
    margin-top: 8px;
    border-top: 2px solid var(--fp-border);
    font-size: 18px;
    font-weight: 700;
    color: var(--fp-text);
}

.cwb-total-final span:last-child {
    color: var(--fp-primary);
    font-size: 24px;
}

.cwb-sidebar-cta {
    padding: 20px 24px;
    border-top: 1px solid var(--fp-border);
}

/* ========================================
   LOADING & PLACEHOLDER STATES
   ======================================== */

.cwb-loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--fp-text-muted);
}

.cwb-loading-placeholder p {
    margin: 16px 0 0;
    font-size: 14px;
}

.cwb-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--fp-border);
    border-top-color: var(--fp-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.cwb-placeholder-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: var(--fp-bg);
    border-radius: var(--fp-radius-sm);
    text-align: center;
}

.cwb-placeholder-icon {
    font-size: 48px;
    opacity: 0.5;
    margin-bottom: 12px;
}

.cwb-placeholder-message p {
    font-size: 15px;
    color: var(--fp-text-muted);
    margin: 0;
}

/* ========================================
   SUCCESS BANNER
   ======================================== */

.cwb-success-banner {
    background: linear-gradient(135deg, var(--fp-secondary) 0%, #059669 100%);
    border-radius: var(--fp-radius);
    padding: 60px 40px;
    text-align: center;
    color: white;
    max-width: 700px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cwb-success-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 24px 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 40px;
    flex-shrink: 0;
}

.cwb-success-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.2;
}

.cwb-success-message {
    font-size: 16px;
    opacity: 0.9;
    margin: 0 0 32px;
    max-width: 400px;
}

.cwb-success-details {
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--fp-radius-sm);
    padding: 24px 32px;
    width: 100%;
    max-width: 400px;
    margin: 0 0 32px 0;
    backdrop-filter: blur(10px);
}

.cwb-success-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    text-align: left;
}

.cwb-success-detail-item span:first-child {
    font-weight: 500;
    opacity: 0.8;
    flex-shrink: 0;
    min-width: 80px;
}

.cwb-success-detail-item span:last-child {
    font-weight: 600;
    text-align: right;
}

.cwb-success-detail-item:last-child {
    border-bottom: none;
}

.cwb-success-actions {
    width: 100%;
    max-width: 300px;
}

.cwb-success-actions .cwb-btn {
    background: white;
    color: var(--fp-secondary);
    width: 100%;
}

/* ========================================
   MESSAGES
   ======================================== */

.cwb-messages {
    margin-bottom: 20px;
}

.cwb-message {
    padding: 16px 24px;
    border-radius: var(--fp-radius-sm);
    font-size: 14px;
}

.cwb-message-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.cwb-message-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

/* ========================================
   PAYMENT METHODS
   ======================================== */

.cwb-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cwb-payment-option {
    display: flex;
    cursor: pointer;
}

.cwb-payment-radio {
    display: none;
}

.cwb-payment-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border: 2px solid var(--fp-border);
    border-radius: var(--fp-radius-sm);
    background: var(--fp-white);
    width: 100%;
    transition: var(--fp-transition);
}

.cwb-payment-radio:checked+.cwb-payment-card {
    border-color: var(--fp-primary);
    background: var(--fp-primary-light);
}

.cwb-payment-icon {
    font-size: 28px;
}

.cwb-payment-info {
    display: flex;
    flex-direction: column;
}

.cwb-payment-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--fp-text);
}

.cwb-payment-desc {
    font-size: 13px;
    color: var(--fp-text-muted);
}

.cwb-payment-details {
    padding: 16px 20px;
    background: var(--fp-bg);
    border-radius: var(--fp-radius-sm);
    margin-top: -8px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
    .cwb-fullpage-main {
        grid-template-columns: 1fr;
        padding-left: 40px;
    }

    .cwb-section-nav {
        position: fixed;
        left: auto;
        right: 20px;
        top: auto;
        bottom: 20px;
        transform: none;
        flex-direction: row;
        padding: 12px 16px;
        max-width: calc(100% - 40px);
        overflow-x: auto;
    }

    .cwb-nav-label {
        display: none;
    }

    .cwb-fullpage-sidebar {
        position: relative;
        top: 0;
    }

    .cwb-package-grid[data-columns="4"] {
        grid-template-columns: repeat(3, 1fr);
    }

    .cwb-week-grid[data-days="7"] {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 900px) {
    .cwb-fullpage-hero {
        padding: 40px 24px;
    }

    .cwb-hero-title {
        font-size: 32px;
    }

    .cwb-fullpage-main {
        padding: 0 20px 100px;
    }

    .cwb-section-content {
        padding: 24px;
    }

    .cwb-package-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .cwb-appointment-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .cwb-form-row {
        flex-direction: column;
    }

    .cwb-week-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        overflow-x: auto;
    }
}

@media (max-width: 600px) {
    .cwb-section-nav {
        gap: 4px;
        padding: 8px 12px;
    }

    .cwb-nav-item {
        padding: 8px 12px;
    }

    .cwb-nav-number {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .cwb-fullpage-hero {
        padding: 32px 20px;
        border-radius: 0;
    }

    .cwb-hero-title {
        font-size: 26px;
    }

    .cwb-hero-subtitle {
        font-size: 15px;
    }

    .cwb-section-header {
        flex-wrap: wrap;
        padding: 20px;
    }

    .cwb-section-badge {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .cwb-section-title {
        font-size: 18px;
    }

    .cwb-vehicle-row {
        gap: 12px;
    }

    .cwb-vehicle-card {
        flex: 0 0 120px;
        padding: 16px 12px;
    }

    .cwb-vehicle-icon {
        font-size: 36px;
    }

    .cwb-package-grid {
        grid-template-columns: 1fr !important;
    }

    .cwb-addon-grid {
        grid-template-columns: 1fr !important;
    }

    .cwb-week-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .cwb-appointment-summary {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .cwb-summary-card {
        padding: 16px;
        gap: 12px;
    }

    .cwb-summary-icon {
        font-size: 24px;
    }

    .cwb-summary-value {
        font-size: 16px;
    }

    .cwb-btn-large {
        padding: 16px 32px;
        font-size: 15px;
    }
}