/*
 * Heller & Consultants - UI theme (design foundation)
 * ---------------------------------------------------------------------------------------------
 * PURELY VISUAL. No markup, ids, field names, scripts or business logic are changed by this file.
 *
 * - Every rule is scoped under  body.hc-ui  so a page opts in by adding that class to <body>
 *   (ApplicationForm.aspx does it with one line). Pages that do not opt in are not affected.
 * - ROLL BACK: remove the <link> to this file (and the one-line script that adds "hc-ui") from the page.
 * - COLOURS: only the colours the site already uses (see the tokens below). Shadows, focus rings and
 *   soft tints are the same colours with transparency - no new palette.
 * - FONTS: Montserrat (body, labels, buttons) and Inter (headings) - both already loaded by the page.
 * - MOTION: short fade/slide/lift effects only; everything is switched off for prefers-reduced-motion.
 */

/* ============================================================================================
   1. Design tokens (all values already present in the existing stylesheets)
   ============================================================================================ */
body.hc-ui {
    --hc-blue: #2925f4;           /* primary action colour (buttons, links)            */
    --hc-ink: #1b1f29;            /* headings, labels                                  */
    --hc-text: #696767;           /* secondary text                                    */
    --hc-text-2: #434856;         /* body copy in long text                            */
    --hc-line: #dddddd;           /* field borders                                     */
    --hc-line-hover: #cccccc;
    --hc-link: #0074b2;           /* info blue used by the trust panel                 */
    --hc-error: #ff3e4f;          /* validation errors (same as the inline colour)     */
    --hc-success: #39aa1b;        /* promo success (same as the inline colour)         */
    --hc-white: #ffffff;

    --hc-ring: rgba(41, 37, 244, 0.16);          /* focus ring = --hc-blue at 16%      */
    --hc-shadow-sm: 0 1px 2px rgba(99, 99, 99, 0.12);
    --hc-shadow-md: 0 1px 2px rgba(99, 99, 99, 0.10), 0 10px 30px rgba(99, 99, 99, 0.16);
    --hc-shadow-lg: 0 1px 2px rgba(99, 99, 99, 0.12), 0 16px 40px rgba(99, 99, 99, 0.24);

    --hc-radius-sm: 10px;
    --hc-radius-md: 12px;
    --hc-radius-lg: 18px;

    --hc-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --hc-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --hc-fast: 0.16s;
    --hc-base: 0.28s;
    --hc-slow: 0.6s;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ============================================================================================
   2. Keyframes
   ============================================================================================ */
@keyframes hc-fade-up {
    from { opacity: 0; transform: translate3d(0, 14px, 0); }
    to   { opacity: 1; transform: none; }
}
@keyframes hc-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes hc-msg-in {
    from { opacity: 0; transform: translate3d(0, -4px, 0); }
    to   { opacity: 1; transform: none; }
}
@keyframes hc-pop-in {
    from { opacity: 0; transform: translate3d(0, -6px, 0) scale(0.98); }
    to   { opacity: 1; transform: none; }
}
@keyframes hc-pop {
    from { opacity: 0; transform: translateX(-50%) scale(0.5); }
    to   { opacity: 1; transform: translateX(-50%) scale(1); }
}
@keyframes hc-spin {
    to { transform: rotate(360deg); }
}
@keyframes hc-busy {
    0%, 100% { opacity: 0.62; }
    50%      { opacity: 0.88; }
}

/* ============================================================================================
   3. Header (logo, menu, phone block, mobile menu)
   ============================================================================================ */
/* the pages on MainMaster do not load Bootstrap, so the header/footer boxes were content-sized and 40px wider than a phone */
body.hc-ui .theme__header,
body.hc-ui .theme__header *,
body.hc-ui .theme-footer,
body.hc-ui .theme-footer * { box-sizing: border-box; }
body.hc-ui .theme__header {
    transition: box-shadow var(--hc-base) var(--hc-ease);
}
body.hc-ui .theme__header.hc-scrolled {
    box-shadow: 0 6px 22px rgba(99, 99, 99, 0.18);
}
body.hc-ui .theme_navbar .logo-image a {
    display: inline-block;
    transition: opacity var(--hc-base) var(--hc-ease), transform var(--hc-base) var(--hc-ease);
}
body.hc-ui .theme_navbar .logo-image a:hover { opacity: 0.88; }

/* menu links: animated underline */
body.hc-ui .menu_item ul li a:not(.apply_now_btn) {
    position: relative;
    display: inline-block;
    padding: 8px 0;
    text-decoration: none;
    transition: color var(--hc-base) var(--hc-ease);
}
body.hc-ui .menu_item ul li a:not(.apply_now_btn)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--hc-blue);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--hc-base) var(--hc-ease);
}
body.hc-ui .menu_item ul li a:not(.apply_now_btn):hover,
body.hc-ui .menu_item ul li a:not(.apply_now_btn):focus-visible { color: var(--hc-blue); }
body.hc-ui .menu_item ul li a:not(.apply_now_btn):hover::after,
body.hc-ui .menu_item ul li a:not(.apply_now_btn):focus-visible::after { transform: scaleX(1); }

/* "Apply Now" button in the header */
body.hc-ui .menu_item ul li a.apply_now_btn,
body.hc-ui .mobile_apply_now .apply_now_btn {
    display: inline-block;
    border-radius: var(--hc-radius-sm);
    text-decoration: none;
    transition: transform var(--hc-base) var(--hc-ease), box-shadow var(--hc-base) var(--hc-ease), background-color var(--hc-base) var(--hc-ease);
}
body.hc-ui .menu_item ul li a.apply_now_btn:hover,
body.hc-ui .menu_item ul li a.apply_now_btn:focus-visible {
    background: var(--hc-blue);
    color: var(--hc-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(41, 37, 244, 0.3);
}
body.hc-ui .menu_item ul li a.apply_now_btn:active { transform: translateY(0); box-shadow: none; }
body.hc-ui .mobile_apply_now .apply_now_btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25); }

/* phone numbers */
body.hc-ui .header_heading-text strong a {
    text-decoration: none;
    transition: color var(--hc-base) var(--hc-ease);
}
body.hc-ui .header_heading-text strong a:hover,
body.hc-ui .header_heading-text strong a:focus-visible { color: var(--hc-blue); text-decoration: underline; text-underline-offset: 3px; }

/* mobile menu button: the icon used to be white on the white header (invisible) */
body.hc-ui .mobile_section {
    width: 44px;
    height: 44px;
    border: 1px solid var(--hc-line);
    border-radius: var(--hc-radius-sm);
    color: var(--hc-ink);
    background: var(--hc-white);
    transition: background-color var(--hc-base) var(--hc-ease), border-color var(--hc-base) var(--hc-ease), box-shadow var(--hc-base) var(--hc-ease);
}
body.hc-ui .mobile_section svg { fill: var(--hc-ink); }
body.hc-ui .mobile_section a.mobile_menu {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-width: 44px;
    min-height: 44px;
    border-radius: var(--hc-radius-sm);
}
body.hc-ui .mobile_section:hover { border-color: var(--hc-line-hover); box-shadow: var(--hc-shadow-sm); }
body.hc-ui .mobile_section a.mobile_menu:focus-visible { outline: 3px solid var(--hc-ring); outline-offset: 2px; }

/* mobile menu drawer */
body.hc-ui .mobile-navbar.animate-right-to-left { box-shadow: -12px 0 40px rgba(0, 0, 0, 0.28); }   /* only while open: the closed drawer sits just off-screen */
body.hc-ui .animate-right-to-left { animation-duration: 0.38s; animation-timing-function: var(--hc-ease); }
body.hc-ui .animate-left-to-right { animation-duration: 0.3s; animation-timing-function: var(--hc-ease); }
body.hc-ui .remove-scroll:before { animation: hc-fade-in var(--hc-base) var(--hc-ease) both; backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
body.hc-ui .mobile-navbar ul li a {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    text-decoration: none;
    transition: background-color var(--hc-base) var(--hc-ease), padding-left var(--hc-base) var(--hc-ease);
}
body.hc-ui .mobile-navbar ul li a:hover,
body.hc-ui .mobile-navbar ul li a:focus-visible { background: rgba(255, 255, 255, 0.07); padding-left: 30px; }
body.hc-ui .mobile-popup-header button {
    width: 44px;
    height: 44px;
    margin: 6px 8px 0 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color var(--hc-base) var(--hc-ease), transform var(--hc-base) var(--hc-ease);
}
body.hc-ui .mobile-popup-header button:hover { background: rgba(255, 255, 255, 0.12); transform: rotate(90deg); }
body.hc-ui .mobile-popup-header button:focus-visible { outline: 2px solid var(--hc-white); outline-offset: 2px; }
/* the phone block in the dark drawer was black on dark grey: use the same white as the menu links */
body.hc-ui .mobile-navbar .expert_section p,
body.hc-ui .mobile-navbar .expert_section p a,
body.hc-ui .mobile-navbar .header_heading-text strong a { color: var(--hc-white); }
body.hc-ui .mobile-navbar .expert_section p a:hover { color: var(--hc-white); text-decoration: underline; }
body.hc-ui .header-social-icon a { transition: transform var(--hc-base) var(--hc-ease), opacity var(--hc-base) var(--hc-ease); }
body.hc-ui .header-social-icon a:hover { transform: translateY(-3px); opacity: 0.85; }

/* ============================================================================================
   4. Page title + entrance animations
   ============================================================================================ */
body.hc-ui .page_main_tiitle { padding: 36px 0 14px; animation: hc-fade-up var(--hc-slow) var(--hc-ease) both; }
body.hc-ui .page_main_tiitle h2 {
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    font-size: clamp(1.45rem, 1.1rem + 1.5vw, 2.2rem);
}
body.hc-ui .page_main_tiitle h6 {
    margin: 10px 0 0;
    color: var(--hc-text);
    font-weight: 500;
    line-height: 1.5;
    font-size: clamp(0.95rem, 0.88rem + 0.35vw, 1.1rem);
}
body.hc-ui .apply_left  { animation: hc-fade-up var(--hc-slow) 0.08s var(--hc-ease) both; }
body.hc-ui .apply_right > div:nth-child(1) { animation: hc-fade-up var(--hc-slow) 0.16s var(--hc-ease) both; }
body.hc-ui .apply_right > div:nth-child(2) { animation: hc-fade-up var(--hc-slow) 0.20s var(--hc-ease) both; }
body.hc-ui .apply_right > div:nth-child(3) { animation: hc-fade-up var(--hc-slow) 0.24s var(--hc-ease) both; }
body.hc-ui .apply_right > div:nth-child(4) { animation: hc-fade-up var(--hc-slow) 0.32s var(--hc-ease) both; }

/* the page container: its Bootstrap row has -15px side margins, so the container needs 15px side padding or the
   page ends up 3-15px wider than the screen (phones, tablets and 1024px laptops) */
body.hc-ui .reduce-property .container { box-sizing: border-box; padding-left: 15px; padding-right: 15px; }

/* ============================================================================================
   5. The form card
   ============================================================================================ */
body.hc-ui .apply-form .login-block {
    border-radius: var(--hc-radius-lg);
    box-shadow: var(--hc-shadow-md);
    padding: 32px 20px 28px;
    transition: box-shadow var(--hc-base) var(--hc-ease);
}
body.hc-ui .apply-form .login-block:focus-within { box-shadow: var(--hc-shadow-lg); }

/* intro text: one font and one size (the card mixed Open Sans / Montserrat and 14px / 16px) */
body.hc-ui .reduce-property .login-block p,
body.hc-ui .apply-form .login-block .record-side p { font-family: "Montserrat", sans-serif; }
body.hc-ui .apply-form .login-block .text__block-title { margin-bottom: 6px; }
body.hc-ui .apply-form .login-block .record-side h5 { font-size: 1.2rem; line-height: 1.3; }
body.hc-ui .apply-form .login-block .record-side .text__block-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--hc-text);
    margin-bottom: 14px;
}
body.hc-ui .apply-form .login-block .record-side .text__block-desc span { font-size: inherit !important; }

/* labels */
body.hc-ui .apply-form .login-block .form-group { margin-bottom: 18px; }
body.hc-ui .apply-form .login-block label {
    display: block;
    margin-bottom: 6px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--hc-ink);
    letter-spacing: 0.005em;
}
body.hc-ui .apply-form .login-block label .label-desc {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--hc-text);
}

/* first + last name side by side on tablets and up; everything else is full width */
@media (min-width: 576px) {
    body.hc-ui .apply-form .login-block > .mx-auto:not(.terms-div) {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 16px;
    }
    body.hc-ui .apply-form .login-block > .mx-auto:not(.terms-div) > * { grid-column: 1 / -1; min-width: 0; }
    body.hc-ui .apply-form .login-block > .mx-auto:not(.terms-div) > .form-group:nth-child(-n+2) { grid-column: auto; }
}

/* ============================================================================================
   6. Inputs, selects, checkbox
   ============================================================================================ */
body.hc-ui .apply-form .login-block .form-control,
body.hc-ui .apply-form .login-block select.select_formcontrol_width {
    width: 100%;
    max-width: 100%;
    height: 48px;
    padding: 10px 14px;
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    line-height: 1.4;
    color: var(--hc-ink);
    background-color: var(--hc-white);
    border: 1px solid var(--hc-line);
    border-radius: var(--hc-radius-sm);
    box-shadow: none;
    transition: border-color var(--hc-fast) var(--hc-ease), box-shadow var(--hc-fast) var(--hc-ease), background-color var(--hc-fast) var(--hc-ease);
}
body.hc-ui .apply-form .login-block .form-control::placeholder { color: var(--hc-text); opacity: 0.55; }
body.hc-ui .apply-form .login-block .form-control:hover,
body.hc-ui .apply-form .login-block select.select_formcontrol_width:hover { border-color: var(--hc-line-hover); }
body.hc-ui .apply-form .login-block .form-control:focus,
body.hc-ui .apply-form .login-block select.select_formcontrol_width:focus {
    border-color: var(--hc-blue);
    box-shadow: 0 0 0 4px var(--hc-ring) !important;
    outline: 0;
}
body.hc-ui .apply-form .login-block .form-control:disabled,
body.hc-ui .apply-form .login-block .form-control[readonly] { background-color: #fafafa; }

/* the phone and zip boxes used to be narrower than the rest: all fields now share one width */
body.hc-ui .apply-form .login-block .form-group .col-sm-7.p-0,
body.hc-ui .reduce-property .col-sm-7.p-0 { flex: 0 0 100%; max-width: 100%; }
body.hc-ui .apply-form .zip-codeBox .form-control { max-width: none; }

/* county dropdown: same look in every browser, custom arrow */
body.hc-ui .apply-form .login-block .form-group > br { display: none; }   /* the owner-occupied question had an empty line before its dropdown */
body.hc-ui .apply-form .login-block select.form-control,
body.hc-ui .apply-form .login-block select.select_formcontrol_width {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 42px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23696767' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px;
}
body.hc-ui .apply-form .login-block select.form-control:focus,
body.hc-ui .apply-form .login-block select.select_formcontrol_width:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232925f4' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E");
}

/* the text and number boxes keep the browser autofill colour from changing the look */
body.hc-ui .apply-form .login-block input.form-control:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px var(--hc-white) inset;
    -webkit-text-fill-color: var(--hc-ink);
}

/* checkbox */
body.hc-ui #chkSMSOptIn,
body.hc-ui .terms-div input[type="checkbox"] {
    accent-color: var(--hc-blue);
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-top: 2px;
    cursor: pointer;
}

/* ============================================================================================
   7. Validation messages
   Hidden by the page's own scripts with  style="display:none"  and shown with jQuery .show(),
   so the animation below plays every time one appears.
   ============================================================================================ */
body.hc-ui .apply-form .req-error,
body.hc-ui .apply-form .invalid-email-error,
body.hc-ui .apply-form .invalid-address,
body.hc-ui .apply-form .FirstNameMessage,
body.hc-ui .apply-form .LastNameMessage,
body.hc-ui .apply-form #ValidUsNumber {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 7px;
    font-size: 12.5px !important;
    font-weight: 600;
    line-height: 1.4;
    white-space: normal !important;
    animation: hc-msg-in var(--hc-base) var(--hc-ease) both;
}
body.hc-ui .apply-form .req-error::before,
body.hc-ui .apply-form .invalid-email-error::before,
body.hc-ui .apply-form .invalid-address::before,
body.hc-ui .apply-form #ValidUsNumber::before {
    content: "";
    flex: 0 0 15px;
    height: 15px;
    margin-top: 0.5px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%23ff3e4f'/%3E%3Cpath d='M12 6.5v7' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='17.2' r='1.5' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat;
}
body.hc-ui .apply-form .FirstNameMessage::before,
body.hc-ui .apply-form .LastNameMessage::before {
    content: "";
    flex: 0 0 15px;
    height: 15px;
    margin-top: 0.5px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%23696767'/%3E%3Cpath d='M12 10.5v7' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='6.9' r='1.5' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat;
}
body.hc-ui .apply-form .FirstNameMessage,
body.hc-ui .apply-form .LastNameMessage { color: var(--hc-text); }

/* the promo "success" message reuses the .req-error class but is green */
body.hc-ui .apply-form #promo-success::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%2339aa1b'/%3E%3Cpath d='M7 12.5l3.4 3.4L17 9' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* field turns red / green while its message is showing (needs :has, ignored by older browsers) */
body.hc-ui .apply-form .form-group:has(.req-error:not(#promo-success):not([style*="display: none"]):not([style*="display:none"]), .invalid-email-error:not([style*="display: none"]):not([style*="display:none"]), .invalid-address:not([style*="display: none"]):not([style*="display:none"]), #ValidUsNumber:not([style*="display: none"]):not([style*="display:none"])) .form-control {
    border-color: var(--hc-error);
    box-shadow: 0 0 0 4px rgba(255, 62, 79, 0.12);
}
body.hc-ui .apply-form .form-group:has(.req-error:not(#promo-success):not([style*="display: none"]):not([style*="display:none"]), .invalid-email-error:not([style*="display: none"]):not([style*="display:none"]), .invalid-address:not([style*="display: none"]):not([style*="display:none"]), #ValidUsNumber:not([style*="display: none"]):not([style*="display:none"])) .form-control:focus {
    border-color: var(--hc-error);
    box-shadow: 0 0 0 4px rgba(255, 62, 79, 0.18) !important;
}
body.hc-ui .apply-form .form-group:has(#promo-success:not([style*="display: none"]):not([style*="display:none"])) .ref-code-field {
    border-color: var(--hc-success);
}

/* ============================================================================================
   8. Referral code box + Apply Code button
   ============================================================================================ */
body.hc-ui .apply-form .promo-box { margin-top: 0; }
body.hc-ui .apply-form .login-block .promo-box .form-control {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    border: 1px solid var(--hc-line);
    border-right: 0;
    border-radius: var(--hc-radius-sm) 0 0 var(--hc-radius-sm);
}
body.hc-ui .apply-form .login-block .promo-box .form-control:focus { position: relative; z-index: 1; border-right: 1px solid var(--hc-blue); }
body.hc-ui .apply-form .login-block .promo-box button {
    position: relative;
    flex: 0 0 auto;
    width: auto;
    min-width: 124px;
    height: 48px;
    padding: 0 20px;
    color: var(--hc-white);
    font-family: "Montserrat", sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 60%), var(--hc-blue);
    border: 1px solid var(--hc-blue);
    border-radius: 0 var(--hc-radius-sm) var(--hc-radius-sm) 0;
    cursor: pointer;
    transition: box-shadow var(--hc-base) var(--hc-ease), transform var(--hc-fast) var(--hc-ease), filter var(--hc-base) var(--hc-ease);
}
body.hc-ui .apply-form .login-block .promo-box button:hover,
body.hc-ui .apply-form .login-block .promo-box button:focus-visible {
    color: var(--hc-white);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 60%), var(--hc-blue);
    border-color: var(--hc-blue);
    box-shadow: 0 8px 18px rgba(41, 37, 244, 0.3);
    filter: brightness(1.06);
}
body.hc-ui .apply-form .login-block .promo-box button:active { transform: scale(0.97); box-shadow: none; }
body.hc-ui .apply-form .login-block .promo-box button:focus-visible { outline: 3px solid var(--hc-ring); outline-offset: 2px; }
/* spinner while the code is being checked (class added by hc-ui.js) */
body.hc-ui .apply-form .login-block .promo-box button.hc-is-loading { color: transparent; pointer-events: none; }
body.hc-ui .apply-form .login-block .promo-box button.hc-is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: var(--hc-white);
    border-radius: 50%;
    animation: hc-spin 0.7s linear infinite;
}

/* ============================================================================================
   9. Terms / SMS block and the main submit button
   ============================================================================================ */
body.hc-ui .apply-form .terms-div::before {
    content: "";
    display: block;
    height: 1px;
    margin: 2px 0 18px;
    background: var(--hc-line);
}
body.hc-ui #terms-conditions {
    gap: 10px;
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--hc-text-2);
}
body.hc-ui .property_c-msg { padding-left: 26px; margin: 0 0 6px; color: var(--hc-text); }
body.hc-ui .property_c-msg li { font-size: 12px; line-height: 1.6; }
body.hc-ui .apply-form .login-block a { text-decoration: none; transition: color var(--hc-fast) var(--hc-ease); }
body.hc-ui .apply-form .login-block a:hover { text-decoration: underline; text-underline-offset: 3px; }

body.hc-ui .apply-form .login-block .reduce-property-btn { margin-top: 14px; }
body.hc-ui .apply-form .login-block .reduce-property-btn .btn {
    height: 52px;
    padding: 0 16px;
    color: var(--hc-white) !important;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 60%), var(--hc-blue) !important;
    border: 1px solid var(--hc-blue);
    border-radius: var(--hc-radius-md);
    box-shadow: 0 6px 16px rgba(41, 37, 244, 0.28) !important;
    cursor: pointer;
    transition: transform var(--hc-base) var(--hc-ease), box-shadow var(--hc-base) var(--hc-ease), filter var(--hc-base) var(--hc-ease);
}
body.hc-ui .apply-form .login-block .reduce-property-btn .btn:hover,
body.hc-ui .apply-form .login-block .reduce-property-btn .btn:focus-visible {
    color: var(--hc-white) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 60%), var(--hc-blue) !important;
    border-color: var(--hc-blue);
    box-shadow: 0 12px 24px rgba(41, 37, 244, 0.36) !important;
    transform: translateY(-2px);
    filter: brightness(1.05);
}
body.hc-ui .apply-form .login-block .reduce-property-btn .btn:focus-visible { outline: 3px solid var(--hc-ring); outline-offset: 3px; }
body.hc-ui .apply-form .login-block .reduce-property-btn .btn:active {
    transform: translateY(0) scale(0.99);
    box-shadow: 0 3px 8px rgba(41, 37, 244, 0.3) !important;
}
/* the page disables the button while it submits: show a calm "working" pulse */
body.hc-ui .apply-form .login-block .reduce-property-btn .btn:disabled {
    transform: none;
    cursor: progress;
    box-shadow: 0 3px 8px rgba(41, 37, 244, 0.2) !important;
    animation: hc-busy 1.3s ease-in-out infinite;
}

/* ============================================================================================
   10. Trust panels on the right
   ============================================================================================ */
body.hc-ui .apply_right .record-side.info-box_section,
body.hc-ui .apply_right .record-side.border {
    padding: 20px 22px;
    border-radius: 16px;
    transition: transform var(--hc-base) var(--hc-ease), box-shadow var(--hc-base) var(--hc-ease);
}
body.hc-ui .apply_right .record-side.info-box_section { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 6px 18px rgba(99, 99, 99, 0.12); }
body.hc-ui .apply_right .record-side.info-box_section:hover,
body.hc-ui .apply_right .record-side.border:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(99, 99, 99, 0.24);
}
body.hc-ui .apply_right .record-side .square li {
    position: relative;
    padding: 7px 0 7px 34px;
    font-size: 14px;
    line-height: 1.45;
}
body.hc-ui .apply_right .record-side .square li:before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    border-radius: 50%;
    background: rgba(0, 116, 178, 0.12);
    transition: background-color var(--hc-base) var(--hc-ease), transform var(--hc-base) var(--hc-spring);
}
body.hc-ui .apply_right .record-side .square li:hover:before { background: rgba(0, 116, 178, 0.22); transform: scale(1.12); }
body.hc-ui .apply_right .record-box-detail .text__block-desc { padding-left: 0; }
body.hc-ui .desktop_Images img { transition: transform var(--hc-base) var(--hc-ease); }
body.hc-ui .desktop_Images img:hover { transform: scale(1.03); }

/* ============================================================================================
   11. Address autocomplete list (Google Places) - appended to <body> by Google
   ============================================================================================ */
body.hc-ui .pac-container {
    margin-top: 6px;
    padding: 6px 0;
    font-family: "Montserrat", sans-serif;
    border: 1px solid var(--hc-line);
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(99, 99, 99, 0.28);
    overflow: hidden;
    animation: hc-pop-in 0.18s var(--hc-ease) both;
}
body.hc-ui .pac-item {
    padding: 10px 16px;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--hc-text);
    border-top: 0;
    cursor: pointer;
    transition: background-color var(--hc-fast) var(--hc-ease);
}
body.hc-ui .pac-item:hover,
body.hc-ui .pac-item-selected { background: rgba(41, 37, 244, 0.06); }
body.hc-ui .pac-item-query { font-size: 14px; font-weight: 600; color: var(--hc-ink); }
body.hc-ui .pac-matched { font-weight: 700; color: var(--hc-blue); }
body.hc-ui .pac-icon { margin-top: 2px; }

/* ============================================================================================
   12. Modals (terms of service + success) and their backdrop
   ============================================================================================ */
body.hc-ui .modal.fade .modal-dialog {
    opacity: 0;
    transform: translate3d(0, 16px, 0) scale(0.97);
    transition: transform 0.32s var(--hc-ease), opacity 0.24s linear;
}
body.hc-ui .modal.show .modal-dialog { opacity: 1; transform: none; }
body.hc-ui .modal-backdrop { backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
body.hc-ui .modal-content {
    border: 0;
    border-radius: var(--hc-radius-lg);
    box-shadow: 0 24px 60px rgba(27, 31, 41, 0.3);
}

/* terms of service */
body.hc-ui .terms-condition-modal .modal-body { padding: 36px 36px 28px; }
body.hc-ui .terms-condition-modal .modal-header .close {
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    padding: 0;
    color: var(--hc-ink);
    font-size: 22px;
    line-height: 1;
    text-shadow: none;
    opacity: 1;
    background: var(--hc-white);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(27, 31, 41, 0.18);
    transition: background-color var(--hc-base) var(--hc-ease), color var(--hc-base) var(--hc-ease), transform var(--hc-base) var(--hc-ease);
}
body.hc-ui .terms-condition-modal .modal-header .close:hover { color: var(--hc-white); background: var(--hc-ink); transform: rotate(90deg); }
body.hc-ui .terms-condition-modal .modal-header .close:focus-visible { outline: 3px solid var(--hc-ring); outline-offset: 2px; }
body.hc-ui .terms-heading li { font-family: "Inter", sans-serif; font-style: normal; font-weight: 700; }
body.hc-ui .terms-condition-content { font-size: 14px; line-height: 1.75; color: var(--hc-text-2); text-align: left; }   /* "justify" left wide gaps between words */
body.hc-ui .terms-condition-content ol li { margin-bottom: 16px; }

/* success */
body.hc-ui .modal-confirm .modal-header figure { box-shadow: 0 8px 20px rgba(120, 165, 98, 0.45); }
body.hc-ui .modal.show .modal-confirm .modal-header figure { animation: hc-pop 0.55s 0.12s var(--hc-spring) both; }
body.hc-ui .modal-confirm .modal-body p { font-size: 15px; line-height: 1.65; color: var(--hc-text-2); }
body.hc-ui .modal-confirm .modal-body p span { color: var(--hc-ink); font-weight: 600; }
body.hc-ui .modal-confirm .btn {
    min-width: 120px;
    min-height: 44px;
    padding: 10px 28px;
    font-weight: 600;
    border-radius: 999px;
    transition: transform var(--hc-base) var(--hc-ease), box-shadow var(--hc-base) var(--hc-ease), background-color var(--hc-base) var(--hc-ease);
}
body.hc-ui .modal-confirm .btn:hover,
body.hc-ui .modal-confirm .btn:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(253, 140, 36, 0.4); }
body.hc-ui .modal-confirm .btn:active { transform: translateY(0); box-shadow: none; }

/* ============================================================================================
   13. Responsive
   ============================================================================================ */
/* tablets: one centred column instead of two cramped ones */
@media (min-width: 576px) and (max-width: 991.98px) {
    body.hc-ui .apply_left,
    body.hc-ui .apply_right {
        flex: 0 0 100%;
        max-width: 640px;
        margin-left: auto;
        margin-right: auto;
    }
    body.hc-ui .apply_right { margin-top: 8px; }
}

/* below desktop the right-hand panels are nested in two padded columns and sat narrower than the form card */
@media (max-width: 991.98px) {
    body.hc-ui .apply_right > div { padding-left: 0; padding-right: 0; }
}

/* phones and tablets: show the trust badge (the mobile copy of it had no image) */
@media (max-width: 767.98px) {
    body.hc-ui .desktop_Images { display: flex !important; justify-content: center; margin-bottom: 12px; }
    body.hc-ui .mobile_Images { display: none !important; }
    body.hc-ui .desktop_Images > div { flex: 0 0 auto; max-width: 240px; }
}

@media (max-width: 575.98px) {
    body.hc-ui .reduce-property .container { overflow: visible; padding-left: 15px; padding-right: 15px; }   /* matches the row's -15px margins: no sideways overhang */
    body.hc-ui .reduce-property { padding-left: 0; padding-right: 0; }
    body.hc-ui .page_main_tiitle { padding: 26px 4px 8px; }
    body.hc-ui .apply-form .login-block { padding: 24px 6px 22px; border-radius: 16px; }
    body.hc-ui .apply-form .login-block .form-control { font-size: 16px; }   /* 16px stops iOS from zooming into the field */
    body.hc-ui .apply-form .login-block .reduce-property-btn .btn { height: 54px; }
    body.hc-ui .apply-form .login-block .promo-box button { min-width: 104px; padding: 0 14px; }
    body.hc-ui .apply_right .record-side.info-box_section,
    body.hc-ui .apply_right .record-side.border { padding: 16px 16px; }
    body.hc-ui .terms-condition-modal .modal-body { padding: 56px 20px 20px; }
}

/* devices without hover (touch): no sticky "lifted" cards */
@media (hover: none) {
    body.hc-ui .apply_right .record-side.info-box_section:hover,
    body.hc-ui .apply_right .record-side.border:hover { transform: none; }
    body.hc-ui .desktop_Images img:hover { transform: none; }
}

/* ============================================================================================
   13b. Embedded pop-up forms (ApplicationFormNassau / ApplicationFormSuffolk)
   These pages have no site header or title - they look to be shown inside the marketing site - so only the
   card itself is refined. Layout, width and position are left exactly as they were.
   Hooked up with  body.hc-ui.hc-embedded
   ============================================================================================ */
body.hc-ui.hc-embedded {
    font-family: "Montserrat", sans-serif;
    color: var(--hc-text-2);
    line-height: 1.5;
}
body.hc-ui.hc-embedded .reduce-property { padding: 0; }
body.hc-ui.hc-embedded .reduce-property .container { padding-top: 8px; padding-bottom: 16px; }
body.hc-ui.hc-embedded .apply-form .login-block {
    margin-top: 0;
    padding: 26px 8px 24px;
    border: 0 !important;
    animation: hc-fade-up 0.5s var(--hc-ease) both;
}
body.hc-ui.hc-embedded .apply-form .login-block .record-side.p50 { padding: 0 0 4px !important; }
body.hc-ui.hc-embedded .apply-form .login-block .record-side h5,
body.hc-ui.hc-embedded .apply-form .login-block .record-side h5 strong {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    letter-spacing: -0.005em;
    color: var(--hc-ink);
}
body.hc-ui.hc-embedded .apply-form .login-block .record-side .text__block-desc { margin-bottom: 8px; }
body.hc-ui.hc-embedded .apply-form .login-block .record-side .text__block-desc span { font-size: 13.5px !important; }

/* the second modal on the Nassau page (limited-time promo offer) */
body.hc-ui .applyCode .modal-body { padding: 44px 36px 32px; }
body.hc-ui .applyCode .modal-body .offer_text { line-height: 1.5; }
body.hc-ui .applyCode .modal-body .close {
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--hc-base) var(--hc-ease), color var(--hc-base) var(--hc-ease), transform var(--hc-base) var(--hc-ease);
}
body.hc-ui .applyCode .modal-body .close:hover { transform: rotate(90deg); }
body.hc-ui .applyCode .modal-body .btn-primary {
    min-height: 48px;
    padding: 0 28px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--hc-radius-md);
    box-shadow: 0 6px 16px rgba(41, 37, 244, 0.28);
    transition: transform var(--hc-base) var(--hc-ease), box-shadow var(--hc-base) var(--hc-ease), filter var(--hc-base) var(--hc-ease);
}
body.hc-ui .applyCode .modal-body .btn-primary:hover,
body.hc-ui .applyCode .modal-body .btn-primary:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(41, 37, 244, 0.36); filter: brightness(1.05); }
body.hc-ui .applyCode .modal-body .btn-primary:active { transform: translateY(0); box-shadow: none; }

/* ============================================================================================
   13c. Sign page (SignForm.aspx)  -  hooked up with  body.hc-ui.hc-sign
   Only the frame, buttons and dialogs are refined. The contract text, the signature canvas and the signing
   scripts are not touched; the existing purple (#5400ee) and green (#81B06F) of this page are kept.
   ============================================================================================ */
@keyframes hc-bar-in {
    from { transform: scaleX(0.4); opacity: 0; }
    to   { transform: none; opacity: 1; }
}
body.hc-ui.hc-sign .sign-form-page-box .container { animation: hc-fade-up var(--hc-slow) var(--hc-ease) both; }
body.hc-ui.hc-sign .action-bar.topBar { border-radius: var(--hc-radius-lg) var(--hc-radius-lg) 0 0; }
body.hc-ui.hc-sign .document-outer-container {
    border-radius: 0 0 var(--hc-radius-lg) var(--hc-radius-lg);
    border-color: var(--hc-line);
    box-shadow: var(--hc-shadow-md);
}
body.hc-ui.hc-sign #document-text-section { scrollbar-color: #bdbdbd #f1f1f1; }

/* the yellow "Sign" tab */
body.hc-ui.hc-sign #goToSignature,
body.hc-ui.hc-sign .sign_doc {
    cursor: pointer;
    transition: filter var(--hc-base) var(--hc-ease), box-shadow var(--hc-base) var(--hc-ease);
}
body.hc-ui.hc-sign #goToSignature:hover { filter: brightness(1.05); box-shadow: 0 4px 12px rgba(99, 99, 99, 0.3); }
body.hc-ui.hc-sign #goToSignature:focus-visible { outline: 3px solid var(--hc-ring); outline-offset: 2px; }

/* action bar under the document */
body.hc-ui.hc-sign .footer_fixed_btn { padding: 16px 20px; gap: 16px; background: var(--hc-white); border-radius: 0 0 var(--hc-radius-lg) var(--hc-radius-lg); }
body.hc-ui.hc-sign .footer_fixed_btn p { font-size: 12.5px; line-height: 1.4; color: var(--hc-text); }
body.hc-ui.hc-sign .footer_fixed_btn .btn-section input {
    width: auto;            /* the old stylesheet made these 100% wide */
    min-width: 0;
    height: 42px;
    padding: 0 18px;
    font-family: "Montserrat", sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1;
    border-radius: var(--hc-radius-md);
    cursor: pointer;
    transition: transform var(--hc-base) var(--hc-ease), box-shadow var(--hc-base) var(--hc-ease), background-color var(--hc-base) var(--hc-ease), color var(--hc-base) var(--hc-ease);
}
body.hc-ui.hc-sign #buttonSubmitSignature { box-shadow: 0 6px 16px rgba(84, 0, 238, 0.26); }
body.hc-ui.hc-sign #buttonSubmitSignature:not(:disabled):hover,
body.hc-ui.hc-sign #buttonSubmitSignature:not(:disabled):focus-visible { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(84, 0, 238, 0.34); }
body.hc-ui.hc-sign #buttonSubmitSignature:not(:disabled):active { transform: translateY(0); box-shadow: 0 3px 8px rgba(84, 0, 238, 0.3); }
body.hc-ui.hc-sign #buttonSubmitSignature:disabled { box-shadow: none; }
/* "Go Back" is the secondary action: same purple, outlined */
body.hc-ui.hc-sign #buttonPreviousPage {
    color: #5400ee;
    background: var(--hc-white);
    border: 1px solid #5400ee;
    box-shadow: none;
}
body.hc-ui.hc-sign #buttonPreviousPage:hover,
body.hc-ui.hc-sign #buttonPreviousPage:focus-visible { background: rgba(84, 0, 238, 0.06); transform: translateY(-1px); }
body.hc-ui.hc-sign #buttonPreviousPage:active { transform: translateY(0); }
body.hc-ui.hc-sign .footer_fixed_btn .btn-section input:focus-visible { outline: 3px solid var(--hc-ring); outline-offset: 2px; }

/* signature dialog */
body.hc-ui.hc-sign .signatureModal_outer .modal-content { border-radius: var(--hc-radius-lg); overflow: hidden; }
body.hc-ui.hc-sign .signatureModal_outer .modal-header { padding: 18px 24px; border-bottom: 1px solid var(--hc-line); }
body.hc-ui.hc-sign .signatureModal_outer .modal-title { font-family: "Inter", sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--hc-ink); }
body.hc-ui.hc-sign .signatureModal_outer .btn-close { transition: transform var(--hc-base) var(--hc-ease), opacity var(--hc-base) var(--hc-ease); }
body.hc-ui.hc-sign .signatureModal_outer .btn-close:hover { transform: rotate(90deg); }
body.hc-ui.hc-sign .signatureModal_outer .Sig_option a { padding: 10px 14px; transition: background-color var(--hc-base) var(--hc-ease), border-color var(--hc-base) var(--hc-ease); }
body.hc-ui.hc-sign .signatureModal_outer .Sig_option a:hover { background: rgba(0, 0, 0, 0.03); }
body.hc-ui.hc-sign .signatureModal_outer .Sig_option p { font-weight: 600; }
body.hc-ui.hc-sign .signatureModal_outer .sig-inner-center { box-shadow: var(--hc-shadow-sm); border-radius: 6px; }
body.hc-ui.hc-sign .sig_btn button {
    min-height: 44px;
    padding: 0 28px;
    font-weight: 600;
    transition: transform var(--hc-base) var(--hc-ease), box-shadow var(--hc-base) var(--hc-ease), background-color var(--hc-base) var(--hc-ease), opacity var(--hc-base) var(--hc-ease);
}
body.hc-ui.hc-sign .sig_btn button:not(.disable_btn):hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(98, 137, 84, 0.4); }
body.hc-ui.hc-sign .sig_btn button:not(.disable_btn):active { transform: translateY(0); box-shadow: none; }
body.hc-ui.hc-sign .sig_btn button:focus-visible { outline: 3px solid var(--hc-ring); outline-offset: 2px; }
body.hc-ui.hc-sign .clear-text { cursor: pointer; transition: opacity var(--hc-fast) var(--hc-ease); }
body.hc-ui.hc-sign .clear-text:hover { opacity: 0.7; }
body.hc-ui.hc-sign #SignatureErrorModal .modal-body { padding: 32px 30px 28px; }
body.hc-ui.hc-sign #SignatureErrorModal .btn-danger {
    min-width: 120px;
    min-height: 44px;
    border-radius: 999px;
    font-weight: 600;
    transition: transform var(--hc-base) var(--hc-ease), box-shadow var(--hc-base) var(--hc-ease);
}
body.hc-ui.hc-sign #SignatureErrorModal .btn-danger:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(220, 53, 69, 0.35); }

@media (max-width: 767.98px) {
    body.hc-ui.hc-sign .footer_fixed_btn { padding: 14px; }
    /* compact on phones too: the two buttons sit side by side at their natural size (44px high for touch) */
    body.hc-ui.hc-sign .footer_fixed_btn .btn-section { width: auto; flex-wrap: wrap; }
    body.hc-ui.hc-sign .footer_fixed_btn .btn-section input { flex: 0 1 auto; height: 44px; padding: 0 16px; }
}
@media (max-width: 360px) {
    /* 320px phones: both buttons still fit on one row */
    body.hc-ui.hc-sign .footer_fixed_btn .btn-section { gap: 8px; }
    body.hc-ui.hc-sign .footer_fixed_btn .btn-section input { padding: 0 12px; font-size: 12px; letter-spacing: 0.01em; }
}
@media (max-width: 767.98px) {
    /* "overflow-x: hidden" on the body (set by the old stylesheet) turns it into a scroll box and stops "sticky" from working;
       "clip" hides the same sideways overflow without that side effect (older browsers keep the old value) */
    body.hc-ui.hc-sign { overflow-x: clip; }
    /* keep the actions within reach while the long document scrolls */
    body.hc-ui.hc-sign .pdf_footer { position: sticky; bottom: 0; z-index: 6; box-shadow: 0 -8px 20px rgba(99, 99, 99, 0.16); border-radius: 0 0 var(--hc-radius-lg) var(--hc-radius-lg); }
}

/* ============================================================================================
   13d. Thank-you page (ThankYou.aspx)  -  hooked up with  body.hc-ui.hc-thanks
   ============================================================================================ */
@keyframes hc-draw {
    from { stroke-dashoffset: 70; }
    to   { stroke-dashoffset: 0; }
}
@keyframes hc-badge-pop {
    0%   { opacity: 0; transform: scale(0.55); }
    100% { opacity: 1; transform: scale(1); }
}
body.hc-ui.hc-thanks .thanks-msg {
    border: 0;
    border-radius: 20px;
    padding: 18px 12px 26px;
    box-shadow: var(--hc-shadow-md);
    animation: hc-fade-up var(--hc-slow) var(--hc-ease) both;
}
/* the badge and the bullets use the green of the logo (#78a562) instead of a separate bright green */
body.hc-ui.hc-thanks .thanks_msg_icon svg { overflow: visible; filter: drop-shadow(0 8px 14px rgba(120, 165, 98, 0.45)); }
body.hc-ui.hc-thanks .thanks_msg_icon svg > rect { fill: #78a562; }
body.hc-ui.hc-thanks .thanks_msg_icon svg > rect { transform-box: fill-box; transform-origin: center; animation: hc-badge-pop 0.5s 0.15s var(--hc-spring) both; }
body.hc-ui.hc-thanks .thanks_msg_icon svg path {
    stroke-dasharray: 70;
    animation: hc-draw 0.5s 0.55s var(--hc-ease) both;
}
body.hc-ui.hc-thanks .thanks-heading h1 {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
}
body.hc-ui.hc-thanks .thanks-heading { animation: hc-fade-up var(--hc-slow) 0.25s var(--hc-ease) both; }
body.hc-ui.hc-thanks .thanks-points ul li {
    position: relative;
    list-style: none;
    padding: 8px 0 8px 34px;
    line-height: 1.5;
    animation: hc-fade-up var(--hc-slow) var(--hc-ease) both;
}
body.hc-ui.hc-thanks .thanks-points ul { padding-left: 0; max-width: none; width: fit-content; margin-left: auto; margin-right: auto; }
/* each step on ONE line on screens wide enough for it (it wrapped after "...already been" / "...right"); phones can still wrap */
@media (min-width: 768px) {
    body.hc-ui.hc-thanks .thanks-points ul li { white-space: nowrap; }
}
body.hc-ui.hc-thanks .thanks-points ul li:nth-child(1) { animation-delay: 0.40s; }
body.hc-ui.hc-thanks .thanks-points ul li:nth-child(2) { animation-delay: 0.48s; }
body.hc-ui.hc-thanks .thanks-points ul li:nth-child(3) { animation-delay: 0.56s; }
body.hc-ui.hc-thanks .thanks-points ul li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 12px;
    font-weight: 700;
    color: #78a562;
    border-radius: 50%;
    background: rgba(120, 165, 98, 0.18);
}
body.hc-ui.hc-thanks .thanks-links { animation: hc-fade-up var(--hc-slow) 0.64s var(--hc-ease) both; }
body.hc-ui.hc-thanks .thanks-links a { text-decoration: none; transition: color var(--hc-fast) var(--hc-ease); }
body.hc-ui.hc-thanks .thanks-links a:hover,
body.hc-ui.hc-thanks .thanks-links a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
body.hc-ui.hc-thanks .Info-Sheet a { transition: color var(--hc-fast) var(--hc-ease); }

/* ============================================================================================
   13e. Message pages: ApplicationExists, Success, UnsubscribeEmail  (card layout shared with the thank-you page)
   Hooked up with  body.hc-ui.hc-thanks  (Success, ApplicationExists)  and  body.hc-ui.hc-unsub
   ============================================================================================ */
body.hc-ui.hc-exists .reduce-property { min-height: 0; }
body.hc-ui.hc-exists .container,
body.hc-ui.hc-exists .thanks-msg,
body.hc-ui.hc-unsub .unscribe .container { box-sizing: border-box; }   /* MainMaster has no Bootstrap: keep padding inside the width on phones */
body.hc-ui.hc-exists .container { width: 100%; max-width: 100%; padding-left: 15px; padding-right: 15px; }
body.hc-ui.hc-exists .thanks-msg {
    max-width: 560px;
    margin: 0 auto;
    padding: 36px 32px 34px;
    text-align: center;
    border: 0;
    border-radius: 20px;
    background: var(--hc-white);
    box-shadow: var(--hc-shadow-md);
    animation: hc-fade-up var(--hc-slow) var(--hc-ease) both;
}
body.hc-ui.hc-exists .thanks__msg__icon { margin-bottom: 14px; }
body.hc-ui.hc-exists .thanks__msg__icon img {
    animation: hc-badge-pop 0.5s 0.15s var(--hc-spring) both;
    filter: drop-shadow(0 8px 14px rgba(120, 165, 98, 0.35));
}
body.hc-ui.hc-exists .thank-you-message,
body.hc-ui.hc-exists .thanks-msg p { margin: 0; font-size: 16px; line-height: 1.7; font-weight: 500; color: var(--hc-text-2); animation: hc-fade-up var(--hc-slow) 0.3s var(--hc-ease) both; }
body.hc-ui.hc-exists .thank-you-message strong { color: var(--hc-ink); }
body.hc-ui.hc-exists .container { padding-top: 40px; padding-bottom: 40px; }

/* unsubscribe confirmation (the message text is added by the page; hc-ui.js marks the card when there is one) */
body.hc-ui.hc-unsub .stepsUl-outer { display: none !important; }
body.hc-ui.hc-unsub .unscribe { padding: 56px 16px; }
body.hc-ui.hc-unsub .unscribe .container {
    max-width: 560px;
    width: auto;
    margin: 0 auto;
    padding: 0;
    text-align: center;
}
body.hc-ui.hc-unsub .unscribe .container.hc-has-message {
    padding: 38px 32px 34px;
    font-size: 16px;
    line-height: 1.7;
    font-weight: 500;
    color: var(--hc-text-2);
    background: var(--hc-white);
    border-radius: 20px;
    box-shadow: var(--hc-shadow-md);
    animation: hc-fade-up var(--hc-slow) var(--hc-ease) both;
}
body.hc-ui.hc-unsub .unscribe .container.hc-has-message::before {
    content: "\2713";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    font-size: 30px;
    font-weight: 700;
    color: var(--hc-white);
    background: #78a562;
    border-radius: 50%;
    box-shadow: 0 8px 18px rgba(120, 165, 98, 0.4);
    animation: hc-badge-pop 0.5s 0.15s var(--hc-spring) both;
}

/* footer on the pages that use MainMaster (links get the same soft hover as the header) */
body.hc-ui .theme-footer a { transition: color var(--hc-base) var(--hc-ease), padding-left var(--hc-base) var(--hc-ease); }
body.hc-ui .theme-footer a:hover { color: var(--hc-blue); text-decoration: none; }

/* ============================================================================================
   13f. Error page (ErrorPage.aspx)  -  hooked up with  body.hc-ui.hc-error
   Standalone page (no header): the logo is drawn with CSS so the markup stays as it is.
   ============================================================================================ */
body.hc-ui.hc-error {
    margin: 0;
    padding: 64px 16px 40px;
    font-family: "Montserrat", sans-serif;
    text-align: center;
    background: #f8f8f8;
    color: var(--hc-text-2);
}
body.hc-ui.hc-error::before {
    content: "";
    display: block;
    width: 230px;
    height: 71px;
    margin: 0 auto 28px;
    background: url("/images/heller-consultants-logo-tax-grievance-ny.png") center / contain no-repeat;
    animation: hc-fade-up var(--hc-slow) var(--hc-ease) both;
}
body.hc-ui.hc-error .error-box {
    display: block;
    max-width: 520px;
    margin: 0 auto;
    padding: 38px 32px 34px;
    background: var(--hc-white);
    border: 0;
    border-radius: 20px;
    box-shadow: var(--hc-shadow-md);
    animation: hc-fade-up var(--hc-slow) 0.1s var(--hc-ease) both;
}
body.hc-ui.hc-error .error-box::before {
    content: "!";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    font: 700 34px/1 "Inter", sans-serif;
    color: var(--hc-white);
    background: #d9534f;   /* the red this page already used */
    border-radius: 50%;
    box-shadow: 0 8px 18px rgba(217, 83, 79, 0.35);
    animation: hc-badge-pop 0.5s 0.2s var(--hc-spring) both;
}
body.hc-ui.hc-error .error-box h1 {
    margin: 0 0 10px;
    font: 700 1.6rem/1.25 "Inter", sans-serif;
    letter-spacing: -0.01em;
    color: var(--hc-ink);
}
body.hc-ui.hc-error .error-box p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--hc-text); }

/* ============================================================================================
   13g. Information sheet (InformationSheet.aspx)  -  hooked up with  body.hc-ui.hc-info
   ============================================================================================ */
body.hc-ui.hc-info .application-info-sheet {
    max-width: 820px;
    border: 0;
    border-radius: var(--hc-radius-lg);
    box-shadow: var(--hc-shadow-md);
    animation: hc-fade-up var(--hc-slow) var(--hc-ease) both;
}
body.hc-ui.hc-info .application-info-sheet h1 {
    padding: 20px 30px;
    font-family: "Inter", sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.005em;
    color: var(--hc-ink);
    border-bottom: 1px solid var(--hc-line);
}
body.hc-ui.hc-info .infoSheetInner { padding: 22px 30px 26px; }
body.hc-ui.hc-info .InformationSheet_Fields { max-width: 640px; margin: 0 auto; }   /* the form column sat in the left half of the card */
body.hc-ui.hc-info .infoSheetInner .form-group { gap: 8px 16px; margin-bottom: 14px; }
body.hc-ui.hc-info .application-info-sheet label {
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--hc-ink);
}
body.hc-ui.hc-info .application-info-sheet .font-light { font-weight: 500; color: var(--hc-text); }
body.hc-ui.hc-info .application-info-sheet .small-text-box {
    height: 44px;
    padding: 0 14px;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    color: var(--hc-ink);
    background-color: var(--hc-white);
    border: 1px solid var(--hc-line);
    border-radius: var(--hc-radius-sm);
    transition: border-color var(--hc-fast) var(--hc-ease), box-shadow var(--hc-fast) var(--hc-ease);
}
body.hc-ui.hc-info .application-info-sheet .small-text-box:hover { border-color: var(--hc-line-hover); }
body.hc-ui.hc-info .application-info-sheet .small-text-box:focus {
    outline: 0;
    border-color: var(--hc-blue);
    box-shadow: 0 0 0 4px var(--hc-ring);
}
body.hc-ui.hc-info .application-info-sheet textarea.small-text-box { height: auto; min-height: 84px; padding: 10px 14px !important; }
body.hc-ui.hc-info .application-info-sheet select.small-text-box {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 40px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23696767' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
}
body.hc-ui.hc-info .inputIcon svg { top: 15px; left: 14px; fill: var(--hc-text); }
body.hc-ui.hc-info .inputIcon input { padding-left: 34px !important; }
body.hc-ui.hc-info .yes_no_section input[type="radio"],
body.hc-ui.hc-info .infoSheetInner input[type="checkbox"] { accent-color: var(--hc-blue); width: 18px; height: 18px; cursor: pointer; }
body.hc-ui.hc-info .yes_no_section label { cursor: pointer; font-weight: 500; }
body.hc-ui.hc-info .new-address-section { border-radius: var(--hc-radius-md); }
body.hc-ui.hc-info .info-footer { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--hc-line); }
body.hc-ui.hc-info .info-footer .themeBtn {
    min-width: 160px;
    height: 48px;
    padding: 0 28px;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hc-white);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 60%), var(--hc-blue);
    border: 1px solid var(--hc-blue);
    border-radius: var(--hc-radius-md);
    box-shadow: 0 6px 16px rgba(41, 37, 244, 0.28);
    cursor: pointer;
    transition: transform var(--hc-base) var(--hc-ease), box-shadow var(--hc-base) var(--hc-ease), filter var(--hc-base) var(--hc-ease);
}
body.hc-ui.hc-info .info-footer .themeBtn:hover,
body.hc-ui.hc-info .info-footer .themeBtn:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(41, 37, 244, 0.36); filter: brightness(1.05); }
body.hc-ui.hc-info .info-footer .themeBtn:active { transform: translateY(0); box-shadow: 0 3px 8px rgba(41, 37, 244, 0.3); }
body.hc-ui.hc-info .info-footer .themeBtn:focus-visible { outline: 3px solid var(--hc-ring); outline-offset: 3px; }
body.hc-ui.hc-info .info-footer .themeBtn:disabled { transform: none; cursor: progress; animation: hc-busy 1.3s ease-in-out infinite; }
/* the two small dialogs on this page */
body.hc-ui.hc-info .InformationSheetAlertModal { padding: 30px 26px 26px; }
body.hc-ui.hc-info .InformationSheetAlert svg { filter: drop-shadow(0 6px 10px rgba(99, 99, 99, 0.25)); }
body.hc-ui.hc-info #YearErrorModal .btn-danger,
body.hc-ui.hc-info #ApplicationExistsModal .btn {
    min-width: 110px;
    min-height: 42px;
    border-radius: 999px;
    font-weight: 600;
    transition: transform var(--hc-base) var(--hc-ease), box-shadow var(--hc-base) var(--hc-ease);
}
body.hc-ui.hc-info #YearErrorModal .btn-danger:hover,
body.hc-ui.hc-info #ApplicationExistsModal .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(99, 99, 99, 0.3); }
body.hc-ui.hc-info #ApplicationExistsModal .modal-header { border-radius: var(--hc-radius-lg) var(--hc-radius-lg) 0 0; }
@media (max-width: 767.98px) {
    body.hc-ui.hc-info .infoSheetInner { padding: 18px 16px 22px; }
    body.hc-ui.hc-info .application-info-sheet h1 { padding: 16px 16px; }
    body.hc-ui.hc-info .application-info-sheet .small-text-box { font-size: 16px; }   /* 16px stops iOS zooming into the field */
    body.hc-ui.hc-info .info-footer .themeBtn { width: 100%; }
}

/* ============================================================================================
   13h. Tax saving calculator (TaxSavingCalculator.aspx)  -  hooked up with  body.hc-ui.hc-embedded.hc-calc
   Embedded widget (no header). The orange button and the blue figures are this page's existing colours.
   ============================================================================================ */
body.hc-ui.hc-calc,
body.hc-ui.hc-calc h1,
body.hc-ui.hc-calc h2,
body.hc-ui.hc-calc h3,
body.hc-ui.hc-calc p,
body.hc-ui.hc-calc label,
body.hc-ui.hc-calc span,
body.hc-ui.hc-calc button { font-family: "Montserrat", sans-serif !important; }
body.hc-ui.hc-calc .property_tax_calculator_layout { padding: 20px 0 30px; }
body.hc-ui.hc-calc .property_tax_calculator_layout .container { padding-left: 15px; padding-right: 15px; }   /* the row's -15px margins used to push the page 15px wider than the screen */
body.hc-ui.hc-calc .property_tax_steps_layout { margin: 20px auto; padding: 0 12px; }
body.hc-ui.hc-calc .property_tax_calculator_tab .tax_card {
    margin-top: 22px;
    background: var(--hc-white);
    border: 0;
    border-radius: 20px;
    box-shadow: var(--hc-shadow-md);
    animation: hc-fade-up var(--hc-slow) var(--hc-ease) both;
}
body.hc-ui.hc-calc .property_tax_step_inner { padding: 30px 40px; }
body.hc-ui.hc-calc .property_tax_calculator_tab .main-secondaryHeading h2 {
    font-family: "Inter", sans-serif !important;
    font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--hc-ink);
}
body.hc-ui.hc-calc .property_tax_calculator_layout p { font-size: 15px; line-height: 1.6; color: var(--hc-text-2); }
/* progress dots */
body.hc-ui.hc-calc .property_tax_steps_layout .dots {
    width: 14px;
    height: 14px;
    margin: 0 18px;
    border: 2px solid var(--hc-line-hover);
    transition: background-color var(--hc-base) var(--hc-ease), border-color var(--hc-base) var(--hc-ease), transform var(--hc-base) var(--hc-spring);
}
body.hc-ui.hc-calc .property_tax_steps_layout .dots.active { background: #ff8b22; border-color: #ff8b22; transform: scale(1.25); }
/* fields */
body.hc-ui.hc-calc .property_tax_step_inner .form-group label { margin-bottom: 6px; font-size: 13.5px; font-weight: 600; color: var(--hc-ink); }
body.hc-ui.hc-calc .property_tax_step_inner .form-group .form-control {
    min-height: 48px;
    padding: 10px 14px;
    font-size: 15px;
    color: var(--hc-ink);
    border: 1px solid var(--hc-line);
    border-radius: var(--hc-radius-sm);
    box-shadow: none;
    transition: border-color var(--hc-fast) var(--hc-ease), box-shadow var(--hc-fast) var(--hc-ease);
}
body.hc-ui.hc-calc .property_tax_step_inner .form-group .form-control:hover { border-color: var(--hc-line-hover); }
body.hc-ui.hc-calc .property_tax_step_inner .form-group .form-control:focus { outline: 0; border-color: var(--hc-blue); box-shadow: 0 0 0 4px var(--hc-ring); }
body.hc-ui.hc-calc .req-error,
body.hc-ui.hc-calc .invalid-email-error,
body.hc-ui.hc-calc .invalid-address {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 7px;
    font-size: 12.5px !important;
    font-weight: 600;
    line-height: 1.4;
    animation: hc-msg-in var(--hc-base) var(--hc-ease) both;
}
body.hc-ui.hc-calc .req-error::before,
body.hc-ui.hc-calc .invalid-email-error::before,
body.hc-ui.hc-calc .invalid-address::before {
    content: "";
    flex: 0 0 15px;
    height: 15px;
    margin-top: 0.5px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%23ff3e4f'/%3E%3Cpath d='M12 6.5v7' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='17.2' r='1.5' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat;
}
body.hc-ui.hc-calc .form-group:has(.req-error:not([style*="display: none"]):not([style*="display:none"]), .invalid-email-error:not([style*="display: none"]):not([style*="display:none"]), .invalid-address:not([style*="display: none"]):not([style*="display:none"])) .form-control {
    border-color: var(--hc-error);
    box-shadow: 0 0 0 4px rgba(255, 62, 79, 0.12);
}
/* buttons (orange, as before) */
body.hc-ui.hc-calc .property_tax_steps_layout .btn {
    min-height: 54px;
    padding: 13px 16px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 60%), #ff8b22;
    border-radius: var(--hc-radius-md);
    box-shadow: 0 6px 16px rgba(255, 139, 34, 0.34);
    transition: transform var(--hc-base) var(--hc-ease), box-shadow var(--hc-base) var(--hc-ease), filter var(--hc-base) var(--hc-ease);
}
body.hc-ui.hc-calc .property_tax_steps_layout .btn:hover,
body.hc-ui.hc-calc .property_tax_steps_layout .btn:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(255, 139, 34, 0.42); filter: brightness(1.04); }
body.hc-ui.hc-calc .property_tax_steps_layout .btn:active { transform: translateY(0); box-shadow: 0 3px 8px rgba(255, 139, 34, 0.35); }
body.hc-ui.hc-calc .property_tax_steps_layout .btn:focus-visible { outline: 3px solid rgba(255, 139, 34, 0.35); outline-offset: 3px; }
/* result cards */
body.hc-ui.hc-calc .tax_rate_price_card {
    padding: 18px 16px;
    border: 0;
    border-radius: var(--hc-radius-md);
    background: #fafafa;
    box-shadow: inset 0 0 0 1px var(--hc-line);
    transition: transform var(--hc-base) var(--hc-ease), box-shadow var(--hc-base) var(--hc-ease);
}
body.hc-ui.hc-calc .tax_rate_price_card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--hc-line), 0 12px 26px rgba(99, 99, 99, 0.18); }
body.hc-ui.hc-calc .property_valued_price { font-family: "Inter", sans-serif !important; font-size: 1.9rem; font-weight: 700; color: var(--hc-ink); }
body.hc-ui.hc-calc .property_tax_step_inner.high_rate_layout { border-top: 1px solid var(--hc-line); }
body.hc-ui.hc-calc .taxCalculator_steps_second { animation: hc-fade-up var(--hc-slow) var(--hc-ease) both; }
body.hc-ui.hc-calc .range_slider input[type="range"] { accent-color: #ff8b22; }
/* address suggestions (jQuery UI autocomplete) */
body.hc-ui.hc-calc .ui-autocomplete,
body.hc-ui.hc-calc .ui-menu {
    padding: 6px 0;
    font-family: "Montserrat", sans-serif;
    border: 1px solid var(--hc-line);
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(99, 99, 99, 0.28);
    animation: hc-pop-in 0.18s var(--hc-ease) both;
}
body.hc-ui.hc-calc .ui-menu .ui-menu-item-wrapper { padding: 10px 16px; font-size: 13.5px; color: var(--hc-text); border: 0; transition: background-color var(--hc-fast) var(--hc-ease); }
body.hc-ui.hc-calc .ui-menu .ui-state-active,
body.hc-ui.hc-calc .ui-menu .ui-state-focus,
body.hc-ui.hc-calc .ui-menu-item:hover > .ui-menu-item-wrapper { margin: 0; background: rgba(41, 37, 244, 0.06); color: var(--hc-ink); border: 0; }
@media (max-width: 767.98px) {
    body.hc-ui.hc-calc .property_tax_step_inner { padding: 22px 18px; }
    body.hc-ui.hc-calc .property_tax_step_inner .form-group .form-control { font-size: 16px; }
    body.hc-ui.hc-calc .tax_rate_price_card_outer { width: 100%; }
}

/* ============================================================================================
   14. Reduced motion: no movement, no animation, instant state changes
   ============================================================================================ */
@media (prefers-reduced-motion: reduce) {
    body.hc-ui .theme__header,
    body.hc-ui .theme__header *,
    body.hc-ui .mobile-navbar,
    body.hc-ui .mobile-navbar *,
    body.hc-ui .reduce-property,
    body.hc-ui .reduce-property *,
    body.hc-ui .reduce-property *::before,
    body.hc-ui .reduce-property *::after,
    body.hc-ui .modal,
    body.hc-ui .modal *,
    body.hc-ui .pac-container,
    body.hc-ui .pac-container *,
    body.hc-ui .unscribe,
    body.hc-ui .unscribe *,
    body.hc-ui .unscribe *::before,
    body.hc-ui .property_tax_calculator_layout,
    body.hc-ui .property_tax_calculator_layout *,
    body.hc-ui .ui-autocomplete,
    body.hc-ui.hc-error,
    body.hc-ui.hc-error *,
    body.hc-ui.hc-error::before,
    body.hc-ui.hc-error *::before {
        animation-duration: 0.01ms !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    body.hc-ui .remove-scroll:before { animation: none; }
    body.hc-ui .apply-form .login-block .reduce-property-btn .btn:hover,
    body.hc-ui .apply_right .record-side.info-box_section:hover,
    body.hc-ui .apply_right .record-side.border:hover,
    body.hc-ui .menu_item ul li a.apply_now_btn:hover,
    body.hc-ui .modal-confirm .btn:hover { transform: none; }
}
