/* === CRITICAL: Customized Items Visibility Locks (Step 3 only) === */
body.customized-items-active[data-form-step="3"] #inventory-card-container,
body.customized-items-active[data-current-step="3"] #inventory-card-container {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    position: static !important;
}
body.customized-items-active[data-form-step="3"] #house-removal-inventory-section,
body.customized-items-active[data-current-step="3"] #house-removal-inventory-section {
    display: none !important;
}
body.customized-items-active[data-form-step="3"] #customized-items-inventory-section,
body.customized-items-active[data-current-step="3"] #customized-items-inventory-section {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
body.customized-items-active #step3-title-wrapper {
    display: none !important;
}

/* === Pets transport (Step 3) — match Other Items layout === */
body.pets-transport-active[data-form-step="3"] #pets-transport-section,
body.pets-transport-active[data-current-step="3"] #pets-transport-section {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 2rem;
}
body.pets-transport-active #step3-title-wrapper {
    display: none !important;
}

/* === Industrial transport — step 2 details, step 3 weight (skip house floors/inventory) === */
body.industrial-transport-active[data-form-step="2"] #property-type-selection-section,
body.industrial-transport-active[data-current-step="2"] #property-type-selection-section,
body.industrial-transport-active[data-form-step="2"] #generic-floors-section,
body.industrial-transport-active[data-current-step="2"] #generic-floors-section,
body.industrial-transport-active[data-form-step="2"] #pickup-lift-section,
body.industrial-transport-active[data-current-step="2"] #pickup-lift-section {
    display: none !important;
}
body.industrial-transport-active[data-form-step="2"] #industrial-section:not(.step-hidden),
body.industrial-transport-active[data-current-step="2"] #industrial-section:not(.step-hidden) {
    display: none !important;
}
body.industrial-transport-active #step3-title-wrapper,
body.industrial-transport-active[data-form-step="3"] #pickup-room-list-wrapper,
body.industrial-transport-active[data-current-step="3"] #pickup-room-list-wrapper,
body.industrial-transport-active[data-form-step="3"] #inventory-card-container,
body.industrial-transport-active[data-current-step="3"] #inventory-card-container,
body.industrial-transport-active[data-form-step="3"] #house-removal-inventory-section,
body.industrial-transport-active[data-current-step="3"] #house-removal-inventory-section,
body.industrial-transport-active[data-form-step="3"] #customized-items-inventory-section,
body.industrial-transport-active[data-current-step="3"] #customized-items-inventory-section {
    display: none !important;
}
body.industrial-transport-active[data-form-step="3"] #industrial-transport-section:not(.step-hidden),
body.industrial-transport-active[data-current-step="3"] #industrial-transport-section:not(.step-hidden) {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 2rem;
}
body.industrial-transport-active[data-form-step="4"] #delivery-property-type-selection-section,
body.industrial-transport-active[data-current-step="4"] #delivery-property-type-selection-section,
body.industrial-transport-active[data-form-step="5"] #delivery-floors-section,
body.industrial-transport-active[data-current-step="5"] #delivery-floors-section {
    display: none !important;
}

/* === Man Power Only — job details on step 3 (skip property/floors on step 2) === */
body.man-power-transport-active[data-form-step="2"] #property-type-selection-section,
body.man-power-transport-active[data-current-step="2"] #property-type-selection-section,
body.man-power-transport-active[data-form-step="2"] #generic-floors-section,
body.man-power-transport-active[data-current-step="2"] #generic-floors-section,
body.man-power-transport-active[data-form-step="2"] #pickup-lift-section,
body.man-power-transport-active[data-current-step="2"] #pickup-lift-section,
body.man-power-transport-active[data-form-step="2"] #manpower-job-description-section:not(.step-hidden),
body.man-power-transport-active[data-current-step="2"] #manpower-job-description-section:not(.step-hidden) {
    display: none !important;
}
body.man-power-transport-active #step3-title-wrapper,
body.man-power-transport-active[data-form-step="3"] #pickup-room-list-wrapper,
body.man-power-transport-active[data-current-step="3"] #pickup-room-list-wrapper,
body.man-power-transport-active[data-form-step="3"] #inventory-card-container,
body.man-power-transport-active[data-current-step="3"] #inventory-card-container,
body.man-power-transport-active[data-form-step="3"] #house-removal-inventory-section,
body.man-power-transport-active[data-current-step="3"] #house-removal-inventory-section,
body.man-power-transport-active[data-form-step="3"] #customized-items-inventory-section,
body.man-power-transport-active[data-current-step="3"] #customized-items-inventory-section {
    display: none !important;
}
body.man-power-transport-active[data-form-step="3"] #manpower-transport-section:not(.step-hidden),
body.man-power-transport-active[data-current-step="3"] #manpower-transport-section:not(.step-hidden) {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 2rem;
}
body.man-power-transport-active[data-form-step="3"] #manpower-details-section,
body.man-power-transport-active[data-current-step="3"] #manpower-details-section {
    background: #f8fbff;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08);
}
body.man-power-transport-active[data-form-step="4"] #delivery-property-type-selection-section,
body.man-power-transport-active[data-current-step="4"] #delivery-property-type-selection-section,
body.man-power-transport-active[data-form-step="5"] #delivery-floors-section,
body.man-power-transport-active[data-current-step="5"] #delivery-floors-section {
    display: none !important;
}

#pets-transport-inventory-section {
    margin-top: 2rem;
}
.dimensions-list-empty {
    padding: 12px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    color: #64748b;
    font-size: 0.9rem;
}
.pet-saved-item-summary {
    color: #1f2937;
    font-size: 0.92rem;
    margin: 0 0 10px;
}
.pet-saved-item-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.pet-saved-edit-btn,
.pet-saved-remove-btn {
    border-radius: 8px;
    padding: 6px 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.88rem;
}
.pet-saved-edit-btn {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}
.pet-saved-remove-btn {
    border: 1px solid #fecaca;
    background: #fff1f2;
    color: #b91c1c;
}
.pet-uploaded-files-label {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}
#pet-continue-with-saved-btn {
    display: none;
    margin-top: 10px;
    padding: 10px 20px;
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fdba74;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    width: 100%;
}

/* Style for new custom item button */
#custom-item-btn {
    display: block;
    margin: 32px auto 0 auto;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 12px 38px;
    box-shadow: 0 2px 8px rgba(37,99,235,0.08);
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s;
}
#custom-item-btn:hover, #custom-item-btn:focus {
    background: #174bbd;
    box-shadow: 0 4px 16px rgba(37,99,235,0.13);
    outline: none;
}

.add-custom-inventory-btn {
    display: block;
    margin: 32px auto 0 auto;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 12px 38px;
    box-shadow: 0 2px 8px rgba(37,99,235,0.08);
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s;
}
.add-custom-inventory-btn:hover, .add-custom-inventory-btn:focus {
    background: #174bbd;
    box-shadow: 0 4px 16px rgba(37,99,235,0.13);
    outline: none;
}

/* Secondary floor inventory custom-item modal controls */
.custom-inventory-modal .custom-inventory-input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 1rem;
    color: #1f2937;
    background: #fff;
}

.custom-inventory-modal .custom-inventory-input:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.custom-inventory-modal .custom-inventory-cancel,
.custom-inventory-modal .custom-inventory-add {
    appearance: none;
    -webkit-appearance: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.custom-inventory-modal .custom-inventory-cancel {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
}

.custom-inventory-modal .custom-inventory-cancel:hover,
.custom-inventory-modal .custom-inventory-cancel:focus {
    background: #eef2f7;
    border-color: #94a3b8;
    outline: none;
}

.custom-inventory-modal .custom-inventory-add {
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.custom-inventory-modal .custom-inventory-add:hover,
.custom-inventory-modal .custom-inventory-add:focus {
    background: #1d4ed8;
    border-color: #1d4ed8;
    outline: none;
}

.inventory-item.selected {
    background: #e6f0ff;
    border-left: 4px solid #2563eb;
    color: #222;
    font-weight: 500;
    transition: background 0.2s, border 0.2s;
}
#form-step-actions {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 2rem;
}
#form-step-actions .btn-primary {
    margin-left: auto;
}
.form-top-actions {
    position: relative;
    z-index: 10;
    margin-bottom: 1.5rem;
}
/* Removed conflicting styles for Back button. Only .sticky-action-btn will apply. */
.pickup-floors-image img {
    width: 100% !important;
    max-width: 160px !important;
    height: auto !important;
    display: block;
    margin: 0 auto 0 auto;
    margin-top: 0;
}
.pickup-floors-image {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 0 !important;
    margin-bottom: 1.5rem;
}


body[data-form-step="3"] .form-stepper, body[data-current-step="3"] .form-stepper {
    margin-top: 48px !important;
}
/* Ensure inventory tab icons are visible and sized */
.inventory-tab svg {
    width: 32px !important;
    margin: 0 2px;
}

/* Inventory item controls styled as in screenshot */
.inventory-item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 12px;
}

.inventory-item-add,
.inventory-item-remove {
    font-size: 1.7rem;
    color: #2196f3;
    background: #fff;
    border: 2px solid #2196f3;
    border-radius: 50%;
    cursor: pointer;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    box-sizing: border-box;
    outline: none;
}

.inventory-item-add:hover,
.inventory-item-remove:hover {
    color: #fff;
    background: #2196f3;
    border-color: #1976d2;
}

.inventory-item-count {
    min-width: 38px;
    height: 38px;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    color: #444;
    background: #fff;
    border: 1.5px solid #bdbdbd;
    border-radius: 4px;
    padding: 0 10px;
    box-sizing: border-box;
    margin: 0 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.inventory-item-remove {
    font-size: 1.6rem;
    color: #2563eb;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    cursor: pointer;
    padding: 0 12px;
    font-weight: 900;
    text-shadow: 0 2px 8px rgba(37,99,235,0.10);
    transition: color 0.15s, text-shadow 0.15s, border-color 0.15s;
    vertical-align: middle;
    line-height: 1.2;
    box-sizing: border-box;
    min-width: 36px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.inventory-item-remove:hover {
    color: #174bbd;
    border-color: #2563eb;
    text-shadow: 0 4px 16px rgba(37,99,235,0.18);
}
.inventory-floor-title {
    color: #2563eb;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    margin-bottom: 18px;
    text-shadow: 0 2px 8px rgba(37,99,235,0.08);
    text-align: center;
}

/* Multi-floor house-removal header title (e.g. "Ground Floor") */
#house-removal-inventory-section .inventory-block-header {
    position: relative;
    justify-content: flex-end !important;
    gap: 10px !important;
}

#house-removal-inventory-section .inventory-block-header > h3 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    width: max-content;
    color: #2563eb !important;
    text-align: center !important;
    font-size: 2rem;
    font-weight: 800;
}
/* lift icon grid - match icon style */
.lift-icon-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(80px, 1fr));
    gap: 12px;
    margin-bottom: 8px;
}
.lift-icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 18px 0 12px 0;
    min-width: 110px;
    min-height: 60px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #4b5563;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, color 0.2s, background 0.2s;
    text-align: center;
}
.lift-icon-btn svg {
    width: 22px;
    height: 22px;
}
.lift-icon-btn:hover {
    border-color: #4A90E2;
    color: #4A90E2;
    background: #f0f7ff;
}
.lift-icon-btn.selected, .lift-icon-btn.is-active {
    border-color: #4A90E2;
    color: #1f5fbf;
    background: #e3f2fd;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.lift-icon-btn:focus-visible {
    outline: 3px solid rgba(74, 144, 226, 0.35);
    outline-offset: 2px;
}
/* Floor icon grid - match property/service icon style */
.floor-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}
.floor-icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 6px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #4b5563;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, color 0.2s, background 0.2s;
    text-align: center;
}
.floor-icon-btn svg {
    width: 22px;
    height: 22px;
}
.floor-icon-btn:hover {
    border-color: #4A90E2;
    color: #4A90E2;
    background: #f0f7ff;
}
.floor-icon-btn.selected, .floor-icon-btn.is-active, .floor-icon-btn:focus {
    border-color: #4A90E2;
    color: #1f5fbf;
    background: #e3f2fd;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}
/* Property type icon grid - match service selection style */
.property-type-icon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 18px;
    margin-bottom: 16px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
}

#property-type-selection-section,
#delivery-property-type-selection-section {
    display: block;
    width: 100%;
}

#property-type-selection-section h2,
#delivery-property-type-selection-section h2 {
    text-align: left;
    margin-bottom: 1rem;
}

#property-type-selection-section .form-label,
#delivery-property-type-selection-section .form-label {
    display: block;
    margin-bottom: 1rem;
}

.property-type-icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 10px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #4b5563;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease;
    text-align: center;
}

.property-type-icon-btn .icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

.property-type-icon-btn:hover {
    border-color: #4A90E2;
    color: #4A90E2;
    background: #f0f7ff;
}

.property-type-icon-btn.selected, .property-type-icon-btn.is-active, .property-type-icon-btn:focus {
    border-color: #4A90E2;
    color: #1f5fbf;
    background: #e3f2fd;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.property-type-icon-grid.input-error,
#pickup-lift-option-container.input-error,
#delivery-lift-option-container.input-error,
#pickup-floors-selector.input-error,
#delivery-floors-selector.input-error {
    border: 2px solid #ef4444;
    border-radius: 12px;
    padding: 10px;
    background: #fff5f5;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14);
}

#transport-date-trigger.input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
    background: #fff5f5;
}
/* Ensure Back button is visible */
.btn-outline, .btn-primary, .btn-primary.btn-large, .btn-primary.btn-large.v2 {
    background: linear-gradient(90deg, #4A90E2 0%, #357ABD 100%) !important;
    color: #fff !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    padding: 18px 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 16px rgba(74, 144, 226, 0.12) !important;
    border: none !important;
    min-width: 180px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}
.btn-outline:hover, .btn-primary:hover, .btn-primary.btn-large:hover, .btn-primary.btn-large.v2:hover {
    background: linear-gradient(90deg, #357ABD 0%, #4A90E2 100%) !important;
}
/* lift Option Styling */
#lift-option-container {
    width: 100%;
    max-width: 600px;
    margin: 40px auto 0 auto;
    padding: 24px 18px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
#lift-option-container label {
    font-size: 1.15rem;
    font-weight: 600;
    display: block;
    margin-bottom: 12px;
}
#lift-available.form-input {
    width: 100%;
    max-width: 300px;
    font-size: 1rem;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    margin-bottom: 0;
}
#house-removal-inventory-section {
    display: none;
    position: static;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 10;
}
.add-floor-btn {
    display: block;
    margin: 32px auto 0 auto;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 12px 38px;
    box-shadow: 0 2px 8px rgba(37,99,235,0.08);
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s;
}
.add-floor-btn:hover, .add-floor-btn:focus {
    background: #174bbd;
    box-shadow: 0 4px 16px rgba(37,99,235,0.13);
    outline: none;
}
/* --- Inventory UI Redesign --- */
.inventory-tabs {
    display: flex;
    align-items: stretch;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 18px;
    background: #fff;
}

#house-removal-inventory-section .inventory-tabs,
#house-removal-inventory-section #room-items-container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#house-removal-inventory-section .inventory-tabs {
    width: 100%;
}

body.multi-floor-inventory-mode #house-removal-inventory-section > #room-tabs {
    display: none !important;
}
.inventory-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px 8px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.05rem;
    line-height: 1.15;
    text-align: center;
    color: #444;
    border-right: 1px solid #e5e7eb;
    flex: 1 1 0;
    min-width: 110px;
    transition: background 0.15s, color 0.15s;
}
.inventory-tab:last-child {
    border-right: none;
}
.inventory-tab.active, .inventory-tab:focus {
    color: #2563eb;
    background: #f3f6fa;
    font-weight: 700;
}
.inventory-tab svg {
    width: 32px !important;
    height: 32px !important;
    margin-bottom: 0 !important;
    color: #888 !important;
    fill: #888 !important;
    display: inline-block !important;
    opacity: 1 !important;
    vertical-align: middle !important;
}
.inventory-tab.active svg {
    color: #888 !important;
    fill: #888 !important;
}

/* Step 3 inventory: keep title and room navbar visible while scrolling */
body[data-form-step="3"] #house-removal-inventory-section > .inventory-floor-title {
    position: sticky;
    top: 78px;
    z-index: 35;
    background: #f9fafb;
    margin: 0 0 10px;
    padding: 8px 0 10px;
}

body[data-form-step="3"] #house-removal-inventory-section > #room-tabs {
    position: sticky;
    top: 132px;
    z-index: 34;
    background: #ffffff;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

body[data-form-step="3"] #house-removal-inventory-section > #room-items-container {
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    body[data-form-step="3"] #house-removal-inventory-section > .inventory-floor-title {
        top: 70px;
    }

    body[data-form-step="3"] #house-removal-inventory-section > #room-tabs {
        top: 118px;
    }
}
.inventory-items-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: none;
}

#house-removal-inventory-section .room-items-list {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

#house-removal-inventory-section .inventory-items-list {
    width: 100%;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
.inventory-item {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #f1f1f1;
    font-size: 1.13rem;
    color: #222;
    cursor: pointer;
    background: #fff;
    overflow: visible;
}

#house-removal-inventory-section .inventory-item {
    grid-template-columns: auto 1fr;
}
.inventory-item.selected {
    background: linear-gradient(90deg, #e6f0ff 80%, #dbeafe 100%);
    border-left: 4px solid #2563eb;
}
.inventory-item:last-child {
    border-bottom: none;
}
.inventory-item-label {
    font-weight: 500;
    grid-column: 2;
}

/* Quantity Control System - Inline with item */
.room-item-controls {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
    grid-column: 1;
}

#house-removal-inventory-section .room-item-controls {
    justify-content: flex-start;
}

.room-item-quantity-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 2px solid #2563eb;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #2563eb;
    transition: all 0.2s ease;
    font-weight: 900;
    line-height: 1;
}

.room-item-quantity-btn:hover {
    background: #eff6ff;
    border-color: #174bbd;
}

.room-item-quantity-display {
    width: 50px;
    min-width: 50px;
    max-width: 50px;
    text-align: center;
    font-weight: 600;
    color: #2563eb;
    font-size: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 4px 6px;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    appearance: textfield;
    -moz-appearance: textfield;
}

.room-item-quantity-display:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.room-item-quantity-display::-webkit-inner-spin-button,
.room-item-quantity-display::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.inventory-item-add {
    font-size: 1.6rem;
    color: #2563eb;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    cursor: pointer;
    padding: 0 12px;
    font-weight: 900;
    text-shadow: 0 2px 8px rgba(37,99,235,0.10);
    transition: color 0.15s, text-shadow 0.15s, border-color 0.15s;
    vertical-align: middle;
    line-height: 1.2;
    box-sizing: border-box;
    min-width: 36px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.inventory-item-add:hover {
    color: #174bbd;
    border-color: #2563eb;
    text-shadow: 0 4px 16px rgba(37,99,235,0.18);
}
.inventory-search {
    width: 100%;
    margin-top: 18px;
    padding: 14px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1.05rem;
    background: #fafbfc;
    color: #444;
    outline: none;
    box-sizing: border-box;
}
/* Make inventory section full width */
#house-removal-inventory-section.card-section {
    width: 100%;
    max-width: 100%;
    position: relative;
    left: auto;
    right: auto;
    transform: none;
    border-radius: 0;
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
}

#inventory-card-container {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Hide optional room entry in pickup-room-list */
.location-room-entry--optional {
    display: none !important;
}
/* Pickup room step: show floors image left of form */
/* Always show the image in step 3 and push the form to the right */
.pickup-room-flex {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 40px;
    position: relative;
    width: 100%;
    max-width: 100%;
}
.pickup-room-flex > .pickup-floors-image {
    width: 160px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin-right: 32px;
    margin-left: 0;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    background: none;
    border: none;
    border-radius: 16px;
    box-shadow: none;
    padding: 0;
    overflow: visible;
    z-index: 1;
    flex-shrink: 0;
}
.pickup-floors-image img,
.floors-illustration-img {
    width: 100% !important;
    max-width: 160px !important;
    height: auto !important;
    display: block;
    margin: 0 auto 0 auto;
    margin-top: 0;
}
.pickup-room-flex > #pickup-room-list {
    flex: 1 1 auto;
    min-width: auto;
    max-width: 100%;
    position: relative;
    z-index: 2;
    background: #ffffff;
    box-shadow: none;
    margin-left: -40px;
    padding: 1rem 1rem 1rem 40px;
    border-radius: 0 16px 16px 0;
    border: 1px solid transparent;
    box-sizing: border-box;
}

body:not(.house-removals-active):not(.office-removals-active)[data-form-step="3"] .pickup-room-flex > #pickup-room-list,
body:not(.house-removals-active):not(.office-removals-active)[data-current-step="3"] .pickup-room-flex > #pickup-room-list {
    background: #ffffff;
    border-color: #e5e7eb;
    border-radius: 10px;
    padding: 1.2rem 1.25rem;
    margin-left: 0;
}
@media (max-width: 900px) {
    .pickup-room-flex {
        flex-direction: column;
        gap: 16px;
    }
    .pickup-room-flex > .pickup-floors-image {
        margin: 0 auto 16px auto;
        width: 120px !important;
        max-width: 120px !important;
    }
    .pickup-room-flex > #pickup-room-list {
        margin-left: 0;
        padding-left: 0;
        border-radius: 0 0 16px 16px;
    }
}
.pickup-floors-image img {
    width: 100%;
    height: 500px;
    max-width: 100%;
    max-height: 600px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin: 0 auto;
    object-fit: contain;
    display: block;
}
/* Keep pickup floors image hidden by default; show only when Step 3 wrapper is actively visible. */
#pickup-room-list-wrapper .pickup-floors-image {
    display: none !important;
}

body[data-form-step="3"] #pickup-room-list-wrapper:not(.step-hidden) .pickup-floors-image,
body[data-current-step="3"] #pickup-room-list-wrapper:not(.step-hidden) .pickup-floors-image {
    display: flex !important;
}
/* Step 3 Pickup Room Form Layout Improvements */
body[data-form-step="3"] #pickup-room-list {
    display: block !important;
}
body[data-form-step="3"] .location-room-entry {
    display: contents;
}
body[data-form-step="3"] .form-group {
    margin-bottom: 12px;
}
body[data-form-step="3"] label.form-label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}
body[data-form-step="3"] .form-input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
/* #pickup-room-list should be visible in step 3 for house removals/apartment */
body[data-form-step="3"] #pickup-room-list {
    display: block !important;
}

/* Sticky form actions (#sticky-next-btn, etc.) are fixed at z-index 1000 and sit as
   siblings after .form-v2-main-grid, so they paint above all in-flow step content.
   Without extra scroll space, "Confirm Selected Floors" sits under the Next pill and
   clicks never reach the button. Extra padding + sticky confirm keeps the control usable. */
body[data-form-step="3"] #pickup-room-list-wrapper:not(.step-hidden),
body[data-current-step="3"] #pickup-room-list-wrapper:not(.step-hidden) {
    padding-bottom: calc(280px + env(safe-area-inset-bottom, 0px));
}

#confirm-pickup-floors-btn {
    scroll-margin-bottom: calc(280px + env(safe-area-inset-bottom, 0px));
}

/* Keep confirm above long step content and above the fixed Next / stacked FABs */
body[data-form-step="3"] #confirm-pickup-floors-btn,
body[data-current-step="3"] #confirm-pickup-floors-btn {
    position: sticky;
    bottom: calc(140px + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: #fff;
    padding-top: 10px;
    margin-top: 16px;
}

/* Stay above the fixed Next FAB when validation highlights this control */
body[data-form-step="3"] #confirm-pickup-floors-btn.next-missing-highlight,
body[data-current-step="3"] #confirm-pickup-floors-btn.next-missing-highlight {
    z-index: 1001;
    background: #3b82f6 !important;
    color: #fff !important;
}

#house-removal-inventory-section {
    display: none !important;
}
body[data-form-step="3"].house-removals-active #house-removal-inventory-section {
    display: flex !important;
    flex-direction: column;
}
/* Force hide house-removal-inventory-section unless on step 3 and House Removals is selected */
#house-removal-inventory-section {
    display: none !important;
}
body[data-form-step="3"].house-removals-active #house-removal-inventory-section.inventory-section {
    display: flex !important;
    flex-direction: column;
}
body[data-current-step="3"].house-removals-active #house-removal-inventory-section.inventory-section {
    display: flex !important;
    flex-direction: column;
}


body[data-form-step="5"] .pickup-floors-image,
body[data-current-step="5"] .pickup-floors-image {
    display: none !important;
}

/* Delivery Floors Image Styling (Step 5) */
.delivery-floors-image {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.delivery-floors-image img {
    width: 100% !important;
    max-width: 160px !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}

.pickup-room-flex > .delivery-floors-image {
    width: 160px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin-right: 32px;
    margin-left: 0;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    background: none;
    border: none;
    border-radius: 16px;
    box-shadow: none;
    padding: 0;
    overflow: visible;
    z-index: 1;
    flex-shrink: 0;
}

.pickup-room-flex > #delivery-room-list {
    flex: 1 1 auto;
    min-width: auto;
    max-width: 100%;
    position: relative;
    z-index: 2;
    background: white;
    box-shadow: none;
    margin-left: -40px;
    padding-left: 40px;
    border-radius: 0 16px 16px 0;
}

/* Legacy Step 5 delivery image/list wrapper is no longer used (replaced by item organization UI).
   Force-hide it to prevent image artifacts behind the active card. */
#delivery-room-list-wrapper,
#delivery-room-list-wrapper .delivery-floors-image,
#delivery-room-list-wrapper #delivery-room-list {
    display: none !important;
}

@media (max-width: 900px) {
    .pickup-room-flex > .delivery-floors-image {
        margin: 0 auto 16px auto;
        width: 120px !important;
        max-width: 120px !important;
    }
    .pickup-room-flex > #delivery-room-list {
        margin-left: 0;
        padding-left: 0;
        border-radius: 0 0 16px 16px;
    }
}

/* Step 5 delivery floor layout: keep only delivery-specific controls visible */
body[data-form-step="5"] #delivery-room-list .form-group {
    margin-bottom: 12px;
}
body[data-form-step="5"] #delivery-room-list label.form-label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}
/* V2 Form Layout for Instant Prices */
.job-form.v2 {
    padding: var(--spacing-xl) 2rem 2rem;
    background: none;
    box-shadow: none;
    border-radius: 0;
    gap: 0;
    overflow: visible;
}
.form-title {
    text-align: left;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #333;
    letter-spacing: -0.5px;
}
.form-v2-grid {
    display: grid !important;
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) !important;
    grid-template-rows: auto;
    gap: 2.5rem;
    align-items: flex-start;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    margin-top: 0;
    overflow: visible;
}

/* Side map column is unused (route map lives in the main form). Hide when empty. */
.form-v2-map:empty {
    display: none !important;
}

form.form-v2-main {
    margin: 0;
}

.single-form .form-v2-grid {
    grid-template-columns: 1fr !important;
}

.single-form .form-v2-main {
    grid-column: 1 / -1;
}

.single-form .form-stepper,
.single-form .form-step-actions,
.single-form .form-v2-map,
.single-form .map-step-card {
    display: none !important;
}

.single-form #generic-floors-section,
.single-form #delivery-floors-section,
.single-form #office-removal-floors-section,
.single-form #office-delivery-floors-section,
.single-form #house-removal-inventory-section,
.single-form #office-removal-inventory-section,
.single-form #multi-stop-section {
    display: none !important;
}

.single-form #get-prices-btn {
    display: inline-flex !important;
}

/* Editing from My requests (?editQuote= / ?resumeQuote=): hide Get Prices even in .single-form (above uses !important). */
body.create-job-edit-quote #get-prices-btn {
    display: none !important;
}

.single-form .floor-block .location-nav {
    display: none;
}

.single-form .floor-block .location-nav-select {
    position: static;
    width: 100%;
    height: auto;
    opacity: 1;
    pointer-events: auto;
    margin-top: 8px;
}
.form-stepper {
    grid-column: 1;
    grid-row: 1;
}

.form-v2-main {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    font-size: 1rem;
    gap: 1.7rem;
    padding: 2.2rem;
}

.form-v2-map {
    grid-column: 3;
    grid-row: 1;
}

/* If map panel has no content, reclaim the third column for the form. */
.form-v2-grid.no-side-map {
    grid-template-columns: 220px minmax(0, 1fr) !important;
    max-width: 1400px;
    gap: 2rem;
}

.form-v2-grid.no-side-map .form-v2-map {
    display: none;
}

.form-v2-grid.no-side-map .form-v2-main {
    grid-column: 2;
    max-width: 100%;
}

.form-stepper {
    position: static;
    height: fit-content;
    align-self: flex-start;
    margin-top: 0;
    width: 100%;
    font-size: 1rem;
    padding: 0;
}

.stepper-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.4rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    font-size: 1rem;
}

.stepper-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    color: #6b7280;
    font-weight: 600;
    display: block;
    margin-bottom: 0.75rem;
}

.stepper-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.77rem;
    font-size: 1rem;
}

.stepper-link {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.stepper-index {
    width: 20.4px; /* 15% smaller */
    height: 20.4px; /* 15% smaller */
    margin-bottom: 3.4px; /* 15% smaller */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    appearance: auto;
    color: #374151;
}

.stepper-label {
    font-size: 0.92rem;
    font-weight: 600;
    color: #1f2937;
}

.stepper-item.is-active .stepper-link {
    background: transparent;
    border-color: transparent;
}

.stepper-item.is-active .stepper-index {
    background: #2563eb;
    color: #ffffff;
}

.stepper-item.is-complete .stepper-link {
    background: transparent;
    border-color: transparent;
}

.stepper-item.is-complete .stepper-index {
    background: #22c55e;
    color: #ffffff;
}

.stepper-link.is-locked {
    opacity: 0.55;
}

.summary-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.map-step-card {
    width: 92%;
    margin-left: auto;
    margin-right: auto;
}

.map-step-card .map-card {
    height: 221px;
    min-height: 221px;
    max-height: 280px;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
    overflow: hidden;
}

/* Keep route map a fixed, contained preview (prevents Mapbox canvas blowing up the layout). */
.map-step-card #route-map.map-card {
    width: 100% !important;
    max-width: 100%;
    height: 221px !important;
    min-height: 221px !important;
    max-height: 280px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: hidden;
    position: relative;
}

.map-step-card #route-map .mapboxgl-map,
.map-step-card #route-map .mapboxgl-canvas-container,
.map-step-card #route-map canvas.mapboxgl-canvas {
    width: 100% !important;
    height: 100% !important;
    max-height: 280px;
}

.summary-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #111827;
}

.summary-grid {
    display: grid;
    gap: 0.65rem;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.summary-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    font-weight: 600;
}

.summary-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
}


.form-step-actions {
    display: flex !important;
    justify-content: space-between;
    gap: 12px;
    margin-top: 1.5rem;
    position: relative;
    z-index: 1001;
}

.form-step-actions .btn {
    min-width: 140px;
}

.step-slice {
    display: flex;
    flex-direction: column;
    width: 100%;
    font-size: 1.4em;
    padding: 1.2em 1em;
}
.step-hidden {
    display: none !important;
}
.office-hidden {
    display: none !important;
}
.form-v2-grid.office-layout {
    grid-template-columns: 220px 2fr 1.1fr !important;
    grid-template-areas: "illustration main map";
}
.floors-illustration-panel {
    position: sticky;
    top: 120px;
    height: fit-content;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    transform: translateX(-110px);
    overflow: visible;
}

.form-v2-grid.office-layout .floors-illustration-panel {
    transform: translateX(-110px);
    grid-area: illustration;
    z-index: 0;
}
.form-v2-main {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    min-width: 0;
    order: 1;
}

.form-v2-grid.office-layout .form-v2-main {
    grid-area: main;
}
.form-v2-map {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: static;
    top: auto;
    order: 2;
    height: fit-content;
}

.form-v2-grid.office-layout .form-v2-map {
    grid-area: map;
}
.card-section {
    background: #f9fafb;
    border-radius: 4px;
    box-shadow: none;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 0;
}

.inventory-standalone {
    margin-top: 2rem;
    width: 100%;
}

.inventory-standalone-wrapper {
    width: 100%;
}

.inventory-standalone .floor-inventory-section {
    width: 100%;
    max-width: none;
}

.floors-inventory-container {
    width: 100%;
}

.floor-inventory-block {
    width: 100%;
    margin: 24px 0;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.floor-inventory-block .inventory-tabs,
.floor-inventory-block .room-items-list {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.floor-inventory-block .room-items-list {
    background: transparent;
    box-shadow: none;
    max-height: 500px !important;
}

.floor-inventory-block .inventory-items-list {
    width: 100%;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    background: #fff;
}

body[data-form-step="3"] #house-removal-inventory-section .floor-inventory-block .inventory-block-header,
body[data-current-step="3"] #house-removal-inventory-section .floor-inventory-block .inventory-block-header {
    padding-right: 24px;
}

body:not([data-form-step="3"]) #floor-inventory-section,
body:not([data-form-step="3"]) #office-removal-inventory-section {
    display: none !important;
}

.form-v2-grid .inventory-standalone-wrapper {
    grid-column: 1 / -1;
    grid-row: 2;
}

.floor-inventory-section {
    border-color: #dbeafe;
    background: #f8fbff;
    overflow: visible;
}

.floor-inventory-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 1.5rem;
}

.floor-inventory-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 6px;
}

.floor-inventory-subtitle {
    margin: 0;
    color: #6b7280;
    font-size: 0.95rem;
}

.floor-inventory-grid {
    display: grid;
    grid-template-columns: minmax(200px, 260px) 1fr;
    gap: 24px;
    align-items: flex-start;
}

.floor-illustration-panel {
    position: static;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    width: 100%;
    max-width: 260px;
}

.floor-illustration-panel.is-floating {
    position: static;
    top: auto;
    left: auto;
    margin-left: 0;
    margin-top: 0;
    width: auto;
    max-width: 260px;
    z-index: auto;
}

.floor-illustration-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-bottom: 12px;
}

.floor-illustration-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #4b5563;
    font-size: 0.85rem;
    line-height: 1.4;
}

.floor-illustration-list li {
    padding: 6px 0;
    border-bottom: 1px dashed #e5e7eb;
}

.floor-illustration-list li:last-child {
    border-bottom: none;
}

.floor-blocks {
    display: grid;
    gap: 18px;
}

#floor-block-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 18px;
}

.floor-block {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    overflow: visible;
}

.floor-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 12px;
}

.floor-block-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
}

.floor-block-remove {
    border: none;
    background: none;
    color: #ef4444;
    font-weight: 600;
    cursor: pointer;
}

.floor-block .card-section {
    background: #f9fafb;
    margin-bottom: 12px;
}

.floor-block-lift {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
}

.floor-block-lift .form-label {
    margin-bottom: 8px;
}

.floor-block-actions {
    display: flex;
    justify-content: flex-start;
    grid-column: 1 / -1;
}

.floor-inventory-section .room-items-list {
    max-height: none;
}

#generic-floors-section [data-location-group="pickup"],
#generic-floors-section [data-location-group="pickup-details"] .floor-group,
#generic-floors-section [data-location-group="pickup-details"] .lift-group {
    display: none;
}

body.floor-block-mode #house-removal-inventory-section {
    display: none !important;
}

body.floor-block-mode #generic-floors-section {
    display: none !important;
}

body.floor-block-mode #generic-floors-section [data-location-group="pickup-details"] {
    display: none !important;
}

.form-v2-grid #house-removal-inventory-section {
    display: none !important;
}


.room-items-layout {
    display: grid;
    grid-template-columns: minmax(160px, 220px) 1fr;
    gap: 16px;
    align-items: stretch;
}

.room-subrooms {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px;
    min-height: 100%;
}

.room-subroom-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: #f3f4f6;
    color: #374151;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
}

.room-subroom-btn.is-active {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.inventory-search {
    position: relative;
    margin-bottom: 12px;
}

.inventory-search input {
    width: 100%;
    padding: 10px 12px 10px 38px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    font-size: 0.9rem;
}

.inventory-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #9ca3af;
}

@media (max-width: 980px) {
    .floor-inventory-grid {
        grid-template-columns: 1fr;
    }

    .floor-illustration-panel {
        position: static;
        order: 2;
    }

    .floor-illustration-panel.is-floating {
        position: static;
        top: auto;
        left: auto;
        margin-left: 0;
        margin-top: 0;
        width: 100%;
    }

    .room-items-layout {
        grid-template-columns: 1fr;
    }
}

.multi-stop-section {
    border-style: dashed;
    border-color: #c7d2fe;
    background: #f8fafc;
}

.multi-stop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 1rem;
}

.multi-stop-add-btn.btn-outline {
    background: #ffffff;
    color: #1f5fbf;
    border-color: #3b82f6;
}

.multi-stop-add-btn.btn-outline:hover {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #1d4ed8;
}

.multi-stop-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.35rem;
}

.multi-stop-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
}

.multi-stop-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.multi-stop-add-row {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem;
    border: 1px dashed #c7d2fe;
    border-radius: 8px;
    background: #f8fafc;
}

.multi-stop-add-row .multi-stop-add-btn {
    min-width: 200px;
}

.multi-stop-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.1rem;
}

.multi-stop-service-grid {
    margin-top: 0;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.multi-stop-service-grid .service-icon-btn {
    padding: 14px 10px;
    font-size: 0.85rem;
}

.multi-stop-service-grid .service-icon-btn svg {
    width: 24px;
    height: 24px;
}

.multi-stop-house-inventory .room-tabs,
.multi-stop-office-inventory .office-tabs {
    margin-bottom: 1rem;
}

.room-tabs--fullbleed {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: clamp(16px, 4vw, 32px);
    padding-right: clamp(16px, 4vw, 32px);
    border-radius: 8px;
    box-sizing: border-box;
}

.floor-block .room-tabs--fullbleed {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-radius: 8px;
}


.multi-stop-office-inventory .room-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 10px;
}

.inventory-section {
    margin-top: 1rem;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box;
}

.multi-stop-house-inventory .card-section,
.multi-stop-office-inventory .card-section {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: clamp(20px, 4vw, 40px) !important;
    padding-right: clamp(20px, 4vw, 40px) !important;
    border-radius: 8px !important;
    box-sizing: border-box;
}

.floor-block .multi-stop-house-inventory .card-section,
.floor-block .multi-stop-office-inventory .card-section {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: clamp(20px, 4vw, 40px) !important;
    padding-right: clamp(20px, 4vw, 40px) !important;
    border-radius: 8px !important;
    box-sizing: border-box;
}

.floor-block .location-details {
    display: flex !important;
}

.floor-block .multi-stop-floors-section,
.floor-block .multi-stop-office-floors-section,
.floor-block .multi-stop-floors-section.progressive-hidden,
.floor-block .multi-stop-office-floors-section.progressive-hidden {
    display: block !important;
}

.multi-stop-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.9rem;
}

.multi-stop-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.multi-stop-remove-btn {
    border: none;
    background: none;
    color: #ef4444;
    font-weight: 600;
    cursor: pointer;
}

.multi-stop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.multi-stop-rooms,
.multi-stop-notes {
    margin-top: 1rem;
}

.multi-stop-room-entry {
    display: grid;
    grid-template-columns: 1fr 1.2fr auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 0.8rem;
}

.multi-stop-room-entry .option-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 8px;
}

.multi-stop-grid .location-nav {
    padding: 8px;
}

.multi-stop-grid .location-nav-btn {
    padding: 8px 6px;
    font-size: 0.8rem;
}

.multi-stop-room-option {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px;
    background: #fff;
    color: #4b5563;
    font-size: 0.8rem;
    cursor: pointer;
}

.multi-stop-room-option.is-active {
    border-color: #4A90E2;
    color: #1f5fbf;
    background: #e3f2fd;
}

.multi-stop-room-remove {
    border: none;
    background: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 6px 0;
}

.multi-stop-room-remove:disabled {
    color: #cbd5f5;
    cursor: default;
}

.multi-stop-items {
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px dashed #e5e7eb;
}

.multi-stop-category-section {
    margin-top: 1rem;
}

.multi-stop-category-section .card-section {
    margin-bottom: 0.85rem;
}

.multi-stop-items-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.multi-stop-item-row {
    display: grid;
    grid-template-columns: 1fr 120px auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 0.6rem;
}

.multi-stop-item-remove {
    border: none;
    background: none;
    color: #9ca3af;
    cursor: pointer;
}

.multi-stop-mode #service-selection-section,
.multi-stop-mode #generic-floors-section,
.multi-stop-mode #office-removal-floors-section,
.multi-stop-mode #house-removal-inventory-section,
.multi-stop-mode #office-removal-inventory-section,
.multi-stop-mode #manpower-job-description-section,
.multi-stop-mode #other-job-description-section,
.multi-stop-mode #generic-additional-info-section,
.multi-stop-mode .floors-illustration-panel {
    display: none !important;
}

#generic-additional-info-section,
.multi-stop-additional {
    display: none !important;
}

.multi-stop-mode #route-editor {
    display: none;
}

.multi-stop-map-addresses {
    margin-top: 1rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

.multi-stop-map-header h3 {
    font-size: 1rem;
    margin: 0 0 0.25rem;
    color: #111827;
}

.multi-stop-map-header p {
    margin: 0 0 0.75rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.multi-stop-map-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.multi-stop-map-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.85rem;
}

.multi-stop-map-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: #1f2937;
}

.multi-stop-mode .form-v2-grid {
    grid-template-columns: minmax(160px, 180px) minmax(0, 1fr) !important;
}

.multi-stop-mode .form-v2-main {
    order: 1;
    grid-column: 2;
    grid-row: 1;
}

.multi-stop-mode .form-v2-map {
    display: none !important;
}

.multi-stop-mode .floors-illustration-panel {
    display: flex !important;
}

.multi-stop-mode .map-card {
    height: 320px;
}
.form-label {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: #374151;
    display: block;
}
.form-input {
    font-size: 0.95rem;
    border-radius: 4px;
    border: 1px solid #d1d5db;
    padding: 12px 14px;
    margin-bottom: 0;
    background: white;
}

.form-error-summary {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.field-error-message {
    color: #b91c1c;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.4rem;
}

.input-error {
    border-color: #ef4444 !important;
    background: #fff1f2;
}

.next-missing-highlight {
    border-color: #ef4444 !important;
    background: transparent !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
    animation: nextMissingPulse 0.8s ease-in-out 2;
}

@keyframes nextMissingPulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.28); }
    100% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

/* Custom dropdown (match landing mega menu) */
.custom-dropdown-wrapper {
    position: relative;
}

.service-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.service-icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 10px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #4b5563;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease;
    text-align: center;
}

.service-icon-btn svg {
    width: 24px;
    height: 24px;
}

.service-icon-btn:hover {
    border-color: #4A90E2;
    color: #4A90E2;
    background: #f0f7ff;
}

.service-icon-btn.is-active {
    border-color: #4A90E2;
    color: #1f5fbf;
    background: #e3f2fd;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.service-icon-grid.input-error {
    border: 1px solid #ef4444;
    border-radius: 12px;
    padding: 10px;
    background: #fff5f5;
}

.custom-dropdown {
    position: relative;
}

.dropdown-toggle {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    font-family: inherit;
}

.dropdown-toggle:hover,
.dropdown-toggle.active {
    border-color: #4A90E2;
    background: #f9fbff;
}

.dropdown-toggle svg {
    color: #666;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #4A90E2;
    border-top: none;
    border-radius: 0 0 6px 6px;
    display: none;
    flex-direction: row;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    max-height: 420px;
    overflow-y: auto;
}

.dropdown-menu.active {
    display: flex;
}

.dropdown-col {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dropdown-col:first-child {
    border-right: 1px solid #e5e7eb;
}

.dropdown-divider {
    width: 1px;
    background: #e5e7eb;
}

.dropdown-more-header {
    font-weight: 700;
    color: #4A90E2;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s ease, color 0.15s ease;
    color: #4b5563;
    font-size: 0.95rem;
    border: none;
    background: none;
}

.dropdown-item:hover {
    background: #f0f7ff;
    color: #4A90E2;
}

.transport-date-picker {
    position: relative;
}

.transport-date-label-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.transport-date-info-btn {
    width: 22px;
    height: 22px;
    margin-top: -8px;
    border: 1px solid #93c5fd;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    position: relative;
}

.transport-date-info-btn:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.35);
    outline-offset: 2px;
}

.transport-date-info-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    width: min(360px, 75vw);
    padding: 10px 12px;
    border-radius: 10px;
    background: #0f172a;
    color: #f8fafc;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.45;
    text-align: left;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.35);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-2px);
    transition: opacity 0.16s ease, transform 0.16s ease;
    z-index: 1220;
}

.transport-date-info-btn:hover::after,
.transport-date-info-btn:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

.transport-date-trigger {
    width: 100%;
    min-height: 58px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 0;
    text-align: left;
}

.transport-date-trigger:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.35);
    outline-offset: 2px;
}

.transport-date-display {
    flex: 1;
    padding: 15px 18px;
    font-size: 1rem;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.transport-date-display.is-placeholder {
    color: #94a3b8;
}

.transport-date-icon {
    width: 66px;
    border-left: 1px solid #cbd5e1;
    display: grid;
    place-items: center;
    color: #94a3b8;
    align-self: stretch;
}

.transport-date-icon svg {
    width: 22px;
    height: 22px;
}

.transport-date-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    z-index: 1200;
    display: none;
    padding: 10px 0;
}

.transport-date-panel.active {
    display: block;
}

.transport-date-panel.between-mode {
    width: min(100vw - 32px, 760px);
}

.transport-date-header {
    padding: 0 18px 10px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 6px;
}

.transport-date-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.transport-date-back,
.transport-date-close,
.transport-date-close-icon,
.transport-date-month-nav {
    border: none;
    background: transparent;
    cursor: pointer;
    color: #1e293b;
}

.transport-date-back {
    font-size: 1.9rem;
    line-height: 1;
    padding: 0;
}

.transport-date-back-label {
    font-size: 1.8rem;
    line-height: 1;
    margin-right: 8px;
    display: inline-block;
    vertical-align: middle;
}

.transport-date-back-text {
    font-size: 2.1rem;
    font-weight: 700;
    display: inline-block;
    vertical-align: middle;
}

.transport-date-close {
    font-size: 2.1rem;
    font-weight: 700;
    padding: 0;
}

.transport-date-close-icon {
    font-size: 1.9rem;
    line-height: 1;
    padding: 0;
}

.transport-date-options {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 0;
}

.transport-date-option {
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    padding: 12px 18px;
    font-size: 1.1rem;
    color: #1e293b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.transport-date-option:hover {
    background: #f8fafc;
}

.transport-date-option-chevron {
    font-size: 1.8rem;
    color: #334155;
    font-weight: 700;
}

.transport-date-calendar-wrap {
    padding: 0 18px 12px;
}

.transport-date-between-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    align-items: start;
}

.transport-date-calendar-wrap-between {
    padding-top: 6px;
}

.transport-date-calendar-title {
    text-align: center;
    font-size: 1.1rem;
    color: #6b7280;
    margin: 12px 0 8px;
    font-weight: 700;
}

.transport-date-calendar-month-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.transport-date-month-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #6b7280;
}

.transport-date-month-nav {
    font-size: 1.8rem;
    color: #38bdf8;
    padding: 2px 8px;
}

.transport-date-weekdays,
.transport-date-days-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.transport-date-weekday {
    text-align: center;
    font-size: 1rem;
    color: #1e293b;
    font-weight: 700;
    padding: 8px 0 2px;
}

.transport-date-day {
    border: none;
    background: transparent;
    border-radius: 10px;
    height: 38px;
    font-size: 1rem;
    color: #334155;
    cursor: pointer;
}

.transport-date-day:hover {
    background: #eff6ff;
}

.transport-date-day.other-month {
    color: #cbd5e1;
}

.transport-date-day.disabled {
    color: #cbd5e1;
    cursor: not-allowed;
    background: transparent;
}

.transport-date-day.selected {
    background: #f1f5f9;
    color: #0f172a;
    box-shadow: inset 0 0 0 1px #e2e8f0;
}

.transport-date-day.in-range {
    background: #e0f2fe;
    color: #0f172a;
}

.transport-date-day.range-start,
.transport-date-day.range-end {
    background: #38bdf8;
    color: #ffffff;
    box-shadow: inset 0 0 0 1px #0ea5e9;
    font-weight: 700;
}

.transport-date-day.range-start {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.transport-date-day.range-end {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.transport-date-day.range-start.range-end {
    border-radius: 10px;
}

.overview-card {
    border: 1px solid #dbeafe;
    background: #f8fbff;
    border-radius: 12px;
    padding: 14px;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.overview-item {
    border: 1px solid #dbeafe;
    border-radius: 10px;
    padding: 10px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.overview-item-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.overview-item-value {
    font-size: 0.96rem;
    color: #0f172a;
    line-height: 1.35;
    min-height: 1.3em;
    word-break: break-word;
}

.overview-item-value.summary-placeholder {
    color: #94a3b8;
    font-style: italic;
}

.overview-edit-btn {
    align-self: flex-start;
    border: 1px solid #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 7px;
    padding: 5px 9px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.overview-edit-btn:hover {
    background: #dbeafe;
}

.overview-route-card {
    margin-top: 14px;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    background: #fff;
    padding: 12px;
}

.overview-route-line {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 4px;
    color: #334155;
    font-size: 0.92rem;
}

.overview-route-marker {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    margin-top: 3px;
    flex: 0 0 14px;
    box-shadow: 0 0 0 2px #ffffff, 0 1px 4px rgba(15, 23, 42, 0.22);
}

.overview-route-marker-pickup {
    background: #ef4444;
}

.overview-route-marker-delivery {
    background: #22c55e;
}

.route-marker {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 18px rgba(18, 44, 66, 0.18);
    transform: translateY(-2px);
    cursor: default;
}

.route-marker::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -7px;
    width: 10px;
    height: 10px;
    background: inherit;
    transform: translateX(-50%) rotate(45deg);
    border-radius: 2px;
    z-index: -1;
}

.route-marker--pickup {
    background: linear-gradient(180deg, #32b77e 0%, #17885a 100%);
}

.route-marker--delivery {
    background: linear-gradient(180deg, #ff5a98 0%, #d91f68 100%);
}

.route-marker--stop {
    background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
}

.overview-inventory-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
}

.overview-inventory-card {
    border: 1px solid #dbeafe;
    border-radius: 10px;
    background: #fff;
    padding: 10px;
}

.overview-inventory-list {
    color: #334155;
    font-size: 0.9rem;
    line-height: 1.45;
}

.overview-inventory-list.summary-placeholder {
    color: #94a3b8;
    font-style: italic;
}

.overview-floor-block {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 7px 8px;
    background: #f8fafc;
    margin-bottom: 7px;
}

.overview-floor-title {
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.overview-floor-items {
    margin: 0;
    padding-left: 18px;
}

.overview-floor-items li {
    margin-bottom: 2px;
}

.overview-inventory-manage-btn {
    border: 1px solid #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 7px;
    padding: 5px 9px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.overview-editor-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 15000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.overview-editor-modal.active {
    display: flex;
}

.overview-editor-dialog {
    width: min(560px, 100%);
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
    padding: 14px;
}

.overview-editor-title {
    margin: 0;
    font-size: 1.1rem;
    color: #0f172a;
}

.overview-editor-subtitle {
    margin: 4px 0 10px;
    font-size: 0.85rem;
    color: #64748b;
}

.overview-editor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
}

.overview-editor-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.overview-editor-field label {
    font-size: 0.82rem;
    color: #475569;
    font-weight: 700;
}

.overview-editor-field input,
.overview-editor-field select,
.overview-editor-field textarea {
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.92rem;
    color: #0f172a;
}

.overview-editor-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.overview-editor-btn {
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 700;
    cursor: pointer;
}

.overview-editor-btn.cancel {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
}

.overview-editor-btn.save {
    border: none;
    background: #2563eb;
    color: #fff;
}

.overview-editor-checkbox-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 6px;
}

.overview-editor-checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    color: #334155;
}

.reset-confirm-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.5);
    z-index: 13000;
    padding: 16px;
}

.reset-confirm-modal.active {
    display: flex;
}

.reset-confirm-dialog {
    width: min(460px, 100%);
    background: linear-gradient(180deg, #ffffff 0%, #fff7f7 100%);
    border: 1px solid #fecaca;
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.25);
    padding: 20px;
}

.reset-confirm-icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.reset-confirm-title {
    margin: 0;
    color: #7f1d1d;
    font-size: 1.18rem;
    font-weight: 800;
}

.reset-confirm-copy {
    margin: 8px 0 0 0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
}

.reset-confirm-actions {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.reset-confirm-btn {
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.reset-confirm-btn:hover,
.reset-confirm-btn:focus {
    transform: translateY(-1px);
    filter: brightness(0.98);
}

.reset-confirm-btn.cancel {
    background: #e2e8f0;
    color: #0f172a;
}

.reset-confirm-btn.danger {
    background: #dc2626;
    color: #fff;
}

#house-removal-inventory-section .floor-inventory-block > .inventory-tabs,
#house-removal-inventory-section .floor-inventory-block > .inventory-tabs-sticky {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    white-space: normal !important;
}

#house-removal-inventory-section .floor-inventory-block > .inventory-tabs .inventory-tab,
#house-removal-inventory-section .floor-inventory-block > .inventory-tabs-sticky .inventory-tab {
    flex: 1 1 140px !important;
    min-width: 140px !important;
    max-width: 200px !important;
}

@media (max-width: 768px) {
    .reset-confirm-dialog {
        padding: 16px;
        border-radius: 14px;
    }


    #house-removal-inventory-section .floor-inventory-block > .inventory-tabs .inventory-tab,
    #house-removal-inventory-section .floor-inventory-block > .inventory-tabs-sticky .inventory-tab {
        flex: 1 1 calc(50% - 8px) !important;
        min-width: calc(50% - 8px) !important;
        max-width: none !important;
    }
    .reset-confirm-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .reset-confirm-btn {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .transport-date-panel {
        width: min(100vw - 32px, 520px);
        left: 50%;
        transform: translateX(-50%);
    }

    .transport-date-option {
        font-size: 1rem;
    }

    .transport-date-calendar-title,
    .transport-date-month-label {
        font-size: 1.1rem;
    }

    .transport-date-day {
        font-size: 1rem;
    }

    .transport-date-between-layout {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

/* Remove number input arrows/spinners */
.form-input[type="number"]::-webkit-outer-spin-button,
.form-input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.form-input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}
.floors-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: flex-start;
    background: #f9fafb;
    border-radius: 4px;
    box-shadow: none;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    margin-bottom: 0;
}
.floors-fields {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.location-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.location-nav-wrapper {
    position: relative;
}
.location-nav-select {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.location-nav {
    display: grid;
    gap: 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px;
}
.location-type-nav {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}
.floor-nav {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
}
.floor-nav .location-nav-btn {
    min-height: 70px;
    padding: 8px 8px;
    gap: 4px;
    font-size: 0.82rem;
}
.floor-nav .location-nav-btn svg {
    width: 20px;
    height: 20px;
}
.lift-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.location-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #4b5563;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease;
    text-align: center;
}
.location-nav-btn svg {
    width: 22px;
    height: 22px;
}
.location-nav-btn:hover {
    border-color: #4A90E2;
    color: #4A90E2;
    background: #f0f7ff;
}
.location-nav-btn.is-active {
    border-color: #4A90E2;
    color: #1f5fbf;
    background: #e3f2fd;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}
.location-nav.input-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}
.location-nav-btn .floor-label {
    font-size: 0.8rem;
    font-weight: 700;
}
.option-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px;
}
.option-nav--compact {
    grid-template-columns: repeat(2, 1fr);
}
.option-nav--year {
    max-height: 240px;
    overflow-y: auto;
    align-content: start;
}
.option-nav.option-nav--room-grid {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 12px;
    padding: 12px;
}
.option-nav.option-nav--room-grid .option-nav-btn {
    min-height: 86px;
    padding: 12px 10px;
    gap: 6px;
    font-size: 0.9rem;
}
.option-nav.option-nav--room-grid .option-nav-btn svg {
    width: 24px;
    height: 24px;
}
.option-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #4b5563;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease;
    text-align: center;
}
.option-nav-btn svg {
    width: 22px;
    height: 22px;
}
.option-nav-btn:hover {
    border-color: #4A90E2;
    color: #4A90E2;
    background: #f0f7ff;
}
.option-nav-btn.is-active {
    border-color: #4A90E2;
    color: #1f5fbf;
    background: #e3f2fd;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}
.option-nav.input-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.office-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px;
    margin-bottom: 16px;
    padding: 12px;
    background: #f8f8f8;
    border-radius: 8px;
}

.office-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    border: 2px solid transparent;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.office-tab-btn:hover {
    background: #f0f0f0;
}

.office-tab-btn.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #e3f2fd;
}

.office-tab-btn svg {
    width: 24px;
    height: 24px;
}

.office-unit-tabs .office-unit-btn {
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2px;
    padding: 10px 12px;
    border-color: var(--office-accent, #cbd5e1);
    background: var(--office-bg, #eff6ff);
    color: var(--office-text, #1e40af);
}

.office-unit-tabs .office-unit-btn .office-unit-title {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.2;
}

.office-unit-tabs .office-unit-btn .office-unit-type {
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.9;
    line-height: 1.2;
}

.office-unit-tabs .office-unit-btn.active {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}
.has-option-nav .custom-dropdown {
    display: none;
}
.location-details {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
}
.location-details.is-visible {
    display: flex;
}
.location-detail-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    --lift-width: clamp(160px, 28vw, 220px);
}
.location-detail-row.floors-layout {
    display: grid;
    grid-template-columns: 1fr var(--lift-width);
    grid-template-rows: auto auto;
}
.location-detail-row.floors-layout .lift-group {
    grid-column: 2;
    grid-row: 1;
}
.location-detail-row.floors-layout .floor-group {
    grid-column: 1 / -1;
    grid-row: 2;
}

/* Office floors: align visual style with other service floor selectors */
#office-removal-floors-section .location-detail-row.floors-layout,
#office-delivery-floors-section .location-detail-row.floors-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
}

#office-removal-floors-section .location-detail-row.floors-layout .floor-group,
#office-delivery-floors-section .location-detail-row.floors-layout .floor-group {
    grid-column: 1;
    grid-row: 1;
}

#office-removal-floors-section .location-detail-row.floors-layout .lift-group,
#office-delivery-floors-section .location-detail-row.floors-layout .lift-group {
    grid-column: 1;
    grid-row: 2;
    max-width: 260px;
}

#office-removal-floors-section .floor-nav,
#office-delivery-floors-section .floor-nav,
#office-removal-floors-section .lift-nav,
#office-delivery-floors-section .lift-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    border: none;
    background: transparent;
}

#office-removal-floors-section .floor-nav .location-nav-btn,
#office-delivery-floors-section .floor-nav .location-nav-btn,
#office-removal-floors-section .lift-nav .location-nav-btn,
#office-delivery-floors-section .lift-nav .location-nav-btn {
    min-height: 0;
    min-width: 92px;
    padding: 8px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #4b5563;
    font-weight: 500;
    font-size: 0.95rem;
    gap: 6px;
    flex-direction: row;
}

#office-removal-floors-section .floor-nav .location-nav-btn svg,
#office-delivery-floors-section .floor-nav .location-nav-btn svg,
#office-removal-floors-section .lift-nav .location-nav-btn svg,
#office-delivery-floors-section .lift-nav .location-nav-btn svg {
    width: 16px;
    height: 16px;
}

#office-removal-floors-section .location-nav-btn.is-active,
#office-delivery-floors-section .location-nav-btn.is-active {
    border-color: #3b82f6;
    background: #dbeafe;
    color: #1e40af;
    box-shadow: none;
}
.location-room-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.location-room-entry {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.location-room-entry:has(.option-nav--room-grid) {
    grid-template-columns: 1fr;
}

/* Fallback for browsers without :has support: use single-column layout to avoid split/broken rows. */
@supports not selector(:has(*)) {
    .location-room-entry {
        grid-template-columns: 1fr;
    }
}
.location-room-actions {
    display: flex;
}
.btn-small {
    padding: 8px 12px;
    font-size: 0.9rem;
}
.floors-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.floor-room-group {
    display: none;
    margin-top: 0.5rem;
}
.floor-room-group.is-visible {
    display: block;
}
.floors-illustration {
    flex: 0 0 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    position: sticky;
    top: 16px;
}
.floors-illustration-img {
    width: 198px;
    max-width: 100%;
    height: auto;
    transform: scale(1.5);
    transform-origin: left top;
}

.form-v2-grid.office-layout .floors-illustration-img {
    width: 198px;
    max-width: 100%;
    transform: scale(1.5);
    transform-origin: left top;
}

.form-v2-grid.office-layout .form-v2-main,
.form-v2-grid.office-layout .form-v2-map {
    position: relative;
    z-index: 1;
}
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.3rem;
}
.location-col {
    flex: 1;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.location-inline {
    display: grid;
    grid-template-columns: 1fr 0.7fr;
    gap: 0.75rem;
}

.location-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.eircode-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.eircode-label-row .form-label {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    margin-bottom: 0;
    white-space: nowrap;
}

.eircode-label-row .required-text {
    white-space: nowrap;
    margin-left: 0;
}

.eircode-finder-link {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    color: #4A90E2;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.eircode-finder-link svg {
    width: 15px;
    height: 15px;
}

.eircode-finder-link:hover {
    color: #2563eb;
    border-color: #4A90E2;
    box-shadow: 0 3px 10px rgba(74, 144, 226, 0.22);
    transform: translateY(-1px);
}

.eircode-finder-link:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

@media (max-width: 900px) {
    .floors-row {
        flex-wrap: wrap;
    }
    .location-detail-row,
    .location-room-entry {
        grid-template-columns: 1fr;
    }
    .location-detail-row.floors-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }
    .location-detail-row.floors-layout .lift-group {
        grid-column: 1;
        grid-row: 1;
    }
    .location-detail-row.floors-layout .floor-group {
        grid-column: 1;
        grid-row: 2;
    }
    .floors-illustration {
        flex: 1 1 100%;
        justify-content: flex-start;
    }
    .floors-illustration-img {
        width: 240px;
        max-width: 100%;
    }
}

.required-text {
    color: #ef4444;
    font-weight: 700;
    font-size: 0.82rem;
    margin-left: 6px;
}

.required-text--active {
    text-decoration: underline;
}

.required-text--conditional {
    display: none;
}

.inventory-required .card-section:first-child {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}

.inventory-required .room-items-list {
    border: 1px solid #ef4444;
    border-radius: 8px;
}
.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 0;
    border: none;
}

/* Vehicle Step 3 fields layout */
.vehicle-fields-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}

.vehicle-fields-grid .form-group {
    margin: 0;
    min-width: 0;
}

.vehicle-fields-grid .form-input {
    width: 100%;
    min-width: 0;
}

@media (max-width: 1100px) {
    .vehicle-fields-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .vehicle-fields-grid {
        grid-template-columns: 1fr;
    }
}

.btn-primary.btn-large.v2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ec4899;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 4px;
    padding: 14px 0;
    line-height: 1.2;
    text-align: center;
    min-width: 180px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: background 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}
.btn-primary.btn-large.v2:hover {
    background: #db2777;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.15);
}

.progressive-hidden {
    display: none !important;
}

.floor-block .multi-stop-house-inventory.progressive-hidden,
.floor-block .multi-stop-office-inventory.progressive-hidden {
    display: block !important;
}
.map-card {
    min-height: 220px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.map-step-card > .map-card,
.map-step-card > #route-map.map-card {
    height: 221px;
    max-height: 280px;
}
.map-placeholder {
    color: #9ca3af;
    font-size: 0.95rem;
    text-align: center;
    width: 100%;
    padding: 2rem;
}
.map-info {
    background: #fff;
    border-radius: 0 0 10px 10px;
    border: 1px solid #e5e7eb;
    border-top: none;
    padding: 1.2rem 1.2rem;
    font-size: 0.95rem;
    color: #333;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.map-route-label {
    font-weight: 600;
    color: #4A90E2;
}
.map-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.edit-route-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #4b5563;
}

.edit-route-btn:hover {
    border-color: #4A90E2;
    color: #4A90E2;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.15);
}

.location-editor {
    display: none;
    gap: 1rem;
    flex-wrap: wrap;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 6px;
    padding: 1rem;
}

.location-editor.open {
    display: flex;
}

.location-editor .form-input {
    background: #fff;
}
.map-metrics {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.metric {
    color: #374151;
    font-size: 0.95rem;
}
.metric-label {
    font-weight: 600;
    margin-right: 0.35rem;
    color: #111827;
}
@media (max-width: 768px) {
    .form-v2-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .form-stepper {
        position: static;
        grid-column: 1;
        grid-row: auto;
    }
    .form-v2-main {
        grid-column: 1;
        grid-row: auto;
    }
    .form-v2-map {
        grid-column: 1;
        grid-row: auto;
    }
    .form-step-actions {
        flex-direction: column;
    }
    .form-step-actions .btn {
        width: 100%;
    }
    .floors-illustration-panel {
        display: none;
    }
    .form-v2-map {
        margin-top: 2rem;
    }
    .create-job-main {
        padding: 60px 20px 60px 20px;
    }
}

@media (max-width: 1100px) {
    .form-v2-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: auto auto;
        gap: 1.5rem;
        align-items: start;
    }
    .form-stepper {
        grid-column: 1;
        grid-row: 1;
        position: static;
        width: 100%;
        max-width: 100%;
    }
    .form-v2-main {
        grid-column: 1;
        grid-row: 2;
        max-width: 100%;
    }
    .form-v2-map {
        display: none !important;
    }
    .form-v2-grid.no-side-map .form-stepper {
        grid-column: 1;
        grid-row: 1;
    }
    .form-v2-grid.no-side-map .form-v2-main {
        grid-column: 1;
        grid-row: 2;
        max-width: 100%;
    }
    .floors-illustration-panel {
        display: none;
    }
}

/* Freight Step 3 layout */
.freight-step3-form {
    width: 100%;
}

.freight-customized-shell {
    padding: var(--spacing-xl);
}

.freight-customized-title {
    margin: 0 0 10px;
    color: var(--text-primary);
    font-size: 1.6rem;
    font-weight: 700;
}

.freight-customized-subtitle {
    margin: 0 0 14px;
    color: #64748b;
    font-size: 0.92rem;
}

.freight-customized-card {
    margin-top: 8px;
    gap: 0.95rem;
}

.freight-item-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px;
}

.freight-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.freight-dimension-inputs {
    grid-template-columns: 0.9fr 1fr 1fr 1fr 0.95fr 0.9fr;
}

.freight-weight-unit-row {
    display: grid;
    grid-template-columns: minmax(180px, 220px);
}

.freight-dimension-preset-note {
    margin: 2px 0 0;
    padding: 10px 12px;
    border: 1px solid #93c5fd;
    border-radius: 8px;
    background: #dbeafe;
    color: #1e3a8a;
    font-size: 0.86rem;
    font-weight: 600;
}

.freight-step3-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    align-items: start;
}

.freight-step3-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.freight-step3-field--wide {
    grid-column: 1 / -1;
}

.freight-step3-form .form-input {
    min-height: 50px;
    border-color: #60a5fa;
    background: #ffffff;
    font-size: 1.02rem;
}

.freight-step3-form textarea.form-input {
    min-height: 112px;
    resize: vertical;
}

/* Clearance Step 3 mirrors customized-items layout with clearance-specific fields. */
.clearance-step3-form {
    width: 100%;
}

.clearance-customized-shell {
    padding: 18px;
}

.clearance-customized-title {
    margin: 0 0 10px;
    color: var(--text-primary);
    font-size: 2.15rem;
    font-weight: 700;
}

.clearance-customized-subtitle {
    margin: 0 0 14px;
    color: #64748b;
    font-size: 1.34rem;
}

.clearance-customized-card {
    margin-top: 8px;
}

.clearance-section-label-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.clearance-optional-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #bfdbfe;
    background: #e2e8f0;
    color: #334155;
    border-radius: 999px;
    font-size: 0.88rem;
    line-height: 1;
    letter-spacing: 0.02em;
    padding: 6px 12px;
    font-weight: 700;
}

.clearance-step3-form .dimension-description {
    min-height: 54px;
    resize: vertical;
}

.clearance-dimension-inputs {
    grid-template-columns: 1.2fr 1fr 1.6fr;
}

.clearance-weight-row {
    grid-template-columns: minmax(0, 1.4fr) minmax(120px, 0.6fr);
    margin-top: 8px;
}

.clearance-selected-inventory-block.clearance-inventory-missing {
    border-color: #fca5a5 !important;
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.35);
}

.clearance-inventory-required-warning {
    display: none;
}

@media (max-width: 700px) {
    .clearance-weight-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .clearance-customized-title {
        font-size: 1.8rem;
    }

    .clearance-customized-subtitle {
        font-size: 1.02rem;
    }

    .clearance-dimension-inputs {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .freight-step3-grid {
        grid-template-columns: 1fr 1fr;
    }

    .freight-meta-grid {
        grid-template-columns: 1fr;
    }

    .freight-dimension-inputs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .freight-customized-title {
        font-size: 1.45rem;
    }

    .freight-customized-subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 700px) {
    .freight-step3-grid {
        grid-template-columns: 1fr;
    }

    .freight-dimension-inputs {
        grid-template-columns: 1fr;
    }

    .freight-weight-unit-row {
        grid-template-columns: 1fr;
    }
}

/* Collapsible Section Styles */
.collapsible-section {
    padding: 0;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 4px;
}

.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.3rem;
    cursor: pointer;
    user-select: none;
    background: #f9fafb;
}

.collapsible-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
}

.collapsible-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    transition: color 0.2s, background 0.2s;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ecfdf5;
}

.collapsible-toggle line:first-of-type {
    transition: opacity 0.2s;
}

.collapsible-section.expanded .collapsible-toggle {
    color: #ef4444;
    background: #fee2e2;
}

.collapsible-section.expanded .collapsible-toggle line:first-of-type {
    opacity: 0;
}

.collapsible-content {
    display: none;
    padding: 0 1.3rem 1.3rem 1.3rem;
    flex-direction: column;
    gap: 1.2rem;
    border-top: 1px solid #e5e7eb;
}

.collapsible-section.expanded .collapsible-content {
    display: flex;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-label {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
    cursor: pointer;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
    cursor: pointer;
}

.additional-subsection {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.photo-upload-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

.photo-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 1.5rem;
    border: 2px dashed #bfdbfe;
    border-radius: 4px;
    background: #eff6ff;
    cursor: pointer !important;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
}

.photo-upload-area:hover {
    border-color: #3b82f6;
    background: #dbeafe;
}

.photo-upload-area span {
    text-align: center;
    font-size: 0.85rem;
    color: #4b5563;
}

.photo-upload-area strong {
    color: #3b82f6;
    text-decoration: underline;
}

.photo-input {
    display: none;
}

.custom-item-photo-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.5rem;
}

.custom-item-photo-area {
    padding: 0.65rem 0.4rem;
    min-height: 96px;
    gap: 0.25rem;
}

.custom-item-photo-area svg {
    width: 22px;
    height: 22px;
}

.custom-item-photo-area span {
    font-size: 0.72rem;
    line-height: 1.2;
}

.dimensions-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dimension-item,
.transport-item-panel,
[data-item-entry-form],
[data-vehicle-entry-form] {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.2rem 1.25rem;
    position: relative;
    box-sizing: border-box;
}

/* Transport quote: outer step cards stay white (House / Office removals unchanged). */
body:not(.house-removals-active):not(.office-removals-active) .job-form.v2 .form-v2-main .card-section,
body:not(.house-removals-active):not(.office-removals-active) .job-form.v2 .form-v2-main .map-step-card {
    background: #ffffff;
    border-color: #e5e7eb;
    border-radius: 4px;
}

/* Transport inventory shells (piano, vehicles, pets, customized, freight, clearance, etc.). */
body:not(.house-removals-active):not(.office-removals-active)[data-form-step="3"] .transport-inventory-shell,
body:not(.house-removals-active):not(.office-removals-active)[data-current-step="3"] .transport-inventory-shell,
body:not(.house-removals-active):not(.office-removals-active)[data-form-step="3"] #piano-delivery-section > .card-section,
body:not(.house-removals-active):not(.office-removals-active)[data-current-step="3"] #piano-delivery-section > .card-section,
body:not(.house-removals-active):not(.office-removals-active)[data-form-step="3"] #pets-transport-section > .card-section,
body:not(.house-removals-active):not(.office-removals-active)[data-current-step="3"] #pets-transport-section > .card-section,
body:not(.house-removals-active):not(.office-removals-active)[data-form-step="3"] #car-transport-section > .card-section,
body:not(.house-removals-active):not(.office-removals-active)[data-current-step="3"] #car-transport-section > .card-section,
body:not(.house-removals-active):not(.office-removals-active)[data-form-step="3"] #motorbike-transport-section > .card-section,
body:not(.house-removals-active):not(.office-removals-active)[data-current-step="3"] #motorbike-transport-section > .card-section,
body:not(.house-removals-active):not(.office-removals-active)[data-form-step="3"] #trailer-campervan-section > .card-section,
body:not(.house-removals-active):not(.office-removals-active)[data-current-step="3"] #trailer-campervan-section > .card-section,
body:not(.house-removals-active):not(.office-removals-active)[data-form-step="3"] #customized-items-inventory-section,
body:not(.house-removals-active):not(.office-removals-active)[data-current-step="3"] #customized-items-inventory-section,
body:not(.house-removals-active):not(.office-removals-active)[data-form-step="3"] .freight-customized-shell,
body:not(.house-removals-active):not(.office-removals-active)[data-current-step="3"] .freight-customized-shell,
body:not(.house-removals-active):not(.office-removals-active)[data-form-step="3"] .clearance-customized-shell,
body:not(.house-removals-active):not(.office-removals-active)[data-current-step="3"] .clearance-customized-shell,
body:not(.house-removals-active):not(.office-removals-active)[data-form-step="3"] #industrial-weight-section,
body:not(.house-removals-active):not(.office-removals-active)[data-current-step="3"] #industrial-weight-section,
body:not(.house-removals-active):not(.office-removals-active)[data-form-step="3"] #manpower-details-section,
body:not(.house-removals-active):not(.office-removals-active)[data-current-step="3"] #manpower-details-section {
    background: #f8fbff;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08);
}

/* Entry cards inside transport shells: full light-blue panel (piano, vehicles, pets, etc.). */
body:not(.house-removals-active):not(.office-removals-active)[data-form-step="3"] .transport-inventory-shell .transport-entry-card,
body:not(.house-removals-active):not(.office-removals-active)[data-current-step="3"] .transport-inventory-shell .transport-entry-card,
body:not(.house-removals-active):not(.office-removals-active)[data-form-step="3"] .transport-inventory-shell #dimensions-list .dimension-item,
body:not(.house-removals-active):not(.office-removals-active)[data-current-step="3"] .transport-inventory-shell #dimensions-list .dimension-item,
body:not(.house-removals-active):not(.office-removals-active)[data-form-step="3"] #pianos-list .saved-entry-form-clone,
body:not(.house-removals-active):not(.office-removals-active)[data-current-step="3"] #pianos-list .saved-entry-form-clone,
body:not(.house-removals-active):not(.office-removals-active)[data-form-step="3"] #pets-list .saved-entry-form-clone,
body:not(.house-removals-active):not(.office-removals-active)[data-current-step="3"] #pets-list .saved-entry-form-clone,
body:not(.house-removals-active):not(.office-removals-active)[data-form-step="3"] #car-list .saved-entry-form-clone,
body:not(.house-removals-active):not(.office-removals-active)[data-current-step="3"] #car-list .saved-entry-form-clone,
body:not(.house-removals-active):not(.office-removals-active)[data-form-step="3"] #motorbike-list .saved-entry-form-clone,
body:not(.house-removals-active):not(.office-removals-active)[data-current-step="3"] #motorbike-list .saved-entry-form-clone,
body:not(.house-removals-active):not(.office-removals-active)[data-form-step="3"] #trailer-list .saved-entry-form-clone,
body:not(.house-removals-active):not(.office-removals-active)[data-current-step="3"] #trailer-list .saved-entry-form-clone {
    background: #f8fbff !important;
    border: 1px solid #dbeafe !important;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08);
}

body:not(.house-removals-active):not(.office-removals-active)[data-form-step="3"] .transport-entry-card .transport-item-subpanel,
body:not(.house-removals-active):not(.office-removals-active)[data-current-step="3"] .transport-entry-card .transport-item-subpanel,
body:not(.house-removals-active):not(.office-removals-active)[data-form-step="3"] [data-item-entry-form] .transport-item-subpanel,
body:not(.house-removals-active):not(.office-removals-active)[data-current-step="3"] [data-item-entry-form] .transport-item-subpanel {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.transport-entry-fields {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.custom-item-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px;
    line-height: 1.2;
}

/* House / Office removals: keep inventory areas white (no transport blue panels). */
body.house-removals-active[data-form-step="3"] #house-removal-inventory-section,
body.house-removals-active[data-current-step="3"] #house-removal-inventory-section,
body.office-removals-active[data-form-step="3"] #office-removal-inventory-section,
body.office-removals-active[data-current-step="3"] #office-removal-inventory-section,
body.house-removals-active[data-form-step="3"] .floor-inventory-section,
body.house-removals-active[data-current-step="3"] .floor-inventory-section,
body.office-removals-active[data-form-step="3"] .floor-inventory-section,
body.office-removals-active[data-current-step="3"] .floor-inventory-section,
body.house-removals-active[data-form-step="3"] .floor-inventory-block,
body.house-removals-active[data-current-step="3"] .floor-inventory-block,
body.office-removals-active[data-form-step="3"] .floor-inventory-block,
body.office-removals-active[data-current-step="3"] .floor-inventory-block,
body.house-removals-active[data-form-step="3"] .floor-inventory-block .inventory-items-list,
body.house-removals-active[data-current-step="3"] .floor-inventory-block .inventory-items-list,
body.office-removals-active[data-form-step="3"] .floor-inventory-block .inventory-items-list,
body.office-removals-active[data-current-step="3"] .floor-inventory-block .inventory-items-list {
    background: #ffffff !important;
    border-color: #e5e7eb !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) !important;
}

/* Step 3 item-entry panels: light blue cards (transport services; House/Office removals excluded). */
body:not(.house-removals-active):not(.office-removals-active)[data-form-step="3"] #pickup-room-list,
body:not(.house-removals-active):not(.office-removals-active)[data-current-step="3"] #pickup-room-list,
body:not(.house-removals-active):not(.office-removals-active)[data-form-step="3"] #dimensions-list .dimension-item,
body:not(.house-removals-active):not(.office-removals-active)[data-current-step="3"] #dimensions-list .dimension-item,
body:not(.house-removals-active):not(.office-removals-active)[data-form-step="3"] #pets-list .dimension-item,
body:not(.house-removals-active):not(.office-removals-active)[data-current-step="3"] #pets-list .dimension-item,
body:not(.house-removals-active):not(.office-removals-active)[data-form-step="3"] .dimension-item.freight-customized-card,
body:not(.house-removals-active):not(.office-removals-active)[data-form-step="3"] .dimension-item.clearance-customized-card,
body:not(.house-removals-active):not(.office-removals-active)[data-current-step="3"] .dimension-item.freight-customized-card,
body:not(.house-removals-active):not(.office-removals-active)[data-current-step="3"] .dimension-item.clearance-customized-card,
body:not(.house-removals-active):not(.office-removals-active) [data-form-step="3"] .transport-item-panel,
body:not(.house-removals-active):not(.office-removals-active) [data-form-step="3"] [data-item-entry-form],
body:not(.house-removals-active):not(.office-removals-active) [data-form-step="3"] [data-vehicle-entry-form],
body:not(.house-removals-active):not(.office-removals-active)[data-current-step="3"] .transport-item-panel,
body:not(.house-removals-active):not(.office-removals-active)[data-current-step="3"] [data-item-entry-form],
body:not(.house-removals-active):not(.office-removals-active)[data-current-step="3"] [data-vehicle-entry-form] {
    background: #f8fbff;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08);
}

.saved-entry-form-wrap {
    margin-bottom: 14px;
}

.saved-entry-form-clone {
    pointer-events: none;
    user-select: none;
}

.saved-entry-form-wrap > .saved-entry-form-actions,
.saved-entry-form-clone .saved-entry-form-actions {
    pointer-events: auto;
}

body:not(.house-removals-active):not(.office-removals-active)[data-form-step="3"] #pianos-list .saved-entry-form-clone,
body:not(.house-removals-active):not(.office-removals-active)[data-current-step="3"] #pianos-list .saved-entry-form-clone,
body:not(.house-removals-active):not(.office-removals-active)[data-form-step="3"] #pets-list .saved-entry-form-clone,
body:not(.house-removals-active):not(.office-removals-active)[data-current-step="3"] #pets-list .saved-entry-form-clone {
    background: #f8fbff;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08);
}

.transport-item-panel .transport-item-subpanel,
[data-item-entry-form] .transport-item-subpanel {
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    box-sizing: border-box;
}

.dimension-description {
    font-size: 1rem;
    padding: 0.9rem 1.05rem;
    border: 1px solid #60a5fa;
    border-radius: 8px;
    background: #f9fbff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.dimension-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 0.7fr 1fr 0.7fr;
    gap: 0.6rem;
    align-items: flex-end;
}

.dimension-input-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.01em;
}

.dimension-field-stack {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.dimension-field-stack .form-input {
    width: 100%;
}

.dimension-field-stack .field-error-message {
    margin-top: 0.15rem;
    font-size: 0.8rem;
    line-height: 1.3;
    color: #b45309;
    font-weight: 600;
}

.dimension-field-stack .form-input.input-error,
.dimension-field-stack .form-input[aria-invalid="true"] {
    border-color: #ef4444 !important;
    background: #fff1f2;
}

.dimension-field {
    font-size: 1rem;
    padding: 12px 12px;
    font-weight: 400;
    border: 1px solid #d1d5db;
    background: #ffffff;
    border-radius: 4px;
    color: #374151;
}

.dimension-unit {
    font-size: 1rem;
    padding: 12px 12px;
    font-weight: 400;
    border: 1px solid #d1d5db;
    background: #ffffff;
    border-radius: 4px;
    color: #374151;
}

.btn-delete-dimension {
    background: none;
    border: none;
    color: #ec4899;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: opacity 0.2s;
    align-self: flex-end;
}

.btn-delete-dimension:hover {
    opacity: 0.7;
}

.btn-add-dimension {
    background: white;
    border: 2px solid #3b82f6;
    color: #3b82f6;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: background 0.2s, color 0.2s;
    width: 100%;
    margin-top: 0.5rem;
}

.btn-add-dimension:hover {
    background: #eff6ff;
}

.btn-add-dimension svg {
    stroke: #3b82f6;
}

@media (max-width: 768px) {
    .photo-upload-grid {
        grid-template-columns: 1fr;
    }

    .custom-item-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dimension-inputs {
        grid-template-columns: repeat(2, 1fr);
    }
}
.btn-primary.btn-large {
    background: linear-gradient(90deg, #4A90E2 0%, #357ABD 100%);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 18px 0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(74, 144, 226, 0.12);
    transition: background 0.2s, box-shadow 0.2s;
}
.btn-primary.btn-large:hover {
    background: linear-gradient(90deg, #357ABD 0%, #4A90E2 100%);
    box-shadow: 0 8px 24px rgba(74, 144, 226, 0.18);
}

.form-header {
    margin-bottom: var(--spacing-xl);
}

.form-section.card-section {
    margin-bottom: var(--spacing-xl);
}
/* Step Indicator */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-2xl);
    gap: 0.5rem;
}
.step-indicator .step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    border: 2px solid var(--primary-color);
    transition: background 0.2s, color 0.2s;
}
.step-indicator .step.active {
    background: var(--primary-color);
    color: #fff;
}
.step-indicator .step-line {
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Card-style form sections */
.card-section {
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    border: 1px solid #e5e7eb;
}
.card-section legend {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}
/* Create Job Styles */
.create-job-main {
    width: 100%;
    padding: 60px 40px 60px 40px;
    background: #f5f5f5;
    min-height: 100vh;
}

.form-wrapper {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    max-width: 1400px;
    margin: 0 auto;
}

.form-header {
    margin-bottom: var(--spacing-2xl);
    text-align: center;
}

.form-header h1 {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-md);
}

.form-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Form Sections */
.job-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2xl);
}

.form-section {
    border: none;
    padding: 0;
    margin: 0;
    padding-bottom: var(--spacing-2xl);
    border-bottom: 1px solid var(--border-color);
}

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

.form-section legend {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    padding: 0;
}

/* Route preview */
.route-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-lg);
    align-items: stretch;
}

.map-card {
    min-height: 260px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
}

.map-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: var(--spacing-lg);
    text-align: center;
    background: linear-gradient(135deg, #f7f9fb 0%, #eef2f6 100%);
}

.route-stats {
    display: grid;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--secondary-color);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: var(--spacing-xs);
}

.stat-value.highlight {
    color: var(--primary-color);
}

.muted {
    color: var(--text-secondary);
}
/* Dimensions Section */
.dimensions-row {
    grid-template-columns: repeat(3, 1fr);
}

.input-with-unit {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-end;
}

.input-with-unit input {
    flex: 2;
    min-width: 0;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    color: var(--text-primary);
    background-color: white;
    transition: border-color 0.2s ease;
}

.input-with-unit input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.input-with-unit input::placeholder {
    color: #999;
}

.unit-select {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: white;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-primary);
    width: 60px;
    flex-shrink: 0;
    transition: border-color 0.2s ease;
}

.unit-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Repeatable Items */
.items-list {
    display: grid;
    gap: var(--spacing-xl);
}

.item-entry .item-divider {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin-top: var(--spacing-lg);
}

.item-actions {
    align-items: end;
}

.btn-remove-item {
    color: var(--danger-color);
}

.form-actions-inline {
    margin-top: var(--spacing-md);
}

.item-entry .form-group small {
    color: var(--text-secondary);
}

.item-entry input[type="file"] {
    padding: var(--spacing-md);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
}

.section-description,
.section-note {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
    display: block;
}

.section-note {
    margin-top: var(--spacing-md);
    font-style: italic;
}
/* Form Actions */
.form-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border-color);
}

.form-actions .btn {
    min-width: 150px;
}

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

.form-actions .btn-secondary:hover {
    background-color: var(--secondary-color);
}

/* File Upload Styling */
input[type="file"] {
    padding: var(--spacing-md);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
}

input[type="file"]:focus {
    border-color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .create-job-container {
        max-width: 100%;
    }

    .form-wrapper {
        padding: var(--spacing-lg);
    }

    .form-header h1 {
        font-size: 1.4rem;
    }

    .route-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }
}
/* Car Transport Styles */
.car-transport-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s ease;
    background: white;
    border: 1px solid #e5e7eb;
    margin-bottom: 8px;
}

.car-transport-option:hover {
    background: #f0f7ff;
    border-color: #4A90E2;
}

.car-transport-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #4A90E2;
}

.car-transport-option .option-text {
    flex: 1;
    color: #374151;
    font-size: 0.95rem;
}

.car-transport-option .option-price {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
}

#car-transport-method-menu .dropdown-col {
    padding: 8px;
}

#car-value-menu .dropdown-col,
#car-condition-menu .dropdown-col {
    padding: 8px;
}

@media (min-width: 1000px) {
    .floors-row {
        flex-wrap: nowrap;
    }
    .floors-illustration {
        flex: 0 0 220px;
    }
    .floors-illustration-img {
        width: 242px;
    }
}

/* Single-form floor blocks: force selects visible after base rules */
.single-form .floor-block .location-nav {
    display: none !important;
}

.single-form .floor-block .location-nav-wrapper {
    position: static !important;
    display: block !important;
}

.single-form .floor-block .location-nav-select {
    position: static !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    margin-top: 8px !important;
    display: block !important;
    visibility: visible !important;
    min-height: 44px !important;
    padding: 10px 12px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    cursor: pointer !important;
    appearance: auto !important;
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
    z-index: 1 !important;
}

#floor-inventory-section .location-nav {
    display: none !important;
}

#floor-inventory-section .location-nav-wrapper {
    position: static !important;
    display: block !important;
}

#floor-inventory-section .location-nav-select {
    position: static !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    margin-top: 8px !important;
    display: block !important;
    visibility: visible !important;
    min-height: 44px !important;
    padding: 10px 12px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    cursor: pointer !important;
    appearance: auto !important;
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
    z-index: 1 !important;
}

/* Drag and Drop Item Organization Styles */
.drag-drop-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.items-pool-section {
    background: #f9fafb;
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px dashed #d1d5db;
}

#delivery-floor-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

#delivery-room-list .form-group {
    margin-bottom: 1.5rem;
}

.items-pool {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    min-height: 100px;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.items-pool.empty::after {
    content: 'All items have been organized!';
    display: block;
    width: 100%;
    text-align: center;
    color: #9ca3af;
    font-style: italic;
    padding: 2rem;
}

.draggable-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #3b82f6;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: grab;
    user-select: none;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.draggable-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.draggable-item.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.item-quantity-badge {
    background: rgba(255,255,255,0.3);
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.rooms-grid-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
}

.delivery-rooms-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.room-drop-zone {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    min-height: 150px;
    transition: all 0.2s;
}

.room-drop-zone:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.room-drop-zone.drag-over {
    background: #dbeafe;
    border-color: #3b82f6;
    border-style: solid;
}

.room-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.room-icon {
    width: 24px;
    height: 24px;
    color: #3b82f6;
}

.room-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 1rem;
}

.room-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.room-item-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    color: #374151;
}

.room-item-chip:hover {
    background: #f3f4f6;
}

.room-item-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1.1rem;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.room-item-remove:hover {
    opacity: 1;
}

/* Service Requirements Section */
.service-requirement-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.2s ease;
}

.service-requirement-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.service-requirement-header {
    margin-bottom: 1rem;
}

.service-requirement-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    font-size: 1rem;
}

.service-requirement-label span {
    flex: 1;
}

/* Info Tooltip Styling */
.info-tooltip-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: help;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.info-icon:hover {
    background: #1d4ed8;
    transform: scale(1.1);
}

.info-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 400;
    white-space: normal;
    width: max-content;
    max-width: min(320px, calc(100vw - 24px));
    line-height: 1.35;
    word-break: break-word;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    margin-bottom: 8px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.info-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1f2937;
}

.info-tooltip-wrapper:hover .info-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Service Options (Yes/No Buttons) */
.service-requirement-options {
    display: flex;
    gap: 1rem;
}

.service-option-btn {
    flex: 1;
    padding: 10px 20px;
    border: 2px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.service-option-btn:hover {
    border-color: #d1d5db;
    background: #f3f4f6;
}

.service-option-btn.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.service-option-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Service Number Input */
.service-requirement-input {
    display: flex;
    gap: 1rem;
}

.service-number-input {
    width: 100%;
    max-width: 150px;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    color: #2563eb;
    transition: all 0.2s ease;
    appearance: textfield;
    -moz-appearance: textfield;
}

.service-number-input::-webkit-inner-spin-button,
.service-number-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.service-number-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.service-number-input::placeholder {
    color: #d1d5db;
}

@media (max-width: 768px) {
    .delivery-rooms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .drag-drop-container {
        gap: 1.5rem;
    }

    .service-requirement-label {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .info-tooltip-wrapper {
        align-self: flex-start;
    }

    .info-tooltip {
        left: 0;
        right: auto;
        transform: none;
        max-width: calc(100vw - 40px);
    }

    .info-tooltip::after {
        left: 14px;
        transform: none;
    }

    .service-requirement-options {
        flex-direction: column;
    }

    .service-option-btn {
        width: 100%;
    }
}
@media (max-width: 480px) {
    .delivery-rooms-grid {
        grid-template-columns: 1fr;
    }
}

/* Final mobile overrides (kept at end to beat earlier conflicting breakpoints) */
@media (max-width: 768px) {
    .job-form.v2 {
        padding: 84px 0.5rem 1rem !important;
    }

    body.multi-stop-mode .form-v2-grid,
    .multi-stop-mode .form-v2-grid,
    .multi-stop-mode .form-v2-grid.no-side-map {
        grid-template-columns: 1fr !important;
    }

    .form-v2-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .form-stepper,
    .form-v2-map {
        display: none !important;
    }

    .multi-stop-mode .form-stepper,
    .multi-stop-mode .form-v2-map {
        display: none !important;
    }

    .form-v2-main {
        grid-column: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        font-size: 1rem !important;
        padding: 1rem !important;
        margin: 0 !important;
    }

    .multi-stop-mode .form-v2-main {
        grid-column: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .map-step-card .section-title {
        font-size: 1.05rem !important;
        line-height: 1.35 !important;
        margin-bottom: 0.8rem !important;
    }

    .map-step-card .map-card,
    .map-card {
        min-height: 144px !important;
        height: 144px !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .map-info {
        padding: 0.85rem !important;
        gap: 0.65rem !important;
    }

    .map-metrics {
        gap: 0.7rem !important;
    }

    .form-v2-main-grid {
        width: 100% !important;
        min-width: 0 !important;
        padding-bottom: 90px;
    }

    .form-v2-main-grid > .card-section,
    .map-step-card {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box;
    }

    .pickup-room-flex:not(.step-hidden) {
        display: block !important;
    }

    .pickup-room-flex.step-hidden {
        display: none !important;
    }

    .pickup-room-flex > #pickup-room-list,
    .pickup-room-flex > #delivery-room-list {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: visible !important;
    }

    body[data-form-step="3"] #house-removal-inventory-section > #room-tabs,
    body[data-current-step="3"] #house-removal-inventory-section > #room-tabs,
    body[data-form-step="3"] #house-removal-inventory-section .floor-inventory-block .inventory-tabs,
    body[data-current-step="3"] #house-removal-inventory-section .floor-inventory-block .inventory-tabs,
    body[data-form-step="3"] #house-removal-inventory-section .floor-inventory-block .inventory-tabs-sticky,
    body[data-current-step="3"] #house-removal-inventory-section .floor-inventory-block .inventory-tabs-sticky {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        overflow: visible !important;
        touch-action: auto;
        box-shadow: none !important;
        background: transparent !important;
    }

    body[data-form-step="3"] #house-removal-inventory-section .inventory-tab,
    body[data-current-step="3"] #house-removal-inventory-section .inventory-tab {
        width: 100% !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        margin: 0 !important;
        min-height: 68px !important;
        padding: 12px 14px !important;
        font-size: 1.02rem !important;
        line-height: 1.2 !important;
        text-align: left !important;
        border: 1px solid #d1d5db !important;
        border-radius: 10px !important;
        background: #fff !important;
        border-right: 1px solid #d1d5db !important;
        position: relative;
    }

    body[data-form-step="3"] #house-removal-inventory-section .inventory-tab > span,
    body[data-current-step="3"] #house-removal-inventory-section .inventory-tab > span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-right: 6px;
    }

    body[data-form-step="3"] #house-removal-inventory-section .inventory-tab::after,
    body[data-current-step="3"] #house-removal-inventory-section .inventory-tab::after {
        content: '+';
        margin-left: auto;
        color: #94a3b8;
        font-size: 1.35rem;
        font-weight: 700;
        line-height: 1;
    }

    body[data-form-step="3"] #house-removal-inventory-section .inventory-tab.active::after,
    body[data-current-step="3"] #house-removal-inventory-section .inventory-tab.active::after {
        content: '-';
    }

    body[data-form-step="3"] #house-removal-inventory-section .inventory-tabs.mobile-accordion-open .inventory-tab.is-mobile-hidden,
    body[data-current-step="3"] #house-removal-inventory-section .inventory-tabs.mobile-accordion-open .inventory-tab.is-mobile-hidden {
        display: none !important;
    }

    body[data-form-step="3"] #house-removal-inventory-section .floor-inventory-block .inventory-block-header,
    body[data-current-step="3"] #house-removal-inventory-section .floor-inventory-block .inventory-block-header {
        padding-right: 12px;
    }

    body[data-form-step="3"] #house-removal-inventory-section > #room-tabs.is-hidden-by-multi-floor,
    body[data-current-step="3"] #house-removal-inventory-section > #room-tabs.is-hidden-by-multi-floor,
    body[data-form-step="3"] #house-removal-inventory-section > #room-items-container.is-hidden-by-multi-floor,
    body[data-current-step="3"] #house-removal-inventory-section > #room-items-container.is-hidden-by-multi-floor {
        display: none !important;
    }

    #pickup-floors-selector,
    #delivery-floors-selector {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        width: 100% !important;
        overflow: visible !important;
    }

    .pickup-floor-selector-btn,
    .delivery-floor-selector-btn {
        margin: 0 !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .card-section {
        padding: 1rem !important;
    }

    .location-editor.open {
        display: block !important;
        width: 100% !important;
    }

    .location-col {
        min-width: 0 !important;
        width: 100% !important;
        margin-bottom: 0.75rem;
    }

    .location-inline {
        grid-template-columns: 1fr !important;
        gap: 0.6rem !important;
    }

    #property-type-icon-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .property-type-icon-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .form-top-actions {
        margin-top: 56px !important;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .sticky-action-btn {
        padding: 10px 18px !important;
        font-size: 1rem !important;
        min-width: 88px !important;
    }

    #service-requirements-section .service-requirement-card {
        padding: 12px !important;
    }

    #service-requirements-section .service-requirement-options {
        gap: 0.6rem !important;
    }

    #service-requirements-section .packing-mode-btn,
    #service-requirements-section .packing-box-provider-btn {
        width: 100% !important;
        text-align: left !important;
        padding: 10px 12px !important;
    }

    #service-requirements-section #packing-items-config {
        padding: 8px !important;
    }

    #service-requirements-section #packing-items-list {
        gap: 8px !important;
    }
}

@media (max-width: 480px) {
    .create-job-main {
        padding: 72px 12px 84px 12px !important;
    }

    .job-form.v2 {
        padding: 80px 0.35rem 1rem !important;
    }

    .form-v2-main {
        padding: 0.85rem !important;
    }

    .form-top-actions {
        margin-top: 64px !important;
    }

    #property-type-icon-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Final visibility locks for Step 3 service split */
body:not([data-form-step="3"]) #inventory-card-container,
body:not([data-current-step="3"]) #inventory-card-container {
    display: none !important;
}

body:not([data-form-step="3"]) #house-removal-inventory-section,
body:not([data-current-step="3"]) #house-removal-inventory-section {
    display: none !important;
}

body[data-form-step="3"]:not(.house-removals-active) #house-removal-inventory-section,
body[data-current-step="3"]:not(.house-removals-active) #house-removal-inventory-section {
    display: none !important;
}

body.customized-items-active #house-removal-inventory-section {
    display: none !important;
}

/* Hide customized items section by default at Step 3 - shown only after "Confirm Selected Floors" button */
body.customized-items-active[data-form-step="3"] #customized-items-inventory-section,
body.customized-items-active[data-current-step="3"] #customized-items-inventory-section {
    display: none !important;
}

/* Show customized items when revealed class is added */
body.customized-items-active[data-form-step="3"] #customized-items-inventory-section.customized-revealed,
body.customized-items-active[data-current-step="3"] #customized-items-inventory-section.customized-revealed {
    display: block !important;
}

body.customized-items-active[data-form-step="3"] #inventory-card-container,
body.customized-items-active[data-current-step="3"] #inventory-card-container {
    display: block !important;
}

/* Step 3 House Removals: force inventory to span full viewport width */
body.house-removals-active[data-form-step="3"] #inventory-card-container,
body.house-removals-active[data-current-step="3"] #inventory-card-container {
    width: 100% !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

body.house-removals-active[data-form-step="3"] #house-removal-inventory-section,
body.house-removals-active[data-current-step="3"] #house-removal-inventory-section {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 0 !important;
}

/* Ultimate mobile layout lock: bypass desktop grid columns entirely on phones. */
@media (max-width: 768px) {
    .job-form.v2 .form-v2-grid {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .job-form.v2 #form-stepper,
    .job-form.v2 .form-v2-map {
        display: none !important;
    }

    .job-form.v2 #create-job-form,
    .job-form.v2 .form-v2-main,
    .job-form.v2 .form-v2-main-grid {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .job-form.v2 .form-v2-main-grid > .card-section,
    .job-form.v2 .map-step-card {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

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

body.app-alert-open {
    overflow: hidden;
}

.app-alert-modal {
    z-index: 1200;
}

.app-alert-modal.show {
    align-items: flex-start;
    justify-content: center;
    padding-top: calc(var(--navbar-height, 82px) + env(safe-area-inset-top, 0px) + 1rem);
    padding-bottom: 1.5rem;
    overflow-y: auto;
}

.app-alert-modal__panel {
    max-width: 420px;
    width: min(92vw, 420px);
    padding: 1.75rem 1.75rem 1.5rem;
    text-align: center;
    border: 1px solid #e5e7eb;
    margin: 0 auto;
    animation: appAlertSlideDown 0.22s ease;
}

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

.app-alert-modal__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.app-alert-modal__icon[data-variant="error"] {
    color: #b91c1c;
    background: #fef2f2;
    border-color: #fecaca;
}

.app-alert-modal__icon[data-variant="success"] {
    color: #047857;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.app-alert-modal__icon[data-variant="info"] {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.app-alert-modal__title {
    margin: 0 0 0.65rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.app-alert-modal__message {
    margin: 0 0 1.35rem;
    font-size: 0.98rem;
    line-height: 1.55;
    color: #475569;
}

.app-alert-modal__actions {
    display: flex;
    justify-content: center;
}

.app-alert-modal__ok {
    min-width: 120px;
    padding: 0.65rem 1.5rem;
    font-weight: 600;
}

/* Compact inline validation notice beside the missing field */
.inline-validation-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 0.35rem 0 0.65rem;
    padding: 0.45rem 0.55rem;
    border-radius: 6px;
    border: 1px solid #fcd34d;
    background: #fffbeb;
    color: #92400e;
    font-size: 0.82rem;
    line-height: 1.35;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.inline-validation-notice[data-variant="error"] {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #991b1b;
}

.inline-validation-notice__icon {
    flex: 0 0 auto;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    background: #fde68a;
    color: #92400e;
}

.inline-validation-notice[data-variant="error"] .inline-validation-notice__icon {
    background: #fecaca;
    color: #991b1b;
}

.inline-validation-notice__text {
    flex: 1 1 auto;
    min-width: 0;
}

.inline-validation-notice__dismiss {
    flex: 0 0 auto;
    appearance: none;
    border: none;
    background: transparent;
    color: inherit;
    opacity: 0.65;
    font-size: 1.05rem;
    line-height: 1;
    padding: 0 0.1rem;
    cursor: pointer;
}

.inline-validation-notice__dismiss:hover {
    opacity: 1;
}

[data-vehicle-entry-form] > .inline-validation-notice,
[data-item-entry-form] > .inline-validation-notice {
    margin-top: 0.25rem;
    margin-bottom: 0.85rem;
}

.form-group > .inline-validation-notice {
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

.dimension-field-stack > .inline-validation-notice {
    margin-top: 0.15rem;
    margin-bottom: 0.35rem;
    font-size: 0.78rem;
}