/**
 * UI enhancements — presentation only.
 * Does not modify forms, validation, submission, or signature workflows.
 */

:root {
    --ui-transition: 0.2s ease;
    --ui-focus-ring: 0 0 0 3px rgba(13, 117, 49, 0.22);
    --ui-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --ui-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --ui-enter-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ui-glow: rgba(13, 117, 49, 0.14);
    --ui-pointer-x: 50%;
    --ui-pointer-y: 40%;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(13, 117, 49, 0.18);
    color: inherit;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ── Header ── */
#top-header {
    transition: box-shadow 0.3s ease, background-color 0.3s ease, backdrop-filter 0.3s ease;
    animation: uiHeaderIn 0.45s var(--ui-enter-ease) both;
}

#top-header.header-scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.14);
    background-color: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
}

#top-header.headerNYPTG.header-scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    background-color: rgba(27, 42, 74, 0.9);
}

.header-top .contact_number a {
    transition: color var(--ui-transition), transform var(--ui-transition);
    text-decoration: none;
}

.header-top .contact_number a:hover {
    transform: translateY(-1px);
}

#NYPTG .header-top .contact_number a:hover {
    color: var(--gold-light, #E8C96A) !important;
}

#logo a img {
    transition: transform var(--ui-transition);
}

#logo a:hover img {
    transform: scale(1.02);
}

/*
 * Page entrance — transform-based (no opacity:0).
 * Avoids FOUC: content stays visible if CSS arrives a moment late.
 * Do NOT put transform animations on .sign-form-page-box .container
 * (breaks position:fixed loaders inside).
 */
@keyframes uiHeaderIn {
    from { transform: translateY(-10px); }
    to { transform: translateY(0); }
}

@keyframes uiRise {
    from { transform: translateY(14px); }
    to { transform: translateY(0); }
}

@keyframes uiRiseSoft {
    from { transform: translateY(10px); }
    to { transform: translateY(0); }
}

@keyframes uiPop {
    from { transform: scale(0.92); }
    to { transform: scale(1); }
}

@keyframes uiSlideInRight {
    from { transform: translateX(8px); }
    to { transform: translateX(0); }
}

.main-tittle {
    letter-spacing: -0.02em;
    line-height: 1.25;
    animation: uiRiseSoft 0.5s var(--ui-enter-ease) 0.05s both;
}

.apply_centerContent {
    overflow: hidden;
    position: relative;
    isolation: isolate;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    animation: uiRise 0.55s var(--ui-enter-ease) 0.08s both;
}

/* Soft pointer spotlight — set by ui-enhancements.js (presentation only) */
.apply_centerContent::before,
.application-form-outer .application-form::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(
        420px circle at var(--ui-pointer-x) var(--ui-pointer-y),
        var(--ui-glow),
        transparent 55%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
}

.apply_centerContent:hover::before,
.application-form-outer .application-form:hover::before {
    opacity: 1;
}

.apply_centerContent > *,
.application-form-outer .application-form > * {
    position: relative;
    z-index: 1;
}

.apply_centerContent:hover {
    box-shadow: rgba(99, 99, 99, 0.28) 0 4px 16px 0, 0 0 0 1px rgba(13, 117, 49, 0.08);
}

.ReduceYourProperty .ApplicationFormUserInputs .form-row {
    animation: uiRiseSoft 0.45s var(--ui-enter-ease) both;
}

.ReduceYourProperty .ApplicationFormUserInputs .form-row:nth-child(1) { animation-delay: 0.12s; }
.ReduceYourProperty .ApplicationFormUserInputs .form-row:nth-child(2) { animation-delay: 0.16s; }
.ReduceYourProperty .ApplicationFormUserInputs .form-row:nth-child(3) { animation-delay: 0.2s; }
.ReduceYourProperty .ApplicationFormUserInputs .form-row:nth-child(4) { animation-delay: 0.24s; }
.ReduceYourProperty .ApplicationFormUserInputs .form-row:nth-child(5) { animation-delay: 0.28s; }
.ReduceYourProperty .ApplicationFormUserInputs .form-row:nth-child(6) { animation-delay: 0.32s; }
.ReduceYourProperty .ApplicationFormUserInputs .form-row:nth-child(7) { animation-delay: 0.36s; }
.ReduceYourProperty .ApplicationFormUserInputs .form-row:nth-child(8) { animation-delay: 0.4s; }
.ReduceYourProperty .ApplicationFormUserInputs .form-row:nth-child(9) { animation-delay: 0.44s; }

.ReduceYourProperty .form-row.btm-row {
    animation: uiRiseSoft 0.45s var(--ui-enter-ease) 0.48s both;
}

.ReduceTax_info,
.ReduceTax_info_Priority,
.ReduceTax_info_NYPTG {
    animation: uiSlideInRight 0.55s var(--ui-enter-ease) 0.18s both;
}

.info-card,
.info-card-NYPTG {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: uiRiseSoft 0.5s var(--ui-enter-ease) both;
}

.info-cards .info-card:nth-child(1),
.info-cards-NYPTG .info-card-NYPTG:nth-child(1) {
    animation-delay: 0.22s;
}

.info-cards .info-card:nth-child(2),
.info-cards-NYPTG .info-card-NYPTG:nth-child(2) {
    animation-delay: 0.32s;
}

.info-card:hover,
.info-card-NYPTG:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card-icon,
.card-icon-NYPTG {
    transition: transform 0.25s ease;
    animation: uiFloat 3.6s ease-in-out infinite;
}

.info-cards .info-card:nth-child(2) .card-icon,
.info-cards-NYPTG .info-card-NYPTG:nth-child(2) .card-icon-NYPTG {
    animation-delay: 0.6s;
}

@keyframes uiFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.info-card:hover .card-icon,
.info-card-NYPTG:hover .card-icon-NYPTG {
    animation: none;
    transform: scale(1.06);
}

.Claims {
    transition: box-shadow 0.25s ease;
}

.Claims:hover {
    box-shadow: rgba(99, 99, 99, 0.3) 0 4px 12px 0;
}

.Claims p {
    animation: uiRiseSoft 0.4s var(--ui-enter-ease) both;
}

.Claims p:nth-child(1) { animation-delay: 0.28s; }
.Claims p:nth-child(2) { animation-delay: 0.34s; }
.Claims p:nth-child(3) { animation-delay: 0.4s; }
.Claims p:nth-child(4) { animation-delay: 0.46s; }

/* ── Apply form fields ── */
.applyForm_Iframe .form-row input[type=text],
.applyForm_Iframe .form-row input[type=email],
.applyForm_Iframe .form-row input[type=number],
.applyForm_Iframe .form-row select,
.applyForm_Iframe .form-row textarea,
.infoIframe_box .form-row input[type=text],
.infoIframe_box .form-row input[type=email],
.infoIframe_box .form-row input[type=number],
.infoIframe_box .form-row select,
.infoIframe_box .form-row textarea,
.application-info-sheet .small-text-box {
    border-radius: 6px !important;
    transition: border-color var(--ui-transition), box-shadow var(--ui-transition), transform var(--ui-transition);
}

.applyForm_Iframe .form-row input:focus,
.applyForm_Iframe .form-row select:focus,
.applyForm_Iframe .form-row textarea:focus,
.infoIframe_box .form-row input:focus,
.infoIframe_box .form-row select:focus,
.infoIframe_box .form-row textarea:focus,
.application-info-sheet .small-text-box:focus {
    outline: none;
    border-color: #5a9a6e !important;
    box-shadow: var(--ui-focus-ring), 0 0 0 6px rgba(13, 117, 49, 0.06);
}

.applyForm_Iframe .form-row input:-webkit-autofill,
.applyForm_Iframe .form-row input:-webkit-autofill:hover,
.applyForm_Iframe .form-row input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #f4fbf6 inset !important;
    transition: background-color 99999s ease-out;
}

.applyForm_Iframe .form-row .form-group label,
.infoIframe_box .form-row .form-group label {
    font-weight: 500;
    margin-bottom: 4px;
    transition: color var(--ui-transition);
}

.applyForm_Iframe .form-row .form-group:focus-within label,
.infoIframe_box .form-row .form-group:focus-within label {
    color: #0d6536;
}

/* Submit / theme buttons — micro-interactions + shine */
.applyForm_Iframe .themeBtn,
.info-footer .themeBtn,
.inactive-apply-btn .themeBtn,
.success-apply-btn .themeBtn,
.footer_fixed_btn .themeBtn {
    position: relative;
    overflow: hidden;
    transition: filter 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.applyForm_Iframe .themeBtn::after,
.inactive-apply-btn .themeBtn::after,
.success-apply-btn .themeBtn::after,
.footer_fixed_btn .themeBtn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-18deg);
    pointer-events: none;
}

.applyForm_Iframe .themeBtn:hover:not(:disabled)::after,
.inactive-apply-btn .themeBtn:hover:not(:disabled)::after,
.success-apply-btn .themeBtn:hover:not(:disabled)::after,
.footer_fixed_btn .themeBtn:hover:not(:disabled)::after {
    animation: uiBtnShine 0.65s ease;
}

@keyframes uiBtnShine {
    to { left: 140%; }
}

.applyForm_Iframe .themeBtn:hover:not(:disabled),
.inactive-apply-btn .themeBtn:hover:not(:disabled),
.success-apply-btn .themeBtn:hover:not(:disabled),
.footer_fixed_btn .themeBtn:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.applyForm_Iframe .themeBtn:active:not(:disabled),
.inactive-apply-btn .themeBtn:active:not(:disabled),
.success-apply-btn .themeBtn:active:not(:disabled),
.footer_fixed_btn .themeBtn:active:not(:disabled) {
    transform: translateY(0);
    filter: brightness(0.96);
}

.themeBtn.ui-pressed,
.sig_btn button.ui-pressed,
#goToSignature.ui-pressed {
    transform: translateY(0) scale(0.98);
}

/* ── Success / error / inactive ── */
.application-form-outer .application-form {
    position: relative;
    isolation: isolate;
    transition: box-shadow 0.3s ease;
    animation: uiRise 0.55s var(--ui-enter-ease) 0.06s both;
}

.application-form-outer .application-form:hover {
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.12);
}

.thanks_svg,
.error_svg,
.expired-img,
.Signature_icon {
    position: relative;
    display: inline-block;
    animation: uiPop 0.5s var(--ui-enter-ease) 0.15s both;
}

.thanks_svg::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(66, 167, 41, 0.35);
    animation: uiRingPulse 2.2s ease-out infinite;
    pointer-events: none;
}

@keyframes uiRingPulse {
    0% {
        transform: scale(0.92);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.18);
        opacity: 0;
    }
    100% {
        transform: scale(1.18);
        opacity: 0;
    }
}

.thanks_msg,
.error_msg,
.inactive-message {
    animation: uiRiseSoft 0.45s var(--ui-enter-ease) 0.22s both;
}

/* Validation messages — replay when shown via jQuery */
.error_message {
    animation: uiErrorIn 0.28s var(--ui-enter-ease) both;
}

@keyframes uiErrorIn {
    from { transform: translateY(-4px); }
    to { transform: translateY(0); }
}

/* Ambient page atmosphere (decorative only) */
.applyForm_Iframe,
.thanks_page_outer,
.error_page_outer,
.inactive_page {
    position: relative;
    overflow-x: hidden;
    overflow-x: clip;
}

.applyForm_Iframe::before,
.thanks_page_outer::before,
.error_page_outer::before {
    content: '';
    position: absolute;
    inset: -2%;
    pointer-events: none;
    z-index: -1; /* behind content; avoid stacking-context that traps #loader under the header */
    background:
        radial-gradient(ellipse 50% 40% at 12% 18%, rgba(13, 117, 49, 0.08), transparent 60%),
        radial-gradient(ellipse 45% 35% at 88% 72%, rgba(64, 69, 94, 0.08), transparent 55%);
    animation: uiAmbientDrift 14s ease-in-out infinite alternate;
}

.applyForm_Iframe > .container,
.thanks_page_outer > .container,
.error_page_outer > .container {
    position: relative;
    /* no z-index — a z-index here created a stacking context that kept Fixedloader under #top-header */
}

@keyframes uiAmbientDrift {
    from { transform: translate3d(0, 0, 0); opacity: 0.85; }
    to { transform: translate3d(0.6%, -0.4%, 0); opacity: 1; }
}

#NYPTG ~ form .applyForm_Iframe::before,
#NYPTG ~ form .thanks_page_outer::before {
    background:
        radial-gradient(ellipse 50% 40% at 12% 18%, rgba(197, 160, 40, 0.12), transparent 60%),
        radial-gradient(ellipse 45% 35% at 88% 72%, rgba(27, 42, 74, 0.12), transparent 55%);
}

#PRIORITY ~ form .applyForm_Iframe::before,
#PRIORITY ~ form .thanks_page_outer::before {
    background:
        radial-gradient(ellipse 50% 40% at 12% 18%, rgba(51, 84, 22, 0.1), transparent 60%),
        radial-gradient(ellipse 45% 35% at 88% 72%, rgba(41, 99, 148, 0.08), transparent 55%);
}

/* ── Information sheet ── */
.application-info-sheet {
    border-radius: 12px;
    box-shadow: var(--ui-shadow-sm);
    transition: box-shadow 0.3s ease;
    animation: uiRise 0.5s var(--ui-enter-ease) 0.06s both;
}

.thanks_Alert {
    transition: box-shadow 0.2s ease;
}

.thanks_Alert:hover {
    box-shadow: 0 2px 12px rgba(0, 204, 153, 0.15);
}

.yes_no_section .option_value input,
.infoSheetInner .check-boxes input[type=checkbox],
.infoSheetInner .check-boxes input[type=radio] {
    width: 18px;
    height: 18px;
    accent-color: #0d751f;
    cursor: pointer;
}

.new-address-section {
    transition: border-color var(--ui-transition), box-shadow var(--ui-transition);
}

.new-address-section:focus-within {
    border-color: #5a9a6e;
    box-shadow: var(--ui-focus-ring);
}

/* ── Signature pages ── */
.sign-form-page-box .document-outer-container {
    animation: uiRiseSoft 0.45s var(--ui-enter-ease) 0.08s both;
}

.action-bar.topBar {
    box-shadow: var(--ui-shadow-sm);
    animation: uiRiseSoft 0.4s var(--ui-enter-ease) both;
}

#goToSignature {
    transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

#goToSignature:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

#goToSignature:active {
    filter: brightness(0.95);
    transform: translateY(0);
}

.signatureModal_outer .Sig_option a {
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.signatureModal_outer .Sig_option a:hover:not(.active) {
    background-color: rgba(51, 122, 183, 0.06);
    transform: translateY(-1px);
}

.sig_btn button {
    transition: filter 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.sig_btn button:hover:not(:disabled) {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

/* ── Modern polish (presentation only) ── */
.ui-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    z-index: 100000;
    pointer-events: none;
    background: linear-gradient(90deg, #0d6536 0%, #5a9a6e 55%, #c5a028 100%);
    box-shadow: 0 0 12px rgba(13, 117, 49, 0.35);
    transition: width 0.08s linear;
}

body.ui-firm-NYPTG .ui-scroll-progress {
    background: linear-gradient(90deg, #1B2A4A 0%, #C5A028 100%);
}

body.ui-firm-PRIORITY .ui-scroll-progress {
    background: linear-gradient(90deg, #335416 0%, #5a9a6e 100%);
}

.main-tittle {
    position: relative;
}

.main-tittle::after {
    content: '';
    display: block;
    width: 72px;
    height: 3px;
    margin: 12px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #0d6536, #5a9a6e, #c5a028);
    transform-origin: center;
    animation: uiUnderlineGrow 0.55s var(--ui-enter-ease) 0.2s both;
}

@keyframes uiUnderlineGrow {
    from { transform: scaleX(0); opacity: 0.4; }
    to { transform: scaleX(1); opacity: 1; }
}

body.ui-firm-NYPTG .main-tittle::after {
    background: linear-gradient(90deg, #1B2A4A, #C5A028);
}

body.ui-firm-PRIORITY .main-tittle::after {
    background: linear-gradient(90deg, #335416, #6a9a4a);
}

/* Field focus glow — class toggled by ui-enhancements.js */
.applyForm_Iframe .form-group.ui-field-active,
.infoIframe_box .form-group.ui-field-active,
.application-info-sheet .form-group.ui-field-active {
    position: relative;
}

.applyForm_Iframe .form-group.ui-field-active label,
.infoIframe_box .form-group.ui-field-active label {
    color: #0d6536;
}

.applyForm_Iframe .form-group.ui-field-active input,
.applyForm_Iframe .form-group.ui-field-active select,
.applyForm_Iframe .form-group.ui-field-active textarea,
.infoIframe_box .form-group.ui-field-active input,
.infoIframe_box .form-group.ui-field-active select,
.infoIframe_box .form-group.ui-field-active textarea {
    border-color: #5a9a6e !important;
    box-shadow: var(--ui-focus-ring), 0 0 0 6px rgba(13, 117, 49, 0.06);
}

/* Info sheet / yes-no chips */
.yes_no_section .option_value,
.infoSheetInner .check-boxes label,
.info-sheet .check-boxes label {
    transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
    border-radius: 8px;
}

.yes_no_section .option_value:hover,
.infoSheetInner .check-boxes label:hover {
    transform: translateY(-1px);
}

.application-info-sheet .form-row {
    transition: background-color 0.2s ease;
    border-radius: 8px;
}

.application-info-sheet .form-row:focus-within {
    background-color: rgba(13, 117, 49, 0.03);
}

/* Floating Sign CTA attention (does not change click handler) */
#goToSignature {
    position: relative;
}

#goToSignature.ui-attention {
    animation: uiCtaPulse 2s ease-in-out infinite;
}

@keyframes uiCtaPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(129, 176, 111, 0.45); }
    50% { box-shadow: 0 0 0 10px rgba(129, 176, 111, 0); }
}

/* Signature modal — entrance on tabs/header only (not canvas parents mid-draw) */
#signatureModal.show .modal-header,
#signatureModal.ui-modal-ready .modal-header {
    animation: uiRiseSoft 0.4s var(--ui-enter-ease) both;
}

#signatureModal.show .Sig_option a,
#signatureModal.ui-modal-ready .Sig_option a {
    animation: uiRiseSoft 0.4s var(--ui-enter-ease) both;
}

#signatureModal.show .Sig_option a:nth-child(1),
#signatureModal.ui-modal-ready .Sig_option a:nth-child(1) { animation-delay: 0.04s; }
#signatureModal.show .Sig_option a:nth-child(2),
#signatureModal.ui-modal-ready .Sig_option a:nth-child(2) { animation-delay: 0.1s; }
#signatureModal.show .Sig_option a:nth-child(3),
#signatureModal.ui-modal-ready .Sig_option a:nth-child(3) { animation-delay: 0.16s; }

#signatureModal.show .sig_btn,
#signatureModal.ui-modal-ready .sig_btn {
    animation: uiRiseSoft 0.4s var(--ui-enter-ease) 0.2s both;
}

.signatureModal_outer .modal-content {
    border: 0;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
    overflow: hidden;
}

.signatureModal_outer .modal-header {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.signatureModal_outer .Sig_option a.active {
    background: rgba(51, 122, 183, 0.06);
}

/* Calculator */
.property_tax_calculator_layout,
.taxCalculator_outer {
    animation: uiRiseSoft 0.5s var(--ui-enter-ease) both;
}

.main_heading h3 {
    position: relative;
}

.main_heading h3::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    margin: 10px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #0d6536, #5a9a6e);
}

/* Modern thin scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(13, 117, 49, 0.35) transparent;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-thumb {
    background: rgba(13, 117, 49, 0.35);
    border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(13, 117, 49, 0.55);
}

*::-webkit-scrollbar-track {
    background: transparent;
}

/* Soft glass on success / inactive cards */
.application-form-outer .application-form,
.inactive_page .application-form {
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* ── Loader (presentation only — #loader show/hide unchanged) ── */
.Fixedloader {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    /* Above fixed header (z-index 999) and scroll progress bar */
    z-index: 100001 !important;
    animation: uiLoaderFade 0.2s ease both;
}

@keyframes uiLoaderFade {
    from { background: rgba(15, 23, 42, 0); }
    to { background: rgba(15, 23, 42, 0.52); }
}

.Fixedloader img {
    display: none !important;
    animation: none !important;
}

.Fixedloader::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    margin-left: -22px;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: uiLoaderSpin 0.75s linear infinite;
}

@keyframes uiLoaderSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .Fixedloader::after {
        animation: uiLoaderSpin 1.5s linear infinite;
    }

    #top-header,
    .main-tittle,
    .apply_centerContent,
    .ReduceYourProperty .ApplicationFormUserInputs .form-row,
    .ReduceYourProperty .form-row.btm-row,
    .ReduceTax_info,
    .ReduceTax_info_Priority,
    .ReduceTax_info_NYPTG,
    .info-card,
    .info-card-NYPTG,
    .Claims p,
    .application-form-outer .application-form,
    .thanks_svg,
    .error_svg,
    .expired-img,
    .Signature_icon,
    .thanks_msg,
    .error_msg,
    .inactive-message,
    .application-info-sheet,
    .sign-form-page-box .document-outer-container,
    .action-bar.topBar,
    .Fixedloader,
    .error_message,
    .thanks_svg::after,
    .card-icon,
    .card-icon-NYPTG,
    .applyForm_Iframe::before,
    .thanks_page_outer::before,
    .error_page_outer::before,
    .main-tittle::after,
    .main_heading h3::after,
    #goToSignature.ui-attention,
    #signatureModal.show .modal-header,
    #signatureModal.ui-modal-ready .modal-header,
    #signatureModal.show .Sig_option a,
    #signatureModal.ui-modal-ready .Sig_option a,
    #signatureModal.show .sig_btn,
    #signatureModal.ui-modal-ready .sig_btn,
    .property_tax_calculator_layout,
    .taxCalculator_outer {
        animation: none !important;
    }

    .ui-scroll-progress {
        display: none !important;
    }

    .applyForm_Iframe .themeBtn::after,
    .inactive-apply-btn .themeBtn::after,
    .success-apply-btn .themeBtn::after,
    .footer_fixed_btn .themeBtn::after {
        display: none;
    }
}

/* ── Responsive: tablet ── */
@media (max-width: 991px) {
    .apply_centerContent {
        min-width: unset !important;
        flex-direction: column;
        max-width: 100%;
    }

    .ReduceYourProperty {
        border-radius: 15px 15px 0 0 !important;
    }

    .ReduceTax_info,
    .ReduceTax_info_Priority,
    .ReduceTax_info_NYPTG {
        border-radius: 0 0 15px 15px !important;
        padding: 24px 20px !important;
        animation-name: uiRiseSoft;
    }

    .info-card-outer,
    .info-card-outer-NYPTG {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    .info-cards,
    .info-cards-NYPTG {
        gap: 24px;
    }

    .applyForm_Iframe,
    .infoIframe_box,
    .thanks_page_outer {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* ── Responsive: mobile ── */
@media (max-width: 767px) {
    .header-top {
        gap: 8px;
        padding: 6px 0;
    }

    .header-top .button-wrap p {
        font-size: 14px;
    }

    .logoImgPlatinum,
    .logoImgPriority,
    .logoImgNYPTG {
        max-width: 95px;
    }

    .main-tittle {
        font-size: 22px;
        margin: 16px 0;
    }

    .application-form-outer {
        margin: 60px 0;
        padding: 0 12px;
    }

    .application-form-outer .application-form {
        padding: 32px 20px;
    }

    .ReduceYourProperty {
        padding: 20px 16px !important;
    }

    .info-card,
    .info-card-NYPTG {
        padding: 18px 16px;
    }

    .card-icon,
    .card-icon-NYPTG {
        width: 52px;
        height: 52px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .header-top .button-wrap {
        width: 100%;
        align-items: flex-start;
    }

    .contact_number a span {
        font-size: 15px;
    }

    .applyForm_Iframe {
        padding-top: 85px;
    }
}
