/* =========================================================
   PREVENTA / SWAASTHCARE
   PRODUCT QUICK-CONTACT POPUP
   Matched to the final popup design used by about.html
   ========================================================= */

/* Prevent page scrolling while the popup is open. */
html.preventa-popup-open,
body.preventa-popup-open {
    overflow: hidden !important;
}

/* Full-screen dimmed overlay. */
.popup-form-overlay {
    display: none;
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    background: rgba(0, 0, 0, .48) !important;
    z-index: 2147483000 !important;
}

.popup-form-overlay.is-open {
    display: block !important;
}

/* =========================================================
   POPUP — exact centered about.html-style presentation
   ========================================================= */

.quick-contact-form {
    display: none;
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    top: 50% !important;
    bottom: auto !important;

    width: min(440px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100dvh - 24px) !important;

    transform: translate(-50%, -50%) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;

    box-sizing: border-box !important;
    padding: clamp(17px, 3vw, 28px) !important;

    background: #fff !important;
    border: 2px solid #ee3533 !important;
    border-radius: 14px !important;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .35) !important;

    line-height: normal !important;
    text-align: center !important;

    z-index: 2147483001 !important;
}

.quick-contact-form.is-open {
    display: block !important;
    animation: preventaPopupCenterIn .24s ease-out !important;
}

/* Heading and description. */
.quick-contact-form h5 {
    margin: 0 0 0 !important;
    padding-right: 30px !important;
    color: #777 !important;
    font-size: clamp(18px, 4vw, 22px) !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
	text-transform: uppercase;
}

.quick-contact-form > p {
    margin: 8px 0 15px !important;
    color: #aaa;
    font-size: clamp(12px, 3vw, 14px) !important;
    font-weight: 400 !important;
    line-height: 1.55 !important;
}

/* Form itself. */
.quick-contact-form .quick_form {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Inputs and textarea — match about.html popup. */
.quick-contact-form .quick_form input,
.quick-contact-form .quick_form textarea {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;

    margin: 0 0 9px !important;
    padding: 11px 12px !important;

    min-height: 42px !important;
    height: auto !important;

    border: 1px solid #ddd !important;
    border-radius: 7px !important;
    outline: 0 !important;

    background: #fff !important;
    color: #333 !important;

    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;

    transition:
        border-color .25s ease,
        box-shadow .25s ease,
        background-color .25s ease !important;
}

.quick-contact-form .quick_form input::placeholder,
.quick-contact-form .quick_form textarea::placeholder {
    color: #888 !important;
    opacity: 1 !important;
}

.quick-contact-form .quick_form input:focus,
.quick-contact-form .quick_form textarea:focus {
    border-color: #ee3533 !important;
    box-shadow: 0 0 0 3px rgba(238, 53, 51, .12) !important;
    outline: 0 !important;
}

.quick-contact-form .quick_form textarea {
    min-height: 92px !important;
    height: 92px !important;
    resize: vertical !important;
}

/* Validation error state. */
.quick-contact-form .quick_form input.error_warning,
.quick-contact-form .quick_form textarea.error_warning {
    border-color: #eb2e2e !important;
}

/* SEND button. */
.quick-contact-form .quick_form button,
.quick-contact-form #enquiry_submit {
    display: block !important;
    width: 100% !important;
    min-height: 44px !important;

    margin: 2px 0 12px !important;
    padding: 10px 15px !important;

    border: 0 !important;
    border-radius: 7px !important;
    outline: 0 !important;

    background: #ee3533 !important;
    color: #fff !important;

    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-align: center !important;

    cursor: pointer !important;
    transition:
        background-color .25s ease,
        transform .2s ease,
        box-shadow .25s ease !important;
}

.quick-contact-form .quick_form button:hover,
.quick-contact-form #enquiry_submit:hover {
    background: #d92f2d !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 5px 15px rgba(238, 53, 51, .22) !important;
}

.quick-contact-form .quick_form button:active,
.quick-contact-form #enquiry_submit:active {
    transform: translateY(0) !important;
}

/* Contact-page link. */
.quick-contact-form > a {
    display: block !important;
    margin-top: 0 !important;
    padding: 3px 0 !important;
	text-transform: uppercase;
    color: #aaa !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
    text-align: center !important;
    text-decoration: none !important;

    transition: color .25s ease !important;
}

.quick-contact-form > a:hover {
    color: #c43f00 !important;
}

/* Close button injected by popup-form.js. */
.preventa-popup-close {
	 
    position: absolute !important;
    top: 7px !important;
    right: 9px !important;

    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    margin: 0 !important;

    border: 0 !important;
    border-radius: 50% !important;
    background: background: #f3f3f3!important; !important;
    color: #333 !important;

    font-family: Arial, sans-serif !important;
    font-size: 29px !important;
    font-weight: 400 !important;
    line-height: 30px !important;
    text-align: center !important;

    cursor: pointer !important;
    z-index: 3 !important;
    transition:
        background-color .2s ease,
        color .2s ease,
        transform .2s ease !important;
}

.preventa-popup-close:hover {
    background: #ee3533 !important;
    color: #fff !important;
    transform: rotate(90deg) !important;
}

/* Keep floating controls hidden while modal is active. */
body.quick-contact-form-active #drop-msg,
body.quick-contact-form-active #back-to-top,
.quick-contact-form.is-open ~ #drop-msg,
.quick-contact-form.is-open ~ #back-to-top {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* =========================================================
   CENTERED OPEN ANIMATION
   ========================================================= */

@keyframes preventaPopupCenterIn {
    from {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 14px)) scale(.985) !important;
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) !important;
    }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 600px) {
    .quick-contact-form {
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        max-height: calc(100dvh - 20px) !important;
        padding: 16px !important;
        border-radius: 12px !important;
    }

    .quick-contact-form h5 {
        margin-top: 2px !important;
    }

    .quick-contact-form .quick_form input,
    .quick-contact-form .quick_form textarea {
        font-size: 14px !important;
    }
}

@media (max-width: 380px) {
    .quick-contact-form {
        width: calc(100vw - 14px) !important;
        max-width: calc(100vw - 14px) !important;
        max-height: calc(100dvh - 12px) !important;
        padding: 13px !important;
        border-radius: 10px !important;
    }

    .quick-contact-form .quick_form input,
    .quick-contact-form .quick_form textarea {
        font-size: 16px !important;
    }

    .quick-contact-form .quick_form input {
        min-height: 40px !important;
        margin-bottom: 7px !important;
    }

    .quick-contact-form .quick_form textarea {
        min-height: 78px !important;
        height: 78px !important;
    }

    .quick-contact-form .quick_form button,
    .quick-contact-form #enquiry_submit {
        min-height: 42px !important;
    }
}

@media (min-width: 1600px) {
    .quick-contact-form {
        width: min(480px, calc(100vw - 40px)) !important;
    }
}

/* Short screens: keep the complete form usable without leaving viewport. */
@media (max-height: 600px) {
    .quick-contact-form {
        max-height: calc(100dvh - 16px) !important;
        padding-top: 14px !important;
        padding-bottom: 14px !important;
    }

    .quick-contact-form .quick_form input {
        min-height: 38px !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
        margin-bottom: 7px !important;
    }

    .quick-contact-form .quick_form textarea {
        min-height: 65px !important;
        height: 65px !important;
    }

    .quick-contact-form .quick_form button,
    .quick-contact-form #enquiry_submit {
        min-height: 40px !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }
}

/* Accessibility. */
@media (prefers-reduced-motion: reduce) {
    .quick-contact-form,
    .quick-contact-form *,
    .preventa-popup-close {
        animation: none !important;
        transition: none !important;
    }
}

/* Floating envelope button — same visual language as about.html. */
a.drop-msg {
    position: fixed !important;
    right: 24px !important;
    bottom: 86px !important;
    z-index: 2147483000 !important;

    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    min-height: 58px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 !important;
    margin: 0 !important;

    border: 3px solid #fff !important;
    border-radius: 50% !important;

    background: #c43f00 !important;
    color: #fff !important;
    text-decoration: none !important;

    box-shadow: 0 5px 18px rgba(0, 0, 0, .35) !important;
    cursor: pointer !important;

    transition:
        transform .2s ease,
        background-color .2s ease,
        box-shadow .2s ease !important;
}

a.drop-msg i {
    display: block !important;
    color: #fff !important;
    font-size: 27px !important;
    line-height: 1 !important;
}

a.drop-msg:hover {
    background: #8f2d00 !important;
    color: #fff !important;
    transform: scale(1.08) !important;
    box-shadow: 0 7px 22px rgba(0, 0, 0, .55) !important;
}

@media (max-width: 600px) {
    a.drop-msg {
        right: 16px !important;
        bottom: 78px !important;
        width: 52px !important;
        height: 52px !important;
        min-width: 52px !important;
        min-height: 52px !important;
    }

    a.drop-msg i {
        font-size: 24px !important;
    }
}


/* ============================================================
   FINAL FIXES — PRODUCT PAGE
   1) Always-visible Page Up button
   2) SEND typography exactly aligned with about.html
   3) Deterministic form height/spacing matching about.html
   ============================================================ */

/* Page Up / Back-to-top control.
   Product page does not load the theme stylesheet that normally defines
   #back-to-top, so define the control here explicitly. */
a#back-to-top {
    position: fixed !important;
    right: 24px !important;
    bottom: 18px !important;
    z-index: 2147483000 !important;

    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    min-height: 58px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;

    border: 3px solid #fff !important;
    border-radius: 50% !important;
    background: #111 !important;
    color: #fff !important;

    text-decoration: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;

    box-shadow: 0 5px 18px rgba(0,0,0,.5) !important;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease !important;
}

a#back-to-top i {
    display: block !important;
    color: #fff !important;
    font-size: 31px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

a#back-to-top:hover {
    background: #f9851c !important;
    color: #fff !important;
    transform: scale(1.08) !important;
    box-shadow: 0 7px 22px rgba(0,0,0,.55) !important;
}

/* Keep Page Up hidden only while the Quick Contact modal is open. */
body.quick-contact-form-active a#back-to-top,
a#back-to-top.modal-hiding {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* SEND typography — same Segoe-style family and heavy weight as the
   about.html popup button. */
.quick-contact-form .quick_form button#enquiry_submit {
    font-family: 'Seoge UI', 'Segoe UI', sans-serif !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    font-style: normal !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-transform: uppercase !important;
}

/* Inputs: fixed height matching the reference popup. */
.quick-contact-form .quick_form input {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    box-sizing: border-box !important;

    font-family: 'Seoge UI', 'Segoe UI', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    line-height: 18px !important;
}

/* Message field: fixed reference height. */
.quick-contact-form .quick_form textarea {
    height: 92px !important;
    min-height: 92px !important;
    max-height: 92px !important;
    box-sizing: border-box !important;
    resize: none !important;

    font-family: 'Seoge UI', 'Segoe UI', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    line-height: 18px !important;
}

/* Exact field spacing. */
.quick-contact-form .quick_form input,
.quick-contact-form .quick_form textarea {
    margin-bottom: 9px !important;
    padding: 11px 12px !important;
}

/* Keep the complete form height stable instead of letting browser/theme
   defaults enlarge individual controls. */
.quick-contact-form .quick_form {
    height: auto !important;
    min-height: 0 !important;
}

/* Desktop/tablet Page Up position. */
@media (max-width: 600px) {
    a#back-to-top {
        right: 16px !important;
        bottom: 14px !important;
        width: 52px !important;
        height: 52px !important;
        min-width: 52px !important;
        min-height: 52px !important;
    }

    a#back-to-top i {
        font-size: 28px !important;
    }
}

/* Small screens: preserve the same compact reference proportions. */
@media (max-width: 380px) {
    .quick-contact-form .quick_form input {
        height: 40px !important;
        min-height: 40px !important;
        max-height: 40px !important;
        margin-bottom: 7px !important;
    }

    .quick-contact-form .quick_form textarea {
        height: 78px !important;
        min-height: 78px !important;
        max-height: 78px !important;
    }

    .quick-contact-form .quick_form button#enquiry_submit {
        min-height: 42px !important;
        height: 42px !important;
        font-size: 13px !important;
    }
}
