/* ==========================================================================
   SHIFTIFY USER DETAILS MODAL
   Premium / Glass / 3D Style
   ========================================================================== */

.estimate-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.estimate-modal.is-open {
    display: flex;
}

/* --------------------------------------------------------------------------
   Overlay
   -------------------------------------------------------------------------- */

.estimate-modal__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 30%,
            rgba(0, 43, 102, 0.25),
            rgba(0, 0, 0, 0.78) 70%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: estimateOverlayIn 0.25s ease forwards;
}

@keyframes estimateOverlayIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */

.estimate-modal__content {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 620px;
    max-height: calc(100vh - 40px);

    overflow-y: auto;
    overflow-x: hidden;

    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, 0.99),
            rgba(248, 250, 253, 0.98));

    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;

    box-shadow:
        0 40px 100px rgba(0, 20, 55, 0.35),
        0 15px 40px rgba(0, 43, 102, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);

    animation: estimateModalIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);

    scrollbar-width: thin;
    scrollbar-color: #ff5500 transparent;
}

@keyframes estimateModalIn {
    from {
        opacity: 0;
        transform:
            translateY(25px) scale(0.94) rotateX(3deg);
    }

    to {
        opacity: 1;
        transform:
            translateY(0) scale(1) rotateX(0);
    }
}

/* --------------------------------------------------------------------------
   Decorative Glow
   -------------------------------------------------------------------------- */

.estimate-modal__glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(1px);
    opacity: 0.55;
}

.estimate-modal__glow--orange {
    width: 180px;
    height: 180px;
    top: -100px;
    right: -80px;

    background:
        radial-gradient(circle,
            rgba(255, 85, 0, 0.18),
            transparent 70%);
}

.estimate-modal__glow--blue {
    width: 220px;
    height: 220px;
    bottom: -150px;
    left: -120px;

    background:
        radial-gradient(circle,
            rgba(0, 43, 102, 0.13),
            transparent 70%);
}

/* --------------------------------------------------------------------------
   Close Button
   -------------------------------------------------------------------------- */

.estimate-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 10;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #e5e7eb;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.9);
    color: #475569;

    font-size: 25px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    box-shadow:
        0 6px 18px rgba(0, 43, 102, 0.08);

    transition:
        transform 0.25s ease,
        color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.estimate-modal__close:hover {
    color: #ffffff;
    background: #ff5500;

    transform:
        rotate(90deg) scale(1.06);

    box-shadow:
        0 10px 25px rgba(255, 85, 0, 0.25);
}

.estimate-modal__close:focus-visible {
    outline: 3px solid rgba(255, 85, 0, 0.25);
    outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Body
   -------------------------------------------------------------------------- */

.estimate-modal__body {
    position: relative;
    padding: 38px 40px 30px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.estimate-modal__header {
    text-align: center;
    padding: 0 40px;
    margin-bottom: 24px;
}

.estimate-modal__brand {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 10px;

    color: #002b66;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2px;
}

.estimate-modal__brand-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;
    background: #ff5500;

    box-shadow:
        0 0 0 5px rgba(255, 85, 0, 0.1),
        0 0 15px rgba(255, 85, 0, 0.3);
}

.estimate-modal__eyebrow {
    display: block;

    color: #ff5500;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;

    margin-bottom: 7px;
}

.estimate-modal__header h2 {
    margin: 0 0 8px;

    color: #002b66;

    font-size: clamp(24px, 4vw, 31px);
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: -0.7px;
}

.estimate-modal__header p {
    max-width: 440px;
    margin: 0 auto;

    color: #64748b;

    font-size: 13px;
    line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Selected Estimate Type
   -------------------------------------------------------------------------- */

.estimate-type-card {
    position: relative;

    display: flex;
    align-items: center;
    gap: 13px;

    margin-bottom: 24px;
    padding: 13px 15px;

    background:
        linear-gradient(135deg,
            rgba(0, 43, 102, 0.055),
            rgba(255, 85, 0, 0.045));

    border: 1px solid rgba(0, 43, 102, 0.09);
    border-radius: 14px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9);

    overflow: hidden;
}

.estimate-type-card::before {
    content: "";

    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;

    width: 3px;

    background: linear-gradient(180deg,
            #ff5500,
            #ff8a50);
}

.estimate-type-card__icon {
    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    color: #ffffff;
    background:
        linear-gradient(135deg,
            #ff5500,
            #ff7433);

    font-size: 19px;

    box-shadow:
        0 8px 20px rgba(255, 85, 0, 0.25);
}

.estimate-type-card__content {
    min-width: 0;
    flex: 1;
}

.estimate-type-card__label {
    display: block;

    margin-bottom: 2px;

    color: #94a3b8;

    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1.2px;
}

.estimate-type-card__content strong {
    display: block;

    margin-bottom: 2px;

    color: #002b66;

    font-size: 13px;
    font-weight: 800;
}

.estimate-type-card__content small {
    display: block;

    color: #64748b;

    font-size: 10px;
    line-height: 1.4;
}

.estimate-type-card__check {
    flex: 0 0 25px;

    width: 25px;
    height: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #ffffff;
    background: #002b66;

    font-size: 12px;
    font-weight: 900;
}

/* --------------------------------------------------------------------------
   Form Grid
   -------------------------------------------------------------------------- */

.estimate-form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 17px 15px;
}

.estimate-form-group {
    min-width: 0;
}

.estimate-form-group--full {
    grid-column: 1 / -1;
}

/* --------------------------------------------------------------------------
   Labels
   -------------------------------------------------------------------------- */

.estimate-form-label {
    display: block;

    margin: 7px;

    color: #1e293b;

    font-size: 11px;
    font-weight: 800;
}

.estimate-form-label::after {
    content: " *";

    color: #ff5500;
}

/* --------------------------------------------------------------------------
   Input Wrapper
   -------------------------------------------------------------------------- */

.estimate-input-wrap {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
}

/* --------------------------------------------------------------------------
   Input
   -------------------------------------------------------------------------- */

.estimate-form-input {
    width: 100%;
    height: 47px;

    padding: 0 13px;

    border: 1px solid #dbe1e8;
    border-radius: 11px;

    outline: none;

    background: #ffffff;

    color: #172033;

    font-size: 12px;
    font-weight: 500;

    box-shadow:
        0 2px 5px rgba(0, 43, 102, 0.025);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease,
        background 0.2s ease;
}

.estimate-form-input::placeholder {
    color: #a3acb9;
}

.estimate-form-input:hover {
    border-color: #b8c3d1;
}

.estimate-form-input:focus {
    border-color: #ff5500;

    background: #ffffff;

    box-shadow:
        0 0 0 4px rgba(255, 85, 0, 0.08),
        0 8px 20px rgba(0, 43, 102, 0.06);

    transform: translateY(-1px);
}

/* Inputs with icons */

.estimate-input-wrap:has(.estimate-input-icon) .estimate-form-input {
    padding-left: 42px;
}

.estimate-input-icon {
    position: absolute;
    left: 14px;

    z-index: 2;

    width: 17px;
    height: 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #8090a5;

    pointer-events: none;

    transition: color 0.2s ease;
}

.estimate-input-icon svg {
    width: 17px;
    height: 17px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.estimate-input-wrap:focus-within .estimate-input-icon {
    color: #ff5500;
}

/* --------------------------------------------------------------------------
   Mobile Prefix
   -------------------------------------------------------------------------- */

.estimate-input-prefix {
    position: absolute;
    left: 13px;
    z-index: 2;

    display: flex;
    align-items: center;

    height: 24px;

    padding-right: 10px;

    border-right: 1px solid #e2e7ed;

    color: #002b66;

    font-size: 11px;
    font-weight: 800;

    pointer-events: none;
}

.estimate-form-input--mobile {
    padding-left: 55px;
}

/* --------------------------------------------------------------------------
   Date Input
   -------------------------------------------------------------------------- */

.estimate-form-input[type="date"] {
    color: #475569;
}

.estimate-form-input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.2s ease;
}

.estimate-form-input[type="date"]:hover::-webkit-calendar-picker-indicator,
.estimate-form-input[type="date"]:focus::-webkit-calendar-picker-indicator {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   Security Notice
   -------------------------------------------------------------------------- */

.estimate-security {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-top: 20px;
    padding: 11px 13px;

    border: 1px solid #e7edf3;
    border-radius: 11px;

    background: #f8fafc;
}

.estimate-security__icon {
    flex: 0 0 30px;

    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    color: #002b66;
    background: rgba(0, 43, 102, 0.07);
}

.estimate-security__icon svg {
    width: 16px;
    height: 16px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.estimate-security strong {
    display: block;

    margin-bottom: 1px;

    color: #334155;

    font-size: 10px;
    font-weight: 800;
}

.estimate-security span {
    display: block;

    color: #94a3b8;

    font-size: 9px;
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Error
   -------------------------------------------------------------------------- */

.estimate-form-error {
    margin-top: 13px;
    padding: 10px 12px;

    border: 1px solid #fecaca;
    border-radius: 9px;

    background: #fff1f2;
    color: #b91c1c;

    font-size: 11px;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Submit Button
   -------------------------------------------------------------------------- */

.estimate-modal__submit {
    position: relative;

    width: 100%;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    margin-top: 17px;

    border: 0;
    border-radius: 12px;

    background:
        linear-gradient(135deg,
            #ff5500 0%,
            #ff6418 55%,
            #ff7535 100%);

    color: #ffffff;

    font-size: 13px;
    font-weight: 800;

    box-shadow:
        0 12px 25px rgba(255, 85, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);

    overflow: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.estimate-modal__submit::before {
    content: "";

    position: absolute;
    top: 0;
    left: -120%;

    width: 80%;
    height: 100%;

    background:
        linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.25),
            transparent);

    transform: skewX(-20deg);

    transition: left 0.6s ease;
}

.estimate-modal__submit:hover::before {
    left: 140%;
}

.estimate-modal__submit:hover {
    transform: translateY(-2px);

    box-shadow:
        0 17px 32px rgba(255, 85, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.estimate-modal__submit:active {
    transform: translateY(0);
}

.estimate-modal__submit:focus-visible {
    outline: 3px solid rgba(255, 85, 0, 0.25);
    outline-offset: 3px;
}

.estimate-modal__submit-icon {
    width: 25px;
    height: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.16);

    font-size: 17px;

    transition: transform 0.25s ease;
}

.estimate-modal__submit:hover .estimate-modal__submit-icon {
    transform: translateX(3px);
}

.estimate-modal__submit-loader {
    display: none;

    width: 17px;
    height: 17px;

    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;

    border-radius: 50%;

    animation: estimateSpinner 0.7s linear infinite;
}

.estimate-modal__submit.is-loading .estimate-modal__submit-icon,
.estimate-modal__submit.is-loading .estimate-modal__submit-text {
    display: none;
}

.estimate-modal__submit.is-loading .estimate-modal__submit-loader {
    display: block;
}

.estimate-modal__submit.is-loading {
    cursor: wait;
    pointer-events: none;
    opacity: 0.85;
}

@keyframes estimateSpinner {
    to {
        transform: rotate(360deg);
    }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.estimate-modal__footer-text {
    margin: 11px 0 0;

    text-align: center;

    color: #94a3b8;

    font-size: 9px;
    font-weight: 600;
}

/* ==========================================================================
   MODAL RESPONSIVE
   ========================================================================== */

@media (max-width: 767px) {

    .estimate-modal {
        padding: 12px;
    }

    .estimate-modal__content {
        max-height: calc(100vh - 24px);
        border-radius: 20px;
    }

    .estimate-modal__body {
        padding: 32px 22px 23px;
    }

    .estimate-modal__header {
        padding: 0 25px;
        margin-bottom: 20px;
    }

    .estimate-modal__header h2 {
        font-size: 25px;
    }

    .estimate-modal__header p {
        font-size: 12px;
    }

    .estimate-modal__close {
        top: 13px;
        right: 13px;

        width: 36px;
        height: 36px;
    }

    .estimate-type-card {
        padding: 11px 12px;
    }

    .estimate-type-card__icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }

    .estimate-form-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .estimate-form-group--full {
        grid-column: auto;
    }
}

/* ==========================================================================
   SMALL MOBILE
   ========================================================================== */

@media (max-width: 480px) {

    .estimate-modal {
        padding: 0;
        align-items: flex-end;
    }

    .estimate-modal__content {
        width: 100%;
        max-width: 100%;

        max-height: 94vh;

        border-radius: 22px 22px 0 0;

        animation: estimateMobileModalIn 0.35s cubic-bezier(0.16,
                1,
                0.3,
                1);
    }

    @keyframes estimateMobileModalIn {
        from {
            opacity: 0;
            transform: translateY(100%);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .estimate-modal__body {
        padding:
            30px 16px calc(20px + env(safe-area-inset-bottom));
    }

    .estimate-modal__header {
        padding: 0 20px;
    }

    .estimate-modal__header h2 {
        font-size: 23px;
    }

    .estimate-modal__header p {
        font-size: 11px;
    }

    .estimate-modal__close {
        top: 12px;
        right: 12px;
    }

    .estimate-type-card__content strong {
        font-size: 12px;
    }

    .estimate-type-card__content small {
        font-size: 9px;
    }

    .estimate-security {
        align-items: flex-start;
    }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .estimate-modal__content,
    .estimate-modal__overlay,
    .estimate-modal__submit,
    .estimate-modal__close {
        animation: none !important;
        transition: none !important;
    }
}

/* ----------------------------ai estimatore section --------------------- */

/* =========================================================
   SHIFTEYE AI ESTIMATOR
========================================================= */

.ai-estimator-section {
    position: relative;
    padding: 70px 0;
    overflow: hidden;
    background: #f7f9fc;
}

.ai-estimator__bg {
    position: absolute;
    width: 450px;
    height: 450px;
    top: -180px;
    right: -150px;

    border-radius: 50%;

    background: radial-gradient(circle,
            rgba(255, 85, 0, .10),
            transparent 68%);

    pointer-events: none;
}

/* =========================================================
   VIDEO SOURCE OPTIONS
========================================================= */

.ai-video-source-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.ai-video-source-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e3e8ef;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition: .25s ease;
}

.ai-video-source-option:hover,
.ai-video-source-option.is-active {
    border-color: #ff5500;
    background: #fff7f2;
    transform: translateY(-2px);
}

.ai-video-source-option__icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f1f5f9;
    flex-shrink: 0;
}

.ai-video-source-option.is-active .ai-video-source-option__icon {
    background: #ff5500;
    color: #fff;
}

.ai-video-source-option__icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ai-video-source-option strong {
    display: block;
    font-size: 13px;
    color: #002b66;
}

.ai-video-source-option small {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    color: #7b8794;
}


/* =========================================================
   VIDEO MODES
========================================================= */

.ai-video-mode {
    display: none;
}

.ai-video-mode.is-active {
    display: block;
}


/* =========================================================
   UPLOAD BOX
========================================================= */

.ai-video-upload-box {
    min-height: 250px;
    border: 2px dashed #d6dde7;
    border-radius: 16px;
    background: #fafbfd;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 35px 20px;
    cursor: pointer;
    transition: .25s ease;
}

.ai-video-upload-box:hover {
    border-color: #ff5500;
    background: #fff8f4;
    transform: translateY(-2px);
}

.ai-video-upload-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff0e8;
    color: #ff5500;
    margin-bottom: 15px;
}

.ai-video-upload-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ai-video-upload-box strong {
    font-size: 15px;
    color: #002b66;
}

.ai-video-upload-box span {
    margin-top: 7px;
    font-size: 11px;
    color: #687586;
}

.ai-video-upload-box small {
    margin-top: 8px;
    font-size: 9px;
    color: #9aa4b2;
}


/* =========================================================
   UPLOADED VIDEO PREVIEW
========================================================= */

.ai-upload-preview {
    margin-top: 15px;
    border: 1px solid #e2e7ee;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.ai-upload-preview video {
    width: 100%;
    max-height: 360px;
    display: block;
    background: #07111f;
}

.ai-upload-preview__info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 14px;
}

.ai-upload-preview__info strong {
    display: block;
    font-size: 12px;
    color: #002b66;
}

.ai-upload-preview__info small {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    color: #7d8794;
}

.ai-remove-upload {
    border: 0;
    background: #fff1ed;
    color: #d93d00;
    border-radius: 8px;
    padding: 7px 11px;
    font-size: 10px;
    cursor: pointer;
}


/* =========================================================
   ANALYZE BUTTON
========================================================= */

.ai-process-video-btn {
    width: 100%;
    margin-top: 18px;
}

.ai-process-video-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .ai-video-source-options {
        grid-template-columns: 1fr;
    }

    .ai-video-upload-box {
        min-height: 210px;
    }

}

.ai-estimator__header {
    max-width: 650px;
    margin: 0 auto 32px;
    text-align: center;
}

.ai-estimator__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 10px;

    color: #ff5500;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.ai-estimator__eyebrow-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;
    background: #ff5500;

    box-shadow: 0 0 10px rgba(255, 85, 0, .5);
}

.ai-estimator__header h2 {
    margin: 0 0 10px;

    color: #002b66;

    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.1;
    letter-spacing: -1.2px;
}

.ai-estimator__header h2 span {
    color: #ff5500;
}

.ai-estimator__header p {
    max-width: 570px;
    margin: auto;

    color: #667085;

    font-size: 13px;
    line-height: 1.65;
}


/* =========================================================
   MAIN CARD
========================================================= */

.ai-estimator-card {
    position: relative;

    max-width: 900px;
    margin: auto;

    padding: 28px;

    border: 1px solid #e7ebf1;
    border-radius: 20px;

    background: #fff;

    box-shadow:
        0 18px 50px rgba(0, 43, 102, .09);
}


/* =========================================================
   PROGRESS
========================================================= */

.ai-estimator-progress {
    display: flex;
    align-items: center;

    max-width: 620px;
    margin: 0 auto 30px;
}

.ai-estimator-step {
    display: flex;
    align-items: center;
    gap: 6px;

    color: #a0a8b5;

    white-space: nowrap;
}

.ai-estimator-step span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 25px;
    height: 25px;

    border-radius: 50%;

    background: #edf0f4;

    font-size: 10px;
    font-weight: 800;
}

.ai-estimator-step small {
    font-size: 9px;
    font-weight: 700;
}

.ai-estimator-step.is-active {
    color: #002b66;
}

.ai-estimator-step.is-active span {
    background: #ff5500;
    color: #fff;

    box-shadow: 0 5px 12px rgba(255, 85, 0, .2);
}

.ai-estimator-progress-line {
    flex: 1;
    height: 1px;
    margin: 0 8px;

    background: #e5e8ed;
}


/* =========================================================
   PANELS
========================================================= */

.ai-estimator-panel {
    display: none;

    max-width: 680px;
    margin: auto;

    text-align: center;
}

.ai-estimator-panel.is-active {
    display: block;
}

.ai-estimator-panel__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 55px;
    height: 55px;

    margin: 0 auto 13px;

    border-radius: 16px;

    background: #fff3ed;
    color: #ff5500;
}

.ai-estimator-panel__icon svg {
    width: 27px;
    height: 27px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ai-estimator-panel__label {
    display: block;

    margin-bottom: 7px;

    color: #ff5500;

    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
}

.ai-estimator-panel h3 {
    margin: 0 0 8px;

    color: #002b66;

    font-size: 23px;
    letter-spacing: -.5px;
}

.ai-estimator-panel>p {
    max-width: 500px;
    margin: 0 auto 20px;

    color: #737d8c;

    font-size: 11px;
    line-height: 1.6;
}


/* =========================================================
   TIPS
========================================================= */

.ai-estimator-tips {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 9px;

    margin: 20px 0;
}

.ai-estimator-tip {
    display: flex;
    align-items: flex-start;
    gap: 8px;

    padding: 12px;

    border: 1px solid #edf0f4;
    border-radius: 10px;

    background: #fafbfc;

    text-align: left;
}

.ai-estimator-tip>span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 20px;
    height: 20px;

    flex: 0 0 20px;

    border-radius: 50%;

    background: #e9f9f0;
    color: #22a35a;

    font-size: 9px;
    font-weight: 800;
}

.ai-estimator-tip strong {
    display: block;

    color: #25344a;

    font-size: 9px;
}

.ai-estimator-tip small {
    display: block;

    margin-top: 3px;

    color: #8a94a3;

    font-size: 8px;
    line-height: 1.4;
}


/* =========================================================
   PRIMARY BUTTON
========================================================= */

.ai-estimator-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 44px;

    padding: 0 18px;

    border: 0;
    border-radius: 9px;

    background: linear-gradient(135deg,
            #ff5500,
            #ff7135);

    color: #fff;

    font-size: 11px;
    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 8px 20px rgba(255, 85, 0, .18);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.ai-estimator-primary-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 26px rgba(255, 85, 0, .25);
}

.ai-estimator-primary-btn__icon {
    font-size: 8px;
}

.ai-estimator-primary-btn__arrow {
    font-size: 15px;
}

.ai-estimator-note {
    margin-top: 9px !important;

    color: #9aa2ae !important;

    font-size: 8px !important;
}


/* =========================================================
   RECORDING
========================================================= */

.ai-recording-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 15px;

    text-align: left;
}

.ai-recording-header h3 {
    margin: 0;
}

.ai-recording-timer {
    padding: 7px 11px;

    border-radius: 7px;

    background: #f3f5f8;

    color: #002b66;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 700;
}

.ai-camera {
    position: relative;

    width: 100%;
    height: 350px;

    overflow: hidden;

    border-radius: 14px;

    background: #071a30;
}

.ai-camera video {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.ai-camera-overlay {
    position: absolute;
    inset: 0;

    pointer-events: none;
}

.ai-camera-corner {
    position: absolute;

    width: 35px;
    height: 35px;

    border-color: rgba(255, 255, 255, .75);
    border-style: solid;
}

.ai-camera-corner--tl {
    top: 18px;
    left: 18px;

    border-width: 2px 0 0 2px;
}

.ai-camera-corner--tr {
    top: 18px;
    right: 18px;

    border-width: 2px 2px 0 0;
}

.ai-camera-corner--bl {
    bottom: 18px;
    left: 18px;

    border-width: 0 0 2px 2px;
}

.ai-camera-corner--br {
    right: 18px;
    bottom: 18px;

    border-width: 0 2px 2px 0;
}

.ai-camera-guide {
    position: absolute;

    left: 50%;
    bottom: 18px;

    transform: translateX(-50%);

    padding: 7px 12px;

    border-radius: 20px;

    background: rgba(0, 0, 0, .45);

    color: #fff;

    font-size: 9px;
}

.ai-camera-status {
    position: absolute;

    top: 15px;
    left: 15px;

    display: flex;
    align-items: center;
    gap: 6px;

    padding: 6px 9px;

    border-radius: 20px;

    background: rgba(0, 0, 0, .42);

    color: #fff;

    font-size: 7px;
    font-weight: 800;
}

.ai-camera-status span {
    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: #42e88a;
}

.ai-recording-controls {
    display: flex;
    justify-content: center;
    gap: 8px;

    margin-top: 15px;
}

.ai-record-btn,
.ai-stop-btn {
    min-height: 40px;

    padding: 0 15px;

    border-radius: 8px;

    font-size: 10px;
    font-weight: 800;

    cursor: pointer;
}

.ai-record-btn {
    border: 0;
    background: #ff5500;
    color: #fff;
}

.ai-record-btn span {
    display: inline-block;

    width: 7px;
    height: 7px;

    margin-right: 5px;

    border-radius: 50%;

    background: #fff;
}

.ai-stop-btn {
    border: 1px solid #dfe3e9;

    background: #fff;

    color: #697386;
}

.ai-stop-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}


/* =========================================================
   AI ANALYSIS
========================================================= */

.ai-analysis-animation {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 105px;
    height: 105px;

    margin: 5px auto 20px;
}

.ai-analysis-core {
    position: relative;
    z-index: 3;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 55px;
    height: 55px;

    border-radius: 50%;

    background: linear-gradient(135deg,
            #002b66,
            #0753a8);

    color: #fff;

    font-size: 22px;

    box-shadow: 0 8px 25px rgba(0, 43, 102, .22);
}

.ai-analysis-ring {
    position: absolute;

    border: 1px solid rgba(255, 85, 0, .3);

    border-radius: 50%;

    animation: aiRingPulse 2s ease-out infinite;
}

.ai-analysis-ring--one {
    width: 75px;
    height: 75px;
}

.ai-analysis-ring--two {
    width: 105px;
    height: 105px;

    animation-delay: .6s;
}

@keyframes aiRingPulse {
    0% {
        transform: scale(.75);
        opacity: .8;
    }

    100% {
        transform: scale(1.05);
        opacity: 0;
    }
}

.ai-analysis-items {
    max-width: 350px;
    margin: 20px auto 0;

    text-align: left;
}

.ai-analysis-item {
    display: flex;
    align-items: center;
    gap: 9px;

    padding: 8px 0;

    border-bottom: 1px solid #edf0f4;

    color: #9aa2ae;

    font-size: 10px;
}

.ai-analysis-item span {
    font-size: 11px;
}

.ai-analysis-item.is-complete {
    color: #25a35b;
}

.ai-analysis-item.is-active {
    color: #ff5500;
}


/* =========================================================
   QUOTE RESULT
========================================================= */

.ai-quote-success {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    margin: 0 auto 13px;

    border-radius: 50%;

    background: #e9f9f0;

    color: #22a35a;

    font-size: 22px;
    font-weight: 800;
}

.ai-quote-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 8px;

    margin: 20px 0;
}

.ai-quote-summary>div {
    padding: 13px;

    border: 1px solid #e9edf2;
    border-radius: 10px;

    background: #fafbfc;
}

.ai-quote-summary small {
    display: block;

    margin-bottom: 5px;

    color: #8993a1;

    font-size: 8px;
}

.ai-quote-summary strong {
    color: #002b66;

    font-size: 15px;
}

.ai-quote-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 7px;

    padding: 10px;

    border-radius: 8px;

    background: #fff8f3;

    color: #8a7569;

    text-align: left;

    font-size: 8px;
    line-height: 1.5;
}

.ai-quote-disclaimer span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 15px;
    height: 15px;

    flex: 0 0 15px;

    border-radius: 50%;

    background: #ff5500;
    color: #fff;

    font-size: 8px;
}

.ai-quote-actions {
    display: flex;
    justify-content: center;
    gap: 8px;

    margin-top: 18px;
}

.ai-estimator-secondary-btn {
    min-height: 44px;

    padding: 0 16px;

    border: 1px solid #dfe4ea;
    border-radius: 9px;

    background: #fff;

    color: #596579;

    font-size: 10px;
    font-weight: 700;

    cursor: pointer;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .ai-estimator-section {
        padding: 50px 0;
    }

    .ai-estimator-card {
        padding: 18px;

        border-radius: 15px;
    }

    .ai-estimator-progress {
        margin-bottom: 25px;
    }

    .ai-estimator-step small {
        display: none;
    }

    .ai-estimator-tips {
        grid-template-columns: 1fr;
    }

    .ai-camera {
        height: 270px;
    }

    .ai-quote-summary {
        grid-template-columns: 1fr;
    }

    .ai-quote-actions {
        flex-direction: column;
    }

    .ai-quote-actions button {
        width: 100%;
    }
}

/* --------------------------ai estimatore section end --------------------- */
*/
/* =========================================================
   RELOCATION TABS
========================================================= */

/* =========================================================
   RELOCATION TYPE — COMPACT INLINE TABS
========================================================= */

.relocation-tabs {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 4px;
    padding: 3px;
    margin-top: 5px;
    background: #f4f6f8;
    border: 1px solid #e1e5ea;
    border-radius: 9px;
}

.relocation-tab {
    flex: 1;
    min-width: 0;
    height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #667085;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition: all .2s ease;
}

.relocation-tab:hover {
    background: #e9edf2;
    color: #002b66;
}

.relocation-tab.is-active {
    background: #002b66;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(0, 43, 102, .15);
}


/* =========================================================
   WITHIN / BETWEEN CITY FIELD AREA
========================================================= */

#within-city-fields,
#between-cities-fields {
    width: 100%;
    margin-top: 14px;
}


/* =========================================================
   CITY FIELDS — TWO COLUMNS
========================================================= */

#within-city-fields .estimate-form-grid,
#between-cities-fields .estimate-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
}


/* =========================================================
   FIELD GROUP
========================================================= */

#within-city-fields .estimate-form-group,
#between-cities-fields .estimate-form-group {
    min-width: 0;
}


/* =========================================================
   SELECT / INPUT
========================================================= */

#within-city-fields .estimate-form-input,
#between-cities-fields .estimate-form-input {
    height: 43px;
    font-size: 11px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .relocation-tabs {
        width: 100%;
    }

    .relocation-tab {
        height: 35px;
        padding: 0 8px;
        font-size: 10px;
    }

    #within-city-fields,
    #between-cities-fields {
        margin-top: 12px;
    }

    #within-city-fields .estimate-form-grid,
    #between-cities-fields .estimate-form-grid {
        grid-template-columns: 1fr;
        gap: 11px;
    }
}

/* -----------------------------------------------------reloation user-details modal ui ends --------------------- */


/* =========================================================
   SHIFTIFY MODAL — COMPLETE MOBILE RESPONSIVE FIX
   Add at the VERY END of your existing CSS file
========================================================= */

/* Prevent background scrolling when modal is open */
body:has(.estimate-modal.is-open) {
    overflow: hidden;
}

/* Main modal */
.estimate-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    padding: 12px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Modal content */
.estimate-modal__content {
    position: relative;
    width: min(100%, 620px);
    max-height: calc(100dvh - 24px);
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

/* Keep close button visible while scrolling */
.estimate-modal__close {
    position: sticky;
    float: right;
    top: 10px;
    right: 10px;
    margin: 10px 10px -50px 0;
    z-index: 100;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

/* Body */
.estimate-modal__body {
    width: 100%;
    min-width: 0;
    padding: 35px 30px 25px;
    box-sizing: border-box;
}

/* Prevent children from overflowing */
.estimate-modal__content *,
.estimate-modal__content *::before,
.estimate-modal__content *::after {
    box-sizing: border-box;
}

/* Header */
.estimate-modal__header {
    padding: 0 35px;
    margin-bottom: 18px;
}

.estimate-modal__header h2 {
    font-size: clamp(21px, 4vw, 29px);
}

/* Form grid */
.estimate-form-grid,
#within-city-fields .estimate-form-grid,
#between-cities-fields .estimate-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

.estimate-form-group {
    min-width: 0;
}

.estimate-form-input {
    min-width: 0;
    max-width: 100%;
}

/* Relocation */
.relocation-tabs {
    display: flex;
    width: 100%;
    gap: 5px;
}

.relocation-tab {
    min-width: 0;
    flex: 1;
    white-space: normal;
    padding: 0 5px;
}

/* Submit */
.estimate-modal__submit {
    position: relative;
    width: 100%;
    min-height: 48px;
}

/* =========================================================
   TABLETS
========================================================= */

@media (max-width: 767px) {

    .estimate-modal {
        padding: 12px;
    }

    .estimate-modal__content {
        width: 100%;
        max-width: 560px;
        max-height: calc(100dvh - 24px);
        border-radius: 18px;
    }

    .estimate-modal__body {
        padding: 32px 20px 24px;
    }

    .estimate-modal__header {
        padding: 0 28px;
    }

    .estimate-form-grid,
    #within-city-fields .estimate-form-grid,
    #between-cities-fields .estimate-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .estimate-form-input {
        height: 43px;
        font-size: 11px;
    }
}

/* =========================================================
   SMALL MOBILE — 480px
========================================================= */

@media (max-width: 480px) {

    .estimate-modal {
        padding: 0;
        align-items: flex-end;
        justify-content: center;
    }

    .estimate-modal__content {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 92dvh;
        border-radius: 20px 20px 0 0;
        overflow-x: hidden;
        overflow-y: auto;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .estimate-modal__body {
        padding: 22px 16px 18px;
    }

    /* Close button stays at top while scrolling */
    .estimate-modal__close {
        position: sticky;
        top: 8px;
        float: right;
        margin: 8px 8px -46px 0;
        width: 35px;
        height: 35px;
        font-size: 23px;
        background: #ffffff;
        box-shadow: 0 3px 12px rgba(0, 0, 0, .12);
    }

    .estimate-modal__header {
        padding: 0 24px;
        margin-bottom: 17px;
    }

    .estimate-modal__brand {
        font-size: 10px;
    }

    .estimate-modal__eyebrow {
        font-size: 9px;
    }

    .estimate-modal__header h2 {
        font-size: 22px;
        line-height: 1.2;
    }

    .estimate-modal__header p {
        font-size: 11px;
    }

    .estimate-type-card {
        gap: 9px;
        padding: 10px;
        margin-bottom: 17px;
    }

    .estimate-type-card__icon {
        flex: 0 0 35px;
        width: 35px;
        height: 35px;
    }

    /* One column for all form fields */
    .estimate-form-grid,
    #within-city-fields .estimate-form-grid,
    #between-cities-fields .estimate-form-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .estimate-form-group--full {
        grid-column: auto;
    }

    .estimate-form-label {
        margin: 0 0 5px;
        font-size: 10px;
    }

    .estimate-form-input,
    #within-city-fields .estimate-form-input,
    #between-cities-fields .estimate-form-input {
        width: 100%;
        height: 44px;
        font-size: 12px;
        border-radius: 9px;
    }

    .estimate-input-icon {
        left: 12px;
    }

    .estimate-input-wrap:has(.estimate-input-icon) .estimate-form-input {
        padding-left: 38px;
    }

    /* Relocation tabs */
    .relocation-tabs {
        display: flex;
        gap: 4px;
        padding: 3px;
    }

    .relocation-tab {
        height: 38px;
        font-size: 10px;
        padding: 0 5px;
    }

    #within-city-fields,
    #between-cities-fields {
        margin-top: 12px;
    }

    /* Security */
    .estimate-security {
        margin-top: 15px;
        padding: 10px;
    }

    .estimate-security strong {
        font-size: 10px;
    }

    .estimate-security span {
        font-size: 9px;
    }

    /* Error */
    .estimate-form-error {
        font-size: 10px;
    }

    /* Submit */
    .estimate-modal__submit {
        height: 47px;
        min-height: 47px;
        margin-top: 13px;
        font-size: 12px;
    }

    .estimate-modal__footer-text {
        font-size: 9px;
    }
}

/* =========================================================
   EXTRA SMALL PHONES — 360px AND BELOW
========================================================= */

@media (max-width: 360px) {

    .estimate-modal__body {
        padding-left: 12px;
        padding-right: 12px;
    }

    .estimate-modal__header h2 {
        font-size: 20px;
    }

    .estimate-modal__header {
        padding: 0 18px;
    }

    .estimate-type-card__content strong {
        font-size: 11px;
    }

    .estimate-type-card__content small {
        font-size: 9px;
    }

    .relocation-tab {
        font-size: 9px;
        padding: 0 3px;
    }

    .estimate-form-input {
        font-size: 11px;
    }
}

/* =========================================================
   SHORT SCREEN PHONES
========================================================= */

@media (max-height: 650px) and (max-width: 767px) {

    .estimate-modal {
        align-items: flex-start;
        padding: 0;
    }

    .estimate-modal__content {
        max-height: 100dvh;
        height: 100dvh;
        border-radius: 0;
    }

    .estimate-modal__body {
        padding-top: 18px;
    }

    .estimate-modal__header {
        margin-bottom: 12px;
    }

    .estimate-type-card {
        margin-bottom: 12px;
    }
}

/* =========================================================
   SAFETY
========================================================= */

.estimate-modal__content {
    overscroll-behavior-y: contain;
}

.estimate-modal__close:focus-visible,
.estimate-modal__submit:focus-visible {
    outline: 3px solid rgba(255, 85, 0, .35);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .estimate-modal__content,
    .estimate-modal__overlay {
        animation: none !important;
    }
}

/* =========================================================
   INTERNAL PRICING - HIDE FROM CUSTOMER INVOICE
========================================================= */

.invoice-internal-pricing {
    display: none !important;
}
