/* =========================================================================
 * Evalue Mon Bien — styles (mobile-first, RTL-aware)
 * Palette: navy / white / off-white / subtle gold
 * ========================================================================= */
:root {
  --navy: #14284b;
  --navy-2: #1d3768;
  --gold: #c9a45c;
  --gold-2: #b38e45;
  --ink: #1b2437;
  --muted: #5b6578;
  --bg: #ffffff;
  --bg-alt: #f6f4ef;
  --line: #e1ddd2;
  --line-2: #cfc9b8;
  --danger: #b3261e;
  --danger-bg: #fdecea;
  --ok: #1e7a4d;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20,40,75,.06), 0 6px 18px rgba(20,40,75,.07);
  --shadow-hover: 0 2px 4px rgba(20,40,75,.08), 0 12px 28px rgba(20,40,75,.14);
  --font-fr: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-ar: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-fr); font-size: 16px; line-height: 1.6;
  overflow-x: hidden;
}
html[lang="ar"] body, html[lang="ar"] button, html[lang="ar"] input, html[lang="ar"] select, html[lang="ar"] textarea { font-family: var(--font-ar); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.container { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
.container.narrow { max-width: 760px; }
.page-pad { padding-block: 20px 56px; }

.skip-link { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 8px; }

/* ------------------------------------------------------------ Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); min-height: 44px; }
.brand-mark { display: inline-flex; flex: none; }
.brand-mark img { display: block; width: 40px; height: 40px; border-radius: 9px; }
.brand-name { font-weight: 700; font-size: 1.05rem; letter-spacing: .1px; }
.main-nav { display: none; align-items: center; gap: 22px; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 10px 4px; min-height: 44px; display: inline-flex; align-items: center; }
.main-nav a:hover { color: var(--navy-2); }
.header-tools { display: flex; align-items: center; gap: 6px; }
.lang-switch { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; padding: 0 4px; background: #fff; }
.lang-switch button { background: none; border: 0; cursor: pointer; min-width: 44px; min-height: 44px; font-weight: 600; font-size: .95rem; color: var(--muted); border-radius: 999px; }
.lang-switch button[aria-pressed="true"] { color: var(--navy); }
.lang-switch button[aria-pressed="true"] span, .lang-switch button[aria-pressed="true"] { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.lang-sep { color: var(--line-2); }
.menu-toggle { width: 44px; height: 44px; border: 1px solid var(--line-2); background: #fff; border-radius: 10px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; }
.menu-toggle span { width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-open .main-nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; position: absolute; top: 64px; inset-inline: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--shadow); }
.nav-open .main-nav a { border-bottom: 1px solid var(--line); }
@media (min-width: 860px) {
  .main-nav { display: flex; }
  .menu-toggle { display: none; }
}

/* ------------------------------------------------------------ Sections */
.section { padding-block: 44px; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: 1.5rem; line-height: 1.35; color: var(--navy); text-align: center; margin-bottom: 26px; }
html[lang="ar"] .section-title, html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.5; }

/* Property selection: first screen */
.choose { padding-block: 24px 40px; background: linear-gradient(180deg, var(--bg-alt) 0, #fff 100%); }
.choose-title { font-size: 1.45rem; line-height: 1.4; color: var(--navy); text-align: center; }
.choose-sub { color: var(--muted); text-align: center; margin: 6px 0 20px; }
.type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .type-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } .choose-title { font-size: 1.8rem; } }
.type-card {
  position: relative; display: flex; flex-direction: column; text-align: start; padding: 0; cursor: pointer;
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s, border-color .15s; min-height: 44px;
}
.type-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--gold); }
.type-card.is-selected { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(201,164,92,.5); }
.card-media { display: block; position: relative; aspect-ratio: 4 / 3; background: #e9e5da; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.img-missing { visibility: hidden; }
.type-body { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; flex: 1; }
.type-title { font-weight: 700; color: var(--navy); line-height: 1.35; font-size: .98rem; }
.type-title-alt { font-size: .85rem; color: var(--muted); line-height: 1.4; }
.type-choose { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; color: var(--gold-2); font-weight: 700; font-size: .92rem; }
.type-card:hover .type-choose { color: var(--navy); }
.icon-arrow { flex: none; }
/* Arrow is drawn pointing left. "Choose" arrow must point to the reading end; back arrow to the start. */
html[dir="ltr"] .type-choose .icon-arrow { transform: rotate(180deg); }
html[dir="rtl"] .back-link .icon-arrow { transform: rotate(180deg); }
.check-badge { position: absolute; top: 8px; inset-inline-end: 8px; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: none; align-items: center; justify-content: center; }
.type-card.is-selected .check-badge, .img-card input:checked + .img-card-inner .check-badge { display: inline-flex; }

/* Hero (kept, moved below the selection) */
.hero { background: var(--navy); color: #fff; padding-block: 40px; }
.hero-grid { display: grid; gap: 24px; align-items: center; }
.hero h1 { font-size: 1.9rem; line-height: 1.35; margin-bottom: 10px; }
.hero p { color: #d8dfec; margin: 0 auto 22px; max-width: 46ch; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 3px solid rgba(201,164,92,.7); }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 48px; } .hero h1 { font-size: 2.6rem; } .hero { padding-block: 56px; } }

/* Benefits, steps */
.benefits, .steps { display: grid; gap: 16px; }
@media (min-width: 760px) { .benefits, .steps { grid-template-columns: repeat(3, 1fr); } }
.benefit, .step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; box-shadow: var(--shadow); }
.benefit h3, .step h3 { color: var(--navy); font-size: 1.08rem; margin: 10px 0 6px; }
.benefit p, .step p { color: var(--muted); }
.icon-circle { width: 52px; height: 52px; border-radius: 50%; background: rgba(201,164,92,.18); color: var(--gold-2); display: inline-flex; align-items: center; justify-content: center; }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--gold); }
.note-box { margin: 22px auto 0; max-width: 760px; background: #fff8e8; border: 1px solid #ecd9a8; border-radius: var(--radius); padding: 14px 16px; color: #4b3d17; }
.center-cta { text-align: center; margin-top: 24px; }

/* Why-evaluate + method */
.why-list { list-style: none; padding: 0; margin: 0 auto; max-width: 820px; display: grid; gap: 14px; }
.why-item { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.why-num { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: var(--navy); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.why-item h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: 4px; }
.why-item p { color: var(--muted); }
.method-lead { background: #fff; border-inline-start: 4px solid var(--gold); padding: 14px 16px; border-radius: 10px; margin-bottom: 16px; box-shadow: var(--shadow); }
.method-list { margin: 0; padding-inline-start: 22px; display: grid; gap: 10px; color: var(--ink); }
.method-list li::marker { color: var(--gold-2); }

/* ------------------------------------------------------------ Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background .15s, transform .1s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #d6b36c; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line-2); }
.btn-messenger { background: #0a7cff; color: #fff; }
.btn-messenger:hover { background: #0866d6; }
.btn-lg { min-height: 54px; padding-inline: 30px; font-size: 1.05rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn.is-loading { opacity: .75; cursor: progress; }
.btn.is-done { background: var(--ok); color: #fff; }

/* ------------------------------------------------------------ Form */
.form-wrap { max-width: 760px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 8px 0; min-height: 44px; color: var(--navy); font-weight: 600; cursor: pointer; }
.type-banner { display: flex; align-items: center; gap: 12px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; margin: 6px 0 14px; }
.type-banner-img { flex: none; width: 64px; height: 48px; border-radius: 8px; overflow: hidden; }
.type-banner-img img { width: 100%; height: 100%; object-fit: cover; }
.type-banner-text { flex: 1; color: var(--navy); font-size: 1.05rem; line-height: 1.35; }
.type-banner-change { min-height: 44px; display: inline-flex; align-items: center; font-size: .9rem; color: var(--navy); font-weight: 600; text-align: center; }

.progress { margin-bottom: 14px; position: sticky; top: 64px; z-index: 5; background: rgba(255,255,255,.96); padding: 8px 0; }
.progress-label { font-size: .88rem; color: var(--muted); margin-bottom: 6px; }
.progress-bar { height: 8px; background: #ece8dc; border-radius: 999px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 999px; transition: width .25s; }

.form { display: grid; gap: 18px; }
.form-section { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.form-section-title { color: var(--navy); font-size: 1.2rem; padding-bottom: 8px; border-bottom: 2px solid var(--gold); }
.form-section-help { color: var(--muted); font-size: .94rem; margin-top: -8px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field-nested { margin-inline-start: 10px; padding-inline-start: 12px; border-inline-start: 3px solid rgba(201,164,92,.6); }
.field-label { font-weight: 600; color: var(--ink); padding: 0; line-height: 1.5; }
.optional { font-weight: 400; color: var(--muted); font-size: .9rem; }
.field-help, .field-hint { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.field-hint { color: #8a6a1f; }
.field-error { color: var(--danger); font-size: .92rem; font-weight: 600; }
.has-error .input, .has-error .chip span, .has-error .opt-card-inner, .has-error .img-card-inner { border-color: var(--danger); }
.has-error .field-label { color: var(--danger); }
.is-locked { opacity: .6; }

.input { width: 100%; min-height: 48px; padding: 10px 14px; font-size: 16px; background: #fff; border: 1.5px solid var(--line-2); border-radius: 10px; }
.input:focus { border-color: var(--navy); outline: 3px solid rgba(201,164,92,.5); outline-offset: 0; }
textarea.input { resize: vertical; min-height: 110px; }
select.input { appearance: auto; }
.input-affix { position: relative; }
.input-affix .input { padding-inline-end: 52px; }
.affix { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
input[disabled] { background: #f1efe8; }
.input[dir], .input-affix .input { text-align: start; }

/* chips (yes/no, short options) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input, .opt-card input, .img-card input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; justify-content: center; min-width: 84px; min-height: 48px; padding: 8px 18px; border: 1.5px solid var(--line-2); border-radius: 999px; background: #fff; cursor: pointer; font-weight: 600; transition: background .12s, border-color .12s; }
.chip:hover span { border-color: var(--gold); }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip input:focus-visible + span, .opt-card input:focus-visible + .opt-card-inner, .img-card input:focus-visible + .img-card-inner { outline: 3px solid var(--gold); outline-offset: 2px; }

/* option cards (text + description) */
.opt-cards { display: grid; gap: 10px; }
.opt-card { display: block; cursor: pointer; }
.opt-card-inner { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; min-height: 56px; transition: border-color .12s, background .12s; }
.opt-card:hover .opt-card-inner { border-color: var(--gold); }
.radio-dot { flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--line-2); background: #fff; position: relative; }
.opt-card input:checked + .opt-card-inner { border-color: var(--navy); background: #f3f6fc; }
.opt-card input:checked + .opt-card-inner .radio-dot { border-color: var(--navy); }
.opt-card input:checked + .opt-card-inner .radio-dot::after { content: ''; position: absolute; inset: 3px; background: var(--navy); border-radius: 50%; }
.opt-card-text { display: grid; gap: 2px; }
.opt-card-text strong { color: var(--navy); }
.opt-card-text small { color: var(--muted); font-size: .9rem; line-height: 1.5; }

/* image cards (location zone, condition) */
.img-cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .img-cards { grid-template-columns: repeat(2, 1fr); } }
/* Condition: always 2 columns × 2 rows, left→right in BOTH languages
 * (left column: Économique / Très dégradé ; right column: Amélioré / Haut de gamme).
 * The grid itself is LTR; the text inside each card keeps the page direction. */
.img-cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; direction: ltr; }
.img-cards-2 > .img-card { direction: initial; }
html[dir="rtl"] .img-cards-2 > .img-card { direction: rtl; }
html[dir="ltr"] .img-cards-2 > .img-card { direction: ltr; }
.img-card { display: block; cursor: pointer; }
.img-card-inner { position: relative; display: flex; flex-direction: column; height: 100%; border: 2px solid var(--line-2); border-radius: 12px; overflow: hidden; background: #fff; transition: border-color .12s, box-shadow .12s; }
.img-card:hover .img-card-inner { border-color: var(--gold); }
.img-card input:checked + .img-card-inner { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(201,164,92,.55); }
.img-card-body { display: grid; gap: 3px; padding: 10px 10px 12px; }
.img-card-body strong { color: var(--navy); font-size: .98rem; line-height: 1.35; }
.img-card-body small { color: var(--muted); font-size: .85rem; line-height: 1.5; }
.illus-badge { position: absolute; bottom: 6px; inset-inline-start: 6px; background: rgba(20,40,75,.78); color: #fff; font-size: .72rem; padding: 2px 8px; border-radius: 999px; }
@media (max-width: 420px) { .img-card-body small { font-size: .8rem; } .img-card-body strong { font-size: .92rem; } }

/* searchable combobox */
.combo { position: relative; }
.combo-input { padding-inline-end: 40px; }
.combo-caret { position: absolute; inset-inline-end: 14px; top: 50%; width: 9px; height: 9px; border-inline-end: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.combo-list { position: absolute; z-index: 20; inset-inline: 0; top: calc(100% + 4px); max-height: 260px; overflow-y: auto; margin: 0; padding: 4px; list-style: none; background: #fff; border: 1.5px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow-hover); }
.combo-list li { padding: 10px 12px; border-radius: 8px; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.combo-list li.is-active, .combo-list li:hover { background: #f3f6fc; }
.combo-list li.is-selected { font-weight: 700; color: var(--navy); }
.combo-empty { padding: 12px; color: var(--muted); }

.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: var(--danger-bg); color: var(--danger); border: 1px solid #f3b8b3; border-radius: 10px; padding: 12px 14px; font-weight: 600; }
.form-actions { display: flex; justify-content: center; padding-top: 4px; }
.form-actions .btn { width: 100%; max-width: 420px; }

/* ------------------------------------------------------------ Confirmation */
.done-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 28px 18px; text-align: center; }
.success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.done-title { color: var(--navy); font-size: 1.5rem; line-height: 1.4; margin: 14px 0 18px; }
.done-label { color: var(--muted); }
.file-number { display: inline-block; margin: 8px 0 18px; padding: 12px 22px; font-size: 1.7rem; font-weight: 700; letter-spacing: 2px; font-family: 'Inter', ui-monospace, monospace; color: var(--navy); background: var(--bg-alt); border: 2px dashed var(--gold); border-radius: 12px; user-select: all; }
.done-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.done-section { text-align: start; margin-top: 22px; padding: 16px; background: var(--bg-alt); border-radius: 12px; border-inline-start: 4px solid var(--gold); display: grid; gap: 8px; }
.done-section h2 { color: var(--navy); font-size: 1.12rem; }
.done-link-row { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.inline-link { font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.muted-note { color: var(--muted); font-size: .92rem; margin-top: 10px; }
.done-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 22px; }
.done-links a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; }

.toast { position: fixed; bottom: 20px; inset-inline: 16px; margin-inline: auto; max-width: 360px; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 999px; text-align: center; opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .2s, transform .2s; z-index: 200; }
.toast.show { opacity: 1; transform: none; }

/* ------------------------------------------------------------ Footer */
.site-footer { background: var(--navy); color: #d8dfec; padding-block: 28px; }
.footer-inner { display: grid; gap: 18px; }
.footer-brand { display: grid; gap: 2px; }
.footer-brand strong { color: #fff; font-size: 1.1rem; }
.footer-contact-title { color: var(--gold); font-weight: 700; margin-bottom: 4px; }
.footer-copy { font-size: .85rem; color: #9fb0cf; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1fr auto; align-items: start; } .footer-copy { grid-column: 1 / -1; } }

@media (min-width: 640px) {
  .form-section { padding: 22px 22px; }
  .done-card { padding: 36px 32px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* The second-language name lines up with the main title (not with its own script direction) */
html[dir="ltr"] .type-title-alt { text-align: left; }
html[dir="rtl"] .type-title-alt { text-align: right; }

/* Method / remote-evaluation text blocks, 4-step process */
.text-card { background: #fff; border: 1px solid var(--line); border-inline-start: 4px solid var(--gold); border-radius: var(--radius); padding: 18px 18px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.text-card p { color: var(--ink); line-height: 1.8; }
.steps-4 { list-style: none; padding: 0; margin: 0; grid-template-columns: 1fr; counter-reset: none; }
@media (min-width: 600px) { .steps-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps-4 { grid-template-columns: repeat(4, 1fr); } }
.steps-4 .step { text-align: start; }
.steps-4 .step-num { margin-bottom: 4px; }

/* ------------------------------------------------------------ Footer contact (brand icons) */
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.contact-link { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 18px 8px 10px; padding-inline: 10px 18px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.2); color: #fff; text-decoration: none; transition: border-color .15s, background .15s, transform .1s; }
.contact-link:hover { border-color: var(--gold); background: rgba(255,255,255,.12); }
.contact-link:active { transform: translateY(1px); }
.contact-icon { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; }
.contact-icon svg { display: block; }
.contact-text { display: grid; line-height: 1.3; min-width: 0; }
.contact-label { font-weight: 700; }
.contact-value { font-size: .85rem; color: #c8d3ea; overflow-wrap: anywhere; }
.site-footer .footer-contact-title { margin-bottom: 10px; }
@media (max-width: 520px) { .contact-list { flex-direction: column; } .contact-link { width: 100%; } }

/* ------------------------------------------------------------ Grouped yes/no questions in ONE row (water / electricity / gas) */
.field-group { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.field-cell { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; padding: 10px; gap: 8px; }
.field-cell .field-label { font-size: .95rem; }
.field-cell .chips { gap: 6px; }
.field-cell .chip span { min-width: 0; padding: 8px 12px; flex: 1; }
.field-cell .chip { flex: 1; }
@media (max-width: 340px) { .field-row { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ Confirmation: customer, file number, Messenger handoff */
.done-info { margin: 0 0 20px; display: grid; gap: 12px; justify-items: center; }
.done-info > div { display: grid; gap: 2px; justify-items: center; }
.done-info dt { color: var(--muted); font-size: .95rem; }
.done-info dd { margin: 0; font-size: 1.25rem; font-weight: 700; color: var(--navy); overflow-wrap: anywhere; }
.done-info .file-number { margin: 4px 0 0; }
.done-messenger { display: grid; gap: 10px; justify-items: center; margin: 4px 0 18px; }
.done-messenger .btn-messenger { width: 100%; max-width: 420px; }
.done-hint { color: var(--muted); font-size: .95rem; max-width: 46ch; }
.msg-box { width: 100%; max-width: 460px; text-align: start; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px; }
.msg-box summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; color: var(--navy); }
.msg-preview { white-space: pre-wrap; margin: 4px 0 12px; font: inherit; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; line-height: 1.7; }
.msg-box .btn { margin-bottom: 12px; min-height: 44px; }
.done-photos { margin: 6px auto 20px; max-width: 520px; background: #fff8e8; border: 1px solid #ecd9a8; border-radius: var(--radius); padding: 12px 16px; color: #4b3d17; }

/* Hero: centred headline, centred house image, call to action */
.hero-center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-center .hero-media { width: 100%; max-width: 640px; margin: 0 auto 26px; }
.hero-center .hero-media img { aspect-ratio: 16 / 10; box-shadow: 0 10px 30px rgba(0,0,0,.28); }
/* Footer contact: round icon buttons only */
.contact-list { gap: 14px; }
.contact-link { width: 56px; height: 56px; min-height: 56px; padding: 0; justify-content: center; border-radius: 50%; }
.contact-link .contact-icon { width: 44px; height: 44px; }
@media (max-width: 520px) { .contact-list { flex-direction: row; } .contact-link { width: 56px; } }
