
.quote-page {
    padding: 60px 0 80px;
}

.quote-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

.ci-label {
    font-weight: 600;
    color: #333;
}

.counter-item i {
    font-size: 1.2rem;
    min-width: 25px;
    /* Keeps labels aligned */
    text-align: center;
}

/* ── Step tabs ── */
.step-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 28px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.step-tab {
    flex: 1;
    padding: 14px 10px;
    text-align: center;
    background: #f8f8f8;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #999;
    transition: all 0.2s;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.step-tab:last-child {
    border-right: none;
}

.step-tab .tab-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ddd;
    color: #888;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.step-tab.active {
    background: #fff;
    color: #1a1a2e;
}

.step-tab.active .tab-num {
    background: var(--theme-color, #e8a020);
    color: #fff;
}

.step-tab.done {
    color: #16a34a;
}

.step-tab.done .tab-num {
    background: #16a34a;
    color: #fff;
}

/* ── Form panels ── */
.form-panel {
    display: none;
}

.form-panel.active {
    display: block;
}

.panel-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 36px;
    margin-bottom: 20px;
}

.panel-card .panel-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.panel-card .panel-sub {
    font-size: 13px;
    color: #888;
    margin-bottom: 28px;
}

/* ── Service toggle ── */
.service-toggles {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 28px;
}

.svc-toggle {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 18px 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    background: #fafafa;
}

.svc-toggle:hover {
    border-color: #ccc;
    background: #f5f5f5;
}

.svc-toggle.selected {
    border-color: var(--theme-color, #e8a020);
    background: #fffbf2;
}

.svc-toggle i {
    font-size: 28px;
    color: #bbb;
    margin-bottom: 10px;
    display: block;
    transition: color 0.2s;
}

.svc-toggle.selected i {
    color: var(--theme-color, #e8a020);
}

.svc-toggle span {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.svc-toggle.selected span {
    color: #1a1a2e;
}

/* ── Form elements ── */
.field-label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}

.field-label .req {
    color: #ef4444;
}

.form-control,
.form-select {
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    padding: 10px 14px;
    color: #1a1a2e;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--theme-color, #e8a020);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(232, 160, 32, 0.12);
    outline: none;
}

/* ── Room / item counter ── */
.item-counter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.counter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 12px 16px;
    gap: 10px;
}

.counter-item .ci-label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    flex: 1;
}

.counter-item .ci-note {
    font-size: 11px;
    color: #aaa;
    display: block;
    font-weight: 400;
}

.counter-btns {
    display: flex;
    align-items: center;
    gap: 8px;
}

.counter-btns button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.counter-btns button:hover {
    border-color: var(--theme-color, #e8a020);
    color: var(--theme-color, #e8a020);
}

.counter-btns .count-val {
    min-width: 22px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
}

/* ── Packing options ── */
.pack-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pack-opt {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafafa;
}

.pack-opt:hover {
    border-color: #ccc;
}

.pack-opt.selected {
    border-color: var(--theme-color, #e8a020);
    background: #fffbf2;
}

.pack-opt h6 {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px;
}

.pack-opt p {
    font-size: 12px;
    color: #888;
    margin: 0;
    line-height: 1.5;
}

.pack-opt .pack-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--theme-color, #e8a020);
    margin-top: 6px;
}

/* ── Distance slider ── */
.distance-wrap {
    position: relative;
}

.distance-val {
    position: absolute;
    top: -32px;
    transform: translateX(-50%);
    background: var(--theme-color, #e8a020);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    transition: left 0.05s;
}

.distance-val::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--theme-color, #e8a020);
}

input[type=range] {
    width: 100%;
    accent-color: var(--theme-color, #e8a020);
}

.distance-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #aaa;
    margin-top: 6px;
}

/* ── Google distance result card ── */
.distance-result-card {
    display: none;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    margin-top: 16px;
}

.distance-result-card.visible {
    display: block;
}

.distance-result-card .dr-header {
    background: #f5f5f5;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 700;
    color: #888;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.distance-result-card .dr-row {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    gap: 14px;
    border-top: 1px solid #f0f0f0;
    background: #fff;
}

.distance-result-card .dr-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.distance-result-card .dr-icon.driving {
    background: #e8f0fe;
    color: #2563eb;
}

.distance-result-card .dr-icon.crow {
    background: #fef3c7;
    color: #d97706;
}

.distance-result-card .dr-label {
    font-size: 13px;
    color: #888;
    flex: 1;
}

.distance-result-card .dr-label strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
}

.distance-result-card .dr-duration {
    font-size: 12px;
    color: #aaa;
}

.distance-fetching {
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #aaa;
    margin-top: 10px;
}

.distance-fetching.visible {
    display: flex;
}

.distance-error {
    display: none;
    font-size: 13px;
    color: #ef4444;
    margin-top: 10px;
    padding: 10px 14px;
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 8px;
}

.distance-error.visible {
    display: block;
}

.spinner-sm {
    width: 16px;
    height: 16px;
    border: 2px solid #e0e0e0;
    border-top-color: var(--theme-color, #e8a020);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

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

/* ── Address autocomplete override ── */
.pac-container {
    z-index: 9999;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    font-family: inherit;
}

/* ── Nav buttons ── */
.step-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
}

.btn-prev {
    padding: 11px 28px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-prev:hover {
    border-color: #bbb;
    color: #333;
}

.btn-next,
.btn-submit {
    padding: 11px 32px;
    border-radius: 8px;
    border: none;
    background: var(--theme-color, #e8a020);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-next:hover,
.btn-submit:hover {
    opacity: 0.88;
}

/* ── Sticky estimate panel ── */
.estimate-panel {
    position: sticky;
    top: 100px;
}

.estimate-card {
    background: #1a1a2e;
    border-radius: 16px;
    padding: 28px;
    color: #fff;
}

.estimate-card .est-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
}

.est-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
}

.est-row:last-of-type {
    border-bottom: none;
}

.est-row .est-label {
    color: rgba(255, 255, 255, 0.65);
}

.est-row .est-val {
    font-weight: 700;
    color: #fff;
}

.est-total {
    background: var(--theme-color, #e8a020);
    border-radius: 10px;
    padding: 16px 18px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.est-total .tot-label {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
}

.est-total .tot-val {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

.est-note {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 14px;
    line-height: 1.6;
    text-align: center;
}

.est-breakdown {
    margin-top: 16px;
}

.est-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    margin: 3px 3px 0 0;
}

/* ── Contact fields panel ── */
.confirm-summary {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 20px;
}

.confirm-summary .cs-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.confirm-summary .cs-row:last-child {
    border-bottom: none;
}

.confirm-summary .cs-label {
    color: #888;
}

.confirm-summary .cs-val {
    font-weight: 600;
    color: #1a1a2e;
    text-align: right;
}

.success-box {
    display: none;
    text-align: center;
    padding: 60px 20px;
}

.success-box i {
    font-size: 64px;
    color: #16a34a;
    margin-bottom: 20px;
}

.success-box h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.success-box p {
    font-size: 15px;
    color: #666;
}

/* ── Progress bar ── */
.progress-bar-wrap {
    height: 4px;
    background: #f0f0f0;
    border-radius: 4px;
    margin-bottom: 28px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--theme-color, #e8a020);
    border-radius: 4px;
    transition: width 0.35s ease;
}

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

    .estimate-panel {
        position: static;
    }

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

    .item-counter-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .panel-card {
        padding: 22px 16px;
    }

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

    .pack-options {
        grid-template-columns: 1fr;
    }

    .step-tab span {
        display: none;
    }
}
