/* ==========================================================================
   Private Project Estimator v2 — antoniorutilio.com
   Dark, gold, editorial. Logical properties throughout (RTL-safe).
   ========================================================================== */

:root {
    --est-gold: #c5a47e;
    --est-gold-soft: rgba(197, 164, 126, 0.16);
    --est-gold-line: rgba(197, 164, 126, 0.45);
    --est-bg: #050505;
    --est-panel: rgba(255, 255, 255, 0.035);
    --est-panel-2: rgba(255, 255, 255, 0.06);
    --est-line: rgba(255, 255, 255, 0.1);
    --est-text: #f4f1ec;
    --est-muted: rgba(244, 241, 236, 0.66);
    --est-dim: rgba(244, 241, 236, 0.45);
    --est-error: #f08a7e;
    --est-ok: #8fd3a5;
    --est-radius: 16px;
    --est-radius-sm: 10px;
    --est-header: 96px;
    --est-title-font: 'Playfair Display', Georgia, serif;
    --est-body-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --est-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 768px) {
    :root { --est-header: 84px; }
}

/* --------------------------------------------------------------------------
   Page shell
   -------------------------------------------------------------------------- */
.est {
    background: var(--est-bg);
    color: var(--est-text);
    font-family: var(--est-body-font);
    padding-block: var(--est-header) 80px;
    min-height: 100vh;
    overflow-x: clip;
}
.est-container {
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: 16px;
}
@media (min-width: 768px) {
    .est-container { padding-inline: 24px; }
    .est { padding-block: calc(var(--est-header) + 32px) 120px; }
}

/* Typography overrides: the theme forces sizes on h1/h2/p with !important */
html body .est h1, html body .est h2, html body .est h3, html body .est p, html body .est legend, html body .est label {
    color: inherit;
    max-width: none;
}
html body .est p { font-size: 16px !important; line-height: 1.6 !important; margin: 0; }
html body .est .est-eyebrow {
    display: block;
    color: var(--est-gold);
    font-size: 12px !important;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    margin-block-end: 18px;
}
html[lang^="ar"] body .est .est-eyebrow,
html[lang^="zh"] body .est .est-eyebrow,
html[lang^="ja"] body .est .est-eyebrow,
html[lang^="ko"] body .est .est-eyebrow,
html[lang^="ar"] body .est .est-summary__title,
html[lang^="zh"] body .est .est-summary__title,
html[lang^="ja"] body .est .est-summary__title,
html[lang^="ko"] body .est .est-summary__title,
html[lang^="ar"] body .est .est-facts dt,
html[lang^="zh"] body .est .est-facts dt,
html[lang^="ja"] body .est .est-facts dt,
html[lang^="ko"] body .est .est-facts dt,
html[lang^="ar"] body .est .est-progress__step,
html[lang^="zh"] body .est .est-progress__step,
html[lang^="ja"] body .est .est-progress__step,
html[lang^="ko"] body .est .est-progress__step {
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.est-visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
.est-hp { position: absolute; inset-inline-start: -9999px; opacity: 0; height: 0; width: 0; }

[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.est-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 28px;
    border-radius: 999px;
    font-family: var(--est-body-font);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color .25s var(--est-ease), color .25s var(--est-ease), border-color .25s var(--est-ease), transform .25s var(--est-ease), box-shadow .25s var(--est-ease);
    -webkit-tap-highlight-color: transparent;
}
.est-btn--gold { background: var(--est-gold); color: #0c0e0b !important; }
.est-btn--gold:hover, .est-btn--gold:focus-visible { background: #d9bb93; color: #0c0e0b !important; transform: translateY(-1px); box-shadow: 0 10px 30px rgba(197, 164, 126, 0.25); }
.est-btn--ghost { background: transparent; color: var(--est-text) !important; border-color: rgba(255, 255, 255, 0.28); }
.est-btn--ghost:hover, .est-btn--ghost:focus-visible { border-color: var(--est-gold); color: var(--est-gold) !important; }
.est-btn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.est-btn[disabled], .est-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.est-btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.est-btn.is-loading::after {
    content: ""; position: absolute; inset-block-start: 50%; inset-inline-start: 50%;
    width: 20px; height: 20px; margin: -10px;
    border: 2px solid rgba(0, 0, 0, 0.25); border-top-color: #0c0e0b; border-radius: 50%;
    animation: est-spin .8s linear infinite;
}
.est-btn--ghost.is-loading::after { border-color: rgba(255,255,255,.25); border-top-color: var(--est-gold); }
.est-link {
    background: none; border: 0; padding: 8px 4px; min-height: 44px;
    color: var(--est-muted); font: inherit; font-size: 14px; cursor: pointer;
    text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255,255,255,.3);
}
.est-link:hover, .est-link:focus-visible { color: var(--est-gold); text-decoration-color: currentColor; }

.est-btn:focus-visible, .est-link:focus-visible, .est-tab:focus-visible, .est-chip:focus-visible, .est-qty__btn:focus-visible,
.est-input:focus-visible, .est-range:focus-visible, .est-seg__btn:focus-visible, .est-summary__head:focus-visible, .est-summary__edit:focus-visible {
    outline: 2px solid var(--est-gold);
    outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Intro
   -------------------------------------------------------------------------- */
.est-intro {
    max-width: 820px;
    margin-inline: auto;
    text-align: center;
    padding-block: 16px 24px;
}
html body .est .est-h1 {
    font-family: var(--est-title-font);
    font-size: clamp(34px, 5.4vw, 62px) !important;
    font-weight: 500;
    line-height: 1.08 !important;
    letter-spacing: -0.5px;
    margin: 0 0 22px;
    text-wrap: balance;
}
html body .est .est-lead { font-size: clamp(16px, 1.6vw, 19px) !important; color: var(--est-muted); max-width: 640px; margin-inline: auto; }
html body .est .est-trustline { font-size: 13px !important; color: var(--est-dim); margin-block: 18px 30px; }
.est-cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.est-cta-row .est-btn { flex: 1 1 220px; max-width: 320px; }
@media (max-width: 480px) { .est-cta-row .est-btn { flex-basis: 100%; max-width: none; } }

.est-resume {
    margin: 28px auto 0;
    max-width: 560px;
    padding: 18px 20px;
    border: 1px solid var(--est-gold-line);
    background: var(--est-gold-soft);
    border-radius: var(--est-radius-sm);
    text-align: start;
}
html body .est .est-resume__text { font-size: 14px !important; margin-block-end: 12px; }
.est-resume__actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }

.est-trust-grid {
    list-style: none;
    padding: 0;
    margin: 56px 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    text-align: start;
}
.est-trust {
    display: flex; gap: 14px; align-items: center;
    padding: 18px 20px;
    border: 1px solid var(--est-line);
    background: var(--est-panel);
    border-radius: var(--est-radius-sm);
    font-size: 14px;
    line-height: 1.45;
    color: var(--est-text);
}
.est-trust__icon { flex: 0 0 auto; color: var(--est-gold); display: inline-flex; }
html body .est .est-market { font-size: 12px !important; color: var(--est-dim); margin-block-start: 22px; }

/* Hero render behind the intro: text sits on the dark left half, buildings on the right */
.est-intro--hero {
    position: relative; max-width: none; margin-inline: calc(50% - 50vw); padding: 0;
    min-height: min(640px, 82vh); display: flex; align-items: center; overflow: hidden;
    border-block-end: 1px solid var(--est-line);
}
.est-hero { position: absolute; inset: 0; z-index: 0; }
.est-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 78% center; display: block; }
.est-hero__veil { position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, rgba(5,5,5,.92) 0%, rgba(5,5,5,.78) 38%, rgba(5,5,5,.35) 68%, rgba(5,5,5,.15) 100%),
                linear-gradient(180deg, rgba(5,5,5,.55) 0%, rgba(5,5,5,0) 30%, rgba(5,5,5,.75) 100%); }
[dir="rtl"] .est-hero__veil { background: linear-gradient(270deg, rgba(5,5,5,.92) 0%, rgba(5,5,5,.78) 38%, rgba(5,5,5,.35) 68%, rgba(5,5,5,.15) 100%), linear-gradient(180deg, rgba(5,5,5,.55) 0%, rgba(5,5,5,0) 30%, rgba(5,5,5,.75) 100%); }
[dir="rtl"] .est-hero img { object-position: 22% center; }
.est-intro--hero .est-intro__content { position: relative; z-index: 2; width: 100%; max-width: 1180px; margin-inline: auto; padding: 72px 24px 56px; text-align: start; }
/* ".est-lead" is centred by default (margin-inline: auto) with higher specificity
   ("html body .est .est-lead") than a plain ".est-intro--hero .est-lead" override, so the
   hero variant needs the same "html body .est" prefix to actually win and align it left. */
html body .est .est-intro--hero .est-h1,
html body .est .est-intro--hero .est-lead,
html body .est .est-intro--hero .est-trustline { max-width: 620px; margin-inline: 0; }
.est-intro--hero .est-cta-row { justify-content: flex-start; }
.est-intro--hero .est-trust-grid { max-width: 820px; margin-block-start: 40px; }
.est-intro--hero .est-resume { margin-inline: 0; }
@media (max-width: 767px) {
    .est-intro--hero { min-height: 0; margin-inline: -16px; }
    .est-intro--hero .est-intro__content { padding: 56px 16px 40px; }
    .est-hero img { object-position: 60% center; }
    .est-hero__veil { background: linear-gradient(180deg, rgba(5,5,5,.86) 0%, rgba(5,5,5,.7) 45%, rgba(5,5,5,.9) 100%); }
    .est-intro--hero .est-cta-row .est-btn { flex-basis: 100%; max-width: none; }
}

/* Result key facts (cost per m², area, currency) */
html body .est .est-result__nonbinding { font-size: 12px !important; letter-spacing: 1px; text-transform: uppercase; color: var(--est-gold); margin-block-start: 10px; }
html[lang^="ar"] body .est .est-result__nonbinding, html[lang^="zh"] body .est .est-result__nonbinding, html[lang^="ja"] body .est .est-result__nonbinding, html[lang^="ko"] body .est .est-result__nonbinding { letter-spacing: 0; text-transform: none; }
.est-keyfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px 20px; margin: 22px auto 0; max-width: 680px; text-align: start; }
.est-keyfacts > div { padding: 10px 14px; border: 1px solid var(--est-line); border-radius: var(--est-radius-sm); background: rgba(255,255,255,.03); min-width: 0; }
.est-keyfacts dt { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--est-dim); margin-block-end: 4px; }
html[lang^="ar"] body .est .est-keyfacts dt, html[lang^="zh"] body .est .est-keyfacts dt, html[lang^="ja"] body .est .est-keyfacts dt, html[lang^="ko"] body .est .est-keyfacts dt { letter-spacing: 0; text-transform: none; }
.est-keyfacts dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--est-text); overflow-wrap: anywhere; }
.est-keyfacts dd.est-keyfacts__hint { font-size: 11px; font-weight: 400; color: var(--est-dim); margin-block-start: 3px; }
html body .est .est-result__note-benchmark { font-size: 13px !important; color: var(--est-gold); margin-block-start: 14px; padding: 8px 12px; border: 1px solid var(--est-gold-line); border-radius: var(--est-radius-sm); display: inline-block; }

/* --------------------------------------------------------------------------
   Progress
   -------------------------------------------------------------------------- */
.est-progress { margin-block-end: 28px; }
.est-progress__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-block-end: 12px; flex-wrap: wrap; }
.est-progress__step { color: var(--est-gold); font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
.est-progress__time { color: var(--est-dim); font-size: 13px; }
.est-progress__bar { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.est-progress__item { flex: 1 1 0; min-width: 0; }
.est-progress__seg { display: block; height: 3px; border-radius: 3px; background: rgba(255,255,255,.14); transition: background-color .4s var(--est-ease); }
.est-progress__item.is-done .est-progress__seg { background: rgba(197,164,126,.55); }
.est-progress__item[aria-current="step"] .est-progress__seg { background: var(--est-gold); box-shadow: 0 0 12px rgba(197,164,126,.5); }
.est-progress__name { display: none; margin-block-start: 8px; font-size: 11px; color: var(--est-dim); line-height: 1.3; }
.est-progress__item[aria-current="step"] .est-progress__name { color: var(--est-text); }
@media (min-width: 900px) { .est-progress__name { display: block; } }

html body .est .est-note {
    font-size: 13px !important; color: var(--est-gold); background: var(--est-gold-soft);
    border: 1px solid var(--est-gold-line); border-radius: var(--est-radius-sm); padding: 10px 14px; margin-block-end: 18px;
}

/* --------------------------------------------------------------------------
   Layout: form + summary
   -------------------------------------------------------------------------- */
.est-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
@media (min-width: 1024px) {
    .est-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
    .est-summary { position: sticky; top: calc(var(--est-header) + 8px); }
}
@media (max-width: 1023px) {
    .est-summary { order: -1; }
}

.est-form { min-width: 0; }

/* Steps */
.est-step { animation: est-fade .5s var(--est-ease) both; }
html body .est .est-step__title {
    font-family: var(--est-title-font);
    font-size: clamp(24px, 3vw, 34px) !important;
    font-weight: 500;
    line-height: 1.15 !important;
    margin: 0 0 22px;
    scroll-margin-top: calc(var(--est-header) + 16px);
}
html body .est .est-step__title:focus { outline: none; }

.est-q { border: 0; padding: 0; margin: 0 0 34px; min-width: 0; }
html body .est .est-q__label {
    display: block; float: none; width: 100%;
    font-size: 18px !important; font-weight: 600; line-height: 1.35 !important;
    margin: 0 0 6px; padding: 0; color: var(--est-text);
}
html body .est .est-q__hint { font-size: 14px !important; color: var(--est-muted); margin-block-end: 16px; }
html body .est .est-q__hint--small { font-size: 12px !important; color: var(--est-dim); margin-block-start: 6px; }

/* --------------------------------------------------------------------------
   Option cards (real radio/checkbox inputs inside labels)
   -------------------------------------------------------------------------- */
.est-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.est-cards--two { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.est-cards--compact { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.est-cards--img { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
@media (max-width: 560px) {
    .est-cards--desc { grid-template-columns: 1fr; }
    .est-cards--img { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 360px) {
    .est-cards--img { grid-template-columns: 1fr; }
}

.est-card { position: relative; display: block; margin: 0; cursor: pointer; min-width: 0; }
.est-card__input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.est-card__body {
    display: flex; flex-direction: column; gap: 6px;
    min-height: 60px;
    padding: 18px 18px 18px 46px;
    padding-inline: 46px 18px;
    border: 1px solid var(--est-line);
    border-radius: var(--est-radius-sm);
    background: var(--est-panel);
    transition: border-color .25s var(--est-ease), background-color .25s var(--est-ease), transform .25s var(--est-ease), box-shadow .25s var(--est-ease);
    position: relative;
    text-align: start;
    height: 100%;
}
.est-card:hover .est-card__body { border-color: rgba(255,255,255,.3); background: var(--est-panel-2); }
.est-card.is-selected .est-card__body, .est-card__input:checked + .est-card__body { border-color: var(--est-gold); background: var(--est-gold-soft); box-shadow: 0 8px 30px rgba(197,164,126,.12); }
.est-card__input:focus-visible + .est-card__body { outline: 2px solid var(--est-gold); outline-offset: 3px; }
.est-card__title { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--est-text); }
.est-card.is-selected .est-card__title, .est-card__input:checked + .est-card__body .est-card__title { color: var(--est-gold); }
.est-card__desc { font-size: 13px; line-height: 1.45; color: var(--est-muted); }
.est-card__check {
    position: absolute; inset-inline-start: 16px; inset-block-start: 19px;
    width: 18px; height: 18px; border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.35); background: transparent;
    transition: border-color .2s, background-color .2s;
}
.est-card__check--box { border-radius: 4px; }
.est-card.is-selected .est-card__check, .est-card__input:checked + .est-card__body .est-card__check { border-color: var(--est-gold); background: var(--est-gold); }
.est-card__check::after {
    content: ""; position: absolute; inset: 0; margin: auto;
    width: 5px; height: 9px; border: solid #0c0e0b; border-width: 0 2px 2px 0;
    transform: translateY(-1px) rotate(45deg); opacity: 0;
}
.est-card.is-selected .est-card__check::after, .est-card__input:checked + .est-card__body .est-card__check::after { opacity: 1; }

/* compact (single line) cards */
.est-card--compact .est-card__body { min-height: 56px; justify-content: center; padding-block: 14px; }

/* image cards */
.est-card--img .est-card__body { padding: 0; overflow: hidden; gap: 0; }
.est-card--img picture, .est-card--img img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.est-card--img img { transition: transform .6s var(--est-ease); }
.est-card--img:hover img { transform: scale(1.03); }
.est-card__caption { display: block; position: relative; padding: 12px 14px; padding-inline-start: 40px; }
.est-card--img .est-card__check { inset-block-start: 14px; inset-inline-start: 14px; }
.est-card--img .est-card__title { font-size: 14px; }

/* feature cards with quantity */
.est-card--feature { display: flex; flex-direction: column; border-radius: var(--est-radius-sm); }
.est-card--feature .est-card__main { display: block; flex: 1 1 auto; cursor: pointer; margin: 0; }
.est-card--feature.is-selected .est-card__body { border-end-start-radius: 0; border-end-end-radius: 0; }
.est-qty {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    padding: 8px 10px;
    border: 1px solid var(--est-gold-line); border-block-start: 0;
    border-radius: 0 0 var(--est-radius-sm) var(--est-radius-sm);
    background: rgba(197,164,126,.08);
}
.est-qty__btn {
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.25); background: transparent; color: var(--est-text);
    font-size: 20px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    transition: border-color .2s, background-color .2s;
}
.est-qty__btn:hover { border-color: var(--est-gold); background: var(--est-gold-soft); }
.est-qty__val { min-width: 28px; text-align: center; font-weight: 600; font-size: 16px; color: var(--est-gold); }

html body .est .est-count { font-size: 13px !important; color: var(--est-muted); margin-block-start: 14px; }

/* tabs */
.est-tabs { display: flex; gap: 8px; overflow-x: auto; padding-block-end: 12px; margin-block-end: 8px; scrollbar-width: none; }
.est-tabs::-webkit-scrollbar { display: none; }
.est-tab {
    flex: 0 0 auto; min-height: 44px; padding: 0 18px; border-radius: 999px;
    border: 1px solid var(--est-line); background: transparent; color: var(--est-muted);
    font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap;
    transition: border-color .2s, color .2s, background-color .2s;
}
.est-tab:hover { color: var(--est-text); border-color: rgba(255,255,255,.3); }
.est-tab[aria-selected="true"] { color: var(--est-gold); border-color: var(--est-gold); background: var(--est-gold-soft); }
.est-tab__count:not(:empty) { margin-inline-start: 8px; padding: 2px 8px; border-radius: 999px; background: var(--est-gold); color: #0c0e0b; font-size: 11px; font-weight: 700; }

/* --------------------------------------------------------------------------
   Inputs
   -------------------------------------------------------------------------- */
.est-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px 18px; }
.est-field { min-width: 0; }
.est-field--wide { grid-column: 1 / -1; }
html body .est .est-field__label { display: block; font-size: 13px !important; font-weight: 600; color: var(--est-muted); margin: 0 0 8px; letter-spacing: .2px; }
.est-field__opt { font-weight: 400; color: var(--est-dim); }
.est-input {
    display: block; width: 100%; min-height: 50px;
    padding: 12px 16px;
    border: 1px solid var(--est-line); border-radius: var(--est-radius-sm);
    background: var(--est-panel); color: var(--est-text);
    font: inherit; font-size: 16px; line-height: 1.4;
    transition: border-color .2s, background-color .2s;
    -webkit-appearance: none; appearance: none;
}
.est-input::placeholder { color: var(--est-dim); }
.est-input:focus { outline: none; border-color: var(--est-gold); background: var(--est-panel-2); }
/* Solid background on purpose: Firefox paints the dropdown popup with the
   select's own background-color, so a translucent panel makes the whole
   list see-through. color-scheme keeps native popups (Safari, Chrome/macOS) dark. */
.est-select {
    background-color: #121212;
    color-scheme: dark;
    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='%23c5a47e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center; background-size: 14px;
    padding-inline-end: 44px;
}
.est-select:focus { background-color: #171717; }
[dir="rtl"] .est-select { background-position: left 16px center; }
.est-select option, .est-select optgroup { color: #f4f1ec; background: #121212; padding: 8px 12px; }
.est-select option:checked { color: #c5a47e; }
.est-textarea { min-height: 140px; resize: vertical; }
.est-field.is-invalid .est-input { border-color: var(--est-error); }
.est-checkline { display: flex; align-items: flex-start; gap: 10px; margin-block-start: 10px; cursor: pointer; font-size: 14px; color: var(--est-muted); line-height: 1.45; min-height: 44px; padding-block: 8px; }
.est-checkline input { width: 18px; height: 18px; margin-block-start: 2px; accent-color: var(--est-gold); flex: 0 0 auto; }

html body .est .est-error { font-size: 13px !important; color: var(--est-error); margin-block-start: 10px; padding-inline-start: 2px; }
html body .est .est-error--global { margin-block: 10px 18px; padding: 12px 14px; border: 1px solid rgba(240,138,126,.4); border-radius: var(--est-radius-sm); background: rgba(240,138,126,.08); }
.est-q.is-invalid > .est-cards .est-card__body { border-color: rgba(240,138,126,.5); }

/* --------------------------------------------------------------------------
   Built area
   -------------------------------------------------------------------------- */
.est-area { padding: 24px; border: 1px solid var(--est-line); border-radius: var(--est-radius); background: var(--est-panel); }
.est-area__display { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin-block-end: 18px; }
.est-area__input {
    width: min(100%, 320px); min-width: 0;
    background: transparent; border: 0; border-block-end: 1px solid var(--est-gold-line);
    color: var(--est-gold); font-family: var(--est-title-font);
    font-size: clamp(40px, 8vw, 64px); font-weight: 400; line-height: 1.1;
    text-align: center; padding: 4px 0;
}
.est-area__input:focus { outline: none; border-block-end-color: var(--est-gold); }
.est-area__unit { font-size: 20px; color: var(--est-muted); }
.est-range { display: block; width: 100%; height: 44px; margin: 0; accent-color: var(--est-gold); cursor: pointer; background: transparent; }
html body .est .est-area__hint { font-size: 13px !important; color: var(--est-dim); text-align: center; margin-block: 8px 16px; }
.est-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.est-chip {
    min-height: 44px; padding: 0 16px; border-radius: 999px;
    border: 1px solid var(--est-line); background: transparent; color: var(--est-muted);
    font: inherit; font-size: 14px; cursor: pointer; transition: border-color .2s, color .2s, background-color .2s;
}
.est-chip:hover { border-color: rgba(255,255,255,.35); color: var(--est-text); }
.est-chip[aria-pressed="true"] { border-color: var(--est-gold); color: var(--est-gold); background: var(--est-gold-soft); }

/* --------------------------------------------------------------------------
   Navigation (sticky on mobile)
   -------------------------------------------------------------------------- */
.est-nav {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-block-start: 8px; padding-block: 16px;
    border-block-start: 1px solid var(--est-line);
}
.est-nav__restart { margin-inline: auto; }
@media (max-width: 767px) {
    .est-nav {
        position: sticky; bottom: 0; z-index: 20;
        margin-inline: -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: rgba(5,5,5,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
        border-block-start: 1px solid var(--est-line);
    }
    .est-nav .est-btn { min-height: 48px; padding-inline: 18px; font-size: 14px; }
    .est-nav__restart { font-size: 12px; padding-inline: 2px; }
}
.est-confirm {
    margin-block-start: 14px; padding: 18px 20px;
    border: 1px solid var(--est-gold-line); background: var(--est-gold-soft); border-radius: var(--est-radius-sm);
}
html body .est .est-confirm__title { font-size: 17px !important; font-weight: 600; margin: 0 0 6px; }
html body .est .est-confirm__text { font-size: 14px !important; color: var(--est-muted); margin-block-end: 14px; }
.est-confirm__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* --------------------------------------------------------------------------
   Live summary
   -------------------------------------------------------------------------- */
.est-summary__details { border: 1px solid var(--est-line); border-radius: var(--est-radius); background: var(--est-panel); }
.est-summary__head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    list-style: none; cursor: pointer; padding: 16px 18px; min-height: 52px;
}
.est-summary__head::-webkit-details-marker { display: none; }
.est-summary__title { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--est-gold); font-weight: 600; }
.est-summary__toggle { font-size: 12px; color: var(--est-dim); }
@media (min-width: 1024px) {
    .est-summary__toggle { display: none; }
    .est-summary__head { cursor: default; }
}
html body .est .est-summary__empty { font-size: 13px !important; color: var(--est-dim); padding: 0 18px 18px; }
.est-summary__list { margin: 0; padding: 0 18px 8px; }
.est-summary__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 0; border-block-start: 1px solid var(--est-line); align-items: center; }
.est-summary__row dt { grid-column: 1; font-size: 11px; letter-spacing: .5px; text-transform: uppercase; color: var(--est-dim); }
.est-summary__row dd { grid-column: 1; margin: 0; font-size: 14px; color: var(--est-text); line-height: 1.4; overflow-wrap: anywhere; }
.est-summary__edit {
    grid-column: 2; grid-row: 1 / span 2;
    background: none; border: 1px solid var(--est-line); border-radius: 999px; color: var(--est-muted);
    font: inherit; font-size: 12px; padding: 0 12px; min-height: 36px; cursor: pointer; transition: border-color .2s, color .2s;
}
.est-summary__edit:hover { color: var(--est-gold); border-color: var(--est-gold); }
@media (max-width: 767px) { .est-summary__edit { min-height: 44px; } }

/* --------------------------------------------------------------------------
   States (loading / error)
   -------------------------------------------------------------------------- */
.est-state { max-width: 640px; margin: 40px auto; text-align: center; padding: 40px 24px; border: 1px solid var(--est-line); border-radius: var(--est-radius); background: var(--est-panel); }
.est-state--error { border-color: rgba(240,138,126,.4); }
html body .est .est-state__title { font-family: var(--est-title-font); font-size: 26px !important; font-weight: 500; margin: 18px 0 10px; }
html body .est .est-state__text { font-size: 15px !important; color: var(--est-muted); margin-block-end: 24px; }
.est-spinner { display: inline-block; width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(197,164,126,.25); border-top-color: var(--est-gold); animation: est-spin .9s linear infinite; }

/* --------------------------------------------------------------------------
   Result — Preliminary Investment Profile
   -------------------------------------------------------------------------- */
.est-result { max-width: 900px; margin-inline: auto; padding: 32px 20px; border: 1px solid var(--est-gold-line); border-radius: var(--est-radius); background: linear-gradient(180deg, rgba(197,164,126,.08), rgba(255,255,255,.02) 40%); animation: est-fade .6s var(--est-ease) both; }
@media (min-width: 768px) { .est-result { padding: 48px 56px; } }
html body .est .est-result__title { font-family: var(--est-title-font); font-size: clamp(26px, 3.4vw, 40px) !important; font-weight: 500; line-height: 1.12 !important; margin: 0 0 8px; }
html body .est .est-result__for { font-size: 15px !important; color: var(--est-muted); margin-block-end: 28px; }
.est-result__range { text-align: center; padding: 26px 16px; border: 1px solid var(--est-line); border-radius: var(--est-radius); background: rgba(0,0,0,.35); margin-block-end: 28px; }
.est-result__amount { font-family: var(--est-title-font); font-size: clamp(26px, 4.6vw, 48px); line-height: 1.15; color: var(--est-gold); font-weight: 500; overflow-wrap: anywhere; }
.est-seg { display: inline-flex; gap: 4px; margin-block-start: 18px; padding: 4px; border: 1px solid var(--est-line); border-radius: 999px; }
.est-seg:empty { display: none; }
.est-seg__btn { min-height: 40px; min-width: 64px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; color: var(--est-muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s; }
.est-seg__btn[aria-pressed="true"] { background: var(--est-gold); color: #0c0e0b; }
html body .est .est-result__rate { font-size: 12px !important; color: var(--est-dim); margin-block-start: 12px; min-height: 1em; }
html body .est .est-result__market { font-size: 12px !important; color: var(--est-dim); margin-block-start: 8px; max-width: 560px; margin-inline: auto; }

.est-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px 24px; margin: 0 0 24px; }
.est-facts > div { padding: 12px 0; border-block-start: 1px solid var(--est-line); min-width: 0; }
.est-facts dt { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--est-dim); margin-block-end: 4px; }
.est-facts dd { margin: 0; font-size: 15px; line-height: 1.45; color: var(--est-text); overflow-wrap: anywhere; }
.est-facts > .est-facts__wide { grid-column: 1 / -1; }

html body .est .est-result__disclaimer { font-size: 13px !important; color: var(--est-muted); line-height: 1.6 !important; padding: 14px 16px; border-inline-start: 2px solid var(--est-gold); background: rgba(255,255,255,.03); margin-block-end: 28px; }
.est-result__ctas { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.est-result__ctas .est-btn { width: 100%; padding-inline: 16px; }
html body .est .est-result__status { font-size: 13px !important; margin-block-start: 12px; min-height: 1em; color: var(--est-ok); }
html body .est .est-result__status.is-error { color: var(--est-error); }
html body .est .est-result__note { font-size: 12px !important; color: var(--est-dim); margin-block-start: 10px; }
.est-result__next { margin-block-start: 32px; padding-block-start: 22px; border-block-start: 1px solid var(--est-line); }
html body .est .est-result__next-title { font-size: 16px !important; font-weight: 600; margin: 0 0 6px; color: var(--est-gold); }
html body .est .est-result__next-text { font-size: 14px !important; color: var(--est-muted); }

/* --------------------------------------------------------------------------
   Category badge, custom project, custom spaces
   -------------------------------------------------------------------------- */
.est-cards--types { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.est-card__badge {
    display: inline-block; margin-block-start: 8px; padding: 3px 9px; border-radius: 999px;
    border: 1px solid var(--est-gold-line); color: var(--est-gold); font-size: 11px; font-weight: 600; letter-spacing: .3px;
    align-self: flex-start;
}
.est-card--custom .est-card__body { border-style: dashed; }
.est-btn--xs { min-height: 36px; padding: 0 14px; font-size: 13px; }
@media (max-width: 767px) { .est-btn--xs { min-height: 44px; } }
.est-link--danger:hover, .est-link--danger:focus-visible { color: var(--est-error); }
.est-inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-block-start: 14px; }
.est-textarea--sm { min-height: 88px; }
.est-field--half { min-width: 0; }
html body .est .est-note--muted { color: var(--est-muted); background: var(--est-panel); border-color: var(--est-line); }

.est-custom__card {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px;
    padding: 18px 20px; border: 1px solid var(--est-gold-line); background: var(--est-gold-soft); border-radius: var(--est-radius-sm);
}
.est-custom__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 260px; }
.est-custom__label { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--est-gold); }
html[lang^="ar"] body .est .est-custom__label, html[lang^="zh"] body .est .est-custom__label, html[lang^="ja"] body .est .est-custom__label, html[lang^="ko"] body .est .est-custom__label { letter-spacing: 0; text-transform: none; }
.est-custom__name { font-size: 18px; color: var(--est-text); overflow-wrap: anywhere; }
.est-custom__desc { font-size: 14px; color: var(--est-muted); overflow-wrap: anywhere; }
.est-custom__card .est-inline-actions { margin: 0; }

.est-cf__list { margin-block-end: 18px; }
html body .est .est-cf__list-title { font-size: 12px !important; letter-spacing: 1.5px; text-transform: uppercase; color: var(--est-gold); margin-block-end: 10px; }
html[lang^="ar"] body .est .est-cf__list-title, html[lang^="zh"] body .est .est-cf__list-title, html[lang^="ja"] body .est .est-cf__list-title, html[lang^="ko"] body .est .est-cf__list-title { letter-spacing: 0; text-transform: none; }
.est-cf__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.est-cf__item {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 18px;
    padding: 14px 16px; border: 1px solid var(--est-gold-line); background: var(--est-gold-soft); border-radius: var(--est-radius-sm);
}
.est-cf__main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 240px; }
.est-cf__name { font-size: 15px; color: var(--est-text); overflow-wrap: anywhere; }
.est-cf__meta { font-size: 13px; color: var(--est-muted); }
.est-cf__notes { font-size: 13px; color: var(--est-dim); font-style: italic; overflow-wrap: anywhere; }
.est-cf__badge { align-self: flex-start; margin-block-start: 4px; font-size: 11px; color: var(--est-gold); border: 1px solid var(--est-gold-line); border-radius: 999px; padding: 2px 8px; }
.est-cf__item .est-inline-actions { margin: 0; }
.est-cf__form { padding: 18px; border: 1px dashed var(--est-line); border-radius: var(--est-radius-sm); background: var(--est-panel); }
html body .est .est-cards__empty { grid-column: 1 / -1; font-size: 13px !important; color: var(--est-dim); padding: 12px 0; }

/* --------------------------------------------------------------------------
   Result: technical review + investment breakdown table
   -------------------------------------------------------------------------- */
.est-review { text-align: center; padding: 28px 18px; border: 1px solid var(--est-gold-line); border-radius: var(--est-radius); background: rgba(0,0,0,.35); margin-block-end: 28px; }
html body .est .est-review__range { font-family: var(--est-title-font); font-size: clamp(22px, 3vw, 30px) !important; color: var(--est-gold); line-height: 1.2 !important; margin-block-end: 10px; }
html body .est .est-review__text { font-size: 15px !important; color: var(--est-muted); max-width: 620px; margin-inline: auto; }

.est-breakdown { margin-block: 8px 28px; }
html body .est .est-breakdown__title { font-size: 16px !important; font-weight: 600; margin: 0 0 6px; color: var(--est-gold); }
html body .est .est-breakdown__hint { font-size: 13px !important; color: var(--est-dim); margin-block-end: 14px; }
.est-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--est-line); border-radius: var(--est-radius-sm); }
.est-table { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.est-table th, .est-table td { padding: 11px 12px; text-align: start; vertical-align: top; border-block-end: 1px solid var(--est-line); overflow-wrap: anywhere; }
.est-table thead th:nth-child(1) { width: 30%; }
.est-table thead th:nth-child(2) { width: 9%; }
.est-table thead th:nth-child(3) { width: 19%; }
.est-table thead th:nth-child(4) { width: 21%; }
.est-table thead th:nth-child(5) { width: 21%; }
.est-table thead th { font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: var(--est-dim); font-weight: 600; background: rgba(255,255,255,.03); }
html[lang^="ar"] body .est .est-table thead th, html[lang^="zh"] body .est .est-table thead th, html[lang^="ja"] body .est .est-table thead th, html[lang^="ko"] body .est .est-table thead th { letter-spacing: 0; text-transform: none; }
.est-table td strong { font-weight: 600; color: var(--est-text); }
.est-table__num { text-align: end !important; white-space: normal; font-variant-numeric: tabular-nums; }
.est-table__notes { display: block; font-size: 12px; color: var(--est-dim); font-style: italic; margin-block-start: 3px; white-space: normal; }
.est-table tbody tr.is-custom td { background: rgba(197,164,126,.05); }
.est-table tfoot th, .est-table tfoot td { border-block-end: 0; border-block-start: 1px solid var(--est-gold-line); color: var(--est-gold); font-weight: 600; font-size: 14px; background: rgba(197,164,126,.06); }
.est-table tfoot th { text-align: start; }

/* Phones: each line becomes a stacked card, no horizontal scrolling */
@media (max-width: 767px) {
    .est-table-wrap { overflow: visible; border: 0; }
    .est-table { min-width: 0; display: block; }
    .est-table thead { display: none; }
    .est-table tbody, .est-table tfoot, .est-table tr { display: block; }
    .est-table tbody tr { border: 1px solid var(--est-line); border-radius: var(--est-radius-sm); padding: 10px 14px 4px; margin-block-end: 10px; background: var(--est-panel); }
    .est-table tbody tr.is-custom { border-color: var(--est-gold-line); background: rgba(197,164,126,.05); }
    .est-table tbody td { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-block-end: 1px solid rgba(255,255,255,.06); white-space: normal; text-align: end !important; }
    .est-table tbody td:last-child { border-block-end: 0; }
    .est-table tbody td::before { content: attr(data-label); flex: 0 0 42%; text-align: start; font-size: 11px; letter-spacing: .6px; text-transform: uppercase; color: var(--est-dim); }
    html[lang^="ar"] body .est .est-table tbody td::before, html[lang^="zh"] body .est .est-table tbody td::before, html[lang^="ja"] body .est .est-table tbody td::before, html[lang^="ko"] body .est .est-table tbody td::before { letter-spacing: 0; text-transform: none; }
    .est-table tbody td:first-child { display: block; text-align: start !important; font-size: 14px; padding-block: 4px 8px; }
    .est-table tbody td:first-child::before { display: none; }
    .est-table tfoot tr { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; border: 1px solid var(--est-gold-line); border-radius: var(--est-radius-sm); background: rgba(197,164,126,.08); }
    .est-table tfoot th, .est-table tfoot td { border: 0; padding: 0; background: transparent; }
    .est-table tfoot td { white-space: normal; }
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */
@keyframes est-fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes est-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .est *, .est *::before, .est *::after { animation: none !important; transition: none !important; }
    .est-card--img:hover img { transform: none; }
}

/* --------------------------------------------------------------------------
   Intro support line + Guide (editorial) + FAQ — translated copy under the wizard
   -------------------------------------------------------------------------- */
html body .est .est-support { font-size: 15px !important; line-height: 1.6 !important; color: var(--est-muted); max-width: 640px; margin: 14px auto 0; }
html body .est .est-intro--hero .est-support { margin-inline: 0; max-width: 620px; }

.est-guide { max-width: 1020px; margin: 72px auto 0; }
.est-guide__block { padding-block: 44px; border-block-start: 1px solid var(--est-line); }
.est-guide__block:first-child { border-block-start: 0; padding-block-start: 0; }
html body .est .est-guide__h2 { font-family: var(--est-title-font); font-size: clamp(26px, 3.2vw, 38px) !important; font-weight: 500; line-height: 1.15 !important; letter-spacing: -0.3px; margin: 0 0 18px; text-wrap: balance; }
html body .est .est-guide__h3 { font-size: 17px !important; font-weight: 600; line-height: 1.35 !important; color: var(--est-gold); margin: 22px 0 8px; }
html body .est .est-guide p { font-size: 15px !important; line-height: 1.7 !important; color: var(--est-muted); margin-block-end: 12px; }
html body .est .est-guide__lead { font-size: 17px !important; color: var(--est-text); max-width: 760px; }
.est-guide__cols { display: grid; grid-template-columns: 1fr; gap: 0 40px; }
@media (min-width: 900px) {
    .est-guide__cols { grid-template-columns: 1fr 1fr; }
    html body .est .est-guide__cols .est-guide__h3:first-child { margin-block-start: 10px; }
}
.est-guide a { color: var(--est-gold); text-decoration: underline; text-underline-offset: 3px; }
.est-guide a:hover, .est-guide a:focus-visible { color: var(--est-text); }
html body .est .est-guide__links { margin-block-start: 18px; font-size: 14px !important; }
.est-guide__links span { margin-inline: 10px; color: var(--est-dim); }
.est-guide__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-block-start: 8px; }
.est-guide__card { padding: 20px 22px; border: 1px solid var(--est-line); border-radius: var(--est-radius-sm); background: var(--est-panel); }
html body .est .est-guide__card .est-guide__h3 { margin-block-start: 0; }
html body .est .est-guide__card p { margin-block-end: 0; font-size: 14px !important; }
html body .est .est-guide__footnote { font-size: 12px !important; color: var(--est-dim); margin-block-start: 18px; }

.est-faq__list { display: grid; gap: 10px; }
.est-faq__item { border: 1px solid var(--est-line); border-radius: var(--est-radius-sm); background: var(--est-panel); overflow: hidden; }
.est-faq__item[open] { border-color: var(--est-gold-line); }
.est-faq__summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; min-height: 56px; cursor: pointer; list-style: none; }
.est-faq__summary::-webkit-details-marker { display: none; }
.est-faq__summary::marker { content: ""; }
.est-faq__summary:focus-visible { outline: 2px solid var(--est-gold); outline-offset: -2px; }
html body .est .est-faq__q { font-size: 16px !important; font-weight: 600; line-height: 1.4 !important; color: var(--est-text); margin: 0; }
.est-faq__icon { flex: 0 0 auto; width: 22px; height: 22px; position: relative; }
.est-faq__icon::before, .est-faq__icon::after { content: ""; position: absolute; top: 50%; inset-inline-start: 4px; width: 14px; height: 2px; margin-top: -1px; background: var(--est-gold); transition: transform .25s var(--est-ease); }
.est-faq__icon::after { transform: rotate(90deg); }
.est-faq__item[open] .est-faq__icon::after { transform: rotate(0deg); }
.est-faq__a { padding: 0 20px 18px; }
html body .est .est-faq__a p { margin: 0; }
@media (max-width: 767px) {
    .est-guide { margin-block-start: 56px; }
    .est-guide__block { padding-block: 32px; }
    .est-faq__summary { padding: 14px 16px; }
    .est-faq__a { padding: 0 16px 16px; }
}
