/**
 * Commercial Portal Styles
 * @since 1.10.0
 *
 * Uses LatePoint design system for consistency
 */

/* ============================================
   CSS Variables - LatePoint Compatible
   ============================================ */
:root {
    /* Primary colors */
    --vf-primary: #5779ef;
    --vf-primary-hover: #4b6fe6;
    --vf-primary-light: rgba(87, 121, 239, 0.12);

    /* Text colors - match LatePoint */
    --vf-text: var(--latepoint-headings-color, #14161d);
    --vf-text-muted: #7c85a3;
    --vf-body-color: var(--latepoint-body-color, #32373c);

    /* UI colors */
    --vf-secondary: #7c85a3;
    --vf-secondary-hover: #5c657d;
    --vf-success: #1dd265;
    --vf-warning: #f5a623;
    --vf-danger: #fb7f7f;
    --vf-danger-dark: #d83838;

    /* Borders and backgrounds */
    --vf-border: #cad2e0;
    --vf-border-light: #edeff6;
    --vf-bg: #f8fafc;
    --vf-bg-alt: #edeff6;
    --vf-white: #ffffff;

    /* Border radius - match LatePoint */
    --vf-radius: var(--latepoint-border-radius, 8px);
    --vf-radius-md: var(--latepoint-border-radius-md, 12px);
    --vf-radius-lg: 16px;

    /* LatePoint CSS variables used by pro-features chat */
    --latepoint-brand-primary: var(--vf-primary);
    --latepoint-border-radius: var(--vf-radius);
    --latepoint-border-radius-md: var(--vf-radius-md);
    --latepoint-body-color: var(--vf-body-color);
    --latepoint-headings-color: var(--vf-text);

    /* Shadows */
    --vf-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.08);
    --vf-shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --vf-transition: 200ms ease;
}

@supports (color: color-mix(in srgb, #000 0%, #fff 100%)) {
    :root {
        --vf-primary-hover: color-mix(in srgb, var(--vf-primary), #000 10%);
        --vf-primary-light: color-mix(in srgb, var(--vf-primary), #fff 90%);
    }
}

/* ============================================
   Base Reset - LatePoint Font Stack
   ============================================ */
.vf-commercial-portal {
    margin: 0;
    padding: 0;
    font-family: "latepoint", -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--vf-body-color);
    background: var(--vf-bg);
    min-height: 100vh;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body.vf-commercial-portal {
    font-family: "latepoint", -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    color: var(--vf-body-color) !important;
    background: var(--vf-bg) !important;
}

/* Prevent frontend theme typography from bleeding into portal UI */
body.vf-commercial-portal,
body.vf-commercial-portal .vf-portal-header,
body.vf-commercial-portal .vf-portal-main,
body.vf-commercial-portal .vf-auth-container,
body.vf-commercial-portal .vf-auth-card,
body.vf-commercial-portal .vf-login-tab,
body.vf-commercial-portal input,
body.vf-commercial-portal button,
body.vf-commercial-portal select,
body.vf-commercial-portal textarea {
    font-family: "latepoint", -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.vf-commercial-portal * {
    box-sizing: border-box;
}

.vf-commercial-portal h1,
.vf-commercial-portal h2,
.vf-commercial-portal h3,
.vf-commercial-portal h4,
.vf-commercial-portal h5,
.vf-commercial-portal h6 {
    font-family: "latepoint", -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
    color: var(--vf-text);
    margin-top: 0;
    line-height: 1.2;
}

body.vf-commercial-portal h1,
body.vf-commercial-portal h2,
body.vf-commercial-portal h3,
body.vf-commercial-portal h4,
body.vf-commercial-portal h5,
body.vf-commercial-portal h6 {
    font-family: "latepoint", -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    color: var(--vf-text) !important;
    line-height: 1.2 !important;
}

/* ============================================
   Header
   ============================================ */
.vf-portal-header {
    background: var(--vf-white);
    border-bottom: 1px solid var(--vf-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.vf-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.vf-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.vf-logo img {
    max-height: 36px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.vf-logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--vf-text);
}

.vf-portal-nav {
    display: flex;
    gap: 0.5rem;
}

.vf-portal-nav a {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--vf-text-muted);
    border-radius: var(--vf-radius);
    font-weight: 500;
    transition: var(--vf-transition);
}

.vf-portal-nav a:hover,
.vf-portal-nav a.active {
    color: var(--vf-primary);
    background: var(--vf-primary-light);
}

/* User Menu */
.vf-portal-user {
    position: relative;
}

.vf-user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: var(--vf-radius);
    transition: var(--vf-transition);
}

.vf-user-menu-toggle:hover {
    background: var(--vf-bg);
}

.vf-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--vf-primary);
    color: var(--vf-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.vf-user-name {
    font-weight: 500;
    color: var(--vf-text);
}

.vf-icon-chevron {
    color: var(--vf-text-muted);
}

.vf-user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--vf-white);
    border: 1px solid var(--vf-border);
    border-radius: var(--vf-radius);
    box-shadow: var(--vf-shadow-lg);
    min-width: 180px;
    display: none;
    z-index: 101;
}

.vf-portal-user.is-open .vf-user-dropdown,
.vf-user-dropdown:focus-within {
    display: block;
}

.vf-user-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--vf-text);
    transition: var(--vf-transition);
}

.vf-user-dropdown a:hover {
    background: var(--vf-bg);
}

/* Mobile Menu */
.vf-mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 0.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
}

.vf-mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--vf-text);
}

.vf-mobile-nav {
    display: none !important;
    background: var(--vf-white);
    border-bottom: 1px solid var(--vf-border);
    padding: 1rem 1.5rem;
}

.vf-mobile-nav a {
    display: block;
    padding: 0.75rem 0;
    text-decoration: none;
    color: var(--vf-text);
    border-bottom: 1px solid var(--vf-border);
}

.vf-mobile-nav a:last-child {
    border-bottom: none;
}

.vf-mobile-nav a.active {
    color: var(--vf-primary);
}

@media (max-width: 1024px) {
    .vf-portal-nav,
    .vf-portal-user {
        display: none;
    }

    .vf-mobile-menu-toggle {
        display: flex;
    }

    .vf-mobile-nav.open {
        display: block !important;
    }
}

@media (min-width: 1025px) {
    .vf-commercial-portal .vf-mobile-nav {
        display: none !important;
    }

    .vf-commercial-portal .vf-mobile-menu-toggle {
        display: none !important;
    }
}

/* ============================================
   Main Content
   ============================================ */
.vf-portal-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: calc(100vh - 64px - 80px);
}

/* ============================================
   Footer
   ============================================ */
.vf-portal-footer {
    background: var(--vf-white);
    border-top: 1px solid var(--vf-border);
    padding: 1.5rem;
    text-align: center;
}

.vf-footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.vf-portal-footer p {
    margin: 0.25rem 0;
    color: var(--vf-text-muted);
    font-size: 0.875rem;
}

.vf-footer-contact a {
    color: var(--vf-primary);
    text-decoration: none;
}

/* ============================================
   Cards
   ============================================ */
/* Cards - LatePoint Style */
.vf-card {
    background: var(--vf-white);
    border-radius: var(--vf-radius);
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: var(--vf-shadow);
}

.vf-card.vf-card--flush {
    padding: 0;
}

.vf-booking-detail .latepoint-chat-box-w .os-booking-messages-input-w .os-bm-send-btn {
    display: inline-flex !important;
}

.vf-card h2 {
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 18px;
    font-weight: 600;
    color: var(--vf-text);
}

.vf-card h3 {
    margin: 0 0 15px;
    font-size: 15px;
    font-weight: 600;
    color: var(--vf-text);
}

.vf-tabs-wrap .latepoint-tab-content {
    display: none;
}

.vf-tabs-wrap .latepoint-tab-content.active {
    display: block;
}

.vf-booking-detail .booking-full-summary-actions,
.vf-booking-detail .order-full-summary-actions {
    display: none;
}

.vf-booking-detail .vf-summary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 12px 0 0;
}

.vf-booking-detail .vf-summary-actions .add-to-calendar-wrapper {
    position: relative;
}

.vf-booking-detail .vf-summary-actions .booking-summary-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #0f172a;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.vf-booking-detail .vf-summary-actions .booking-summary-action-btn:hover,
.vf-booking-detail .vf-summary-actions .booking-summary-action-btn:focus {
    background: #eef2f6;
    color: #0f172a;
}

.vf-booking-detail .vf-summary-actions .vf-open-cancel {
    color: #b91c1c;
    border-color: #fca5a5;
}

.vf-booking-detail .vf-summary-actions .vf-open-cancel:hover,
.vf-booking-detail .vf-summary-actions .vf-open-cancel:focus {
    color: #991b1b;
    border-color: #f87171;
}

.vf-booking-detail .vf-chat-error {
    display: none;
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 12px;
}

.vf-booking-detail .vf-cancel-policy {
    margin: 10px 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #1e293b;
    font-size: 13px;
}

.vf-booking-detail .vf-cancel-policy--late {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* ============================================
   Buttons
   ============================================ */
/* LatePoint buttons - align portal actions with LatePoint UI */
.vf-commercial-portal:not(.page-bookings) .latepoint-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 9px 14px;
    border-radius: var(--vf-radius);
    border: 1px solid transparent;
    background: var(--vf-bg-alt);
    color: var(--vf-text);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    transition: var(--vf-transition);
}

.vf-commercial-portal:not(.page-bookings) .latepoint-btn.latepoint-btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.vf-commercial-portal:not(.page-bookings) .latepoint-btn.latepoint-btn-sm {
    padding: 6px 10px;
    font-size: 12px;
}

.vf-commercial-portal:not(.page-bookings) .latepoint-btn-primary {
    background: var(--vf-primary);
    border-color: var(--vf-primary);
    color: var(--vf-white);
}

.vf-commercial-portal:not(.page-bookings) .latepoint-btn-primary:hover,
.vf-commercial-portal:not(.page-bookings) .latepoint-btn-primary:focus {
    background: var(--vf-primary-hover);
    border-color: var(--vf-primary-hover);
    color: var(--vf-white);
}

.vf-commercial-portal:not(.page-bookings) .latepoint-btn-secondary {
    background: var(--vf-bg-alt);
    border-color: var(--vf-border);
    color: var(--vf-text);
}

.vf-commercial-portal:not(.page-bookings) .latepoint-btn-secondary:hover,
.vf-commercial-portal:not(.page-bookings) .latepoint-btn-secondary:focus {
    background: #cbd1e5;
    color: var(--vf-text);
}

.vf-commercial-portal:not(.page-bookings) .latepoint-btn-outline {
    background: transparent;
    border-color: var(--vf-border);
    color: var(--vf-text);
}

/* Buttons - LatePoint Style */
.vf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 9px 14px;
    border: none;
    border-radius: var(--vf-radius);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    transition: var(--vf-transition);
    box-shadow: none;
}

.vf-btn:focus {
    outline: 0;
}

.vf-btn-primary {
    background: var(--vf-primary);
    color: var(--vf-white) !important;
}

.vf-btn-primary:hover,
.vf-btn-primary:focus {
    background: var(--vf-primary-hover);
    color: var(--vf-white) !important;
}

.vf-btn-secondary {
    background: var(--vf-bg-alt);
    color: var(--vf-text);
    border: none;
}

.vf-btn-secondary:hover,
.vf-btn-secondary:focus {
    background: #cbd1e5;
    color: var(--vf-text) !important;
}

.vf-btn-outline {
    background: transparent;
    color: var(--vf-primary);
    border: 1px solid var(--vf-primary);
}

.vf-btn-outline:hover,
.vf-btn-outline:focus {
    background: var(--vf-bg);
}

.vf-btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.vf-btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

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

.vf-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.vf-btn-next.is-disabled,
.vf-btn-next[aria-disabled="true"] {
    opacity: 1;
    cursor: pointer;
}

/* ============================================
   Forms
   ============================================ */
.vf-form-container {
    max-width: 800px;
}

.vf-form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--vf-border);
}

.vf-form-section:last-of-type {
    border-bottom: none;
}

.vf-form-section h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

/* Forms - LatePoint Style */
.vf-form-group {
    margin-bottom: 15px;
    position: relative;
}

.vf-form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 15px;
    color: var(--vf-body-color);
}

.vf-form-group label .required {
    color: var(--vf-danger-dark);
}

.vf-form-group input[type="text"],
.vf-form-group input[type="email"],
.vf-form-group input[type="password"],
.vf-form-group input[type="tel"],
.vf-form-group input[type="number"],
.vf-form-group input[type="date"],
.vf-form-group input[type="time"],
.vf-form-group select,
.vf-form-group textarea {
    display: block;
    width: 100%;
    padding: 12px 10px;
    border: 1px solid var(--vf-border);
    border-radius: var(--vf-radius);
    background-color: var(--vf-white);
    color: var(--vf-body-color);
    font-size: 15px;
    font-weight: 400;
    font-family: inherit;
    line-height: 1.2;
    transition: var(--vf-transition);
    box-shadow: none;
    -webkit-appearance: none;
}

.vf-form-group input:focus,
.vf-form-group select:focus,
.vf-form-group textarea:focus {
    outline: 0;
    border-color: var(--vf-primary);
    background-color: var(--vf-white);
    box-shadow: none;
}

.vf-form-group input::placeholder,
.vf-form-group textarea::placeholder {
    color: #959aae;
}

/* Standalone input class for use outside form-group */
.vf-input {
    display: block;
    width: 100%;
    padding: 12px 14px;
    font-size: 0.938rem;
    font-weight: 400;
    color: var(--vf-text);
    background-color: var(--vf-bg);
    border: 1px solid var(--vf-border);
    border-radius: var(--vf-radius);
    transition: var(--vf-transition);
    box-shadow: none;
    -webkit-appearance: none;
}

.vf-input:focus {
    outline: 0;
    border-color: var(--vf-primary);
    background-color: var(--vf-white);
}

.vf-input::placeholder {
    color: #959aae;
}

/* Enhanced textarea styling */
.vf-form-group textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
    font-family: inherit;
}

.vf-form-section textarea {
    min-height: 120px;
    padding: 14px 16px;
    border-radius: var(--vf-radius);
    background-color: var(--vf-bg);
    transition: var(--vf-transition);
}

.vf-form-section textarea:focus {
    background-color: var(--vf-white);
}

/* Review step textarea - special requirements */
.vf-wizard-step[data-step="3"] textarea,
#special_requirements {
    min-height: 100px;
    background-color: var(--vf-white);
    border: 1px solid var(--vf-border);
    font-family: "latepoint", -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 15px;
    line-height: 1.5;
}

#special_requirements::placeholder {
    font-family: "latepoint", -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-style: normal;
    color: var(--vf-text-muted);
    opacity: 1;
}

.vf-form-group input.is-invalid,
.vf-form-group select.is-invalid,
.vf-form-group textarea.is-invalid {
    border-color: var(--vf-danger-dark);
    box-shadow: 0 0 0 3px rgba(181, 89, 89, 0.1);
}

.vf-form-hint {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: var(--vf-text-muted);
}

/* Address Autocomplete */
.vf-address-search-wrapper {
    position: relative;
}

.vf-address-search {
    position: relative;
}

.vf-address-search input {
    display: block;
    width: 100%;
    padding: 12px 10px;
    padding-left: 36px;
    border: 1px solid var(--vf-border);
    border-radius: var(--vf-radius);
    background: var(--vf-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237c85a3' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") 10px center no-repeat;
    font-size: 15px;
    transition: var(--vf-transition);
}

.vf-address-search input:focus {
    outline: 0;
    border-color: var(--vf-primary);
    background-color: var(--vf-white);
}

.vf-address-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--vf-white);
    border: 1px solid var(--vf-border);
    border-top: none;
    border-radius: 0 0 var(--vf-radius) var(--vf-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
}

.vf-address-suggestion {
    padding: 12px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--vf-bg);
    transition: background 0.15s;
}

.vf-address-suggestion:last-child {
    border-bottom: none;
}

.vf-address-suggestion:hover,
.vf-address-suggestion.active {
    background: var(--vf-bg);
}

.vf-address-suggestion-main {
    font-weight: 500;
    color: var(--vf-text);
    margin-bottom: 2px;
}

.vf-address-suggestion-secondary {
    font-size: 13px;
    color: var(--vf-text-muted);
}

.vf-address-loading {
    padding: 12px 14px;
    color: var(--vf-text-muted);
    text-align: center;
    font-size: 14px;
}

.vf-address-no-results {
    padding: 12px 14px;
    color: var(--vf-text-muted);
    text-align: center;
    font-size: 14px;
}

/* Postcode Lookup */
.vf-postcode-lookup-wrapper {
    position: relative;
}

.vf-postcode-lookup {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.vf-postcode-input {
    text-transform: uppercase;
}

.vf-postcode-find-btn {
    white-space: nowrap;
}

.vf-address-select-w {
    margin-top: 12px;
}

.vf-address-select {
    width: 100%;
}

.vf-sub-label {
    display: block;
    margin: 10px 0 6px;
    font-size: 13px;
    color: var(--vf-text-muted);
}

.vf-address-lookup-error {
    background: #fee2e2;
    border: 2px solid #fca5a5;
    border-left: 4px solid #ef4444;
    padding: 12px 16px;
    border-radius: 6px;
    color: #991b1b;
    margin: 12px 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vf-address-lookup-error::before {
    content: "\u26a0\ufe0f";
    font-size: 1.2em;
}

.vf-postcode-lookup-wrapper.vf-lookup-loading .vf-postcode-find-btn {
    opacity: 0.6;
    pointer-events: none;
}

@media (max-width: 600px) {
    .vf-postcode-lookup {
        flex-direction: column;
        align-items: stretch;
    }
}

.vf-form-hint a {
    color: var(--vf-primary);
    text-decoration: none;
    border-bottom: 1px dotted var(--vf-primary);
}

.vf-form-hint a:hover {
    border-bottom-style: solid;
}

.vf-char-counter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 0.875rem;
    color: #64748b;
}

.vf-char-counter.is-valid {
    color: #16a34a;
    font-weight: 600;
}

.vf-char-counter .vf-char-valid {
    display: none;
}

.vf-char-counter.is-valid .vf-char-valid {
    display: inline;
}

.vf-review-summary {
    background: var(--vf-bg);
    border: 1px solid var(--vf-border);
    border-radius: var(--vf-radius);
    padding: 1.25rem;
}

.vf-review-section {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--vf-border);
}

.vf-review-section:last-child {
    border-bottom: none;
}

.vf-review-label {
    font-weight: 600;
    color: var(--vf-text);
}

.vf-review-value {
    color: var(--vf-text-muted);
    text-align: right;
    max-width: 60%;
}

.vf-review-edit {
    font-size: 0.875rem;
    color: var(--vf-primary);
    text-decoration: none;
}

.vf-review-edit:hover {
    text-decoration: underline;
}

.vf-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.vf-form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

@media (max-width: 600px) {
    .vf-form-row-2,
    .vf-form-row-3 {
        grid-template-columns: 1fr;
    }
}

.vf-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.vf-form-error {
    background: #fff4f4;
    border: 2px solid #f75160;
    color: #d00c0c;
    padding: 12px 20px;
    border-radius: var(--vf-radius);
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 0.9375rem;
}

.vf-form-success {
    background: #e0fbd1;
    border: none;
    color: #437724;
    padding: 12px 20px;
    border-radius: var(--vf-radius);
    margin-bottom: 20px;
    font-weight: 600;
}

.vf-form-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    padding-top: 20px;
}

.vf-form-note {
    margin: 0.75rem 0 0;
    font-size: 0.875rem;
    color: var(--vf-text-muted);
    text-align: center;
}

.vf-optional {
    font-weight: 400;
    color: var(--vf-text-muted);
    font-size: 0.875rem;
}

/* Checkbox/Radio */
.vf-checkbox,
.vf-radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.vf-checkbox input,
.vf-radio input {
    margin: 0;
}

.vf-radio-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Service Options */
.vf-service-options {
    display: grid;
    gap: 0.75rem;
}

.vf-service-option {
    cursor: pointer;
}

.vf-service-option input {
    display: none;
}

.vf-service-card {
    padding: 1rem;
    border: 2px solid var(--vf-border);
    border-radius: var(--vf-radius);
    transition: var(--vf-transition);
}

.vf-service-card strong {
    display: block;
    margin-bottom: 0.25rem;
}

.vf-service-card span {
    font-size: 0.875rem;
    color: var(--vf-text-muted);
}

.vf-service-option input:checked + .vf-service-card {
    border-color: var(--vf-primary);
    background: var(--vf-primary-light);
}

/* Condition Options */
.vf-condition-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

@media (max-width: 600px) {
    .vf-condition-options {
        grid-template-columns: 1fr;
    }
}

.vf-condition-option {
    cursor: pointer;
}

.vf-condition-option input {
    display: none;
}

.vf-condition-card {
    padding: 1rem;
    border: 2px solid var(--vf-border);
    border-radius: var(--vf-radius);
    text-align: center;
    transition: var(--vf-transition);
}

.vf-condition-card strong {
    display: block;
    margin-bottom: 0.25rem;
}

.vf-condition-card span {
    font-size: 0.8125rem;
    color: var(--vf-text-muted);
}

.vf-condition-option input:checked + .vf-condition-card {
    border-color: var(--vf-primary);
    background: var(--vf-primary-light);
}

/* ============================================
   Auth Pages
   ============================================ */
.vf-auth-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 1rem;
}

.vf-auth-card {
    background: var(--vf-white);
    border: 1px solid var(--vf-border);
    border-radius: var(--vf-radius-lg);
    padding: 2rem;
    width: 100%;
    max-width: 420px;
}

.vf-auth-card-wide {
    max-width: 600px;
}

.vf-auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.vf-auth-header h1 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
}

.vf-auth-header p {
    margin: 0;
    color: var(--vf-text-muted);
}

/* Login tabs */
.vf-login-tabs {
    display: flex;
    border-bottom: 2px solid var(--vf-border);
    margin-bottom: 1.5rem;
}

.vf-login-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--vf-text-muted);
    cursor: pointer;
    transition: var(--vf-transition);
}

.vf-login-tab:hover {
    color: var(--vf-body-color);
}

.vf-login-tab.active {
    color: var(--vf-primary);
    border-bottom-color: var(--vf-primary);
}

.vf-login-tab-content {
    display: none;
}

.vf-login-tab-content.active {
    display: block;
}

/* Phone input */
.vf-phone-input-wrapper {
    display: flex;
    border: 1px solid var(--vf-border);
    border-radius: var(--vf-radius);
    overflow: hidden;
    background: var(--vf-white);
}

.vf-phone-prefix {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.75rem;
    background: var(--vf-surface);
    border-right: 1px solid var(--vf-border);
    font-size: 0.875rem;
    color: var(--vf-body-color);
}

.vf-phone-input-wrapper input {
    flex: 1;
    border: none;
    padding: 0.75rem;
    font-size: 1rem;
    outline: none;
}

.vf-phone-input-wrapper:focus-within {
    border-color: var(--vf-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.vf-form-hint {
    font-size: 0.75rem;
    color: var(--vf-text-muted);
    margin-top: 0.375rem;
}

.vf-auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--vf-border);
}

.vf-auth-footer p {
    margin: 0;
    color: var(--vf-text-muted);
}

.vf-auth-footer a,
.vf-link {
    color: var(--vf-primary);
    text-decoration: none;
}

.vf-link:hover {
    text-decoration: underline;
}

/* Alerts */
.vf-alert {
    padding: 0.75rem 1rem;
    border-radius: var(--vf-radius);
    margin-bottom: 1rem;
}

.vf-alert-info {
    background: var(--vf-primary-light);
    border: 1px solid #bfdbfe;
    color: var(--vf-primary);
}

.vf-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: var(--vf-success);
}

/* OTP */
.vf-otp-helper {
    font-size: 0.875rem;
    color: var(--vf-text-muted);
    text-align: center;
    margin-bottom: 1rem;
}

.vf-otp-inputs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.vf-otp-digit {
    width: 44px;
    height: 48px;
    text-align: center;
    font-size: 1.25rem;
    border: 1px solid var(--vf-border);
    border-radius: var(--vf-radius);
    background: var(--vf-white);
    color: var(--vf-body-color);
}

.vf-otp-digit:focus {
    outline: 0;
    border-color: var(--vf-primary);
}

.vf-otp-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    font-size: 0.875rem;
}

.vf-otp-actions a {
    color: var(--vf-primary);
    text-decoration: none;
}

.vf-otp-actions a:hover {
    text-decoration: underline;
}

.vf-otp-actions a[aria-disabled="true"] {
    color: var(--vf-text-muted);
    pointer-events: none;
    text-decoration: none;
}

#vf-otp-resend.disabled {
    color: var(--vf-text-muted);
    pointer-events: none;
}

.vf-otp-message {
    background: var(--vf-primary-light);
    border: 1px solid #bfdbfe;
    color: var(--vf-primary);
    padding: 0.75rem 1rem;
    border-radius: var(--vf-radius);
    margin-bottom: 1rem;
    text-align: center;
}

.vf-form-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 0.75rem 1rem;
    border-radius: var(--vf-radius);
    margin-bottom: 1rem;
    display: none;
}

/* ============================================
   Dashboard
   ============================================ */
.vf-page-header {
    margin-bottom: 2rem;
}

.vf-page-header h1 {
    margin: 0 0 0.25rem;
    font-size: 1.75rem;
}

.vf-page-header p {
    margin: 0;
    color: var(--vf-text-muted);
}

.vf-page-header:has(.vf-btn),
.vf-page-header:has(.latepoint-btn) {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.vf-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 600px) {
    .vf-dashboard-stats {
        grid-template-columns: 1fr;
    }
}

.vf-stat-card {
    background: var(--vf-white);
    border: 1px solid var(--vf-border);
    border-radius: var(--vf-radius-lg);
    padding: 1.5rem;
    text-align: center;
}

.vf-stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--vf-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.vf-stat-label {
    font-size: 0.875rem;
    color: var(--vf-text-muted);
}

.vf-dashboard-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 600px) {
    .vf-dashboard-actions {
        flex-direction: column;
    }
}

.vf-dashboard-section {
    margin-bottom: 2rem;
}

.vf-dashboard-section h2 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
}

.vf-link-more {
    display: inline-block;
    margin-top: 0.75rem;
    color: var(--vf-primary);
    text-decoration: none;
    font-size: 0.9375rem;
}

/* Empty State */
.vf-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--vf-white);
    border: 1px solid var(--vf-border);
    border-radius: var(--vf-radius-lg);
}

.vf-empty-state svg {
    color: var(--vf-text-muted);
    margin-bottom: 1rem;
}

.vf-empty-state h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.vf-empty-state p {
    margin: 0 0 1.5rem;
    color: var(--vf-text-muted);
}

.vf-empty-state-small {
    padding: 2rem;
}

.vf-empty-state-small p {
    margin-bottom: 1rem;
}

/* Property Empty State */
.vf-property-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--vf-white);
    border: 1px solid var(--vf-border);
    border-radius: var(--vf-radius-lg);
}

.vf-property-empty-icon {
    color: var(--vf-text-muted);
    margin-bottom: 1rem;
}

.vf-property-empty h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.vf-property-empty p {
    margin: 0 0 1.5rem;
    color: var(--vf-text-muted);
}

/* ============================================
   Bookings List
   ============================================ */
.vf-bookings-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.vf-booking-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--vf-white);
    border: 1px solid var(--vf-border);
    border-radius: var(--vf-radius);
    text-decoration: none;
    color: var(--vf-text);
    transition: var(--vf-transition);
}

.vf-booking-card:hover {
    border-color: var(--vf-primary);
    box-shadow: var(--vf-shadow);
}

.vf-booking-status {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--vf-bg);
    color: var(--vf-text-muted);
}

.vf-booking-pending .vf-booking-status {
    background: #fef3c7;
    color: #92400e;
}

.vf-booking-info {
    flex: 1;
}

.vf-booking-info strong {
    display: block;
    margin-bottom: 0.125rem;
}

.vf-booking-info span {
    font-size: 0.875rem;
    color: var(--vf-text-muted);
}

.vf-booking-date {
    text-align: right;
}

.vf-booking-date strong {
    display: block;
}

.vf-booking-date span {
    font-size: 0.875rem;
    color: var(--vf-text-muted);
}

/* Bookings Table */
.vf-bookings-table-wrap {
    background: var(--vf-white);
    border: 1px solid var(--vf-border);
    border-radius: var(--vf-radius-lg);
    overflow: hidden;
}

.vf-bookings-table {
    width: 100%;
    border-collapse: collapse;
}

.vf-bookings-table th,
.vf-bookings-table td {
    padding: 0.875rem 1rem;
    text-align: left;
}

.vf-bookings-table th {
    background: var(--vf-bg);
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    color: var(--vf-text-muted);
    border-bottom: 1px solid var(--vf-border);
}

.vf-bookings-table tbody tr {
    border-bottom: 1px solid var(--vf-border);
}

.vf-bookings-table tbody tr:last-child {
    border-bottom: none;
}

.vf-bookings-table tbody tr:hover {
    background: var(--vf-bg);
}

.vf-td-date .vf-muted {
    display: block;
    font-size: 0.8125rem;
}

.vf-muted {
    color: var(--vf-text-muted);
}

/* Status Badge */
.vf-status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.vf-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.vf-status-approved {
    background: #dbeafe;
    color: #1e40af;
}

.vf-status-completed {
    background: #d1fae5;
    color: #065f46;
}

.vf-status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.vf-status-open {
    background: #dbeafe;
    color: #1e40af;
}

.vf-status-paid {
    background: #d1fae5;
    color: #065f46;
}

.vf-status-partially_paid {
    background: #fef3c7;
    color: #92400e;
}

.vf-status-draft {
    background: #e5e7eb;
    color: #374151;
}

.vf-status-void {
    background: #fee2e2;
    color: #991b1b;
}

.vf-status-uncollectible {
    background: #f3f4f6;
    color: #6b7280;
}

/* ============================================
   Properties
   ============================================ */
.vf-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.vf-property-card {
    background: var(--vf-white);
    border: 1px solid var(--vf-border);
    border-radius: var(--vf-radius-lg);
    padding: 1.25rem;
}

.vf-property-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.vf-property-header h3 {
    margin: 0;
    font-size: 1rem;
}

.vf-property-type {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: var(--vf-bg);
    border-radius: 4px;
    color: var(--vf-text-muted);
}

.vf-property-address {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    color: var(--vf-text-muted);
}

.vf-property-address svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.vf-property-specs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--vf-text-muted);
}

.vf-property-actions {
    display: flex;
    gap: 0.5rem;
}

/* Property Detail */
.vf-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

.vf-breadcrumb a {
    color: var(--vf-text-muted);
    text-decoration: none;
}

.vf-breadcrumb a:hover {
    color: var(--vf-primary);
}

.vf-page-actions {
    display: flex;
    gap: 0.75rem;
}

.vf-property-content,
.vf-booking-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .vf-property-content,
    .vf-booking-content {
        grid-template-columns: 1fr;
    }
}

.vf-property-main,
.vf-booking-main {
    min-width: 0;
}

.vf-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.vf-detail-item label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--vf-text-muted);
    margin-bottom: 0.25rem;
}

.vf-detail-item p {
    margin: 0;
}

.vf-detail-item-full {
    grid-column: 1 / -1;
}

.vf-sensitive {
    font-family: monospace;
    background: var(--vf-bg);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Jobs List */
.vf-jobs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vf-jobs-list li {
    border-bottom: 1px solid var(--vf-border);
}

.vf-jobs-list li:last-child {
    border-bottom: none;
}

.vf-jobs-list a {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 0;
    text-decoration: none;
    color: var(--vf-text);
}

.vf-job-date {
    font-weight: 500;
}

.vf-job-service {
    flex: 1;
    color: var(--vf-text-muted);
}

.vf-job-status {
    font-size: 0.75rem;
}

/* Documents List */
.vf-documents-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vf-documents-list li {
    margin-bottom: 0.5rem;
}

.vf-documents-list a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--vf-text);
    text-decoration: none;
    font-size: 0.9375rem;
}

.vf-documents-list a:hover {
    color: var(--vf-primary);
}

/* ============================================
   Booking Detail
   ============================================ */
.vf-booking-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.vf-booking-header h2 {
    margin: 0 0 0.5rem;
}

.vf-invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.vf-invoice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.vf-property-summary {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.vf-property-summary p {
    margin: 0;
    flex: 1;
}

/* Timeclock */
.vf-timeclock-entries {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.vf-timeclock-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--vf-bg);
    border-radius: var(--vf-radius);
}

.vf-timeclock-times {
    display: flex;
    gap: 1.5rem;
}

.vf-duration {
    font-weight: 600;
    color: var(--vf-primary);
}

/* Photos Grid */
.vf-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.vf-photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--vf-radius);
    overflow: hidden;
}

.vf-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vf-photo-type {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.25rem;
    background: rgba(0, 0, 0, 0.6);
    color: var(--vf-white);
    font-size: 0.6875rem;
    text-align: center;
    text-transform: uppercase;
}

/* ============================================
   Modal
   ============================================ */
.vf-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

body.vf-modal-open {
    overflow: hidden;
}

.vf-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.vf-modal-content {
    position: relative;
    background: var(--vf-white);
    border-radius: var(--vf-radius-lg);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow: auto;
}

.vf-modal-content.vf-modal-lg {
    max-width: 960px;
}

.vf-booking-detail .qr-code-on-full-summary {
    display: none;
    gap: 20px;
    margin-top: 20px;
}

.vf-booking-detail .qr-code-on-full-summary.show-vevent-qr-code {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.vf-booking-detail .qr-code-on-full-summary img {
    max-width: 100%;
    height: auto;
}

.vf-booking-detail .qr-show-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--vf-primary);
    font-size: 12px;
}

.vf-booking-detail .qr-show-trigger .latepoint-icon {
    font-size: 14px;
}

.vf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--vf-border);
}

.vf-modal-header h3 {
    margin: 0;
}

.vf-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--vf-text-muted);
    line-height: 1;
}

.vf-modal-body {
    padding: 1.5rem;
}

.vf-modal-footer {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--vf-border);
}

/* Recurring modal primary button override */
.vf-recurring-modal .latepoint-btn-primary,
.vf-recurring-modal .vf-modal-footer .latepoint-btn-primary,
.vf-recurring-modal #vf-recurring-confirm {
    background: var(--vf-primary) !important;
    border-color: var(--vf-primary) !important;
    color: #fff !important;
}

.vf-recurring-modal .latepoint-btn-primary:hover,
.vf-recurring-modal .vf-modal-footer .latepoint-btn-primary:hover,
.vf-recurring-modal #vf-recurring-confirm:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: #fff !important;
}

/* Recurring Modal */
.vf-recurring-modal .vf-modal-container {
    max-width: 980px;
    width: 100%;
}

.vf-recurring-modal-layout {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
}

.vf-recurring-modal-settings {
    flex: 1;
    min-width: 280px;
}

.vf-recurring-modal .vf-modal-content {
    max-width: 980px;
    max-height: 90vh;
    overflow: hidden;
}

.vf-recurring-modal .vf-modal-body {
    max-height: calc(90vh - 140px);
    overflow-y: auto;
}

.vf-recurring-modal-preview {
    max-height: 100%;
    overflow-y: auto;
}

.vf-recurring-intro {
    font-size: 0.875rem;
    color: var(--vf-text-muted);
    margin: 0 0 1.5rem;
}

.vf-recurring-field {
    margin-bottom: 1.25rem;
}

.vf-recurring-field > label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--vf-text-muted);
    margin-bottom: 0.5rem;
}

.vf-first-on-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--vf-bg);
    border: 1px solid var(--vf-border);
    border-radius: var(--vf-radius);
}

.vf-first-on-date {
    flex: 1;
    font-weight: 500;
}

.vf-btn-edit-date {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--vf-text-muted);
    border-radius: 4px;
}

.vf-btn-edit-date:hover {
    background: var(--vf-border-light);
    color: var(--vf-primary);
}

.vf-repeats-row,
.vf-ends-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vf-input-sm {
    width: 60px;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--vf-border);
    border-radius: var(--vf-radius);
    font-size: 0.875rem;
    text-align: center;
}

.vf-select-sm {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid var(--vf-border);
    border-radius: var(--vf-radius);
    background: var(--vf-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237c85a3' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 0.75rem center;
    font-size: 0.875rem;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.vf-ends-label {
    font-size: 0.875rem;
    color: var(--vf-text-muted);
}

/* Day Pills */
.vf-day-pills {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.vf-day-pill {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--vf-border);
    border-radius: var(--vf-radius);
    background: var(--vf-white);
    color: var(--vf-text);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--vf-transition);
}

.vf-day-pill:hover {
    border-color: var(--vf-primary);
}

.vf-day-pill.selected {
    background: #4c6fef;
    border-color: #4c6fef;
    color: #fff;
}

.vf-day-pill.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Modal Review Slots */
.vf-recurring-modal-preview {
    flex: 0 0 240px;
    background: var(--vf-bg);
    border: 1px dashed var(--vf-border);
    border-radius: var(--vf-radius);
    padding: 1rem;
}

.vf-recurring-modal-preview h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: var(--vf-text);
}

.vf-modal-slots-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 280px;
    overflow-y: auto;
}

.vf-modal-slot-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: var(--vf-white);
    border-radius: var(--vf-radius);
    font-size: 0.8125rem;
    cursor: pointer;
}

.vf-slot-date-input {
    border: 1px solid var(--vf-border);
    border-radius: var(--vf-radius-sm);
    padding: 0.25rem 0.4rem;
    font-size: 0.8125rem;
    width: 100%;
}

.vf-modal-slot-item .vf-slot-number,
.vf-modal-slot-item .vf-slot-index {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--vf-primary-light);
    color: var(--vf-primary);
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.vf-modal-slot-item .vf-slot-details,
.vf-modal-slot-item .vf-slot-info {
    flex: 1;
}

.vf-modal-slot-item .vf-slot-date {
    font-weight: 500;
    color: var(--vf-text);
}

.vf-modal-slot-item .vf-slot-time {
    font-size: 0.75rem;
    color: var(--vf-text-muted);
}

.vf-modal-slot-item .vf-slot-check {
    width: 18px;
    height: 18px;
    color: var(--vf-success);
    pointer-events: none;
}

.vf-modal-slots-summary {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--vf-border-light);
    font-size: 0.8125rem;
    color: var(--vf-text-muted);
}

.vf-modal-slots-summary strong {
    color: var(--vf-primary);
}

.vf-no-slots {
    padding: 1rem;
    text-align: center;
    color: var(--vf-text-muted);
    font-size: 0.8125rem;
}

/* Slot action buttons (pencil edit, X remove) */
.vf-slot-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

.vf-slot-edit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--vf-text-muted);
    cursor: pointer;
    border-radius: var(--vf-radius-sm);
    transition: var(--vf-transition);
}

.vf-slot-edit-btn:hover {
    background: var(--vf-primary-light);
    color: var(--vf-primary);
}

/* Strikethrough original date when changed */
.vf-slot-original {
    font-size: 0.6875rem;
    color: #dc2626;
    text-decoration: line-through;
    margin-bottom: 0.125rem;
}

/* Changed slot styling */
.vf-modal-slot-item.vf-slot-changed {
    border-left: 3px solid var(--vf-primary);
}

/* Date picker popover */
.vf-slot-datepicker {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--vf-white);
    border: 1px solid var(--vf-border);
    border-radius: var(--vf-radius);
    box-shadow: var(--vf-shadow-lg);
    padding: 0.75rem;
    margin-top: 0.25rem;
}

.vf-slot-datepicker .vf-slot-date-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--vf-border);
    border-radius: var(--vf-radius-sm);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.vf-slot-datepicker-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.vf-slot-datepicker-cancel,
.vf-slot-datepicker-save {
    padding: 0.375rem 0.75rem;
    border-radius: var(--vf-radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--vf-transition);
}

.vf-slot-datepicker-cancel {
    background: var(--vf-bg);
    border: 1px solid var(--vf-border);
    color: var(--vf-text-muted);
}

.vf-slot-datepicker-cancel:hover {
    background: var(--vf-border-light);
}

.vf-slot-datepicker-save {
    background: var(--vf-primary);
    border: 1px solid var(--vf-primary);
    color: var(--vf-white);
}

.vf-slot-datepicker-save:hover {
    background: var(--vf-primary-dark);
}

/* Update slot item to be relative for positioning datepicker */
.vf-modal-slot-item {
    position: relative;
}

/* Responsive */
@media (max-width: 640px) {
    .vf-recurring-modal-layout {
        flex-direction: column;
    }

    .vf-recurring-modal-preview {
        flex: none;
    }
}

/* ============================================
   404 Page
   ============================================ */
.vf-404-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.vf-404-page h1 {
    font-size: 1.75rem;
    margin: 0 0 0.5rem;
}

/* ============================================
   Booking Wizard
   ============================================ */
.vf-booking-wizard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Progress Bar */
.vf-wizard-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    gap: 0;
}

.vf-progress-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.vf-progress-step .step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--vf-border);
    color: var(--vf-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--vf-transition);
}

.vf-progress-step .step-label {
    color: var(--vf-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.vf-progress-step.active .step-number,
.vf-progress-step.completed .step-number {
    background: var(--vf-primary);
    color: var(--vf-white);
}

.vf-progress-step.active .step-label,
.vf-progress-step.completed .step-label {
    color: var(--vf-text);
}

.vf-progress-line {
    width: 60px;
    height: 2px;
    background: var(--vf-border);
}

.vf-progress-line.active {
    background: var(--vf-primary);
}

/* Wizard Container */
.vf-wizard-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}

.vf-wizard-main {
    background: var(--vf-white);
    border-radius: var(--vf-radius-lg);
    padding: 2rem;
    box-shadow: var(--vf-shadow);
}

/* Wizard Steps */
.vf-wizard-step {
    display: none;
}

.vf-wizard-step.active {
    display: block;
}

.vf-wizard-step h2 {
    font-size: 1.5rem;
    margin: 0 0 0.25rem;
    color: var(--vf-text);
}

.vf-step-subtitle {
    color: var(--vf-text-muted);
    margin: 0 0 2rem;
}

/* Form Sections */
.vf-form-section {
    margin-bottom: 2rem;
}

.vf-form-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: var(--vf-text);
}

.vf-helper-text {
    color: var(--vf-text-muted);
    font-size: 0.875rem;
    margin: 0 0 1rem;
}

/* Selection Cards */
.vf-selection-cards {
    display: grid;
    gap: 0.75rem;
}

.vf-selection-card {
    position: relative;
    display: block;
    cursor: pointer;
}

.vf-selection-card input[type="radio"],
.vf-selection-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.vf-selection-card .card-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--vf-white);
    border: 2px solid var(--vf-border);
    border-radius: var(--vf-radius);
    transition: var(--vf-transition);
}

.vf-selection-card:hover .card-content {
    border-color: var(--vf-primary);
    background: var(--vf-primary-light);
}

.vf-selection-card.selected .card-content,
.vf-selection-card input:checked + .card-content {
    border-color: var(--vf-primary);
    background: var(--vf-primary-light);
}

.vf-selection-card .card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vf-primary);
    flex-shrink: 0;
}

.vf-selection-card .card-details {
    flex: 1;
    min-width: 0;
}

.vf-selection-card .card-title {
    display: block;
    font-weight: 600;
    color: var(--vf-text);
}

.vf-selection-card .card-meta,
.vf-selection-card .card-desc {
    display: block;
    font-size: 0.875rem;
    color: var(--vf-text-muted);
}

.vf-selection-card .card-check {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vf-primary);
    opacity: 0;
    transition: var(--vf-transition);
}

.vf-selection-card.selected .card-check,
.vf-selection-card input:checked ~ .card-content .card-check {
    opacity: 1;
}

/* Property Selector */
.vf-property-search {
    margin-bottom: 1rem;
}

.vf-search-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid var(--vf-border);
    border-radius: 8px;
    padding: 0 0.75rem;
    background: var(--vf-white);
    transition: var(--vf-transition);
}

.vf-search-input-wrapper:focus-within {
    border-color: var(--vf-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.vf-search-icon {
    width: 20px;
    height: 20px;
    color: var(--vf-text-muted);
    flex-shrink: 0;
}

.vf-search-input-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
    background: transparent;
}

.vf-search-clear {
    background: none;
    border: none;
    color: var(--vf-text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
}

.vf-search-clear:hover {
    color: var(--vf-text);
}

.vf-property-count {
    font-size: 0.8125rem;
    color: var(--vf-text-muted);
    margin-top: 0.5rem;
}

.vf-property-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vf-property-list--scrollable {
    grid-template-columns: 1fr;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.vf-property-selector .vf-property-card {
    background: transparent;
    border: none;
    padding: 0;
}

.vf-property-card .card-icon {
    background: var(--vf-primary-light);
    border-radius: 8px;
    color: var(--vf-primary);
}

.vf-property-card.selected .card-icon,
.vf-property-card input:checked + .card-content .card-icon {
    background: var(--vf-primary);
    color: var(--vf-white);
}

.vf-property-card .card-title {
    font-size: 0.9375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vf-property-card .card-meta,
.vf-property-card .card-desc {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vf-property-card .card-check {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 2px solid var(--vf-border);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    color: transparent;
    transition: var(--vf-transition);
}

.vf-property-card.selected .card-check,
.vf-property-card input:checked ~ .card-content .card-check {
    background: var(--vf-primary);
    border-color: var(--vf-primary);
    color: var(--vf-white);
}

.vf-property-no-results {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--vf-text-muted);
}

@media (max-width: 640px) {
    .vf-property-list {
        grid-template-columns: 1fr;
    }
}

/* Service Cards Grid */
.vf-service-cards {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.vf-service-cards .vf-selection-card .card-content {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1rem;
}

.vf-service-cards .card-icon {
    width: 48px;
    height: 48px;
}

.vf-service-cards .card-check {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

/* Service Extras / Add-ons */
.vf-extras-section {
    margin-top: 1.5rem;
}

.vf-extras-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vf-extra-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--vf-white);
    border: 2px solid var(--vf-border);
    border-radius: var(--vf-radius);
    cursor: pointer;
    transition: var(--vf-transition);
}

.vf-extra-item:hover {
    border-color: var(--vf-primary);
    background: var(--vf-primary-light);
}

.vf-extra-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.vf-extra-item input:checked + .extra-content + .extra-check {
    opacity: 1;
}

.vf-extra-item input:checked ~ .extra-content + .extra-check,
.vf-extra-item:has(input:checked) {
    border-color: var(--vf-primary);
    background: var(--vf-primary-light);
}

.vf-extra-item.vf-extra-quantity {
    cursor: default;
}

.vf-extra-item.vf-extra-quantity:hover {
    border-color: var(--vf-border);
    background: var(--vf-white);
}

.vf-extra-item.vf-extra-toggle-qty .vf-extra-qty {
    opacity: 0.45;
    pointer-events: none;
}

.vf-extra-item.vf-extra-toggle-qty input:checked ~ .vf-extra-qty {
    opacity: 1;
    pointer-events: auto;
}

.vf-extra-qty {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.vf-qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--vf-border);
    background: var(--vf-white);
    border-radius: 6px;
    font-size: 16px;
    line-height: 1;
    color: var(--vf-text);
    cursor: pointer;
}

.vf-qty-btn:hover {
    border-color: var(--vf-primary);
    color: var(--vf-primary);
}

.vf-extra-qty-input {
    width: 52px;
    text-align: center;
    border: 1px solid var(--vf-border);
    border-radius: 6px;
    padding: 4px 6px;
    font-weight: 600;
    background: var(--vf-bg);
}

.vf-extra-item:has(input:checked) .extra-check {
    opacity: 1;
}

.extra-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.extra-name {
    font-weight: 500;
    color: var(--vf-text);
}

/* Combinable services */
.vf-combinable-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.vf-combinable-service {
    border: 2px solid var(--vf-border);
    border-radius: var(--vf-radius);
    padding: 0.75rem 1rem;
    background: var(--vf-white);
    transition: var(--vf-transition);
}
.vf-combinable-service:has(input:checked) {
    border-color: var(--vf-primary);
    background: var(--vf-primary-light);
}
.vf-combinable-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--vf-text);
    cursor: pointer;
}
.vf-combinable-rates {
    margin-top: 0.75rem;
}

.extra-price {
    font-weight: 600;
    color: var(--vf-primary);
    white-space: nowrap;
}

.extra-check {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vf-primary);
    opacity: 0;
    transition: var(--vf-transition);
    flex-shrink: 0;
}

/* Condition Cards */
.vf-condition-cards {
    grid-template-columns: repeat(3, 1fr);
}

.vf-condition-cards .card-content {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 1rem;
}

/* Frequency Cards */
.vf-frequency-cards {
    grid-template-columns: repeat(2, 1fr);
}

.vf-frequency-cards .card-content {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 1rem;
}

.vf-selection-card.has-badge {
    position: relative;
}

.vf-selection-card .card-badge {
    position: absolute;
    top: -8px;
    right: 12px;
    background: var(--vf-success);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Recurring Options */
.vf-recurring-options {
    margin-top: 1rem;
    padding: 1.25rem;
    background: var(--vf-bg);
    border-radius: var(--vf-radius);
    border: 1px solid var(--vf-border-light);
}

.vf-recurring-config {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.vf-recurring-settings {
    flex: 1;
    min-width: 200px;
}

.vf-recurring-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.vf-recurring-row:last-child {
    margin-bottom: 0;
}

.vf-recurring-label {
    font-size: 0.875rem;
    color: var(--vf-text-muted);
}

.vf-quote-day-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--vf-border);
    border-radius: var(--vf-radius);
    background: var(--vf-white);
    color: var(--vf-text);
    cursor: pointer;
    transition: var(--vf-transition);
}

.vf-quote-day-chip input[type="checkbox"] {
    margin: 0;
}

.vf-quote-day-chip.is-selected {
    background: #4c6fef;
    border-color: #4c6fef;
    color: #fff;
}

.vf-quote-day-chip.is-selected span {
    color: #fff;
}

#summary-recurring-dates {
    display: block;
    white-space: pre-line;
}

.vf-select-inline {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid var(--vf-border);
    border-radius: var(--vf-radius);
    background: var(--vf-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237c85a3' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 0.75rem center;
    font-size: 0.875rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.vf-input-inline {
    width: 60px;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--vf-border);
    border-radius: var(--vf-radius);
    text-align: center;
    font-size: 0.875rem;
}

/* Review Slots Panel */
.vf-review-slots {
    flex: 0 0 220px;
    background: var(--vf-white);
    border: 1px dashed var(--vf-border);
    border-radius: var(--vf-radius);
    padding: 1rem;
}

.vf-review-slots h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: var(--vf-text);
}

.vf-slots-note {
    margin: 0.75rem 0 0;
    font-size: 0.8125rem;
    color: var(--vf-text-muted);
}

.vf-asap-note {
    margin: 0.5rem 0 0;
    font-size: 0.8125rem;
    color: var(--vf-text-muted);
}

.vf-checkbox-card.is-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.vf-checkbox-card.is-disabled input {
    pointer-events: none;
}

.vf-slots-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.vf-slot-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: var(--vf-bg);
    border-radius: var(--vf-radius);
    font-size: 0.8125rem;
}

.vf-slot-number {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--vf-primary-light);
    color: var(--vf-primary);
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.75rem;
}

.vf-slot-details {
    flex: 1;
}

.vf-slot-date {
    font-weight: 500;
    color: var(--vf-text);
}

.vf-slot-time {
    font-size: 0.75rem;
    color: var(--vf-text-muted);
}

.vf-slot-check {
    width: 18px;
    height: 18px;
    color: var(--vf-success);
    pointer-events: none;
}

.vf-slots-summary {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--vf-border-light);
    font-size: 0.8125rem;
    color: var(--vf-text-muted);
}

.vf-slots-summary strong {
    color: var(--vf-primary);
}

/* Legacy pill buttons (keep for backward compat) */
.vf-options-label {
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0 0 0.75rem;
}

.vf-pill-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.vf-pill-btn {
    cursor: pointer;
}

.vf-pill-btn input {
    position: absolute;
    opacity: 0;
}

.vf-pill-btn span {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--vf-white);
    border: 1px solid var(--vf-border);
    border-radius: 20px;
    font-size: 0.875rem;
    transition: var(--vf-transition);
}

.vf-pill-btn:hover span {
    border-color: var(--vf-primary);
}

.vf-pill-btn.selected span,
.vf-pill-btn input:checked + span {
    background: var(--vf-primary);
    border-color: var(--vf-primary);
    color: white;
}

/* LatePoint Calendar Wrapper */
.vf-latepoint-calendar-wrapper {
    background: var(--vf-bg);
    border-radius: var(--vf-radius);
    padding: 1.5rem;
    min-height: 300px;
}

.vf-calendar-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--vf-text-muted);
}

.vf-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--vf-border);
    border-top-color: var(--vf-primary);
    border-radius: 50%;
    animation: vf-spin 0.8s linear infinite;
    margin-bottom: 1rem;
}

@keyframes vf-spin {
    to { transform: rotate(360deg); }
}

.vf-selected-datetime {
    margin-top: 1rem;
}

.vf-datetime-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--vf-primary-light);
    border: 1px solid var(--vf-primary);
    border-radius: var(--vf-radius);
    color: var(--vf-primary);
}

.vf-datetime-display svg {
    flex-shrink: 0;
}

.vf-datetime-display span {
    flex: 1;
    font-weight: 500;
}

.vf-btn-change {
    background: none;
    border: none;
    color: var(--vf-primary);
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: underline;
}

/* LatePoint Calendar Integration */
.latepoint-calendar-wrapper {
    min-height: 400px;
}

.latepoint-calendar-wrapper .latepoint-booking-form-element {
    max-width: 100%;
}

/* Checkbox Card */
.vf-checkbox-card {
    display: block;
    cursor: pointer;
}

.vf-checkbox-card input {
    position: absolute;
    opacity: 0;
}

.vf-checkbox-card .checkbox-content {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: var(--vf-white);
    border: 2px solid var(--vf-border);
    border-radius: var(--vf-radius);
    transition: var(--vf-transition);
}

.vf-checkbox-card:hover .checkbox-content {
    border-color: var(--vf-primary);
}

.vf-checkbox-card input:checked + .checkbox-content {
    border-color: var(--vf-primary);
    background: var(--vf-primary-light);
}

.vf-checkbox-card .checkbox-title {
    font-weight: 600;
    color: var(--vf-text);
}

.vf-checkbox-card .checkbox-desc {
    font-size: 0.875rem;
    color: var(--vf-text-muted);
}

/* Review Card */
.vf-review-card {
    background: var(--vf-bg);
    border-radius: var(--vf-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.vf-review-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--vf-border);
}

.vf-review-row:last-child {
    border-bottom: none;
}

.vf-review-row .review-label {
    color: var(--vf-text-muted);
}

.vf-review-row .review-value {
    font-weight: 500;
    color: var(--vf-text);
    text-align: right;
}

/* Info Box */
.vf-info-box {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--vf-primary-light);
    border-radius: var(--vf-radius);
    margin-bottom: 1.5rem;
}

.vf-info-box svg {
    flex-shrink: 0;
    color: var(--vf-primary);
}

.vf-info-box p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--vf-text);
}

/* Wizard Actions */
.vf-wizard-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--vf-border);
    margin-top: 2rem;
}

.vf-wizard-actions .vf-btn-next:only-child,
.vf-wizard-actions .vf-btn[type="submit"]:only-child,
.vf-wizard-actions .latepoint-btn[type="submit"]:only-child {
    margin-left: auto;
}

.vf-btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
}

.vf-service-rates {
    background: var(--vf-white);
    border: 1px solid var(--vf-border);
    border-radius: var(--vf-radius-lg);
    padding: 1rem;
    margin-top: 1rem;
}

.vf-rate-category {
    margin-bottom: 1rem;
}

.vf-rate-category h4 {
    font-size: 0.9rem;
    margin: 0 0 0.5rem;
    color: var(--vf-text);
}

.vf-rate-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vf-rate-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--vf-border);
    border-radius: 10px;
    cursor: pointer;
    background: var(--vf-bg);
}

.vf-rate-option input {
    margin: 0;
}

.vf-rate-option .rate-details {
    flex: 1;
}

.vf-rate-option .rate-name {
    font-weight: 600;
    color: var(--vf-text);
    display: block;
}

.vf-rate-option .rate-meta {
    font-size: 0.8rem;
    color: var(--vf-text-muted);
}

.vf-rate-option .rate-price {
    font-weight: 600;
    color: var(--vf-primary);
}

.vf-btn svg,
.latepoint-btn svg {
    vertical-align: middle;
}

.vf-btn-secondary {
    background: var(--vf-white);
    border: 1px solid var(--vf-border);
    color: var(--vf-text);
}

.vf-btn-secondary:hover {
    background: var(--vf-bg);
}

/* Booking Summary Sidebar */
.vf-booking-summary {
    position: sticky;
    top: 100px;
}

.vf-summary-card {
    background: var(--vf-white);
    border-radius: var(--vf-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--vf-shadow);
    margin-bottom: 1rem;
}

.vf-summary-card h3 {
    font-size: 1rem;
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--vf-border);
}

.vf-summary-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.vf-summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.vf-summary-item .item-label {
    color: var(--vf-text-muted);
}

.vf-summary-item .item-value {
    font-weight: 500;
    color: var(--vf-text);
    word-break: break-word;
    text-align: right;
}

.vf-summary-note {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--vf-border);
}

.vf-summary-note p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--vf-text-muted);
    text-align: center;
}

.vf-cart-section {
    margin: 1rem 0;
}

.vf-summary-totals {
    margin: 1rem 0;
    padding-top: 0.75rem;
    border-top: 1px solid var(--vf-border);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vf-summary-total .item-value {
    font-weight: 700;
}

.vf-summary-vat-note .item-value {
    font-size: 0.8125rem;
    color: var(--vf-text-muted);
}

.vf-cart-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cart-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid var(--vf-border);
    border-radius: 10px;
    position: relative;
}

.cart-item-name {
    font-weight: 600;
    color: var(--vf-text);
    word-break: break-word;
    overflow-wrap: break-word;
}

.cart-item-meta {
    font-size: 0.8125rem;
    color: var(--vf-text-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cart-item-price {
    font-weight: 600;
    color: var(--vf-primary);
}

.vf-missing-rate {
    color: #b45309;
}

.cart-item-meta-note {
    font-style: italic;
    color: var(--vf-text-muted);
}

.cart-remove {
    position: absolute;
    top: 6px;
    right: 8px;
    border: none;
    background: transparent;
    color: var(--vf-text-muted);
    cursor: pointer;
    font-size: 1rem;
}

.vf-help-card {
    background: var(--vf-white);
    border-radius: var(--vf-radius-lg);
    padding: 1.25rem;
    box-shadow: var(--vf-shadow);
}

.vf-help-card h4 {
    font-size: 0.875rem;
    margin: 0 0 0.5rem;
}

.vf-help-card p {
    font-size: 0.875rem;
    color: var(--vf-text-muted);
    margin: 0 0 0.75rem;
}

.vf-help-link {
    color: var(--vf-primary);
    text-decoration: none;
    font-size: 0.875rem;
}

.vf-help-link:hover {
    text-decoration: underline;
}

/* Link Add */
.vf-link-add {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--vf-primary);
    text-decoration: none;
}

.vf-link-add:hover {
    text-decoration: underline;
}

/* ============================================
   Property Photo Upload
   ============================================ */
.vf-property-photos {
    margin-top: 1rem;
}

.vf-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.vf-photo-grid:empty {
    display: none;
}

.vf-photo-grid .vf-photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--vf-radius);
    overflow: hidden;
    background: var(--vf-bg);
}

.vf-photo-grid .vf-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* Photo Lightbox */
.vf-lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.vf-lightbox-overlay.active {
    display: flex;
}

.vf-lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--vf-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    cursor: default;
}

.vf-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.vf-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.vf-photo-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    transition: var(--vf-transition);
}

.vf-photo-remove:hover {
    background: rgba(220, 38, 38, 0.9);
}

.vf-photo-grid .vf-file-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--vf-bg-alt);
    border: 1px solid var(--vf-border);
    padding: 8px;
}

.vf-photo-grid .vf-file-item .vf-file-icon {
    color: var(--vf-secondary);
    margin-bottom: 4px;
}

.vf-photo-grid .vf-file-item .vf-file-name {
    font-size: 10px;
    color: var(--vf-text-muted);
    text-align: center;
    word-break: break-all;
    line-height: 1.2;
}

.vf-photo-upload-area {
    position: relative;
    background: var(--vf-white);
    border: 1px dashed var(--vf-border);
    border-radius: var(--vf-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--vf-transition);
    box-shadow: none;
}

.vf-photo-upload-area:hover {
    border-color: var(--vf-primary);
    background: rgba(87, 121, 239, 0.02);
}

.vf-photo-upload-area.dragover {
    border-color: var(--vf-primary);
    background: rgba(87, 121, 239, 0.05);
}

.vf-photo-upload-area .vf-photo-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.vf-upload-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--vf-text-muted);
}

.vf-upload-prompt svg {
    color: var(--vf-border);
    margin-bottom: 0.25rem;
}

.vf-upload-prompt span {
    font-size: 0.9375rem;
}

.vf-upload-hint {
    font-size: 0.8125rem !important;
    color: var(--vf-text-muted);
}

/* Photo preview during upload */
.vf-photo-uploading {
    opacity: 0.6;
}

.vf-photo-uploading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--vf-primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Optional Label */
.optional {
    font-weight: 400;
    color: var(--vf-text-muted);
}

/* Responsive */
@media (max-width: 900px) {
    .vf-wizard-container {
        grid-template-columns: 1fr;
    }

    .vf-booking-summary {
        position: static;
        order: -1;
    }

    .vf-wizard-progress {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .vf-progress-step .step-label {
        display: none;
    }

    .vf-progress-line {
        width: 30px;
    }

    .vf-condition-cards {
        grid-template-columns: 1fr;
    }

    .vf-frequency-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .vf-wizard-main {
        padding: 1.5rem 1rem;
    }

    .vf-service-cards {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Week Calendar - Housekeep Style (LatePoint classes)
   ============================================ */

.vf-week-calendar {
    background: var(--vf-white);
    border-radius: var(--vf-radius-md);
    overflow: hidden;
}

.vf-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--vf-bg);
    border-bottom: 1px solid var(--vf-border-light);
}

.vf-calendar-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--vf-white);
    border: 1px solid var(--vf-border);
    border-radius: var(--vf-radius);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--vf-text);
    cursor: pointer;
    transition: all var(--vf-transition);
}

.vf-calendar-nav:hover:not(.disabled) {
    border-color: var(--vf-primary);
    color: var(--vf-primary);
}

.vf-calendar-nav.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.vf-calendar-nav svg {
    width: 16px;
    height: 16px;
}

.vf-calendar-title {
    text-align: center;
}

.vf-month-year {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--vf-text);
}

.vf-date-range {
    display: block;
    font-size: 0.8125rem;
    color: var(--vf-text-muted);
    margin-top: 0.125rem;
}

.vf-week-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    padding: 1rem;
}

.vf-day-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.25rem;
}

.vf-day-header {
    padding: 0.5rem 0;
    text-align: center;
}

.vf-weekday {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--vf-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Use LatePoint day classes */
.vf-week-calendar .os-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 70px;
    padding: 0.5rem;
    border-radius: var(--vf-radius);
    cursor: pointer;
    transition: all var(--vf-transition);
    border: 2px solid transparent;
    position: relative;
}

.vf-week-calendar .os-day:not(.os-not-available):not(.os-day-passed):hover {
    background: var(--vf-bg);
    border-color: var(--vf-primary);
}

.vf-week-calendar .os-day:not(.os-not-available):not(.os-day-passed):focus {
    outline: none;
    border-color: var(--vf-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--vf-primary), transparent 80%);
}

.vf-week-calendar .os-day.selected {
    background: var(--vf-primary-light);
    border-color: var(--vf-primary);
}

.vf-week-calendar .os-day.os-today .os-day-number {
    background: var(--vf-primary);
    color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vf-week-calendar .os-day.os-not-available,
.vf-week-calendar .os-day.os-day-passed {
    cursor: default;
    opacity: 0.5;
}

.vf-week-calendar .os-day-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    position: relative;
}

.vf-week-calendar .os-day-number {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--vf-text);
}

.vf-week-calendar .os-day-status {
    width: 100%;
    height: 4px;
    background: var(--vf-border-light);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.25rem;
}

.vf-week-calendar .os-day-status .day-available {
    height: 100%;
    background: var(--vf-success);
    border-radius: 2px;
}

.vf-week-calendar .os-available-slots-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--vf-text);
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--vf-transition);
    z-index: 10;
}

.vf-week-calendar .os-available-slots-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -4px;
    border-width: 4px;
    border-style: solid;
    border-color: var(--vf-text) transparent transparent transparent;
}

.vf-week-calendar .os-day:hover .os-available-slots-tooltip {
    opacity: 1;
    visibility: visible;
}

.vf-day-unavailable {
    font-size: 0.6875rem;
    color: var(--vf-text-muted);
    margin-top: 0.25rem;
}

/* ============================================
   Month Calendar
   ============================================ */

.vf-calendar-month {
    background: var(--vf-white);
    border-radius: var(--vf-radius-md);
    overflow: hidden;
}

.vf-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
    padding: 0 1rem 0.5rem;
}

.vf-calendar-day-header {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--vf-text-muted);
    padding: 0.5rem 0;
}

.vf-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
    padding: 0 1rem 1rem;
}

.vf-calendar-day {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--vf-text);
    text-align: center;
    padding: 0.625rem 0.25rem;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    font-weight: 500;
    transition: all 0.15s ease;
    min-height: 44px;
}

.vf-calendar-day:hover:not(.vf-day-disabled):not(.vf-day-empty) {
    background: #eff6ff;
    color: #2563eb;
}

.vf-calendar-day.selected {
    background: var(--vf-primary);
    color: #fff;
    font-weight: 700;
}

.vf-calendar-day.vf-day-today {
    background: #fef3c7;
    color: #92400e;
    font-weight: 700;
}

.vf-calendar-day.selected.vf-day-today {
    background: var(--vf-primary);
    color: #fff;
}

.vf-calendar-day.vf-day-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.vf-calendar-day.vf-day-empty {
    cursor: default;
}

.vf-calendar-day.vf-day-available::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 25%;
    right: 25%;
    height: 3px;
    background: #22c55e;
    border-radius: 2px;
}

.vf-calendar-day-number {
    display: inline-block;
}

/* Time Slots Section */
.vf-timeslots-section {
    padding: 1.25rem;
    border-top: 1px solid var(--vf-border-light);
    animation: vfFadeIn 0.3s ease;
}

@keyframes vfFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.vf-timeslots-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--vf-text);
    margin-bottom: 1rem;
}

.vf-selected-date-text {
    color: var(--vf-primary);
    text-decoration: underline;
}

.vf-slots-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.75rem;
}

.vf-time-slot {
    padding: 0.75rem 0.5rem !important;
    font-size: 0.875rem !important;
    text-align: center;
    transition: all var(--vf-transition);
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    background: #fff !important;
    border: 2px solid var(--vf-primary) !important;
    color: var(--vf-primary) !important;
}

.vf-time-slot:hover,
.vf-latepoint-calendar-wrapper .vf-time-slot:hover,
.vf-timeslots-grid .vf-time-slot:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
    background: var(--vf-primary) !important;
    color: #fff !important;
    border-color: var(--vf-primary) !important;
}

.vf-time-slot:focus-visible {
    outline: 2px solid var(--vf-primary);
    outline-offset: 2px;
}

.vf-time-slot.selected {
    background: var(--vf-primary) !important;
    color: white !important;
    border-color: var(--vf-primary) !important;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.25);
}

.vf-no-slots {
    text-align: center;
    padding: 2rem;
    color: var(--vf-text-muted);
    font-size: 0.9375rem;
}

/* Recurring Preview */
.vf-recurring-preview {
    background: var(--vf-primary-light);
    border: 1px solid color-mix(in srgb, var(--vf-primary), transparent 70%);
    border-radius: var(--vf-radius);
    padding: 1rem;
    margin-top: 1rem;
}

.vf-recurring-preview h5 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--vf-text);
    margin: 0 0 0.75rem 0;
}

.vf-recurring-preview ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.vf-recurring-preview li {
    font-size: 0.8125rem;
    color: var(--vf-body-color);
    padding: 0.375rem 0.75rem;
    background: var(--vf-white);
    border-radius: 4px;
}

.vf-recurring-preview li strong {
    color: var(--vf-primary);
}

/* Responsive week calendar */
@media (max-width: 768px) {
    .vf-calendar-header {
        flex-direction: column;
        gap: 1rem;
    }

    .vf-calendar-nav span {
        display: none;
    }

    .vf-week-days {
        gap: 0.25rem;
        padding: 0.75rem;
    }

    .vf-day-column {
        padding: 0.125rem;
    }

    .vf-week-calendar .os-day {
        min-height: 60px;
        padding: 0.25rem;
    }

    .vf-week-calendar .os-day-number {
        font-size: 0.9375rem;
    }

    .vf-slots-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .vf-calendar-weekdays,
    .vf-calendar-grid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        gap: 0.2rem;
    }

    .vf-calendar-day {
        min-height: 40px;
        padding: 0.5rem 0.25rem;
    }
}

/* ============================================
   Info Callout (Request Flow)
   ============================================ */
.vf-info-callout {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--vf-primary-light);
    border: 1px solid color-mix(in srgb, var(--vf-primary), transparent 80%);
    border-radius: var(--vf-radius);
    padding: 0.875rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--vf-text);
}

.vf-info-callout svg {
    flex-shrink: 0;
    color: var(--vf-primary);
}

/* Preferred Time Row */
.vf-preferred-time-row {
    max-width: 200px;
}

.vf-preferred-time-row label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--vf-text);
    margin-bottom: 0.5rem;
}

.vf-preferred-time-row .optional {
    font-weight: 400;
    color: var(--vf-text-muted);
}
.vf-recurring-prompt {
    margin-bottom: 1.5rem;
}

.vf-recurring-prompt-buttons .latepoint-btn {
    background: #fff !important;
    color: var(--vf-primary) !important;
    border: 2px solid var(--vf-primary) !important;
    min-width: 70px;
}

.vf-recurring-prompt-buttons .latepoint-btn:hover {
    background: var(--vf-primary) !important;
    color: #fff !important;
    border-color: var(--vf-primary) !important;
}

/* Toast */
.vf-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: var(--vf-white);
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--vf-text);
}

.vf-toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.vf-toast--warning {
    border-left: 4px solid #f59e0b;
}

.vf-toast--error {
    border-left: 4px solid #ef4444;
}

.vf-toast-icon {
    font-weight: 700;
    font-size: 0.95rem;
}

/* Highlight Pulse */
@keyframes highlight-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.vf-highlight-pulse {
    animation: highlight-pulse 0.8s ease-in-out 2;
}

/* Dual Pricing Toggle Cards */
.vf-dual-radio {
    display: none;
}

.vf-rate-dual-card {
    border: 2px solid var(--vf-border);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-bottom: 0.5rem;
}

.vf-rate-dual-card:hover {
    border-color: var(--vf-primary);
}

.vf-rate-dual-card.selected {
    border-color: var(--vf-primary);
    box-shadow: 0 0 0 1px var(--vf-primary);
}

.vf-rate-dual-card .rate-details {
    margin-bottom: 0.75rem;
}

.vf-rate-dual-card .rate-name {
    font-weight: 600;
    font-size: 0.9375rem;
}

.vf-dual-toggle {
    display: flex;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--vf-border);
}

.vf-toggle-option {
    flex: 1;
    padding: 10px 12px;
    text-align: center;
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 500;
    background: var(--vf-surface, #fff);
    color: var(--vf-text-muted);
    border: none;
    transition: background 0.2s, color 0.2s;
    line-height: 1.3;
}

.vf-toggle-option:first-child {
    border-right: 1px solid var(--vf-border);
}

.vf-toggle-option.active {
    background: var(--vf-primary);
    color: #fff;
}

.vf-toggle-option .toggle-price {
    display: block;
    font-weight: 700;
    font-size: 0.875rem;
    margin-top: 2px;
}

/* Category Tabs */
.vf-category-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--vf-border);
    margin-bottom: 1rem;
}

.vf-category-tab {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--vf-text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.vf-category-tab:hover {
    color: var(--vf-text);
}

.vf-category-tab.active {
    color: var(--vf-primary);
    border-bottom-color: var(--vf-primary);
}

.vf-category-panel.hidden {
    display: none;
}

/* "Other" Service Description Form */
.vf-service-other-form textarea {
    width: 100%;
    resize: vertical;
    min-height: 100px;
}

.vf-service-other-form select {
    margin-top: 0.75rem;
}

/* Sidebar Hierarchy */
.cart-item-addon .cart-item-name {
    color: var(--vf-text-muted);
    font-weight: 500;
}

.cart-item-combinable {
    border-left: 2px solid var(--vf-border);
    padding-left: 0.75rem;
}

/* Commercial Portal Chat UI Improvements */
.vf-commercial-chat-input,
.latepoint-chat-box-w .os-booking-messages-input {
    min-height: 80px;
    resize: vertical;
    padding: 12px;
    line-height: 1.5;
    font-family: inherit;
}

.vf-commercial-chat-messages,
.latepoint-chat-box-w .booking-messages-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 16px;
    padding: 12px;
}

/* Single Booking Chat View */
.vf-single-chat-container {
    display: flex;
    flex-direction: column;
    height: 600px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
}

/* Messages List */
.vf-messages-list {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: #f9f9f9;
}

.vf-message {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 20px;
    max-width: 85%;
}

.vf-message.message-from-customer {
    margin-left: auto;
    text-align: right;
    flex-direction: row-reverse;
}

.vf-message.message-from-admin {
    margin-right: auto;
}

.vf-message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffffff;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: 0 0 0 4px #ffffff;
}

.vf-message-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 100%;
}

.message-author {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 4px;
}

.message-content {
    background: #edeff6;
    padding: 12px 16px;
    border-radius: 10px;
    box-shadow: none;
    word-wrap: break-word;
    line-height: 1.5;
}

.message-content a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
}

.message-from-customer .message-content {
    background: #edeff6;
    color: #363e4c;
}

.message-from-admin .message-content {
    background: #2d53de;
    color: #fff;
}

.message-time {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.no-messages {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

/* Message Composer */
.vf-message-form {
    border-top: 1px solid #e5e7eb;
    padding: 16px;
    background: #fff;
}

.message-composer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vf-message-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    min-height: 60px;
    max-height: 150px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
}

.vf-message-input:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.vf-message-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.vf-attach-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #4b5563;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
}

.vf-attach-btn:hover {
    border-color: #cbd5f5;
    color: #2d53de;
}

.vf-message-file-input {
    display: none;
}

.vf-attachment-preview {
    display: none;
    font-size: 12px;
    color: #6b7280;
}

.vf-attachment-preview .vf-attachment-name {
    font-weight: 600;
    color: #111827;
    margin-right: 8px;
}

.vf-attachment-preview .vf-attachment-remove {
    border: 0;
    background: none;
    color: #dc2626;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.vf-btn-send {
    padding: 12px 24px;
    background: #2196f3;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
    white-space: nowrap;
}

.vf-btn-send:hover {
    background: #1976d2;
}

.vf-btn-send:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ============================================
   Commercial Portal Enhancements
   ============================================ */
.vf-property-selector {
    margin-top: 1.5rem;
}

.vf-property-selector .vf-property-form {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--vf-border-light);
    border-radius: var(--vf-radius);
    background: var(--vf-bg);
}

.vf-property-selector .vf-postcode-lookup-wrapper {
    border: 1px solid var(--vf-border-light);
    border-radius: var(--vf-radius);
    padding: 1rem;
    background: var(--vf-white);
    margin-bottom: 1rem;
}

.vf-property-selector .vf-postcode-find-btn {
    white-space: nowrap;
}

.required-asterisk {
    color: var(--vf-danger-dark);
    margin-left: 4px;
}

.vf-rate-field-label {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--vf-text-muted);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.vf-rate-options--grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.vf-rate-option--tile {
    align-items: flex-start;
    background: var(--vf-white);
    border: 1px solid var(--vf-border);
    padding: 12px 14px;
    border-radius: var(--vf-radius);
    transition: var(--vf-transition);
}

.vf-rate-option--tile:hover {
    border-color: var(--vf-primary);
    box-shadow: 0 0 0 2px var(--vf-primary-light);
}

.vf-rate-option--tile .rate-price {
    color: var(--vf-primary);
    font-weight: 600;
}

.vf-rate-option--tile input:checked ~ .rate-details .rate-name {
    color: var(--vf-primary);
}

.vf-rate-preview {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--vf-border-light);
    border-radius: var(--vf-radius);
    background: var(--vf-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.vf-rate-preview-label {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--vf-text-muted);
    font-weight: 600;
}

.vf-rate-preview-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--vf-text);
}

.vf-rate-preview-description {
    font-size: 0.85rem;
    color: var(--vf-text-muted);
}

@media (max-width: 640px) {
    .vf-rate-preview {
        flex-direction: column;
        align-items: flex-start;
    }
}

.vf-quote-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2rem;
}

.vf-quote-request {
    max-width: 1200px;
    margin: 0 auto;
}

.vf-quote-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.vf-quote-rate {
    background: var(--vf-bg);
    border: 1px solid var(--vf-border-light);
    padding: 1rem 1.25rem;
    border-radius: var(--vf-radius);
    min-width: 220px;
    text-align: left;
}

.vf-quote-rate-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--vf-text-muted);
    font-weight: 600;
}

.vf-quote-rate-amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--vf-text);
}

.vf-quote-rate-suffix {
    font-size: 0.8rem;
    color: var(--vf-text-muted);
    margin-left: 4px;
}

.vf-quote-rate-company {
    margin-top: 0.35rem;
    font-size: 0.9rem;
    color: var(--vf-text-muted);
}

.vf-quote-sidebar {
    position: sticky;
    top: 90px;
    align-self: start;
}

@media (max-width: 1024px) {
    .vf-quote-layout {
        grid-template-columns: 1fr;
    }

    .vf-quote-sidebar {
        position: static;
    }
}

/* Invoice logo: preserve aspect ratio */
.vf-commercial-portal .invoice-logo img {
    width: auto !important;
    height: auto !important;
    max-height: 64px !important;
    max-width: 320px !important;
    object-fit: contain !important;
    display: block;
}

/* Bookings List - Date Group Headings */
.vf-bookings-date-group {
    margin-top: 1.25rem;
    margin-bottom: 0.25rem;
}

.vf-bookings-date-group-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--vf-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
}

/* Bookings List - Recurring Badge */
.vf-booking-recurring-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--vf-primary, #4c6fef);
    background: rgba(76, 111, 239, 0.08);
    border-radius: 999px;
    padding: 0.125rem 0.5rem;
    margin-top: 0.25rem;
}

/* Bookings List - Add-ons & Price */
.vf-booking-addons {
    color: var(--vf-text-muted);
    font-size: 0.8125rem;
}

.vf-booking-price {
    font-weight: 600;
    color: var(--vf-text);
}

.vf-booking-booked-on {
    color: var(--vf-text-muted);
    font-size: 0.8125rem;
}

/* Bookings Filter Bar */
.vf-commercial-portal .vf-bookings-filter-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    padding: 0.9rem 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid color-mix(in srgb, var(--vf-border), #ffffff 18%);
    border-radius: var(--vf-radius-md);
    box-shadow: 0 1px 4px rgba(20, 22, 29, 0.06);
}

.vf-commercial-portal .vf-filter-search {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex: 1 1 260px;
    min-width: 200px;
    background: var(--vf-white);
    border: 1px solid var(--vf-border);
    border-radius: 10px;
    padding: 0.48rem 0.7rem;
    box-shadow: inset 0 1px 1px rgba(20, 22, 29, 0.03);
}

.vf-commercial-portal .vf-filter-search:focus-within {
    border-color: var(--vf-primary);
    box-shadow: 0 0 0 3px rgba(87, 121, 239, 0.16);
}

.vf-commercial-portal .vf-filter-search svg {
    flex-shrink: 0;
    color: var(--vf-text-muted);
}

.vf-commercial-portal .vf-filter-search input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.95rem;
    width: 100%;
    color: var(--vf-text);
    line-height: 1.2;
}

.vf-commercial-portal .vf-filter-search input::placeholder {
    color: color-mix(in srgb, var(--vf-text-muted), #ffffff 12%);
}

.vf-commercial-portal .vf-filter-select {
    position: relative;
    min-width: 200px;
}

.vf-commercial-portal .vf-filter-select::after {
    content: "";
    position: absolute;
    right: 0.8rem;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--vf-text-muted);
    border-bottom: 2px solid var(--vf-text-muted);
    transform: translateY(-60%) rotate(45deg);
    pointer-events: none;
}

.vf-commercial-portal .vf-filter-select select {
    width: 100%;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.5rem 2rem 0.5rem 0.7rem;
    border: 1px solid var(--vf-border);
    border-radius: 10px;
    background: var(--vf-white);
    color: var(--vf-text);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.vf-commercial-portal .vf-filter-select select:focus {
    outline: none;
    border-color: var(--vf-primary);
    box-shadow: 0 0 0 3px rgba(87, 121, 239, 0.16);
}

.vf-commercial-portal .vf-filter-status-pills {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.vf-commercial-portal .vf-status-pill {
    padding: 0.36rem 0.78rem;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid var(--vf-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--vf-text);
    cursor: pointer;
    line-height: 1;
    transition: all var(--vf-transition);
}

.vf-commercial-portal .vf-status-pill:hover {
    border-color: color-mix(in srgb, var(--vf-primary), #ffffff 25%);
    color: var(--vf-primary);
    background: color-mix(in srgb, var(--vf-primary), #ffffff 92%);
}

.vf-commercial-portal .vf-status-pill.active {
    background: var(--vf-primary, #4c6fef);
    border-color: var(--vf-primary, #4c6fef);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(76, 111, 239, 0.3);
}

/* No Results */
.vf-commercial-portal .vf-bookings-no-results {
    text-align: center;
    padding: 2rem 1rem;
    margin: 0.5rem 0 1rem;
    color: var(--vf-text-muted);
    background: #ffffff;
    border: 1px dashed var(--vf-border);
    border-radius: var(--vf-radius-md);
}

@media (max-width: 640px) {
    .vf-commercial-portal .vf-bookings-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .vf-commercial-portal .vf-filter-search,
    .vf-commercial-portal .vf-filter-select {
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
    }
}
