/* SEARCH SECTIONS: EMI CALCULATOR | CONTROLS | RESULTS | RESPONSIVE LAYOUT */
:root
{
  --emi-ink: #292425;
  --emi-muted: #6d6466;
  --emi-coral: #e94f64;
  --emi-coral-dark: #bd344d;
  --emi-sand: #f7f3f0;
  --emi-line: #ded7d3;
  --emi-paper: #fff
}
.emi-calculator-body
{
  background: #f4efec
}
.emi-page
{
  padding: clamp(42px, 6vw, 88px) clamp(20px, 4vw, 64px) clamp(70px, 8vw, 120px);
  background: radial-gradient(circle at 8% 18%, rgba(233, 79, 100, .08), transparent 28%), linear-gradient(180deg, #fbf8f6 0, #f4efec 100%)
}
.emi-layout
{
  width: min(1420px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(330px, .82fr) minmax(650px, 1.42fr);
  gap: clamp(42px, 5vw, 82px);
  align-items: start
}
.emi-editorial
{
  position: sticky;
  top: 118px
}
.emi-back
{
  width: max-content;
  margin-bottom: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--emi-muted);
  font-size: 12px;
  font-weight: 800
}
.emi-back:hover
{
  color: var(--emi-coral-dark)
}
.emi-eyebrow
{
  margin: 0;
  color: var(--emi-coral-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase
}
.emi-editorial h1
{
  max-width: 640px;
  margin: 16px 0 22px;
  font-size: clamp(47px, 5.4vw, 78px);
  line-height: .99;
  letter-spacing: -.065em
}
.emi-intro
{
  max-width: 590px;
  margin: 0;
  color: #574f51;
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.65
}
.emi-property-note
{
  position: relative;
  height: 285px;
  margin: 44px 0 0;
  overflow: hidden;
  border-radius: 24px;
  background: var(--emi-ink)
}
.emi-property-note::after
{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(28, 23, 24, .8))
}
.emi-property-note img
{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(.78)
}
.emi-property-note figcaption
{
  position: absolute;
  z-index: 1;
  left: 24px;
  right: 24px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  color: #fff
}
.emi-property-note figcaption span
{
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase
}
.emi-property-note figcaption strong
{
  margin-top: 3px;
  font-size: 21px;
  letter-spacing: -.03em
}
.emi-trust-note
{
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--emi-muted)
}
.emi-trust-note>span
{
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid #cfc5c0;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800
}
.emi-trust-note p
{
  margin: 0;
  font-size: 11px;
  line-height: 1.5
}
.emi-tool
{
  padding: clamp(21px, 2.5vw, 34px);
  border: 1px solid #e3dcd8;
  border-radius: 28px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 24px 70px rgba(55, 39, 43, .09)
}
.emi-tool-heading
{
  margin-bottom: 28px;
  padding-bottom: 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #ebe5e2
}
.emi-tool-heading h2
{
  margin: 7px 0 0;
  font-size: clamp(26px, 2.5vw, 37px);
  line-height: 1.08;
  letter-spacing: -.045em
}
.emi-tool-heading>span
{
  padding: 7px 10px;
  border-radius: 99px;
  background: #fff1f3;
  color: var(--emi-coral-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase
}
.emi-tool-grid
{
  display: grid;
  grid-template-columns: minmax(290px, 1fr) minmax(280px, .92fr);
  gap: clamp(20px, 2.5vw, 34px);
  align-items: stretch
}
.emi-controls
{
  display: grid;
  gap: 18px
}
.emi-control
{
  padding: 17px;
  border: 1px solid #e7dfdc;
  border-radius: 17px;
  background: #fbf9f8
}
.emi-label-row
{
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px
}
.emi-label-row label
{
  color: var(--emi-ink);
  font-size: 13px;
  font-weight: 800
}
.emi-label-row>span
{
  color: var(--emi-muted);
  font-size: 9px;
  font-weight: 700
}
.emi-input-shell
{
  height: 55px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d8cfcb;
  border-radius: 12px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease
}
.emi-input-shell:focus-within
{
  border-color: var(--emi-coral);
  box-shadow: 0 0 0 3px rgba(233, 79, 100, .13)
}
.emi-input-shell>span:first-child
{
  color: var(--emi-coral-dark);
  font-size: 18px;
  font-weight: 800
}
.emi-input-shell input
{
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--emi-ink);
  font: 800 20px/1.2 "Manrope", sans-serif;
  letter-spacing: -.025em
}
.emi-unit
{
  color: var(--emi-muted)!important;
  font-size: 10px!important;
  font-weight: 800!important;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap
}
.emi-error
{
  min-height: 16px;
  margin: 3px 0 0;
  color: var(--emi-coral-dark);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.4
}
.emi-input-shell:has(input[aria-invalid="true"])
{
  border-color: var(--emi-coral-dark)
}
.emi-range
{
  --range-fill: 0%;
  width: 100%;
  height: 24px;
  margin: 1px 0 0;
  display: block;
  appearance: none;
  background: transparent;
  cursor: pointer
}
.emi-range::-webkit-slider-runnable-track
{
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(to right, var(--emi-coral) 0 var(--range-fill), #dcd4d1 var(--range-fill) 100%)
}
.emi-range::-moz-range-track
{
  height: 4px;
  border-radius: 99px;
  background: #dcd4d1
}
.emi-range::-moz-range-progress
{
  height: 4px;
  border-radius: 99px;
  background: var(--emi-coral)
}
.emi-range::-webkit-slider-thumb
{
  width: 20px;
  height: 20px;
  margin-top: -8px;
  appearance: none;
  border: 5px solid #fff;
  border-radius: 50%;
  background: var(--emi-coral);
  box-shadow: 0 0 0 1px var(--emi-coral), 0 3px 8px rgba(68, 39, 45, .2)
}
.emi-range::-moz-range-thumb
{
  width: 11px;
  height: 11px;
  border: 5px solid #fff;
  border-radius: 50%;
  background: var(--emi-coral);
  box-shadow: 0 0 0 1px var(--emi-coral)
}
.emi-range:focus-visible
{
  outline: 3px solid rgba(233, 79, 100, .32);
  outline-offset: 3px;
  border-radius: 99px
}
.emi-range-scale
{
  display: flex;
  justify-content: space-between;
  color: #8a8082;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase
}
.emi-results
{
  min-height: 100%;
  padding: clamp(22px, 2.4vw, 32px);
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: var(--emi-ink);
  color: #fff
}
.emi-results>p:first-child
{
  margin: 0;
  color: rgba(255, 255, 255, .62);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase
}
.emi-monthly
{
  margin-top: 8px;
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: 1;
  letter-spacing: -.06em
}
.emi-payment-count
{
  margin-top: 8px;
  color: #ff9eaa;
  font-size: 10px;
  font-weight: 700
}
.emi-breakdown
{
  margin-top: 34px;
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: center;
  gap: 18px
}
.emi-donut
{
  --principal-angle: 160deg;
  width: 112px;
  height: 112px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--emi-ink) 0 51%, transparent 52%), conic-gradient(var(--emi-coral) 0 var(--principal-angle), #e9dcd5 var(--principal-angle) 360deg);
  text-align: center
}
.emi-donut span
{
  font-size: 19px;
  font-weight: 800;
  line-height: 1
}
.emi-donut small
{
  margin-top: 3px;
  color: rgba(255, 255, 255, .6);
  font-size: 8px;
  text-transform: uppercase
}
.emi-breakdown dl
{
  margin: 0;
  display: grid;
  gap: 15px
}
.emi-breakdown dl>div
{
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, .12)
}
.emi-breakdown dt
{
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, .62);
  font-size: 9px;
  font-weight: 700
}
.emi-breakdown dt i
{
  width: 8px;
  height: 8px;
  border-radius: 50%
}
.emi-breakdown dt i.principal
{
  background: var(--emi-coral)
}
.emi-breakdown dt i.interest
{
  background: #e9dcd5
}
.emi-breakdown dd
{
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 800
}
.emi-total
{
  margin-top: auto;
  padding: 24px 0 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .14)
}
.emi-total span
{
  color: rgba(255, 255, 255, .6);
  font-size: 9px;
  font-weight: 700
}
.emi-total strong
{
  font-size: 16px;
  text-align: right
}
.emi-properties-link
{
  min-height: 52px;
  margin-top: 16px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 12px;
  background: var(--emi-coral);
  color: #fff;
  font-size: 12px;
  font-weight: 800
}
.emi-properties-link:hover
{
  background: var(--emi-coral-dark)
}
.emi-disclaimer
{
  margin: 20px 2px 0;
  color: var(--emi-muted);
  font-size: 10px;
  line-height: 1.6
}
.sr-only
{
  position: absolute!important;
  width: 1px!important;
  height: 1px!important;
  padding: 0!important;
  margin: -1px!important;
  overflow: hidden!important;
  clip: rect(0, 0, 0, 0)!important;
  white-space: nowrap!important;
  border: 0!important
}
@media(max-width:1180px)
{
  .emi-layout
  {
    grid-template-columns: minmax(300px, .72fr) minmax(560px, 1.28fr);
    gap: 38px
  }
  .emi-tool-grid
  {
    grid-template-columns: 1fr
  }
  .emi-results
  {
    min-height: 430px
  }
  .emi-editorial h1
  {
    font-size: clamp(45px, 5.8vw, 66px)
  }
}
@media(max-width:900px)
{
  .emi-page
  {
    padding-top: 48px
  }
  .emi-layout
  {
    grid-template-columns: 1fr;
    gap: 34px
  }
  .emi-editorial
  {
    position: static
  }
  .emi-back
  {
    margin-bottom: 28px
  }
  .emi-editorial h1
  {
    max-width: 720px;
    font-size: clamp(48px, 9vw, 72px)
  }
  .emi-intro
  {
    max-width: 680px
  }
  .emi-property-note
  {
    height: 300px
  }
  .emi-tool-grid
  {
    grid-template-columns: 1.05fr .95fr
  }
  .emi-results
  {
    min-height: 100%
  }
}
@media(max-width:700px)
{
  .emi-page
  {
    padding: 29px 12px 72px
  }
  .emi-layout
  {
    gap: 25px
  }
  .emi-back
  {
    margin: 0 8px 24px
  }
  .emi-editorial>.emi-eyebrow, .emi-editorial>h1, .emi-editorial>.emi-intro
  {
    margin-left: 8px;
    margin-right: 8px
  }
  .emi-editorial h1
  {
    margin-top: 12px;
    margin-bottom: 17px;
    font-size: clamp(42px, 13.2vw, 59px);
    line-height: 1.01
  }
  .emi-intro
  {
    font-size: 15px;
    line-height: 1.6
  }
  .emi-property-note
  {
    height: 220px;
    margin-top: 30px;
    border-radius: 19px
  }
  .emi-property-note figcaption
  {
    left: 18px;
    right: 18px;
    bottom: 16px
  }
  .emi-trust-note
  {
    margin: 14px 8px 0
  }
  .emi-tool
  {
    padding: 14px;
    border-radius: 21px;
    box-shadow: 0 16px 42px rgba(55, 39, 43, .08)
  }
  .emi-tool-heading
  {
    margin-bottom: 16px;
    padding: 7px 4px 17px;
    align-items: center
  }
  .emi-tool-heading h2
  {
    font-size: 26px
  }
  .emi-tool-heading>span
  {
    display: none
  }
  .emi-tool-grid
  {
    grid-template-columns: 1fr;
    gap: 14px
  }
  .emi-controls
  {
    gap: 11px
  }
  .emi-control
  {
    padding: 14px;
    border-radius: 15px
  }
  .emi-label-row>span
  {
    font-size: 8px
  }
  .emi-input-shell
  {
    height: 54px
  }
  .emi-results
  {
    min-height: 430px;
    padding: 23px 20px;
    border-radius: 17px
  }
  .emi-monthly
  {
    font-size: 42px
  }
  .emi-breakdown
  {
    grid-template-columns: 100px 1fr;
    gap: 15px
  }
  .emi-donut
  {
    width: 100px;
    height: 100px
  }
  .emi-total
  {
    margin-top: 26px
  }
  .emi-disclaimer
  {
    padding: 0 4px
  }
}
@media(max-width:360px)
{
  .emi-page
  {
    padding-left: 8px;
    padding-right: 8px
  }
  .emi-tool
  {
    padding: 10px
  }
  .emi-control
  {
    padding: 12px
  }
  .emi-label-row
  {
    align-items: start
  }
  .emi-label-row>span
  {
    max-width: 96px;
    text-align: right
  }
  .emi-input-shell input
  {
    font-size: 18px
  }
  .emi-results
  {
    padding: 20px 16px
  }
  .emi-monthly
  {
    font-size: 37px
  }
  .emi-breakdown
  {
    grid-template-columns: 88px 1fr
  }
  .emi-donut
  {
    width: 88px;
    height: 88px
  }
  .emi-total
  {
    align-items: start;
    flex-direction: column
  }
  .emi-total strong
  {
    text-align: left
  }
}
@media(prefers-reduced-motion:reduce)
{
  .emi-input-shell, .emi-properties-link
  {
    transition: none
  }
}
@media(max-width:900px)
{
  .emi-layout>.emi-tool
  {
    order: -1
  }
}
