.quoteOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 9999;
}
.quoteWind {
    display: block;
    width: 100%;
    max-width: 480px;
    height: auto;
    min-height: 400px;/* for spinner to run when first panel not visible yet */
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    overflow: hidden;
}

.quoteLoading{
    position:absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
    z-index:99999;
    display:none;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:18px;
    background:rgba(255,255,255,.92);
}

.quoteLoading.is-active{
    display:flex;
}

.quoteLoading-spinner{
    width:52px;
    height:52px;
    border:4px solid #e5e5e5;
    border-top-color:var(--green);
    border-radius:50%;
    animation:quoteSpinner .7s linear infinite;
}

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

.quoteLoading-text{
    font-size:17px;
    font-weight:600;
    color:#222;
}

#quoteFrm {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}

.quoteWindHdr-hldr {
    position: relative;
    width: 100%;
    height: 80px;
    background-color: #ffffff;
    border-bottom: 1px solid #e9ecef;
    padding: 0 20px;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    
    /* Mobile-safe structural stickiness if needed */
    flex-shrink: 0; 
}

.quoteWindHdr {
    width: 100%;
    height: 100%;
    
    /* TURN THIS INTO A VERTICAL FLEXBOX CONTAINER */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically centers whatever is inside */
    align-items: center;     /* Horizontally centers whatever is inside */
    text-align: center;
}

.quoteWindHdr-ttl {
    display: block; /* Changes from inline-block to prevent text wrapping bugs */
    width: 100%;
    margin: 0;
    font-size: 1.5em; /* Slightly adjusted down so title + address fit safely in 80px */
    font-weight: 700;
    line-height: 1.2;
    color: var(--green); 
}

.quoteWindHdr-addr {
    display: none;
    width: 100%;
    max-width: 420px;
    margin-top: 4px; /* Clean, controlled spacing block below the title */
    font-size: 0.9em;
    line-height: 1.2;
    color: var(--text-light);
    
    /* Keeps long text clean with an ellipsis (...) */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* HIDES ALL SECTIONS BY DEFAULT */
.quoteSet {
    display: none;
    width: 100%;
    height: auto;
    opacity: 0;
}

/* SHOWS ONLY THE ACTIVE SECTION WITH A LUXURIOUS, SMOOTH REVEAL */
.quoteSet.is-active {
    display: block;
    animation: panelFadeIn 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* THE SEAMLESS TRANSITION TIMELINE */
@keyframes panelFadeIn {
    0% {
        opacity: 0;
        transform: translateY(5px); /* Soft, barely-there lift */
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Content block layout */
.quoteSetContnt {
    max-height: 50vh; 
    min-height: 480px;
    overflow-y: auto; 
    overflow-x: hidden;
}

.quoteSetInner {
    display: block;
    width: 100%;
    height: auto;
    padding: 30px 20px; 
}

.qtFrmBtnsCont-hldr {
    width: 100%;
    height: 70px;
    background-color: #ffffff;
    border-top: 1px solid #e9ecef;
    padding: 0 20px;
    /* Keeps things safely structured on mobile */
    flex-shrink: 0; 
}

.qtFrmBtns {
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
}

/* Pushes the lone button to the right end */
.qtFrmBtns.is-single {
    justify-content: flex-end;
}

.qtFrmBtns.is-split {
    justify-content: flex-end;
    gap: 12px;
}


/* =====================================
   PANELS
===================================== */

#quoteSet-head-details {
    margin-bottom: 30px;
    font-size: clamp(1.35rem, 3vw, 1.35rem);
    font-weight: 500;
    color: var(--text-light); 
}

.quoteSet-head {
    margin-bottom:20px;
    font-size:clamp(1.3rem, 2vw, 1.3rem);
    font-weight:600;
    line-height:1.3;
    color: #343a40;
}

.quoteQstnBlock {
    scroll-margin-top: 25px;
}

.quoteQstn{
    margin-bottom:16px;
    font-size: clamp(1.15rem, 0.8vw + 1rem, 1.2rem);
    font-weight:600;
    line-height:1.4;
}

#quoteAddress{
    margin-bottom: 15px;
}

.quoteTxtArea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    resize: vertical;
}

.quoteOptText {
    margin-left: 8px;
}




/* =====================================
   FORM BUTTONS (CONVERTED TO BRAND GREEN)
===================================== */

/* =====================================
   SHARED BUTTON
===================================== */

.qgFrmBtn{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;

    width:fit-content;
    min-width:120px;

    padding:8px;

    border:none;
    border-radius:20px;

    cursor:pointer;

    font-family:Arial, Helvetica, sans-serif;
    font-size:1rem;
    font-weight:600;
    text-align:center;

    transition:
        background-color .2s ease,
        color .2s ease,
        border-color .2s ease,
        transform .15s ease,
        box-shadow .2s ease;
}


/* =====================================
   NEXT BUTTON
===================================== */

.qgFrmBtn-nxt{
    background:var(--green);
    color:#fff;
    box-shadow:0 6px 14px rgba(13,159,73,.15);
}

.qgFrmBtn-nxt:hover{
    background:var(--green-dark);
    box-shadow:0 8px 18px rgba(13,159,73,.22);
}

.qgFrmBtn-nxt:active{
    transform:scale(.98);
    box-shadow:none;
}


/* =====================================
   PREVIOUS BUTTON
===================================== */

.qgFrmBtn-prv{
    background:transparent;
    color:var(--green);
}

.qgFrmBtn-prv:hover{
    background:#f0fdf4;
    color:var(--green-dark);
}

.qgFrmBtn-prv:active{
    transform:scale(.98);
}


/* =====================================
   SUBMIT BUTTON
===================================== */

.qgFrmBtn-sub{
    background:#FBC02D;
    color:#fff;
    box-shadow:0 6px 14px rgba(251,192,45,.20);
}

.qgFrmBtn-sub:hover{
    background:#F5B005;
    box-shadow:0 8px 18px rgba(251,192,45,.32);
}

.qgFrmBtn-sub:active{
    transform:scale(.98);
    box-shadow:none;
}


/* =====================================
   NEXT ARROW
===================================== */

.qgFrmBtn-svg{
    transition:transform .15s ease;
}

.qgFrmBtn-nxt:active .qgFrmBtn-svg{
    transform:translateX(4px);
}



/* =====================================
   SLIDE ANIMATIONS
===================================== */

.quoteSet.is-active .quoteSetInner{
    animation-duration:1.2s;
    animation-timing-function:cubic-bezier(0.22, 1, 0.36, 1);
    animation-fill-mode:both;
}


.quoteSet.slide-next .quoteSetInner{
    animation-name:quoteSlideNext;
}


.quoteSet.slide-prev .quoteSetInner{
    animation-name:quoteSlidePrev;
}


@keyframes quoteSlideNext{

    from{
        opacity:0;
        transform:translateX(55px);
    }

    to{
        opacity:1;
        transform:translateX(0);
    }

}


@keyframes quoteSlidePrev{

    from{
        opacity:0;
        transform:translateX(-55px);
    }

    to{
        opacity:1;
        transform:translateX(0);
    }

}




/* --- DESKTOP ONLY BOUNDARIES --- */


/* --- MOBILE LAYOUT --- */
@media screen and (max-width: 768px) {
    .quoteOverlay {
        background-color: #ffffff;
    }
    .quoteWind {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        height: 100vh; 
        height: 100dvh; 
        border-radius: 0;
        box-shadow: none;
        position: static;
        transform: none;
    }
    #quoteFrm {
        display: flex;
        flex-direction: column;
        flex: 1;
        height: 100%;
        overflow: hidden; 
    }

    .quoteWindHdr-hldr {
        position: sticky;
        top: 0;
        flex-shrink: 0; 
    }
    
    /* FORCES ACTIVE SECTION TO BE A FLEX CONTAINER ON MOBILE */
    .quoteSet.is-active {
        display: flex;
        flex-direction: column;
        flex: 1;
        overflow: hidden; 
    }

    .quoteSetContnt {
        flex: 1;
        max-height: none; /* ← THIS IS THE FIX: Kills the 50vh cap on mobile */
        overflow-y: auto; 
        -webkit-overflow-scrolling: touch;
    }

    .quoteSetInner {
        height: auto; 
    }

    .qtFrmBtnsCont-hldr {
        position: sticky;
        bottom: 0;
        z-index: 10;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05); 
    }

}




/* =====================================
   INPUTS
===================================== */

/* Remove the focus lighting ring/outline from inputs */
.quoteSetContnt input[type="text"],
.quoteSetContnt input[type="tel"],
.quoteSetContnt input[type="email"],
.quoteSetContnt textarea,
.quoteSetContnt select {
    outline: none !important;
    box-shadow: none !important;
    /* If your existing styles shift the border color on focus, lock it here: */
    /* border-color: #ccc; */ 
}


.quoteFrmInpt-addr {
    width:100%;
    height:52px;
    box-sizing:border-box;
    padding:0 16px;
    border:1px solid #dcdcdc;
    border-radius:12px;

    font-size:18px;
    font-family:Arial, Helvetica, sans-serif;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.quoteFrmInpt-addr:focus{
    box-shadow:0 0 0 4px rgba(2,182,101,0.12);
}


/* =====================================
   SERVICES
===================================== */

.quoteSrvItem{
    display:flex;
    align-items:center;
    gap:14px;

    padding:14px 16px;

    cursor:pointer;

    border:1px solid #e5e5e5;
    border-radius:14px;

    transition:all .2s ease;
}


.quoteSrvItem:hover{
    border-color:#22c55e;

    background:#f7fff9;
}


.quoteSrvCheck{
    display:none;
}


.quoteSrvBox{
    position:relative;

    width:24px;
    height:24px;

    flex-shrink:0;

    border:2px solid #d0d0d0;
    border-radius:7px;

    background:#fff;

    transition:all .2s ease;
}


.quoteSrvCheck:checked + .quoteSrvBox{
    background:#22c55e;
    border-color:#22c55e;
}


.quoteSrvCheck:checked + .quoteSrvBox::after{
    content:"";

    position:absolute;

    top:1px;
    left:6px;

    width:6px;
    height:11px;

    border:solid #fff;
    border-width:0 3px 3px 0;

    transform:rotate(45deg);
}


.quoteSrvText{
    font-size:17px;
    line-height:22px;

    color:#222;
}


/* =====================================
   RADIO OPTIONS
===================================== */
.quoteQstnOpts {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px; 
}    

.quoteOptItem {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
    cursor: pointer; 
}

.quoteOptItem input[type="radio"] {
    display: none;
}

.quoteOptCircle {
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border: 2px solid #b9b9b9;
    border-radius: 50%;
    transition: all .2s ease;
}

.quoteOptCircle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--green);
    transform: translate(-50%, -50%) scale(0);
    transition: all .2s ease;
}

/* Checked States */
.quoteOptItem input[type="radio"]:checked + .quoteOptCircle {
    border-color: var(--green);
}

.quoteOptItem input[type="radio"]:checked + .quoteOptCircle::after {
    transform: translate(-50%, -50%) scale(1);
}

.quoteOptText {
    font-size: 18px;
    font-size: clamp(1.0625rem, 0.6vw + 0.9rem, 1.125rem);
    line-height: 22px;
    color: #333;
}


/* =====================================
   IMAGE CARDS
===================================== */

.quoteImgCardGrid{
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
    gap:20px 0;

    margin-top:20px;
    padding-bottom:10px;
}


.quoteImgCard{
    position:relative;

    width:calc(50% - 10px);

    overflow:hidden;

    cursor:pointer;

    box-sizing:border-box;

    border:1px solid #dcdcdc;
    border-radius:18px;

    background:#fff;

    transition:.2s;
}


.quoteImgCard input{
    display:none;
}


.quoteImgCardImg{
    display:block;

    width:calc(100% - 10px);

    margin:5px;

    aspect-ratio:1/1;
    object-fit:cover;

    box-sizing:border-box;

    border-radius:12px;
}


.quoteImgCardCheck{
    display:none;

    position:absolute;
    top:12px;
    right:12px;
    z-index:2;

    width:28px;
    height:28px;

    border:1px solid #dcdcdc;
    border-radius:50%;

    background:#fff;

    transition:.2s;
}


.quoteImgCard:has(input:checked){
    border:1px solid var(--green);

    background:#f3fff3;
}


.quoteImgCard:has(input:checked) .quoteImgCardCheck{
    display:block;

    border-color:var(--green);

    background:var(--green);
}


.quoteImgCard:has(input:checked) .quoteImgCardCheck::after{
    content:"";

    position:absolute;

    top:6px;
    left:10px;

    width:5px;
    height:10px;

    border:solid #fff;
    border-width:0 2px 2px 0;

    transform:rotate(45deg);
}


/* =====================================
   TEXTAREA
===================================== */

.quoteTxtArea{
    width:100%;
    min-height:90px;

    padding:5px 16px;

    resize:none;
    outline:none;

    box-sizing:border-box;

    border:1px solid #dcdcdc;
    border-radius:18px;

    font-family:Arial, sans-serif;
    font-size:16px;
    line-height:1.6;
}


/* ==========================================================================
   CONTACT STEP LAYOUT & TYPOGRAPHY
   ========================================================================== */

.quoteNameRow {
    display: flex;
    gap: 40px;
    margin-top: 28px;
    width: 100%;
}

.quoteHalfField {
    flex: 1;
    min-width: 0;
}

.quoteFrmInpt-info {
    width: 100%;
    height: 50px;
    padding: 0;
    border: none !important;
    border-bottom: 1px solid #b9b9b9 !important;
    border-radius: 0;
    background: transparent;
    font-size: 18px;
    box-sizing: border-box;
}


/* =====================================
   SECTION 2: PLAN ACTION MATRIX STACK
===================================== */

.qr-status-strip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    font-size: 0.85rem;
    color: #9a3412;
    background-color: #fff7ed;
    border: 1px solid #ffedd5;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 18px;
}

.qr-live-pulse {
    width: 6px;
    height: 6px;
    background-color: #ea580c;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.5);
    animation: pulseLoopCompact 1.8s infinite;
}

@keyframes pulseLoopCompact {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.5); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(234, 88, 12, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(234, 88, 12, 0); }
}

.qr-plan-booking-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* BOTH CARDS: Light neutral background with a standard dark gray border */
.qr-action-card {
    position: relative;
    background-color: #f9fafb; 
    border: 1.5px solid #d1d5db;  
    border-radius: calc(var(--radius) - 6px);
    padding: 24px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-action-card.is-active {
    background-color: #f9fafb;  
    border: 1.5px solid #d1d5db;   
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04); 
}

.qr-card-main-flow {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.1fr;
    align-items: center;
    gap: 24px;
    width: 100%;
    text-align: center;
}

/* DETAILS AREA: Sets left alignment for a natural desktop reading look */
.qr-plan-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
    align-items: flex-start;
}

.qr-plan-title {
    font-size: 1.25rem !important;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0px !important;
}

.qr-plan-desc {
    font-size: 0.88rem !important;
    color: var(--text-light);
    margin-bottom: 0px !important;
    max-width: 100%;
}

.qr-plan-pricing {
    text-align: center;
}

.qr-card-price {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--green); 
    line-height: 1;
}

.qr-card-interval {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-light);
    margin-top: 4px;
    white-space: nowrap;
}

.qr-card-action {
    width: 100%;
    display: flex;
    justify-content: center;
}

.qr-submit-btn {
    display: flex;
    width: 100%;
    max-width: 200px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--green);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 15px 18px;
    border-radius: 10px;
    transition: background-color 0.15s ease, transform 0.1s ease;
    box-shadow: 0 4px 14px rgba(13, 159, 73, 0.15);
}

.qr-submit-btn:focus,
.qr-submit-btn:focus-visible {
    outline: none;
    box-shadow: 0 4px 14px rgba(13, 159, 73, 0.15);
}

.qr-submit-btn:active {
    background-color: var(--green-dark);
    transform: scale(0.98);
}

.qr-btn-svg {
    transition: transform 0.15s ease;
}

.qr-submit-btn:active .qr-btn-svg {
    transform: translateX(4px);
}

/* TARGET SPECIFICITY FIX: Force white bg, green text/border, anchors to top-left border line middle */
.qr-rib.ribbon {
    position: absolute !important;
    left: 24px !important;               
    top: -11px !important;              
    background: #ffffff !important;     
    color: var(--green) !important;     
    border: 1.5px solid var(--green) !important; 
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    letter-spacing: 0.02em !important;
    white-space: nowrap !important;
    transform: none !important;         
}


/* =====================================
   MOBILE RESPONSIVE OVERRIDES
===================================== */

@media (max-width:768px){


    
    /* MOBILE ALIGNMENT UPGRADES FOR CARD DETAILS AND RIBBON POSITIONING */
    .qr-card-main-flow {
        grid-template-columns: 1fr;
    }
    
    .qr-plan-details {
        text-align: center;
        align-items: center;
    }
    
    .qr-rib.ribbon {
        left: 24px !important;
        transform: none !important;
    }





}