/* MT - Home Quote: costs & what affects your quote */
.mtfe-home-quote {
    --hq-heading: #0B3B66;
    --hq-text: #3E5168;
    --hq-accent: #1662D6;
    --hq-accent-hover: #0F4FB4;
    --hq-panel: #FFFFFF;
    --hq-panel-head: #0B3B66;
    --hq-soft: #E3EEF9;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
    gap: clamp(32px, 5vw, 80px);
}

/* text side */
.mtfe-home-quote__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: var(--hq-accent);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.mtfe-home-quote__label::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: currentColor; }
.mtfe-home-quote .mtfe-home-quote__heading {
    margin: 0 0 14px;
    color: var(--hq-heading);
    font-size: clamp(30px, 3.4vw, 44px);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.mtfe-home-quote__intro { margin: 0 0 24px; color: var(--hq-text); font-size: 17px; line-height: 1.6; }

.mtfe-home-quote__factors { display: grid; gap: 14px; margin: 0 0 30px; padding: 0; list-style: none; }
.mtfe-home-quote__factors li { display: flex; align-items: flex-start; gap: 14px; margin: 0; }
.mtfe-home-quote__ficon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #FFFFFF;
    color: var(--hq-accent);
    box-shadow: 0 6px 16px rgba(11, 59, 102, 0.08);
}
.mtfe-home-quote__ficon svg { width: 22px; height: 22px; }
.mtfe-home-quote__factors strong { display: block; color: var(--hq-heading); font-size: 16px; font-weight: 700; line-height: 1.35; }
.mtfe-home-quote__ftext { display: block; margin-top: 2px; color: var(--hq-text); font-size: 15px; line-height: 1.5; }

.mtfe-home-quote .mtfe-home-quote__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 28px;
    border-radius: 100px;
    background: var(--hq-accent);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .2s ease, transform .2s ease;
}
.mtfe-home-quote .mtfe-home-quote__btn:hover,
.mtfe-home-quote .mtfe-home-quote__btn:focus-visible { background: var(--hq-accent-hover); color: #FFFFFF; transform: translateY(-2px); }
.mtfe-home-quote__btn svg { width: 18px; height: 18px; }
.mtfe-home-quote__note { margin: 12px 0 0; color: var(--hq-text); font-size: 14px; }
.mtfe-home-quote a:focus-visible { outline: 3px solid var(--hq-accent); outline-offset: 3px; }

/* information panel */
.mtfe-home-quote__panel {
    overflow: hidden;
    border-radius: 24px;
    background: var(--hq-panel);
    box-shadow: 0 1px 0 rgba(11, 59, 102, 0.05), 0 24px 50px rgba(11, 59, 102, 0.12);
}
.mtfe-home-quote__panel-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 26px;
    background: var(--hq-panel-head);
    color: #FFFFFF;
}
.mtfe-home-quote__panel-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #FFFFFF;
}
.mtfe-home-quote__panel-icon svg { width: 22px; height: 22px; }
.mtfe-home-quote__panel-title { display: block; font-size: 18px; font-weight: 800; line-height: 1.25; }
.mtfe-home-quote__panel-sub { display: block; margin-top: 2px; color: #D6E6F7; font-size: 14px; }

.mtfe-home-quote__prices { margin: 0; padding: 8px 26px 4px; }
.mtfe-home-quote__price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(11, 59, 102, 0.1);
}
.mtfe-home-quote__price:last-child { border-bottom: 0; }
.mtfe-home-quote__price dt { margin: 0; color: var(--hq-heading); font-size: 16px; font-weight: 700; line-height: 1.3; }
.mtfe-home-quote__price dt span { display: block; color: var(--hq-text); font-size: 13px; font-weight: 500; }
.mtfe-home-quote__price dd { margin: 0; color: var(--hq-heading); font-size: 17px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mtfe-home-quote__panel-note { margin: 0; padding: 4px 26px 20px; color: var(--hq-text); font-size: 13px; line-height: 1.5; }

/* incentives */
.mtfe-home-quote__incentives { padding: 20px 26px 24px; background: var(--hq-soft); }
.mtfe-home-quote__inc-title { margin: 0 0 6px; color: var(--hq-heading); font-size: 16px; font-weight: 800; }
.mtfe-home-quote__inc-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 14px; color: var(--hq-text); font-size: 13px; font-weight: 600; }
.mtfe-home-quote__inc-meta span { display: inline-flex; align-items: center; gap: 6px; }
.mtfe-home-quote__inc-meta svg { width: 15px; height: 15px; color: var(--hq-accent); }
.mtfe-home-quote__inc-list { display: grid; gap: 10px; margin: 0 0 12px; padding: 0; list-style: none; }
.mtfe-home-quote__inc-list li { margin: 0; padding: 12px 14px; border-radius: 14px; background: #FFFFFF; }
.mtfe-home-quote__inc-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mtfe-home-quote__inc-row strong { color: var(--hq-heading); font-size: 15px; font-weight: 700; }
.mtfe-home-quote__inc-amount { flex: 0 0 auto; color: var(--hq-accent); font-size: 13px; font-weight: 800; }
.mtfe-home-quote__inc-text { display: block; margin-top: 3px; color: var(--hq-text); font-size: 14px; line-height: 1.45; }
.mtfe-home-quote__inc-note { margin: 0; color: var(--hq-text); font-size: 13px; line-height: 1.5; }
.mtfe-home-quote .mtfe-home-quote__inc-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: var(--hq-accent);
    font-size: 14px;
    font-weight: 700;
}
.mtfe-home-quote__inc-link svg { width: 15px; height: 15px; }

@media (max-width: 1024px) {
    .mtfe-home-quote { grid-template-columns: minmax(0, 1fr); }
    body .mtfe-home-quote .mtfe-home-quote__heading { font-size: clamp(28px, 6vw, 40px) !important; line-height: 1.15 !important; }   /* theme forces h2 45px !important */
}
@media (max-width: 600px) {
    .mtfe-home-quote .mtfe-home-quote__btn { width: 100%; justify-content: center; }
    .mtfe-home-quote__panel-head,
    .mtfe-home-quote__prices,
    .mtfe-home-quote__panel-note,
    .mtfe-home-quote__incentives { padding-left: 18px; padding-right: 18px; }
    .mtfe-home-quote__price { flex-wrap: wrap; gap: 4px 12px; }
    .mtfe-home-quote__price dd { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .mtfe-home-quote .mtfe-home-quote__btn { transition: none; }
}

/* ---------- v1.1: interactive factors, system selector, cut-outs ---------- */
.mtfe-home-quote__text { position: relative; }
.mtfe-home-quote__factors { gap: 10px; counter-reset: none; }
.mtfe-home-quote__factor {
    padding: 12px 14px;
    border: 1.5px solid transparent;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.55);
    transition: background-color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.mtfe-home-quote__factor:hover { background: #FFFFFF; transform: translateX(4px); box-shadow: 0 10px 24px rgba(11, 59, 102, 0.08); }
.mtfe-home-quote__factor.is-key { background: #FFFFFF; border-color: var(--hq-accent); box-shadow: 0 10px 24px rgba(22, 98, 214, 0.12); }
.mtfe-home-quote__factor.is-key .mtfe-home-quote__ficon { background: var(--hq-accent); color: #FFFFFF; }
.mtfe-home-quote__ficon { transition: background-color .25s ease, color .25s ease; }
.mtfe-home-quote__fbody { flex: 1 1 auto; min-width: 0; }
.mtfe-home-quote__fhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }
.mtfe-home-quote__fhead strong { display: inline; }

.mtfe-home-quote__impact {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 3px 10px 3px 8px;
    border-radius: 100px;
    background: var(--hq-soft);
    color: var(--hq-heading);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.mtfe-home-quote__meter { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.mtfe-home-quote__meter i { display: block; width: 4px; border-radius: 2px; background: rgba(11, 59, 102, 0.22); }
.mtfe-home-quote__meter i:nth-child(1) { height: 5px; }
.mtfe-home-quote__meter i:nth-child(2) { height: 8px; }
.mtfe-home-quote__meter i:nth-child(3) { height: 12px; }
.mtfe-home-quote__impact.is-low .mtfe-home-quote__meter i:nth-child(1),
.mtfe-home-quote__impact.is-medium .mtfe-home-quote__meter i:nth-child(-n+2),
.mtfe-home-quote__impact.is-high .mtfe-home-quote__meter i { background: var(--hq-accent); }

/* decorative cut-out (thermostat) beside the button */
.mtfe-home-quote__deco {
    position: absolute;
    right: 2%;
    bottom: -64px;
    width: clamp(84px, 9vw, 120px);
    height: auto;
    filter: drop-shadow(0 18px 22px rgba(11, 59, 102, 0.22));
    pointer-events: none;
}

/* system selector */
.mtfe-home-quote__systems { padding: 18px 26px 6px; }
.mtfe-home-quote__tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    grid-auto-flow: column;
    gap: 6px;
    padding: 5px;
    border-radius: 16px;
    background: var(--hq-soft);
}
.mtfe-home-quote .mtfe-home-quote__tab {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    min-height: 52px;
    margin: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--hq-heading);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color .2s ease, box-shadow .2s ease;
}
.mtfe-home-quote .mtfe-home-quote__tab:hover { background: rgba(255, 255, 255, 0.6); }
.mtfe-home-quote .mtfe-home-quote__tab.is-active { background: #FFFFFF; box-shadow: 0 6px 16px rgba(11, 59, 102, 0.12); }
.mtfe-home-quote .mtfe-home-quote__tab:focus-visible { outline: 3px solid var(--hq-accent); outline-offset: 2px; }
.mtfe-home-quote__tab-label,
.mtfe-home-quote__tab-detail { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mtfe-home-quote__tab-label { font-size: 15px; font-weight: 800; line-height: 1.3; }
.mtfe-home-quote__tab-detail { color: var(--hq-text); font-size: 12px; font-weight: 600; }

.mtfe-home-quote__system { padding: 18px 0 8px; }
.mtfe-home-quote__system + .mtfe-home-quote__system { border-top: 1px solid rgba(11, 59, 102, 0.1); }
.mtfe-home-quote.is-ready .mtfe-home-quote__system { display: none; border-top: 0; }
.mtfe-home-quote.is-ready .mtfe-home-quote__system.is-active { display: block; }
.mtfe-home-quote__system:focus-visible { outline: 3px solid var(--hq-accent); outline-offset: 4px; border-radius: 12px; }

.mtfe-home-quote__system-top { display: flex; align-items: center; gap: 20px; }
.mtfe-home-quote__cutout {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 150px;
    height: 124px;
    padding: 12px;
    box-sizing: border-box;
    border-radius: 20px;
    background: radial-gradient(circle at 50% 60%, #FFFFFF 0, var(--hq-soft) 75%);
}
.mtfe-home-quote__cutout img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 12px rgba(11, 59, 102, 0.22));
}
.mtfe-home-quote__system-price { min-width: 0; }
.mtfe-home-quote__system-name { display: block; color: var(--hq-text); font-size: 14px; font-weight: 700; }
.mtfe-home-quote__system-value { display: block; color: var(--hq-heading); font-size: clamp(24px, 2.4vw, 30px); font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.mtfe-home-quote__included-label { margin: 14px 0 8px; color: var(--hq-heading); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.mtfe-home-quote__included { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mtfe-home-quote__included li { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--hq-text); font-size: 15px; line-height: 1.4; }
.mtfe-home-quote__included li > span { display: inline-grid; place-items: center; flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; background: var(--hq-soft); color: var(--hq-accent); }
.mtfe-home-quote__included svg { width: 13px; height: 13px; }
.mtfe-home-quote__key-note { margin: 12px 0 0; color: var(--hq-accent); font-size: 13px; font-weight: 700; }

@media (prefers-reduced-motion: no-preference) {
    .mtfe-home-quote__deco { animation: mtfe-hq-float 6s ease-in-out infinite; }
    .mtfe-home-quote.is-ready .mtfe-home-quote__system.is-active .mtfe-home-quote__cutout img { animation: mtfe-hq-pop .55s cubic-bezier(.2, .9, .3, 1.25) both; }
    .mtfe-home-quote.is-ready .mtfe-home-quote__system.is-active .mtfe-home-quote__system-value { animation: mtfe-hq-up .45s ease both .08s; }
    .mtfe-home-quote.is-ready .mtfe-home-quote__system.is-active .mtfe-home-quote__included li { animation: mtfe-hq-up .4s ease both; }
    .mtfe-home-quote.is-ready .mtfe-home-quote__system.is-active .mtfe-home-quote__included li:nth-child(2) { animation-delay: .05s; }
    .mtfe-home-quote.is-ready .mtfe-home-quote__system.is-active .mtfe-home-quote__included li:nth-child(3) { animation-delay: .1s; }
    .mtfe-home-quote.is-ready .mtfe-home-quote__system.is-active .mtfe-home-quote__included li:nth-child(4) { animation-delay: .15s; }
}
@keyframes mtfe-hq-float { 0%, 100% { translate: 0 0; rotate: -4deg; } 50% { translate: 0 -10px; rotate: 2deg; } }
@keyframes mtfe-hq-pop { from { opacity: 0; transform: scale(.85) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes mtfe-hq-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .mtfe-home-quote__factor, .mtfe-home-quote__ficon { transition: none; }
    .mtfe-home-quote__factor:hover { transform: none; }
}

@media (max-width: 1024px) {
    .mtfe-home-quote__deco { right: 0; bottom: -10px; }
}
@media (max-width: 600px) {
    .mtfe-home-quote__systems { padding-left: 18px; padding-right: 18px; }
    .mtfe-home-quote__tabs { grid-auto-flow: row; grid-template-columns: 1fr; }
    .mtfe-home-quote .mtfe-home-quote__tab { min-height: 44px; flex-direction: row; align-items: baseline; justify-content: space-between; gap: 8px; }
    .mtfe-home-quote__tab-label, .mtfe-home-quote__tab-detail { width: auto; }
    .mtfe-home-quote__system-top { gap: 12px; }
    .mtfe-home-quote__cutout { width: 104px; height: 90px; padding: 8px; border-radius: 16px; }
    .mtfe-home-quote__included { grid-template-columns: 1fr; }
    .mtfe-home-quote__deco { display: none; }
}
