/* ============================================================================
   DOMOSAFE — SMART QUOTE WIZARD (NAMESPACED)
   Applies only inside .quote-wizard-page
============================================================================ */

.quote-wizard-page {
    background: var(--ds-bg);
    padding-bottom: 80px;
}

/* HERO */
.quote-wizard-page .ds-wizard-hero {
    position: relative;
    background: radial-gradient(circle at top left, #0f5bbf, #051325);
    padding: 280px 0 60px;
    margin-bottom: 120px;
    color: #f8fbff !important;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.quote-wizard-page .ds-wizard-hero-inner {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
}

.quote-wizard-page .ds-wizard-hero-title {
    font-size: 2.25rem;
    font-weight: 700;
}

.quote-wizard-page .ds-wizard-hero-subtitle {
    font-size: 0.98rem;
    opacity: 0.9;
}

/* WIZARD CARD */
.quote-wizard-page .ds-wizard-shell {
    max-width: 1100px;
    margin: 40px auto 60px;
    padding: 0 12px;
}

.quote-wizard-page .ds-wizard-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 26px 26px 30px;
    box-shadow: 0 28px 80px rgba(6, 18, 39, 0.28);
    border: 1px solid rgba(10, 61, 126, 0.07);
}

/* STEPS */
.quote-wizard-page .ds-step {
    display: none;
    min-height: 320px;
}
.quote-wizard-page .ds-step.active {
    display: block;
}

/* TOP NAV PILLS */
.quote-wizard-page .ds-wizard-nav {
    margin-bottom: 18px;
}

.quote-wizard-page .ds-wizard-nav .nav-link {
    border-radius: 999px;
    padding: 8px 18px;
    margin-right: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(15, 23, 42, 0.65);
    border: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: default;
}

.quote-wizard-page .ds-wizard-nav .nav-link .step-index-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    font-size: 0.7rem;
    font-weight: 600;
}

.quote-wizard-page .ds-wizard-nav .nav-link.active {
    background: #0a3d7e !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 2px rgba(10, 61, 126, 0.18);
}

.quote-wizard-page .ds-wizard-nav .nav-link.disabled {
    opacity: 0.45;
}

/* BUTTONS */
.quote-wizard-page .btn-ds {
    border-radius: 999px;
    padding: 9px 24px;
    font-weight: 600;
    font-size: 0.95rem;
}

.quote-wizard-page .btn-ds-primary {
    background: #0a3d7e;
    border-color: #0a3d7e;
    color: #fff;
}
.quote-wizard-page .btn-ds-primary:hover,
.quote-wizard-page .btn-ds-primary:focus {
    background: #082e60;
    border-color: #082e60;
    color: #fff;
}

.quote-wizard-page .ds-nav-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 26px;
}

/* GLOBAL ERROR */
.quote-wizard-page .ds-global-error {
    border-radius: 12px;
    border-left: 4px solid #dc2626;
}

/* SERVICE CARDS — BLUE STEEL FINAL */
.quote-wizard-page .ds-service-card {
    position: relative;
    border: 1px solid rgba(10, 61, 126, 0.28);
    border-radius: 20px;
    background: #e0ecff;
    transition: 0.28s ease;
    cursor: pointer;
    display: flex;
    min-height: 130px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.quote-wizard-page .ds-service-card-inner {
    border-radius: 18px;
    padding: 18px 20px 22px;
    width: 100%;
    background: transparent;
    transition: 0.28s ease;
}

/* HOVER */
.quote-wizard-page .ds-service-card:hover {
    border-color: #0a3d7e;
    box-shadow: 0 10px 24px rgba(10, 61, 126, 0.2);
    transform: translateY(-2px);
}

/* ACTIVE */
.quote-wizard-page .ds-service-card.active {
    border-color: #0a3d7e;
    background: #d2e3ff;
    box-shadow: 0 0 0 2px rgba(10, 61, 126, 0.35);
}

/* ICON */
.quote-wizard-page .ds-service-icon {
    margin-bottom: 10px;
}

.quote-wizard-page .ds-service-icon i {
    font-size: 1.5rem;
    color: #0a3d7e;
    transition: 0.25s ease;
}

.quote-wizard-page .ds-service-card:hover .ds-service-icon i,
.quote-wizard-page .ds-service-card.active .ds-service-icon i {
    color: #063061;
}

/* BORDER RADIUS CLEAN */
.quote-wizard-page .ds-service-card-inner {
    overflow: hidden;
}

/* STEP 2 titles */
.quote-wizard-page .ds-project-section-title {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #0a3d7e;
    margin-bottom: 10px;
}

/* ====== PREMIUM UPDATE FOR STEP 3 ====== */

.ds-project-section-title {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #0a3d7e;
    margin-bottom: 10px;
}

.ds-section-divider {
    border: none;
    border-top: 1px solid rgba(10, 61, 126, 0.08);
    margin: 20px 0;
}
/* STEP 3 GLOBAL OPTIONS & AREAS */
.quote-wizard-page #ds-global-options .form-check {
    background: #ffffff;
    border-radius: 10px;
    padding: 6px 10px;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

/* PERFECT DOMOSAFE LAYOUT FOR GLOBAL OPTIONS */
#ds-global-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* row 1 = pills */
.ds-global-row-pills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* row 2 = numeric inputs stacked */
.ds-global-row-numbers {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 260px; /* keeps numeric inputs tidy */
}

/* label above input */
.ds-global-number label {
    font-weight: 600;
    font-size: 0.82rem;
    color: #0b1220;
    margin-bottom: 4px;
}

/* GLOBAL OPTIONS PILL */
#ds-global-options .ds-option-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 30px;
    background: #ffffff;
    border: 1px solid rgba(10, 61, 126, 0.25);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.25s ease;
    user-select: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
#ds-global-options .ds-option-pill:hover {
    border-color: #0a3d7e;
    background: #f1f6ff;
}
#ds-global-options .ds-option-pill.active {
    background: #e0ecff;
    color: #0a3d7e;
    border-color: #0a3d7e;
    box-shadow: 0 6px 18px rgba(10, 61, 126, 0.25);
}

/* Area cards */
.quote-wizard-page #ds-area-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quote-wizard-page .ds-area-card {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: #f9fafb;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.15s ease, box-shadow 0.15s ease,
        border-color 0.15s ease;
}

.quote-wizard-page .ds-area-card:hover {
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
    border-color: #0a3d7e;
}

/* AREA CARDS */
.ds-area-card {
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #ffffff;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: 0.25s ease;
    position: relative;
}
.ds-area-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: #0a3d7e;
    opacity: 0.25;
    border-radius: 14px 0 0 14px;
}
.ds-area-card:hover {
    box-shadow: 0 10px 28px rgba(10, 61, 126, 0.18);
    transform: translateY(-2px);
    border-color: #0a3d7e;
}
.ds-area-name {
    font-size: 1rem;
    font-weight: 700;
    color: #0b1220;
}

/* MODAL HEADER */
#dsAreaModal .modal-header {
    background: linear-gradient(90deg, #0a3d7e, #07223e);
    color: #ffffff;
    border-radius: 18px 18px 0 0;
}

.quote-wizard-page .ds-area-name {
    font-weight: 600;
    color: #0b1220;
}

.quote-wizard-page .ds-area-meta {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Modal */
.quote-wizard-page #dsAreaModal .modal-content {
    border-radius: 18px;
}
.quote-wizard-page #dsAreaModal .modal-header {
    background: #0a3d7e;
    color: #ffffff;
    border-radius: 18px 18px 0 0;
}
.quote-wizard-page #dsAreaModal .modal-footer {
    border-radius: 0 0 18px 18px;
    background: #f3f4f6;
}

.modal-backdrop.show {
    opacity: 0.25 !important;
}

/* Feature tabs */
.quote-wizard-page #ds-feature-tabs .nav-link {
    color: #1c3553 !important;
    font-weight: 600;
    border: none;
    border-radius: 10px 10px 0 0;
    padding: 7px 14px;
    font-size: 0.85rem;
    background: #e5edf7;
    margin-right: 2px;
}

.quote-wizard-page #ds-feature-tabs .nav-link.active {
    background: #0a3d7e !important;
    color: #fff !important;
}

/* Panels */
.quote-wizard-page #ds-feature-panels .tab-pane {
    border-radius: 0 10px 10px 10px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 12px 12px 8px;
    background: #f9fafb;
}

/* Feature rows */
.quote-wizard-page .ds-feature-row {
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: #ffffff;
    padding: 8px 10px 6px;
    margin-bottom: 8px;
}

.quote-wizard-page .ds-feature-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #0b1220;
}

.quote-wizard-page .ds-feature-desc {
    font-size: 0.78rem;
    color: #6b7280;
}

.quote-wizard-page .ds-feature-extra {
    margin-top: 4px;
    border-top: 1px dashed rgba(148, 163, 184, 0.6);
    padding-top: 5px;
}

/* Ventilation rows */
.quote-wizard-page .ds-vent-row {
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    padding: 6px 8px;
    margin-top: 4px;
    background: #f8fafc;
}

/* STEP 4 review */
.quote-wizard-page .ds-review-box {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: #ffffff;
    padding: 10px 12px;
}

/* SUCCESS */
.quote-wizard-page .ds-success-shell {
    max-width: 640px;
    margin: 80px auto 80px;
    text-align: center;
    padding: 32px 24px 40px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(3, 15, 38, 0.18);
    border: 1px solid rgba(10, 61, 126, 0.08);
}

.is-invalid {
    border-color: #dc2626 !important;
    background: #fff6f6 !important;
}

/* DOMOSAFE — SweetAlert Premium Theme */
.swal2-popup {
    border-radius: 18px !important;
    padding: 32px 28px !important;
    background: #ffffff !important;
    box-shadow: 0 20px 60px rgba(6, 18, 39, 0.25) !important;
    border: 1px solid rgba(10, 61, 126, 0.12) !important;
}

.swal2-title {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: #0a1525 !important;
    margin-bottom: 8px !important;
}

.swal2-html-container {
    font-size: 0.95rem !important;
    color: #475569 !important;
}

.swal2-confirm {
    border-radius: 999px !important;
    background: #0a3d7e !important;
    border: none !important;
    color: #ffffff !important;
    padding: 10px 28px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    box-shadow: 0 6px 18px rgba(10, 61, 126, 0.25) !important;
}

.swal2-confirm:hover {
    background: #082e60 !important;
}

.swal2-icon.swal2-warning {
    border-color: #f4b400 !important;
    color: #f4b400 !important;
}

.swal2-confirm.ds-amber {
    background: #f4b400 !important;
    color: #0a1525 !important;
}
.swal2-confirm.ds-amber:hover {
    background: #d69900 !important;
}

/* STEP 2 — FORM COMPONENTS */
.quote-wizard-page .form-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: #0b1220;
    margin-bottom: 4px;
}

.quote-wizard-page .form-control,
.quote-wizard-page .form-select {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    padding: 10px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.quote-wizard-page .form-control:focus,
.quote-wizard-page .form-select:focus {
    border-color: #0a3d7e;
    box-shadow: 0 0 0 3px rgba(10, 61, 126, 0.25);
}

/* inline error */
.quote-wizard-page .is-invalid {
    border-color: #dc2626 !important;
    background: #fff6f6 !important;
}

/* ERROR BANNER */
.ds-error-banner {
    padding: 12px 16px;
    border-radius: 12px;
    background: #fff5f5;
    border: 1px solid #dc2626;
    color: #7f1d1d;
    font-weight: 600;
    display: flex;
    align-items: center;
    font-size: 0.92rem;
}

/* SECTION BOX */
.ds-section-box {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 20px 22px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.ds-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin-bottom: 12px;
}

.ds-int-input {
    border-radius: 14px !important;
    padding: 10px 14px !important;
    border: 1px solid rgba(10, 61, 126, 0.25) !important;
    background: #ffffff;
    font-weight: 500;
    transition: 0.2s ease;
}

.ds-int-input:focus {
    border-color: #0a3d7e !important;
    box-shadow: 0 0 0 3px rgba(10, 61, 126, 0.25) !important;
}

.ds-int-input::-webkit-inner-spin-button,
.ds-int-input::-webkit-outer-spin-button {
    opacity: 0.4;
    height: 28px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .quote-wizard-page .ds-wizard-hero-title {
        font-size: 1.7rem;
    }

    .quote-wizard-page .ds-wizard-card {
        padding: 18px 16px 22px;
        border-radius: 18px;
    }

    .quote-wizard-page .ds-wizard-shell {
        margin-top: -28px;
    }

    .quote-wizard-page .ds-nav-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .quote-wizard-page .ds-area-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}
