/* ==========================================================================
   FOOTER GAP FIX
   ========================================================================== */
.quote-page-wrapper+.main-footer,
.quote-success-wrapper+.main-footer {
    margin-top: 0 !important;
}

/* ==========================================================================
   LAYOUT OVERRIDES
   ========================================================================== */
.quote-page-wrapper .container,
.quote-success-wrapper .container {
    max-width: 1536px;
}

/* ==========================================================================
   GET A QUOTE PAGE SPECIFIC STYLES
   ========================================================================== */

.quote-page-wrapper {
    background-color: #fcfbfa;
    /* Light off-white background */
    padding: 30px 0 60px 0;
}

/* Quote Header Area */
.quote-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

@media (max-width: 576px) {
    .quote-header-top {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .quote-help-box {
        width: 100%;
        justify-content: center;
    }
}

.quote-header-title h1 {
    font-size: 28px;
    font-weight: 700;
    color: #2b2b2b;
    margin-bottom: 8px;
}

.quote-header-title p {
    font-size: 14px;
    color: #666;
}

.quote-help-box {
    background-color: #fdf3eb;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.quote-help-icon {
    color: #e85d04;
}

.quote-help-text span {
    display: block;
    font-size: 11px;
    color: #666;
}

.quote-help-text strong {
    display: block;
    font-size: 14px;
    color: #2b2b2b;
}

/* 3-Column Layout */
.quote-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* Left Sidebar: Steps */
.quote-sidebar-left {
    width: 250px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quote-steps-container {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px 20px;
}

.quote-step {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    position: relative;
}

.quote-step:last-child {
    margin-bottom: 0;
}

/* Vertical line connecting steps */
.quote-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 14px;
    top: 32px;
    bottom: -26px;
    width: 2px;
    background-color: #f0f0f0;
}

.quote-step .step-number {
    position: relative;
    bottom: auto;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    z-index: 1;
}

.quote-step.active .step-number {
    background-color: #e85d04;
}

.quote-step.active {
    background-color: #fdf3eb;
    border: 1px solid #f3d4be;
    padding: 12px 12px 12px 0;
    margin-left: -12px;
    border-radius: 8px;
    position: relative;
    /* To create the little pointer arrow */
}

.quote-step.active::before {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background-color: #fdf3eb;
    border-top: 1px solid #f3d4be;
    border-right: 1px solid #f3d4be;
}

.quote-step.active .step-number {
    margin-left: 12px;
}


.step-text h4 {
    font-size: 13px;
    font-weight: 700;
    color: #2b2b2b;
    margin-bottom: 2px;
}

.step-text p {
    font-size: 11px;
    color: #888;
}

.why-quote-box {
    background-color: #fcf7f3;
    border-radius: 12px;
    padding: 20px;
}

.why-quote-box h4 {
    font-size: 14px;
    font-weight: 700;
    color: #2b2b2b;
    margin-bottom: 16px;
}

.why-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.why-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #444;
    margin-bottom: 12px;
}

.why-list li:last-child {
    margin-bottom: 0;
}

.why-list li i {
    color: #e85d04;
    width: 14px;
    height: 14px;
}

/* Center Content */
.quote-main-content {
    flex: 1;
    min-width: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.step-header-text h3 {
    color: #e85d04;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.step-header-text h2 {
    font-size: 20px;
    font-weight: 700;
    color: #2b2b2b;
    margin-bottom: 4px;
}

.step-header-text p {
    font-size: 13px;
    color: #666;
}

.district-search {
    position: relative;
    width: 250px;
}

.district-search input {
    width: 100%;
    padding: 10px 36px 10px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

.district-search input:focus {
    border-color: #e85d04;
}

.district-search i,
.district-search svg {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    width: 16px;
    height: 16px;
}

/* District Grid */
.district-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.district-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.district-card:hover {
    border-color: #e85d04;
    box-shadow: 0 4px 12px rgba(232, 93, 4, 0.1);
}

.district-card.selected {
    border-color: #e85d04;
    border-width: 2px;
}

.district-img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.district-name {
    padding: 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #2b2b2b;
    background: #fff;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.next-step-btn {
    background-color: #e85d04;
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    transition: background 0.2s ease;
}

.next-step-btn:hover {
    background-color: #dc2f02;
}

/* Right Sidebar: Quote Cart */
.quote-sidebar-right {
    width: 280px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px dashed #e0e0e0;
}

.cart-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #2b2b2b;
}

.cart-header-title i {
    color: #e85d04;
}

.item-count {
    background: #fdf3eb;
    color: #e85d04;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

.cart-selection-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px dashed #e0e0e0;
}

.cart-selection-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.cart-selection-item>i {
    color: #888;
    width: 16px;
    height: 16px;
    margin-top: 2px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h5 {
    font-size: 11px;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.cart-item-details p {
    font-size: 13px;
    color: #2b2b2b;
    font-weight: 500;
}

.edit-link {
    font-size: 12px;
    color: #007bff;
    text-decoration: none;
}

.edit-link:hover {
    text-decoration: underline;
}

.cart-summary h4 {
    font-size: 14px;
    font-weight: 700;
    color: #2b2b2b;
    margin-bottom: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.summary-row.total {
    font-size: 16px;
    font-weight: 700;
    color: #2b2b2b;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.summary-row.total span:last-child {
    color: #e85d04;
}

.submit-quote-btn {
    width: 100%;
    background-color: #fdf3eb;
    color: #e85d04;
    border: 1px solid #f3d4be;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    transition: all 0.2s ease;
}

.submit-quote-btn:hover {
    background-color: #f3d4be;
}

.submit-note {
    text-align: center;
    font-size: 11px;
    color: #888;
    margin-top: 12px;
}

/* Trust Badges Bar Bottom */
.quote-trust-badges {
    display: flex;
    justify-content: space-between;
    padding: 30px 0;
    border-top: 1px solid #e0e0e0;
    margin-top: 20px;
    background-color: #fff;
}

.quote-trust-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quote-trust-badge i {
    color: #e85d04;
    width: 24px;
    height: 24px;
}

.quote-trust-text h5 {
    font-size: 13px;
    font-weight: 700;
    color: #2b2b2b;
    margin-bottom: 2px;
}

.quote-trust-text p {
    font-size: 12px;
    color: #666;
}

/* Responsive */
@media (max-width: 1200px) {
    .district-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .quote-layout {
        flex-direction: column;
        display: flex;
    }

    .quote-sidebar-left {
        order: 1;
    }

    .quote-main-content {
        order: 2;
        margin-bottom: 20px;
    }

    .quote-sidebar-right {
        order: 3;
    }

    .quote-sidebar-left,
    .quote-sidebar-right {
        width: 100%;
    }

    .quote-steps-container {
        display: flex;
        overflow-x: auto;
        gap: 20px;
        padding: 16px;
    }

    .quote-step {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .quote-step:not(:last-child)::after {
        display: none;
    }

    .quote-step.active {
        margin-left: 0;
    }

    .quote-step.active::before {
        display: none;
        /* Hide arrow on mobile */
    }

    .why-quote-box {
        display: none;
        /* Hide on mobile to save space */
    }

    .quote-trust-badges {
        flex-wrap: wrap;
        gap: 20px;
    }

    .quote-trust-badge {
        width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .district-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .step-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .district-search {
        width: 100%;
    }
}

/* ==========================================================================
   STEP 2: VENDOR SELECTION STYLES
   ========================================================================== */

/* Completed Step State */
.quote-step.completed .step-number {
    background-color: #28a745;
    color: white;
}

.quote-step.completed .step-number::before {
    content: '\2713';
    /* Checkmark */
    font-size: 14px;
}

.quote-step.completed .step-number {
    font-size: 0;
    /* Hide number */
}

.quote-step.completed .step-text h4 {
    color: #2b2b2b;
}

.quote-step.completed .step-text p {
    color: #666;
    font-size: 11px;
}

.quote-step.completed .step-change-link {
    font-size: 11px;
    color: #007bff;
    text-decoration: none;
    margin-left: auto;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.quote-step.completed .step-change-link:hover {
    text-decoration: underline;
}

/* Vendor Filters */
.vendor-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-pill:hover {
    background: #fdf3eb;
    color: #e85d04;
    border-color: #f3d4be;
}

.filter-pill.active {
    border-color: #e85d04;
    color: #e85d04;
    font-weight: 600;
}

/* Vendor Grid */
.vendor-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.vendor-card {
    min-width: 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
}

.vendor-card:hover {
    border-color: #e85d04;
    box-shadow: 0 4px 12px rgba(232, 93, 4, 0.1);
}

.vendor-card.selected {
    border-color: #e85d04;
    background-color: #fdf3eb;
}

/* Custom Checkbox */
.vendor-checkbox {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 18px;
    height: 18px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.vendor-card.selected .vendor-checkbox {
    background: #e85d04;
    border-color: #e85d04;
}

.vendor-card.selected .vendor-checkbox::after {
    content: '';
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

/* Vendor Details */
.vendor-logo-wrapper {
    width: 80px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.vendor-logo-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.vendor-logo-placeholder {
    width: 60px;
    height: 60px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    margin-bottom: 12px;
}

.vendor-name {
    word-break: break-word;
    font-size: 13px;
    font-weight: 700;
    color: #2b2b2b;
    margin-bottom: 6px;
}

.vendor-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #666;
    margin-bottom: 8px;
}

.vendor-rating i {
    color: #ffc107;
    fill: #ffc107;
    width: 12px;
    height: 12px;
}

.vendor-rating span {
    font-weight: 600;
    color: #e85d04;
}

.vendor-meta {
    font-size: 10.5px;
    color: #888;
}

/* Bottom Buttons Area */
.quote-actions-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.back-btn:hover {
    color: #2b2b2b;
}

.next-step-btn-inline {
    background-color: #e85d04;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s ease;
    text-decoration: none;
}

.next-step-btn-inline:hover {
    background-color: #dc2f02;
}

/* Quote Cart Selected Values */
.cart-selection-item.filled i {
    color: #28a745;
}

.cart-selection-item.filled p {
    font-weight: 600;
}

.cart-vendor-list {
    margin-top: 4px;
    padding-left: 0;
    list-style: none;
}

.cart-vendor-list li {
    font-size: 12px;
    color: #444;
    margin-bottom: 2px;
}

@media (max-width: 1200px) {
    .vendor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .vendor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .vendor-grid {
        grid-template-columns: 1fr;
    }

    .quote-actions-bottom {
        flex-direction: column-reverse;
        gap: 16px;
    }

    .next-step-btn-inline {
        width: 100%;
    }
}

/* ==========================================================================
   STEP 3: CATEGORY SELECTION STYLES
   ========================================================================== */

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.category-card {
    min-width: 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.category-card:hover {
    border-color: #e85d04;
    box-shadow: 0 4px 12px rgba(232, 93, 4, 0.1);
}

.category-card.selected {
    border-color: #e85d04;
    box-shadow: 0 4px 12px rgba(232, 93, 4, 0.1);
}

.category-img-wrapper {
    width: 100%;
    height: 140px;
    overflow: hidden;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.3s ease;
}

.category-card:hover .category-img-wrapper img {
    transform: scale(1.05);
}

.category-info {
    padding: 16px 12px;
}

.category-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: #2b2b2b;
    margin-bottom: 4px;
}

.category-info p {
    font-size: 11px;
    color: #666;
    margin-bottom: 12px;
}

.category-view-link {
    font-size: 12px;
    font-weight: 600;
    color: #e85d04;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.category-view-link i {
    width: 14px;
    height: 14px;
}

@media (max-width: 1200px) {
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   STEP 4: PACKAGES & OFFERS STYLES
   ========================================================================== */

.step-subtitle-orange {
    font-size: 15px;
    font-weight: 700;
    color: #e85d04;
    margin-bottom: 16px;
    margin-top: 10px;
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.package-card {
    min-width: 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    padding: 16px 12px;
    text-align: center;
    position: relative;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.package-card:hover {
    border-color: #e85d04;
    box-shadow: 0 4px 12px rgba(232, 93, 4, 0.1);
}

.package-card.selected {
    border-color: #e85d04;
    box-shadow: 0 4px 12px rgba(232, 93, 4, 0.1);
}

.package-card-popular-badge {
    position: absolute;
    top: 8px;
    right: -6px;
    background: #e85d04;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(232, 93, 4, 0.3);
}

.package-img {
    width: 100%;
    height: 90px;
    object-fit: contain;
    margin-bottom: 12px;
}

.package-title {
    font-size: 13px;
    font-weight: 700;
    color: #2b2b2b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.package-title i {
    width: 14px;
    height: 14px;
    color: #e85d04;
}

.package-desc {
    font-size: 10.5px;
    color: #666;
    margin-bottom: 16px;
    min-height: 32px;
}

.package-price-wrap {
    margin-top: auto;
    margin-bottom: 16px;
}

.package-price-label {
    font-size: 10px;
    color: #888;
}

.package-price {
    font-size: 22px;
    font-weight: 800;
    color: #e85d04;
    margin: 2px 0 6px;
}

.package-save-badge {
    font-size: 10px;
    font-weight: 700;
    color: #28a745;
}

.package-select-btn {
    width: 100%;
    padding: 8px;
    border: 1px solid #e85d04;
    background: transparent;
    color: #e85d04;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.package-card:hover .package-select-btn {
    background: #fff5ef;
}

.package-card.selected .package-select-btn {
    background: #e85d04;
    color: #fff;
}

/* Customize Card Specifics */
.custom-package-list {
    text-align: left;
    list-style: none;
    padding: 0;
    margin-top: auto;
    margin-bottom: 16px;
}

.custom-package-list li {
    font-size: 10.5px;
    color: #666;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.custom-package-list li i {
    width: 12px;
    height: 12px;
    color: #e85d04;
}

/* Bulk Offers Banner */
.bulk-offers-banner {
    border: 1px solid #ffe5d9;
    background: #fffaf7;
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.bulk-offers-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bulk-offers-title i {
    width: 24px;
    height: 24px;
    color: #e85d04;
}

.bulk-offers-title-text h4 {
    font-size: 13px;
    font-weight: 700;
    color: #e85d04;
    margin-bottom: 2px;
}

.bulk-offers-title-text p {
    font-size: 11px;
    color: #666;
}

.bulk-offers-tiers {
    display: flex;
    align-items: center;
    gap: 24px;
}

.bulk-offer-tier {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bulk-offer-tier i {
    width: 18px;
    height: 18px;
    color: #e85d04;
}

.bulk-offer-tier-text p {
    font-size: 9px;
    color: #666;
    margin-bottom: 2px;
}

.bulk-offer-tier-text strong {
    font-size: 11px;
    color: #2b2b2b;
    font-weight: 700;
}

.bulk-offer-tier-text strong span {
    color: #28a745;
}

/* Quote Cart Pricing Updates */
.summary-row.total span:last-child {
    color: #e85d04;
    font-size: 16px;
    font-weight: 800;
}

@media (max-width: 1200px) {
    .package-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .package-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bulk-offers-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .bulk-offers-tiers {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .package-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   STEP 5: REVIEW & SUBMIT STYLES
   ========================================================================== */

.review-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.review-summary-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff;
}

.review-summary-card>i {
    color: #e85d04;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.review-summary-content {
    flex-grow: 1;
}

.review-summary-content h5 {
    font-size: 13px;
    font-weight: 700;
    color: #2b2b2b;
    margin-bottom: 4px;
}

.review-summary-content p {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
}

.review-change-link {
    font-size: 11px;
    font-weight: 600;
    color: #007bff;
    text-decoration: none;
}

.review-change-link:hover {
    text-decoration: underline;
}

.section-header-small {
    font-size: 14px;
    font-weight: 700;
    color: #2b2b2b;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header-small i {
    width: 16px;
    height: 16px;
    color: #888;
}

.selected-items-table-wrapper {
    overflow-x: auto;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.selected-items-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.selected-items-table th {
    background-color: #f9f9f9;
    padding: 12px 16px;
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    color: #2b2b2b;
    border-bottom: 1px solid #e0e0e0;
}

.selected-items-table td {
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 11px;
    color: #666;
    vertical-align: middle;
}

.selected-items-table tr:last-child td {
    border-bottom: none;
}

.table-item-name {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-item-img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid #e0e0e0;
}

.table-item-text strong {
    display: block;
    font-size: 12px;
    color: #2b2b2b;
    margin-bottom: 2px;
}

.table-item-text span {
    font-size: 10px;
    color: #888;
}

.quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    padding: 2px 6px;
    gap: 8px;
}

.quantity-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    font-size: 14px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-input {
    width: 24px;
    text-align: center;
    border: none;
    font-size: 11px;
    color: #2b2b2b;
    font-weight: 600;
    outline: none;
    background: transparent;
}

.quantity-suffix {
    font-size: 10px;
    color: #888;
}

.table-total-price {
    font-weight: 700;
    color: #2b2b2b;
}

.table-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #dc3545;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.table-delete-btn i {
    width: 14px;
    height: 14px;
}

.additional-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.detail-box {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    background: #fff;
}

.detail-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.detail-box-header h4 {
    font-size: 12px;
    font-weight: 700;
    color: #2b2b2b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-box-header h4 i {
    width: 14px;
    height: 14px;
    color: #888;
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-list li {
    font-size: 11px;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-list li i {
    width: 12px;
    height: 12px;
    color: #888;
}

.detail-kv-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-kv-item {
    display: flex;
    align-items: center;
    font-size: 11px;
}

.detail-kv-item .label {
    width: 120px;
    color: #888;
}

.detail-kv-item .value {
    color: #2b2b2b;
    font-weight: 500;
}

.security-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #28a745;
    font-size: 11px;
    margin-bottom: 24px;
}

.security-notice i {
    width: 14px;
    height: 14px;
}

.sidebar-notice-box {
    background-color: #f0fdf4;
    border: 1px solid #dcfce7;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 16px;
}

.sidebar-notice-box i {
    color: #16a34a;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-notice-box p {
    font-size: 11px;
    color: #166534;
    line-height: 1.4;
    margin: 0;
}

@media (max-width: 992px) {
    .review-summary-grid {
        grid-template-columns: 1fr;
    }

    .additional-details-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   SUCCESS PAGE STYLES
   ========================================================================== */

.quote-success-wrapper {
    background-color: #f9f9f9;
    padding: 30px 0 60px;
}

.quote-success-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.quote-success-title h1 {
    font-size: 24px;
    font-weight: 800;
    color: #2b2b2b;
    margin-bottom: 6px;
}

.quote-success-title p {
    font-size: 13px;
    color: #666;
}

.success-dashboard {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    overflow: hidden;
    margin-bottom: 24px;
}

/* Left Column */
.success-col-left {
    padding: 30px 24px;
    border-right: 1px solid #e0e0e0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.success-icon-wrap {
    width: 100px;
    height: 100px;
    background: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
}

.success-icon-wrap i {
    width: 48px;
    height: 48px;
}

.success-icon-wrap::before,
.success-icon-wrap::after {
    content: '';
    position: absolute;
    width: 140%;
    height: 140%;
    background-image: radial-gradient(#16a34a 20%, transparent 20%), radial-gradient(#e85d04 20%, transparent 20%), radial-gradient(#f59e0b 20%, transparent 20%);
    background-size: 8px 8px;
    background-position: 0 0, 10px 10px, 20px 0;
    opacity: 0.2;
    z-index: 0;
    border-radius: 50%;
    pointer-events: none;
}

.success-col-left h2 {
    font-size: 24px;
    font-weight: 800;
    color: #16a34a;
    margin-bottom: 12px;
}

.success-col-left>p {
    font-size: 12px;
    color: #2b2b2b;
    margin-bottom: 24px;
    font-weight: 500;
    line-height: 1.4;
}

.success-id-box {
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    border-radius: 8px;
    padding: 16px;
    width: 100%;
    margin-bottom: 24px;
}

.success-id-box span {
    display: block;
    font-size: 11px;
    color: #666;
    margin-bottom: 4px;
}

.success-id-box strong {
    font-size: 18px;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.success-id-box strong i {
    width: 16px;
    height: 16px;
    cursor: pointer;
    color: #16a34a;
}

.success-email-notice {
    font-size: 10.5px;
    color: #666;
    line-height: 1.4;
}

.success-email-notice strong {
    display: block;
    color: #16a34a;
    margin-top: 4px;
}

/* Middle Column */
.success-col-middle {
    padding: 30px 24px;
    border-right: 1px solid #e0e0e0;
}

.success-middle-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}

.success-middle-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #2b2b2b;
}

.success-middle-header span {
    font-size: 10px;
    color: #888;
}

.success-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
    border-bottom: 1px dashed #e0e0e0;
    padding-bottom: 24px;
}

.success-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.success-detail-item i {
    color: #e85d04;
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.success-detail-text h6 {
    font-size: 11px;
    color: #888;
    margin-bottom: 2px;
    font-weight: 500;
}

.success-detail-text p {
    font-size: 12px;
    color: #2b2b2b;
    font-weight: 600;
}

.success-table-wrapper {
    overflow-x: auto;
    margin-bottom: 16px;
}

.success-table {
    width: 100%;
    border-collapse: collapse;
}

.success-table th {
    font-size: 10px;
    color: #2b2b2b;
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid #e0e0e0;
}

.success-table td {
    font-size: 11px;
    color: #666;
    padding: 12px;
    vertical-align: middle;
}

.success-totals-bar {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #2b2b2b;
}

.success-totals-bar strong {
    font-size: 13px;
    color: #e85d04;
}

/* Right Column */
.success-col-right {
    padding: 30px 24px;
    background: #fafafa;
}

.success-col-right h3 {
    font-size: 16px;
    font-weight: 700;
    color: #2b2b2b;
    margin-bottom: 24px;
}

.timeline-container {
    position: relative;
    padding-left: 24px;
    margin-bottom: 30px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 4px;
    bottom: 20px;
    width: 2px;
    background: #e0e0e0;
}

.timeline-step {
    position: relative;
    margin-bottom: 24px;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    position: absolute;
    left: -35px;
    top: 0;
    width: 24px;
    height: 24px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.timeline-step.active .timeline-icon {
    border-color: #16a34a;
    color: #16a34a;
}

.timeline-step.completed .timeline-icon {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.timeline-icon i {
    width: 12px;
    height: 12px;
}

.timeline-content h4 {
    font-size: 12px;
    font-weight: 700;
    color: #2b2b2b;
    margin-bottom: 4px;
}

.timeline-content p {
    font-size: 10px;
    color: #666;
    line-height: 1.4;
}

.success-assistance-box {
    background: #fff5ef;
    border: 1px solid #ffe5d9;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.success-assistance-box h5 {
    font-size: 11px;
    color: #e85d04;
    margin-bottom: 8px;
}

.success-assistance-box strong {
    display: block;
    font-size: 14px;
    color: #2b2b2b;
    margin-bottom: 4px;
}

.success-assistance-box span {
    font-size: 9px;
    color: #888;
}

.success-assistance-box i {
    width: 20px;
    height: 20px;
    color: #e85d04;
    margin-bottom: 8px;
}

/* Bottom Promo Banner */
.success-promo-banner {
    background: #fff5ef;
    border-radius: 12px;
    padding: 24px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.promo-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.promo-left img {
    height: 80px;
    object-fit: contain;
}

.promo-left-text h3 {
    font-size: 16px;
    font-weight: 700;
    color: #2b2b2b;
    margin-bottom: 4px;
}

.promo-left-text p {
    font-size: 12px;
    color: #666;
}

.promo-features {
    display: flex;
    align-items: center;
    gap: 32px;
}

.promo-feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.promo-feature i {
    width: 24px;
    height: 24px;
    color: #e85d04;
}

.promo-feature h5 {
    font-size: 12px;
    font-weight: 700;
    color: #2b2b2b;
    margin-bottom: 2px;
}

.promo-feature p {
    font-size: 10px;
    color: #666;
}

.promo-btn {
    border: 1px solid #e85d04;
    color: #e85d04;
    background: #fff;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.promo-btn:hover {
    background: #e85d04;
    color: #fff;
}

/* Action Buttons */
.success-action-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn-view-quotes {
    border: 1px solid #ccc;
    background: #fff;
    color: #2b2b2b;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-view-quotes:hover {
    background: #f9f9f9;
}

.btn-continue-shopping {
    background: #e85d04;
    color: #fff;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
}

.btn-continue-shopping:hover {
    background: #d65503;
}

@media (max-width: 1200px) {
    .success-promo-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
}

@media (max-width: 992px) {
    .success-dashboard {
        grid-template-columns: 1fr;
    }

    .success-col-left,
    .success-col-middle {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .promo-features {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}


/* ==========================================================================
   TRUST BADGES OVERRIDE
   ========================================================================== */
.quote-trust-badges {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    padding: 32px 40px !important;
    background: linear-gradient(135deg, #fffaf5, #fff5eb) !important;
    border: 1px solid #ffe5d0 !important;
    border-radius: 12px;
    margin-top: 40px !important;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(232, 93, 4, 0.05);
}

.quote-trust-badge {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    text-align: center;
    gap: 16px !important;
    padding: 16px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.quote-trust-badge:hover {
    background: #fff;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(232, 93, 4, 0.1);
}

.quote-trust-badge .lucide-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(232, 93, 4, 0.1);
    transition: transform 0.3s ease;
}

.quote-trust-badge i,
.quote-trust-badge svg {
    color: #e85d04 !important;
    width: 28px !important;
    height: 28px !important;
}

.quote-trust-badge:hover .lucide-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.quote-trust-text h5 {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #2b2b2b;
    margin-bottom: 6px !important;
}

.quote-trust-text p {
    font-size: 13px !important;
    color: #666;
    line-height: 1.4;
}

@media (max-width: 992px) {
    .quote-trust-badges {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        padding: 24px !important;
    }

    .quote-trust-badge {
        width: 100% !important;
    }
}

@media (max-width: 576px) {
    .quote-trust-badges {
        grid-template-columns: 1fr !important;
    }
}


/* ==========================================================================
   TIMELINE OVERRIDE
   ========================================================================== */
.timeline-container {
    padding-left: 40px !important;
}

.timeline-container::before {
    left: 13px !important;
    width: 2px !important;
    background: #e0e0e0 !important;
}

.timeline-icon {
    left: -40px !important;
    width: 28px !important;
    height: 28px !important;
    box-sizing: border-box !important;
    background: #fff !important;
    border: 2px solid #e0e0e0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: 0 !important;
}

.timeline-step.active .timeline-icon {
    border-color: #16a34a !important;
    color: #16a34a !important;
}

.timeline-step.completed .timeline-icon {
    background: #16a34a !important;
    border-color: #16a34a !important;
    color: #fff !important;
}

.timeline-icon svg,
.timeline-icon i {
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
}

.timeline-content {
    padding-top: 4px;
}

/* ==========================================================================
   ADDRESS SELECTOR & MODAL
   ========================================================================== */

.address-box {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    background: #fff;
    margin-bottom: 24px;
}

.address-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.address-box-header h4 {
    font-size: 14px;
    font-weight: 700;
    color: #2b2b2b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.address-box-header h4 i {
    width: 16px;
    height: 16px;
    color: #e85d04;
}

.add-address-btn {
    background: none;
    border: 1px dashed #e85d04;
    color: #e85d04;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.add-address-btn:hover {
    background: #fff5ef;
}

.address-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.address-card {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px;
    display: flex;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.address-card:hover {
    border-color: #e85d04;
    background: #fffaf5;
}

.address-card.selected {
    border-color: #e85d04;
    background: #fff5ef;
}

.address-radio {
    margin-top: 4px;
    accent-color: #e85d04;
}

.address-card-details {
    flex: 1;
}

.address-name-type {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.address-name {
    font-size: 13px;
    font-weight: 700;
    color: #2b2b2b;
}

.address-type {
    background: #f0f0f0;
    color: #666;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.address-text {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 4px;
}

.address-phone {
    font-size: 11px;
    color: #2b2b2b;
    font-weight: 500;
}

/* Modal Styles */
.address-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.address-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.address-modal {
    background: #fff;
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.address-modal-overlay.active .address-modal {
    transform: translateY(0);
}

.address-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.address-modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #2b2b2b;
}

.close-modal-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    transition: color 0.2s;
}

.close-modal-btn:hover {
    color: #dc3545;
}

.address-form-group {
    margin-bottom: 16px;
}

.address-form-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    margin-bottom: 6px;
}

.address-form-group input,
.address-form-group textarea {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 13px;
    color: #2b2b2b;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

.address-form-group input:focus,
.address-form-group textarea:focus {
    border-color: #e85d04;
}

.address-form-row {
    display: flex;
    gap: 16px;
}

.address-form-row .address-form-group {
    flex: 1;
}

.address-type-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.type-btn {
    flex: 1;
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 8px 0;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.type-btn.active {
    background: #fff5ef;
    border-color: #e85d04;
    color: #e85d04;
}

.address-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.cancel-btn {
    background: none;
    border: 1px solid #ccc;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
}

.save-address-btn {
    background: #e85d04;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}

.save-address-btn:hover {
    background: #d65503;
}

/* ==========================================================================
   SUCCESS ICON ANIMATION OVERRIDE
   ========================================================================== */
.success-icon-wrap {
    width: 90px !important;
    height: 90px !important;
    background: #16a34a !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    margin: 0 auto 24px auto !important;
    position: relative !important;
    animation: successPopIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    box-shadow: 0 10px 25px rgba(22, 163, 74, 0.3) !important;
}

/* Remove the old ugly background pattern */
.success-icon-wrap::before,
.success-icon-wrap::after {
    display: none !important;
    background-image: none !important;
}

/* Create glowing pulse rings */
.success-icon-wrap::before {
    display: block !important;
    content: '' !important;
    position: absolute !important;
    top: -15px !important;
    left: -15px !important;
    right: -15px !important;
    bottom: -15px !important;
    border: 2px solid rgba(22, 163, 74, 0.2) !important;
    border-radius: 50% !important;
    animation: pulseRing 2s infinite cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: -1 !important;
}

.success-icon-wrap::after {
    display: block !important;
    content: '' !important;
    position: absolute !important;
    top: -30px !important;
    left: -30px !important;
    right: -30px !important;
    bottom: -30px !important;
    border: 2px solid rgba(22, 163, 74, 0.1) !important;
    border-radius: 50% !important;
    animation: pulseRing 2s infinite cubic-bezier(0.4, 0, 0.2, 1) 0.5s !important;
    z-index: -1 !important;
}

.success-icon-wrap i,
.success-icon-wrap svg {
    width: 44px !important;
    height: 44px !important;
    opacity: 0;
    animation: checkPop 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
    z-index: 2;
}

@keyframes successPopIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes checkPop {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }

    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

@keyframes pulseRing {
    0% {
        transform: scale(0.8);
        opacity: 1;
        border-color: rgba(22, 163, 74, 0.4);
    }

    100% {
        transform: scale(1.2);
        opacity: 0;
        border-color: rgba(22, 163, 74, 0);
    }
}

/* ==========================================================================
   SLOW PERFECT SUCCESS ANIMATION
   ========================================================================== */
.success-icon-wrap {
    animation: successPopInSlow 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}

.success-icon-wrap::before {
    animation: pulseRingSlow 3s infinite cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.success-icon-wrap::after {
    animation: pulseRingSlow 3s infinite cubic-bezier(0.4, 0, 0.2, 1) 1s !important;
}

.success-icon-wrap i,
.success-icon-wrap svg {
    animation: checkPopSlow 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s forwards !important;
}

/* Staggered text fade-in */
.success-col-left h2 {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.8s;
}

.success-col-left>p {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1s;
}

.success-id-box {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1.2s;
}

.success-email-notice {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1.4s;
}

@keyframes successPopInSlow {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes checkPopSlow {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }

    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

@keyframes pulseRingSlow {
    0% {
        transform: scale(0.9);
        opacity: 1;
        border-color: rgba(22, 163, 74, 0.3);
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
        border-color: rgba(22, 163, 74, 0);
    }
}

@keyframes fadeInUp {
    0% {
        transform: translateY(15px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}


@media (max-width: 480px) {
    .district-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .quote-steps-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        position: relative !important;
        padding: 0 5px 20px !important;
        background: transparent !important;
        border: none !important;
        overflow: visible !important;
        margin-bottom: 10px !important;
        gap: 0 !important;
    }

    .quote-steps-container::before {
        content: '' !important;
        position: absolute !important;
        top: 15px !important;
        left: 30px !important;
        right: 30px !important;
        height: 3px !important;
        background: #e0e0e0 !important;
        z-index: 0 !important;
    }

    .quote-step {
        flex-direction: column !important;
        gap: 0 !important;
        margin-bottom: 0 !important;
        margin-left: 0 !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        z-index: 1 !important;
        width: 60px !important;
        text-align: center !important;
    }

    .quote-step::before,
    .quote-step::after {
        display: none !important;
    }

    .step-number {
        width: 30px !important;
        height: 30px !important;
        margin: 0 auto !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        background: #e0e0e0 !important;
        color: #fff !important;
        border: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        position: relative !important;
        z-index: 2 !important;
    }

    .quote-step.active .step-number,
    .quote-step.completed .step-number {
        background: #e85d04 !important;
    }

    .step-text {
        display: none !important;
    }

    .quote-step:nth-child(1)::after {
        content: 'Location' !important;
        font-size: 9px !important;
        font-weight: 600 !important;
        color: #2b2b2b !important;
        margin-top: 8px !important;
        display: block !important;
    }

    .quote-step:nth-child(2)::after {
        content: 'Vendors' !important;
        font-size: 9px !important;
        font-weight: 600 !important;
        color: #2b2b2b !important;
        margin-top: 8px !important;
        display: block !important;
    }

    .quote-step:nth-child(3)::after {
        content: 'Category' !important;
        font-size: 9px !important;
        font-weight: 600 !important;
        color: #2b2b2b !important;
        margin-top: 8px !important;
        display: block !important;
    }

    .quote-step:nth-child(4)::after {
        content: 'Package' !important;
        font-size: 9px !important;
        font-weight: 600 !important;
        color: #2b2b2b !important;
        margin-top: 8px !important;
        display: block !important;
    }

    .quote-step:nth-child(5)::after {
        content: 'Review' !important;
        font-size: 9px !important;
        font-weight: 600 !important;
        color: #2b2b2b !important;
        margin-top: 8px !important;
        display: block !important;
    }

    .why-quote-box {
        display: none !important;
    }

    /* Fix inherited desktop styles on the injected pseudo-element labels */
    .quote-step::after {
        position: static !important;
        height: auto !important;
        width: 100% !important;
        background: transparent !important;
        text-align: center !important;
    }

    /* Hide the edit link on mobile timeline */
    .step-change-link {
        display: none !important;
    }

    /* Fix overlapping checkmark and number */
    .quote-step.completed .step-number {
        font-size: 0 !important;
    }

    .quote-step.completed .step-number::before {
        font-size: 14px !important;
        line-height: 30px !important;
        display: block !important;
        width: 100% !important;
        text-align: center !important;
    }

    /* Place Help box below the title on mobile/tablet */
    .quote-header-top {
        flex-direction: column !important;
        gap: 12px !important;
    }

    /* Step 2: Vendor Grid Mobile layout - 2 columns */
    .vendor-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .vendor-card {
        padding: 12px 8px !important;
        text-align: center !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .vendor-name {
        font-size: 12px !important;
        margin-top: 8px !important;
        white-space: normal !important;
        line-height: 1.2 !important;
    }

    .vendor-rating {
        font-size: 11px !important;
        margin-top: 4px !important;
        justify-content: center !important;
    }

    .vendor-meta {
        font-size: 10px !important;
        margin-top: 6px !important;
        line-height: 1.3 !important;
    }

    .vendor-logo-wrapper {
        margin: 0 auto !important;
        width: 50px !important;
        height: 50px !important;
    }

    /* Step 3: Category Grid Mobile layout - 2 columns */
    .category-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .category-card {
        padding: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .category-info {
        padding: 12px 8px !important;
    }

    .category-info h4 {
        font-size: 13px !important;
    }

    .category-info p {
        font-size: 11px !important;
        margin-bottom: 6px !important;
    }

    .category-view-link {
        font-size: 12px !important;
    }

    .category-img-wrapper {
        height: 120px !important;
    }

    .quote-help-box {
        width: auto !important;
        justify-content: flex-start !important;
        align-self: flex-start !important;
    }

    /* Step 5: Review Grids Mobile Layout */
    .review-summary-grid,
    .additional-details-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .quote-actions-bottom {
        flex-direction: column-reverse !important;
        gap: 16px !important;
    }

    /* quote-success.html mobile overrides */
    .quote-success-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px !important;
    }

    .success-action-buttons {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .btn-view-quotes,
    .btn-continue-shopping {
        width: 100% !important;
    }

    /* NEW FIXES FOR CUT OFF CONTENT */
    .success-details-grid {
        grid-template-columns: 1fr !important;
    }

    .success-middle-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    .success-id-box strong {
        font-size: 16px !important;
        /* Slightly smaller for mobile */
        word-break: break-all !important;
    }

    .success-email-notice strong {
        word-break: break-all !important;
    }

    .success-action-buttons {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .btn-view-quotes,
    .btn-continue-shopping {
        width: 100% !important;
    }

    /* Responsive Table - Stacked Card Layout for both items selection and success page */
    .selected-items-table,
    .selected-items-table thead,
    .selected-items-table tbody,
    .selected-items-table th,
    .selected-items-table td,
    .selected-items-table tr,
    .success-table,
    .success-table thead,
    .success-table tbody,
    .success-table th,
    .success-table td,
    .success-table tr {
        display: block !important;
        min-width: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .selected-items-table thead tr,
    .success-table thead tr {
        display: none !important;
    }

    .selected-items-table tr,
    .success-table tr {
        border: 1px solid #e0e0e0 !important;
        margin-bottom: 16px !important;
        border-radius: 8px !important;
        background: #fff !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) !important;
        overflow: hidden !important;
    }

    .selected-items-table td,
    .success-table td {
        border: none !important;
        border-bottom: 1px solid #f0f0f0 !important;
        position: relative !important;
        padding: 12px 14px !important;
        padding-left: 42% !important;
        text-align: right !important;
        min-height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        word-break: break-word !important;
    }

    .selected-items-table td:last-child,
    .success-table td:last-child {
        border-bottom: none !important;
    }

    .selected-items-table td::before,
    .success-table td::before {
        position: absolute !important;
        left: 14px !important;
        width: 38% !important;
        padding-right: 10px !important;
        text-align: left !important;
        font-weight: 700 !important;
        color: #2b2b2b !important;
        word-break: break-word !important;
    }

    /* Column Labels for Step 5 Review Items Table */
    .selected-items-table td:nth-of-type(1)::before {
        content: "#" !important;
    }

    .selected-items-table td:nth-of-type(2)::before {
        content: "Item Name" !important;
    }

    .selected-items-table td:nth-of-type(3)::before {
        content: "Package" !important;
    }

    .selected-items-table td:nth-of-type(4)::before {
        content: "Vendor" !important;
    }

    .selected-items-table td:nth-of-type(5)::before {
        content: "Quantity" !important;
    }

    .selected-items-table td:nth-of-type(6)::before {
        content: "Unit Price" !important;
    }

    .selected-items-table td:nth-of-type(7)::before {
        content: "Total Price" !important;
    }

    .selected-items-table td:nth-of-type(8)::before {
        content: "" !important;
    }

    /* Column Labels for Success Page Items Summary Table */
    .success-table td:nth-of-type(1)::before {
        content: "#" !important;
    }

    .success-table td:nth-of-type(2)::before {
        content: "Item Name" !important;
    }

    .success-table td:nth-of-type(3)::before {
        content: "Package" !important;
    }

    .success-table td:nth-of-type(4)::before {
        content: "Vendor" !important;
    }

    .success-table td:nth-of-type(5)::before {
        content: "Quantity" !important;
    }

    .success-table td:nth-of-type(6)::before {
        content: "Total Price" !important;
    }

    .selected-items-table-wrapper,
    .success-table-wrapper {
        border: none !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .table-item-name {
        justify-content: flex-end !important;
        text-align: right !important;
        max-width: 100% !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .qty-controls {
        margin-left: auto !important;
    }

    .next-step-btn-inline,
    .submit-quote-btn {
        width: 100% !important;
    }
}









/* ==========================================================================
   COMPREHENSIVE RESPONSIVE PROTECTION (PREVENT HORIZONTAL CUT-OFFS)
   ========================================================================== */
@media (max-width: 992px) {

    /* Main Layout & Grid Overwrites */
    .quote-page-wrapper,
    .quote-success-wrapper,
    .success-dashboard,
    .quote-main-content {
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .success-dashboard {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .success-col-left,
    .success-col-middle,
    .success-col-right {
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 24px 16px !important;
        box-sizing: border-box !important;
        border-right: none !important;
        border-bottom: 1px solid #e0e0e0 !important;
        overflow-x: hidden !important;
    }

    .quote-success-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px !important;
    }

    .quote-help-box {
        width: 100% !important;
        box-sizing: border-box !important;
        justify-content: flex-start !important;
    }

    /* Prevent Totals Bar from pushing page wider than viewport */
    .success-totals-bar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        height: auto !important;
        padding: 16px !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    .success-totals-bar span {
        display: block !important;
        width: 100% !important;
        word-break: break-word !important;
    }

    /* Prevent ID box and Email notices from exceeding border */
    .success-id-box {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 14px !important;
    }

    .success-id-box strong {
        font-size: 15px !important;
        word-break: break-all !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 6px !important;
    }

    .success-email-notice,
    .success-email-notice strong {
        word-break: break-word !important;
    }

    /* Prevent Tables from forcing width expansion */
    .success-table-wrapper,
    .selected-items-table-wrapper {
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        box-sizing: border-box !important;
        display: block !important;
    }

    /* Grids inside Success Middle Column */
    .success-details-grid,
    .review-summary-grid,
    .additional-details-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .success-middle-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    /* Success Promo Banner & Actions */
    .success-promo-banner {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 24px 16px !important;
        gap: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .promo-left {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .promo-features {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px !important;
        width: 100% !important;
    }

    .promo-btn,
    .btn-view-quotes,
    .btn-continue-shopping {
        width: 100% !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    .success-action-buttons {
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}