/* Quotation Wizard - shared styles for moving / storage / packaging */

.wiz-box {
    max-width: 1400px;
    margin: 40px auto 60px;
    background: #fff;
    border-radius: 26px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.10);
    display: flex;
    overflow: hidden;
    min-height: 520px;
}

.wiz-image {
    width: 40%;
    min-height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.wiz-image-moving   { background-image: url('../images/movingservice.png'); }
.wiz-image-storage  { background-image: url('../images/storageimg.png'); }
.wiz-image-packaging { background-image: url('../images/Packingimg.png'); }

.wiz-form {
    width: 70%;
    padding: 40px 48px;
    display: flex;
    flex-direction: column;
}

.wiz-form h2 {
    color: #061D5B;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.wiz-form .wiz-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.wiz-step-label {
    color: #666;
    font-size: 14px;
    margin-bottom: 16px;
}

.wiz-progress-track {
    width: 100%;
    height: 8px;
    background: #ebebeb;
    border-radius: 4px;
    margin-bottom: 32px;
    overflow: hidden;
}

.wiz-progress-fill {
    height: 100%;
    background: #00007E;
    border-radius: 4px;
    transition: width 0.3s;
}

.wiz-panel { display: none; }
.wiz-panel.active { display: block; }

.wiz-group { margin-bottom: 18px; }
.wiz-group > label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}
.wiz-group select,
.wiz-group input[type="text"],
.wiz-group input[type="email"],
.wiz-group input[type="tel"],
.wiz-group input[type="number"],
.wiz-group input[type="date"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #D0D5DD;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    background: #fff;
    box-sizing: border-box;
}
.wiz-group select:disabled {
    background: #f5f5f5;
    color: #999;
}

.wiz-row { display: flex; gap: 16px; }
.wiz-row .wiz-group { flex: 1; }

.wiz-radio-group {
    display: flex;
    gap: 24px;
    margin-top: 4px;
}
.wiz-radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
    cursor: pointer;
    margin: 0;
}
.wiz-radio-group input[type="radio"] {
    accent-color: #00007E;
    width: 16px;
    height: 16px;
}

.wiz-btn-next,
.wiz-btn-submit {
    background: #00007E;
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
.wiz-btn-next:hover,
.wiz-btn-submit:hover { opacity: 0.9; }

.wiz-btn-back {
    background: #E0E0E0;
    color: #333;
    border: none;
    padding: 12px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
.wiz-btn-back:hover { opacity: 0.85; }

.wiz-buttons {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}
.wiz-buttons-end {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
}

/* Items step */
.wiz-item-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}
.wiz-item-tab {
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid #D0D5DD;
    background: #fff;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}
.wiz-item-tab:hover { background: #f0f0ff; }
.wiz-item-tab.active {
    background: #00007E;
    color: #fff;
    border-color: #00007E;
}

.wiz-items-pane { display: none; }
.wiz-items-pane.active { display: block; }

.wiz-panel-items {
    min-height: 0;
}

.wiz-items-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.wiz-items-header .wiz-subtitle {
    margin-bottom: 20px;
}

.wiz-btn-add-item {
    background: #fff;
    color: #00007E;
    border: 1px solid #00007E;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.wiz-btn-add-item:hover {
    background: #f5f7ff;
}

.wiz-items-table-wrap {
    max-height: clamp(320px, 48vh, 460px);
    overflow: auto;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.wiz-items-summary {
    display: flex;
    align-items: stretch;
    gap: 16px;
    margin-top: 16px;
    padding: 18px 24px;
    background: linear-gradient(135deg, #f0f4ff 0%, #f8f9fb 100%);
    border: 1px solid #dbe2f5;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(6, 29, 91, 0.04);
}
.wiz-items-summary-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.wiz-items-summary-label {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.wiz-items-summary-value {
    font-size: 24px;
    font-weight: 700;
    color: #00007E;
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.wiz-items-summary-unit {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
}
.wiz-items-summary-divider {
    width: 1px;
    background: #dbe2f5;
}
@media (max-width: 640px) {
    .wiz-items-summary {
        flex-direction: column;
        gap: 12px;
        padding: 16px 18px;
    }
    .wiz-items-summary-divider {
        width: 100%;
        height: 1px;
    }
    .wiz-items-summary-value {
        font-size: 22px;
    }
}

.wiz-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}
.wiz-items-table thead th {
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    padding: 8px 10px;
    border-bottom: 2px solid #ebebeb;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}
.wiz-items-table tbody td {
    padding: 10px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}
.wiz-custom-item-row {
    background: #f8faff;
}
.wiz-custom-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #dbe7ff;
    color: #061D5B;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.wiz-items-table input[type="number"] {
    width: 64px;
    padding: 6px 8px;
    border: 1px solid #D0D5DD;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}
.wiz-items-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #00007E;
    cursor: pointer;
}
.wiz-dimensions {
    color: #888;
    font-size: 13px;
}

.wiz-qty-control {
    display: flex;
    align-items: center;
    gap: 10px;
}
.wiz-qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    background: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: #00007E;
}
.wiz-qty-btn:hover { background: #f0f0f0; }
.wiz-qty-value {
    font-weight: 700;
    min-width: 28px;
    text-align: center;
    font-size: 15px;
    color: #061D5B;
    display: inline-block;
}

.wiz-qty-control-static {
    justify-content: center;
}

.wiz-item-modal[hidden] {
    display: none;
}

.wiz-item-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
}

.wiz-item-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 29, 91, 0.45);
}

.wiz-item-modal-dialog {
    position: relative;
    max-width: 680px;
    margin: 8vh auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.wiz-item-modal-head,
.wiz-item-modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 24px;
}

.wiz-item-modal-head {
    border-bottom: 1px solid #e5e7eb;
}

.wiz-item-modal-head h3 {
    margin: 0;
    color: #061D5B;
    font-size: 20px;
    font-weight: 700;
}

.wiz-item-modal-close {
    width: 38px;
    height: 38px;
    border: 1px solid #d0d5dd;
    border-radius: 50%;
    background: #fff;
    color: #333;
    cursor: pointer;
}

.wiz-item-modal-body {
    padding: 24px;
}

.wiz-item-modal-error {
    margin: 0;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 600;
}

.wiz-item-modal-actions {
    justify-content: flex-end;
    border-top: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
    .wiz-items-header {
        flex-direction: column;
        align-items: stretch;
    }

    .wiz-btn-add-item {
        width: 100%;
    }

    .wiz-items-table-wrap {
        max-height: 360px;
    }

    .wiz-item-modal-dialog {
        margin: 4vh 16px;
    }

    .wiz-item-modal-head,
    .wiz-item-modal-body,
    .wiz-item-modal-actions {
        padding: 16px;
    }

    .wiz-item-modal-actions {
        flex-direction: column-reverse;
    }

    .wiz-item-modal-actions .wiz-btn-back,
    .wiz-item-modal-actions .wiz-btn-next {
        width: 100%;
    }
}

/* Per-step validation */
.wiz-field-error select,
.wiz-field-error input[type="text"],
.wiz-field-error input[type="email"],
.wiz-field-error input[type="tel"],
.wiz-field-error input[type="number"],
.wiz-field-error input[type="date"] {
    border-color: #dc2626 !important;
    background: #fef2f2;
}
.wiz-field-error label { color: #b91c1c; }
.wiz-field-error-msg {
    display: block;
    color: #b91c1c;
    font-size: 12px;
    margin-top: 4px;
}
.wiz-plan-card.wiz-field-error,
.wiz-field-error .wiz-plan-card {
    border-color: #dc2626;
}

/* Contact step */
.wiz-type-toggle {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border: 1px solid #D0D5DD;
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
}
.wiz-type-toggle-btn {
    padding: 10px 28px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    background: #fff;
    color: #333;
    transition: all 0.2s;
}
.wiz-type-toggle-btn.active {
    background: #00007E;
    color: #fff;
}

.wiz-phone-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #D0D5DD;
    border-radius: 8px;
    overflow: hidden;
}
.wiz-phone-prefix {
    padding: 10px 12px;
    background: #f5f5f5;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    border-right: 1px solid #D0D5DD;
    white-space: nowrap;
}
.wiz-phone-wrap input {
    border: none;
    padding: 10px 14px;
    font-size: 15px;
    flex: 1;
    outline: none;
    width: 100%;
}

/* Storage add-on checkbox */
.wiz-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
    padding: 16px;
    background: #f8f9fb;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}
.wiz-checkbox-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #061D5B;
    margin-top: 2px;
}
.wiz-checkbox-row label {
    margin: 0;
    font-weight: 600;
    color: #32323B;
    display: block;
}
.wiz-checkbox-row .wiz-addon-desc {
    font-size: 13px;
    color: #888;
    margin-top: 2px;
}

/* Plan selection step */
.wiz-plan-cards {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}
.wiz-plan-card {
    flex: 1;
    border: 3px solid var(--plan-color, #e5e7eb);
    border-radius: 14px;
    padding: 24px 18px;
    text-align: center;
    position: relative;
    transition: all 0.2s;
    cursor: pointer;
    background: #fff;
    display: block;
}
.wiz-plan-card[hidden] { display: none !important; }
.wiz-plan-card:hover {
    box-shadow: 0 2px 16px color-mix(in srgb, var(--plan-color, #00007E) 25%, transparent);
}
.wiz-plan-card.selected {
    box-shadow: 0 2px 16px color-mix(in srgb, var(--plan-color, #00007E) 35%, transparent);
    background: color-mix(in srgb, var(--plan-color, #00007E) 6%, #fff);
}
.wiz-plan-card input[type="radio"] { display: none; }

.wiz-plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--plan-color, #00007E);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.wiz-plan-icon,
.wiz-plan-truck {
    color: var(--plan-color, #00007E) !important;
}

.wiz-route-summary {
    display: flex;
    gap: 24px;
    justify-content: center;
    padding: 12px 16px;
    margin: 0 0 20px;
    background: #f5f7ff;
    border: 1px solid #dbe2ff;
    border-radius: 10px;
    font-size: 14px;
    color: #061D5B;
}
.wiz-route-summary strong { color: #00007E; font-weight: 700; }

.wiz-storage-match {
    margin: 0 0 20px;
    padding: 16px 18px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
}
.wiz-storage-match-title {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: #065f46;
    display: flex;
    align-items: center;
    gap: 8px;
}
.wiz-storage-match-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
    color: #064e3b;
    border-top: 1px dashed #a7f3d0;
}
.wiz-storage-match-row:first-of-type { border-top: 0; }
.wiz-storage-match-row strong { color: #065f46; font-weight: 700; }

.wiz-plan-icon {
    font-size: 28px;
    color: #00007E;
    margin-bottom: 8px;
}
.wiz-plan-name {
    font-size: 18px;
    font-weight: 700;
    color: #061D5B;
    margin-bottom: 2px;
}
.wiz-plan-tier {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}
.wiz-plan-truck {
    width: 140px;
    height: 80px;
    margin: 0 auto 12px;
    background: #f7f8fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 24px;
    overflow: hidden;
}
.wiz-plan-truck img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.wiz-plan-time {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}
.wiz-plan-time-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 12px;
}
.wiz-plan-breakdown {
    font-size: 12px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 14px;
    text-align: left;
    padding: 0 4px;
}
.wiz-plan-breakdown span {
    display: flex;
    justify-content: space-between;
}
.wiz-plan-price {
    font-size: 28px;
    font-weight: 800;
    color: #00007E;
    margin-bottom: 14px;
}
.wiz-plan-price small {
    font-size: 14px;
    font-weight: 500;
    color: #888;
}
.wiz-plan-features {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    text-align: left;
}
.wiz-plan-features li {
    font-size: 13px;
    color: #555;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.wiz-plan-features li i {
    color: #2ecc71;
    font-size: 12px;
}

/* Summary section */
.wiz-summary {
    background: #f8f9fb;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 8px;
    border: 1px solid #e5e7eb;
}
.wiz-summary h3 {
    font-size: 16px;
    font-weight: 700;
    color: #061D5B;
    margin-bottom: 12px;
}
.wiz-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #555;
    padding: 4px 0;
}
.wiz-summary-row strong { color: #333; }
.wiz-summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    color: #00007E;
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px solid #ddd;
}

/* Supporting elements */
.wiz-breadcrumb {
    padding: 16px 0;
    color: #666;
    font-size: 14px;
}
.wiz-breadcrumb a {
    color: #00007E;
    text-decoration: none;
}
.wiz-alert {
    margin-bottom: 20px;
    padding: 14px 16px;
    background: #d1fae5;
    color: #065f46;
    border-radius: 8px;
}
.wiz-error {
    color: #b91c1c;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* Plans footnote helper to keep step-moving-plans + step-storage-plans
   inline-style-free. Same visual as the old inline copy. */
.wiz-plan-footnote {
    font-size: 12px;
    color: #888;
    margin-top: 12px;
}

/* ── Include-packing add-on card (wizard last step) ─────────────────── */
.wiz-packing-addon,
.wiz-cash-toggle {
    margin: 20px 0 8px;
    padding: 18px 20px;
    background: #f8faff;
    border: 1.5px solid #d6deff;
    border-radius: 12px;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.wiz-cash-toggle:has(input[type="checkbox"]:checked) {
    border-color: #10b981;
    background: #ecfdf5;
}
.wiz-cash-toggle-label {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    user-select: none;
}
.wiz-cash-toggle-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    accent-color: #10b981;
    cursor: pointer;
    flex-shrink: 0;
}
.wiz-cash-toggle-text strong {
    display: block;
    font-size: 15px;
    color: #061D5B;
    margin-bottom: 2px;
}
.wiz-cash-toggle-text .wiz-cash-toggle-sub {
    display: block;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}
.wiz-packing-addon:has(input[type="checkbox"]:checked) {
    border-color: #3155E7;
    background: #eef2ff;
}
.wiz-packing-toggle {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    user-select: none;
}
.wiz-packing-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.wiz-packing-check {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid #cbd5e1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 12px;
    transition: all 0.15s ease;
    margin-top: 2px;
}
.wiz-packing-toggle input[type="checkbox"]:checked + .wiz-packing-check {
    background: #3155E7;
    border-color: #3155E7;
    color: #ffffff;
}
.wiz-packing-label strong {
    display: block;
    font-size: 15px;
    color: #061D5B;
    margin-bottom: 2px;
}
.wiz-packing-label .wiz-packing-sub {
    display: block;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}
.wiz-packing-body {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #d6deff;
}
.wiz-packing-body[hidden] {
    display: none;
}
.wiz-packing-body label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
}
.wiz-packing-body input[type="number"] {
    width: 100%;
    max-width: 220px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
}
.wiz-packing-body input[type="number"]:focus {
    outline: none;
    border-color: #3155E7;
    box-shadow: 0 0 0 3px rgba(49, 85, 231, 0.15);
}

@media (max-width: 768px) {
    .wiz-box {
        flex-direction: column;
        border-radius: 16px;
    }
    .wiz-image { display: none; }
    .wiz-form {
        width: 100%;
        padding: 28px 20px;
    }
    .wiz-row { flex-direction: column; gap: 0; }
    .wiz-plan-cards { flex-direction: column; }
    .wiz-item-tab { padding: 6px 10px; font-size: 12px; }
}
