/* =====================================================================
   LEAP FINANCE - MORTGAGE CALCULATOR (.hypcalc)
   English adaptation of the Vixx calculator, restyled in the Leap Finance
   identity: navy #0b1a42, gold #d4ac67, cream, Inter + Rayon (Ostra Centra).
   Norms: assets/calculator/norms-2026.js  ·  Logic: assets/calculator/calculator.js
   ===================================================================== */
.calc-section { background: var(--color-white); padding: 100px 0; }
.calc-section .section-title { margin-bottom: 12px; text-align: center; }
.calc-section .calc-intro { max-width: 720px; margin: 0 auto 44px; text-align: center; color: var(--color-blue); font-size: 17px; line-height: 1.7; }
.calc-section .separator.center { margin: 0 auto 20px; }

.hypcalc {
    --hc-navy: var(--color-primary, #0b1a42);
    --hc-gold: var(--color-gold, #d4ac67);
    --hc-gold-dark: var(--color-gold-dark, #b8934d);
    --hc-cream: var(--color-cream-light, #f7f2eb);
    --hc-cream-deep: var(--color-cream, #efe2cf);
    --hc-line: #e3ddd2;
    --hc-muted: #5b6478;
    --hc-soft: #b9c3d6;
    --hc-heading: var(--font-heading, 'Rayon', Arial, sans-serif);
    --hc-body: var(--font-body, 'Inter', sans-serif);
    font-family: var(--hc-body);
    font-size: 16px;
    color: var(--hc-navy);
    max-width: 1100px;
    margin: 0 auto;
}
.hypcalc *, .hypcalc *::before, .hypcalc *::after { box-sizing: border-box; }
.hypcalc__step { display: none; animation: hcFade .4s ease; }
.hypcalc__step.is-active { display: block; }
@keyframes hcFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Buttons inside the calculator (page .btn styles apply; these refine them) */
.hypcalc .btn { font-size: 14px; letter-spacing: .06em; }
.hypcalc .btn i { font-size: 12px; }
.hypcalc .btn-secondary { color: #fff; }
.hypcalc .btn-primary { color: #fff; }

/* Progress bar */
.hypcalc__progress { display: none; margin: 0 48px 22px 0; }
.hypcalc__progress.is-on { display: block; }
.hypcalc__progress-bar { height: 8px; background: var(--hc-line); border-radius: 99px; overflow: hidden; }
.hypcalc__progress-fill { height: 100%; background: linear-gradient(90deg, var(--hc-gold), var(--hc-navy)); width: 0; border-radius: 99px; transition: width .5s cubic-bezier(.4,0,.2,1); }
.hypcalc__progress-lbl { display: flex; justify-content: space-between; font-size: 13px; color: var(--hc-muted); margin-top: 9px; font-weight: 600; }
.hypcalc__progress-lbl span:last-child { color: var(--hc-navy); }

/* Start screen: two panels */
.hypcalc__split { display: grid; grid-template-columns: 1fr 1.1fr; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px rgba(11,26,66,.14); }
@media (max-width: 820px) { .hypcalc__split { grid-template-columns: 1fr; } }
.hypcalc__split-left { background: var(--hc-cream); padding: 38px; }
.hypcalc__split-right { background: var(--hc-navy); color: #fff; padding: 38px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.hypcalc__split-right::after { content: ""; position: absolute; right: -70px; top: -70px; width: 220px; height: 220px; border-radius: 50%; background: rgba(212,172,103,.14); pointer-events: none; }
.hypcalc__right-cap { color: var(--hc-gold); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.hypcalc__amount { font-family: var(--hc-body); font-weight: 700; font-size: clamp(38px, 6vw, 54px); line-height: 1; letter-spacing: -1.5px; margin: 2px 0 18px; }
.hypcalc__result-row { display: flex; flex-direction: column; margin-bottom: 14px; }
.hypcalc__result-row .k { color: var(--hc-soft); font-size: 13px; }
.hypcalc__result-row .v { font-weight: 600; font-size: 21px; }
.hypcalc__note { font-size: 13px; color: var(--hc-soft); margin: auto 0 0; padding-top: 14px; line-height: 1.5; }
.hypcalc__panel-title { font-family: var(--hc-heading); font-weight: normal; color: var(--hc-navy); font-size: 24px; letter-spacing: .02em; margin: 0 0 20px; }

/* Card + headings per step */
.hypcalc__card { background: #fff; border-radius: 20px; box-shadow: 0 10px 40px rgba(11,26,66,.10); padding: 32px; }
.hypcalc__eyebrow { display: block; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--hc-gold-dark); font-weight: 600; margin-bottom: 8px; }
.hypcalc__step-h { font-family: var(--hc-heading); font-weight: normal; font-size: clamp(24px, 3.5vw, 32px); color: var(--hc-navy); letter-spacing: .01em; margin: 0 0 6px; line-height: 1.15; }
.hypcalc__sub-h { font-weight: 600; color: var(--hc-navy); font-size: 16px; margin: 0 0 14px; }
.hypcalc__intro { color: var(--hc-muted); margin: 0 0 24px; max-width: 560px; line-height: 1.6; }

/* Input fields */
.hypcalc__field { display: block; margin-bottom: 16px; }
.hypcalc__cap { display: block; font-weight: 600; font-size: 14px; color: var(--hc-navy); margin-bottom: 6px; }
.hypcalc__hint { font-weight: 400; color: var(--hc-muted); font-size: 13px; }
.hypcalc__euro { position: relative; display: block; }
.hypcalc__euro::before { content: '€'; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--hc-muted); font-weight: 600; }
.hypcalc input[type=text], .hypcalc input[type=number], .hypcalc input[type=tel], .hypcalc input[type=email] {
    width: 100%; border: 1.5px solid var(--hc-line); border-radius: 10px; padding: 13px 15px;
    font-family: var(--hc-body); font-size: 16px; color: var(--hc-navy); background: #fff;
    transition: border-color .18s, box-shadow .18s;
}
.hypcalc .hypcalc__euro input { padding-left: 30px; }
.hypcalc input:focus { outline: none; border-color: var(--hc-gold); box-shadow: 0 0 0 3px rgba(212,172,103,.22); background: #fff; }
.hypcalc input::placeholder { color: #b6bcc9; }
.hypcalc__grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
@media (max-width: 760px) { .hypcalc__grid2 { grid-template-columns: 1fr; } }
.hypcalc__err { display: none; color: #b8372a; font-size: 13px; margin: 6px 0 0; font-weight: 600; }
.hypcalc__err.is-on { display: block; }

/* Pointer "Start here" next to the first field */
.hypcalc__wijzer { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--hc-gold-dark); font-weight: 600; font-size: 13px; animation: hcNudge 1.2s ease-in-out infinite; pointer-events: none; }
.hypcalc__wijzer.is-weg { display: none; }
@keyframes hcNudge { 0%, 100% { transform: translate(0, -50%); } 50% { transform: translate(-6px, -50%); } }
@media (max-width: 520px) { .hypcalc__wijzer { display: none; } }

/* Choice tiles */
.hypcalc__choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .hypcalc__choices { grid-template-columns: 1fr; } }
.hypcalc__tile { border: 1.5px solid var(--hc-line); border-radius: 14px; padding: 20px 18px; cursor: pointer; background: #fff; transition: .16s; display: flex; gap: 14px; align-items: flex-start; text-align: left; font-family: inherit; }
.hypcalc__tile:hover { border-color: var(--hc-gold); background: var(--hc-cream); }
.hypcalc__tile.is-sel { border-color: var(--hc-gold); background: var(--hc-cream); box-shadow: 0 0 0 2px rgba(212,172,103,.3); }
.hypcalc__tile-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--hc-cream-deep); display: grid; place-items: center; flex: none; color: var(--hc-navy); }
.hypcalc__tile.is-sel .hypcalc__tile-ic { background: var(--hc-gold); color: #fff; }
.hypcalc__tile-txt b { display: block; font-weight: 600; color: var(--hc-navy); font-size: 16px; }
.hypcalc__tile-txt i { display: block; font-style: normal; font-size: 13px; color: var(--hc-muted); margin-top: 2px; line-height: 1.45; }

/* Work/home blocks + explainer */
.hypcalc__workblock { padding-top: 20px; }
.hypcalc__partnerblock { border-top: 1px dashed var(--hc-line); margin-top: 20px; padding-top: 20px; }
.hypcalc__explainer { background: var(--hc-cream); border-radius: 12px; padding: 14px 16px; font-size: 13.5px; color: var(--hc-navy); margin-top: 8px; line-height: 1.55; }

/* Navigation */
.hypcalc__back { background: none; border: none; cursor: pointer; padding: 14px 6px; color: var(--hc-muted); font-family: var(--hc-body); font-weight: 600; font-size: 15px; text-decoration: none; display: inline-block; margin-top: 12px; }
.hypcalc__back:hover { color: var(--hc-navy); }
.hypcalc__actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 22px; }
.hypcalc__convert { margin-top: 22px; border-top: 1px solid var(--hc-line); padding-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.hypcalc__convert[hidden] { display: none; }
.hypcalc__convert-msg { font-size: 14px; color: var(--hc-muted); max-width: 340px; margin: 0; line-height: 1.5; }
.hypcalc__convert-msg b { color: var(--hc-navy); }
.hypcalc__convert-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Result screen */
.hypcalc__hero { background: var(--hc-navy); border-radius: 20px; padding: 40px; color: #fff; position: relative; overflow: hidden; }
.hypcalc__hero::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(212,172,103,.18); }
.hypcalc__hero-cap { color: var(--hc-gold); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; font-size: 12px; }
.hypcalc__hero-big { font-weight: 700; font-size: clamp(40px, 8vw, 68px); line-height: 1; letter-spacing: -2px; margin: 8px 0; }
.hypcalc__hero-month { font-size: 17px; color: #d7dcea; position: relative; z-index: 1; margin: 0; }
.hypcalc__hero-month b { color: #fff; font-weight: 600; }
.hypcalc__breakdown { margin-top: 22px; }
.hypcalc__bd-item { display: flex; justify-content: space-between; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--hc-line); font-size: 15px; }
.hypcalc__bd-item .k { color: var(--hc-muted); }
.hypcalc__bd-item .v { font-weight: 600; color: var(--hc-navy); white-space: nowrap; }
.hypcalc__bd-item--total { border-bottom: none; border-top: 2px solid var(--hc-navy); margin-top: 4px; }
.hypcalc__bd-item--total .k, .hypcalc__bd-item--total .v { font-weight: 700; font-size: 17px; color: var(--hc-navy); }
.hypcalc__extra { background: var(--hc-cream); border-radius: 14px; padding: 22px; margin-top: 22px; }
.hypcalc__extra h4 { font-weight: 600; color: var(--hc-navy); margin: 0 0 12px; font-size: 16px; }
.hypcalc__extra .hypcalc__bd-item { border-color: rgba(11,26,66,.08); }
.hypcalc__budget { background: linear-gradient(135deg, var(--hc-gold) 0%, var(--hc-gold-dark) 100%); border-radius: 14px; padding: 24px 26px; margin-top: 22px; color: #fff; }
.hypcalc__budget-cap { font-weight: 600; letter-spacing: 1px; text-transform: uppercase; font-size: 12px; opacity: .85; }
.hypcalc__budget-big { font-weight: 700; font-size: clamp(30px, 6vw, 46px); line-height: 1; letter-spacing: -1.5px; margin: 6px 0 4px; }
.hypcalc__budget-sub { font-size: 14px; margin: 0; opacity: .92; }
.hypcalc__budget-sub b { font-weight: 700; opacity: 1; }
.hypcalc__evdrop { margin-top: 14px; background: #fff; border: 1.5px solid var(--hc-line); border-radius: 12px; overflow: hidden; }
.hypcalc__evdrop summary { cursor: pointer; list-style: none; padding: 14px 18px; font-weight: 600; color: var(--hc-navy); font-size: 15px; display: flex; align-items: center; justify-content: space-between; }
.hypcalc__evdrop summary::-webkit-details-marker { display: none; }
.hypcalc__chev { transition: transform .2s; color: var(--hc-gold-dark); flex: none; }
.hypcalc__evdrop[open] .hypcalc__chev { transform: rotate(180deg); }
.hypcalc__evdrop-body { padding: 0 18px 18px; font-size: 14.5px; line-height: 1.6; color: var(--hc-navy); }
.hypcalc__formula-mini { background: var(--hc-cream); border-radius: 10px; padding: 12px 14px; font-weight: 600; color: var(--hc-navy); font-size: 14px; margin-top: 10px; }
.hypcalc__result-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 26px; }
.hypcalc__result-disclaimer { font-size: 11px; color: var(--hc-muted); line-height: 1.45; margin: 8px 0 0; }

/* Pop-ups (retirement + appointment) */
.hypcalc__overlay { position: fixed; inset: 0; background: rgba(11,26,66,.55); display: none; place-items: center; padding: 20px; z-index: 1200; backdrop-filter: blur(3px); }
.hypcalc__overlay.is-on { display: grid; }
.hypcalc__modal { background: #fff; border-radius: 20px; max-width: 480px; width: 100%; padding: 32px; box-shadow: 0 30px 80px rgba(0,0,0,.3); position: relative; animation: hcPop .3s ease; max-height: 90vh; overflow-y: auto; }
@keyframes hcPop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.hypcalc__modal h3 { font-family: var(--hc-heading); font-weight: normal; color: var(--hc-navy); font-size: 24px; margin: 0 0 10px; line-height: 1.2; }
.hypcalc__modal p { color: var(--hc-muted); font-size: 15px; margin: 0 0 16px; line-height: 1.55; }
.hypcalc__badge { width: 52px; height: 52px; border-radius: 50%; background: var(--hc-cream-deep); display: grid; place-items: center; margin-bottom: 16px; }
.hypcalc__modal-close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 24px; color: var(--hc-soft); cursor: pointer; line-height: 1; }
.hypcalc__call { font-weight: 600; color: var(--hc-navy); font-size: 17px; }
.hypcalc__call a { color: var(--hc-gold-dark); text-decoration: none; }
.hypcalc__modal-form .hypcalc__ff { margin-bottom: 10px; }
.hypcalc__modal-form .hypcalc__grid2 { gap: 0 10px; }
.hypcalc__modal-actions { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; align-items: center; }
.hypcalc__msg { display: block; font-size: 14px; margin-top: 12px; min-height: 1.2em; color: var(--hc-muted); }
.hypcalc__msg.is-ok { color: #1f7a4d; font-weight: 600; }
.hypcalc__msg.is-err { color: #b8372a; font-weight: 600; }
.hypcalc__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.hypcalc__privacy { font-size: 12px; color: var(--hc-muted); margin-top: 12px; line-height: 1.45; }

/* Lightbox with the full wizard */
.hypcalc__lightbox { position: fixed; inset: 0; z-index: 1100; background: rgba(11,26,66,.6); backdrop-filter: blur(4px); display: none; overflow-y: auto; padding: 32px 16px; }
.hypcalc__lightbox.is-on { display: block; animation: hcFade .3s ease; }
.hypcalc__lightbox-dialog { background: var(--hc-cream); border-radius: 20px; max-width: 1060px; margin: 0 auto; padding: 56px 28px 28px; position: relative; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.hypcalc__lightbox-close { position: absolute; top: 14px; right: 16px; width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 1.5px solid var(--hc-line); color: var(--hc-navy); font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: .16s; z-index: 1; }
.hypcalc__lightbox-close:hover { background: var(--hc-navy); color: #fff; border-color: var(--hc-navy); }
body.hypcalc-noscroll { overflow: hidden; }
@media (max-width: 760px) {
    .hypcalc__lightbox { padding: 10px 8px; }
    .hypcalc__lightbox-dialog { padding: 52px 12px 16px; }
    .hypcalc__split-left, .hypcalc__split-right { padding: 26px 22px; }
    .hypcalc__card { padding: 24px 20px; }
    .calc-section { padding: 70px 0; }
}

/* Result screen compact: fits above the fold on desktop/tablet */
#hc_sr .hypcalc__hero { padding: 16px 26px; }
#hc_sr .hypcalc__hero-big { font-size: clamp(28px, 3.6vw, 40px); margin: 3px 0; }
#hc_sr .hypcalc__hero-month { font-size: 13px; }
#hc_sr .hypcalc__bd-item { padding: 7px 4px; font-size: 14px; }
#hc_sr .hypcalc__bd-item--total .k, #hc_sr .hypcalc__bd-item--total .v { font-size: 15px; }
#hc_sr .hypcalc__extra { padding: 10px 16px; margin-top: 16px; }
#hc_sr .hypcalc__extra h4 { margin-bottom: 4px; font-size: 15px; }
#hc_sr .hypcalc__extra .hypcalc__bd-item { padding: 4px 4px; font-size: 13.5px; }
#hc_sr .hypcalc__budget { padding: 12px 16px; margin-top: 12px; }
#hc_sr .hypcalc__budget-big { font-size: 26px; }
#hc_sr .hypcalc__budget-sub { font-size: 12px; }
#hc_sr .hypcalc__evdrop { margin-top: 10px; }
#hc_sr .hypcalc__evdrop summary { padding: 8px 14px; font-size: 13.5px; }
#hc_sr .hypcalc__result-actions { margin-top: 10px; }
.hypcalc__result-actions .hypcalc__result-disclaimer { flex: 1; margin: 0; min-width: 200px; font-size: 10.5px; }
@media (min-width: 900px) {
    #hc_sr.is-active { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; align-items: start; }
    #hc_sr .hypcalc__hero, #hc_sr .hypcalc__result-actions { grid-column: 1 / -1; }
    #hc_sr .hypcalc__breakdown { grid-column: 1; margin-top: 16px; }
    #hc_sr .hypcalc__result-side { grid-column: 2; margin-top: 16px; }
    #hc_sr .hypcalc__extra { margin-top: 0; }
    #hc_sr:not(:has(.hypcalc__result-side > :not([hidden]))) .hypcalc__breakdown { grid-column: 1 / -1; }
}
.hypcalc__lightbox.is-on:has(#hc_sr.is-active) .hypcalc__lightbox-dialog { padding-top: 44px; }
.hypcalc__lightbox:has(#hc_sr.is-active) .hypcalc__progress { margin-bottom: 12px; }
@media (max-height: 820px) and (min-width: 761px) {
    .hypcalc__lightbox { padding: 10px 16px; }
    .hypcalc__lightbox-dialog { padding-bottom: 20px; }
}
