/* ============================================================
   Hamali.BG — "Безплатен оглед" multi-step lead wizard
   Conversational, one-question-per-screen, premium feel.
   ============================================================ */

.ogled-section { position: relative; background:
  linear-gradient(180deg, var(--navy-700) 0%, var(--navy-700) 58%, transparent 58%); }
.ogled-shell {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-3); overflow: hidden;
  display: grid; grid-template-columns: .82fr 1.18fr; min-height: 540px;
}
/* Left rail — reassurance / why */
.ogled-aside {
  background: linear-gradient(165deg, var(--navy-700), var(--navy-900));
  color: var(--muted-light); padding: 2.2rem 2rem; position: relative;
}
.ogled-aside h2 { color: #fff; font-size: var(--fs-700); margin-bottom: .7rem; }
.ogled-aside p { font-size: var(--fs-300); color: #C6D2DD; }
.ogled-aside .eyebrow { color: var(--amber); }
.ogled-points { display: grid; gap: 1rem; margin-top: 1.8rem; }
.ogled-points li { display: flex; gap: .7rem; align-items: flex-start; font-size: var(--fs-300); color: #DDE6EE; }
.ogled-points svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--amber); margin-top: 1px; }
.ogled-aside__foot { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line-dark); font-size: var(--fs-300); }
.ogled-aside__foot a { color: #fff; font-family: var(--font-head); font-weight: 700; }

/* Right — the wizard */
.ogled-main { padding: 1.8rem 2rem 1.6rem; display: flex; flex-direction: column; }

/* Progress */
.sm-progress { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; margin-bottom: .4rem; }
.sm-progress::after { content: ""; display: block; height: 100%; width: var(--p, 20%); background: linear-gradient(90deg, var(--amber), var(--amber-600)); border-radius: 999px; transition: width .3s var(--ease); }
.sm-meta { display: flex; justify-content: space-between; font-size: var(--fs-200); color: var(--ink-soft); margin-bottom: 1.3rem; font-weight: 600; }
.sm-meta .sm-stepname { color: var(--navy-700); }

/* Steps */
.sm-steps { flex: 1; position: relative; }
.sm-step { animation: smslide .28s var(--ease); }
.sm-step[hidden] { display: none; }
@keyframes smslide { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.sm-step h3 { font-size: var(--fs-600); color: var(--navy-700); margin-bottom: .35rem; }
.sm-step .sm-hint { font-size: var(--fs-300); color: var(--ink-soft); margin-bottom: 1.2rem; }

/* Choice cards */
.sm-cards { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.sm-cards--2 { grid-template-columns: 1fr 1fr; }
.sm-cards--list { grid-template-columns: 1fr; }
.sm-card {
  display: flex; align-items: center; gap: .8rem; text-align: left;
  padding: 1rem 1.1rem; min-height: 56px; border-radius: var(--r-md);
  background: var(--paper-2); border: 2px solid var(--line); cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: var(--fs-400); color: var(--ink);
  transition: border-color .15s var(--ease), background .15s var(--ease), transform .12s var(--ease), box-shadow .15s var(--ease);
}
.sm-card:hover { border-color: var(--navy); transform: translateY(-2px); }
.sm-card .sm-card__ico { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center; background: rgba(20,58,90,.08); color: var(--navy); }
.sm-card .sm-card__ico svg { width: 22px; height: 22px; }
.sm-card .sm-card__txt small { display: block; font-weight: 500; font-size: var(--fs-200); color: var(--ink-soft); }
.sm-card[aria-pressed="true"] { border-color: var(--amber); background: #FFF6EE; box-shadow: 0 0 0 4px rgba(240,136,62,.14); }
.sm-card[aria-pressed="true"] .sm-card__ico { background: var(--amber); color: #fff; }
.sm-card .sm-check { margin-left: auto; width: 22px; height: 22px; opacity: 0; color: var(--amber); transition: opacity .15s; }
.sm-card[aria-pressed="true"] .sm-check { opacity: 1; }

/* Inputs */
.sm-field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.sm-field > label { font-size: var(--fs-300); font-weight: 700; color: var(--navy-700); }
.sm-field .req { color: var(--amber-600); }
.sm-field input, .sm-field textarea, .sm-field select {
  width: 100%; padding: .85rem 1rem; border-radius: var(--r-sm);
  border: 2px solid var(--line); background: var(--paper-2); font-size: var(--fs-400);
  transition: border-color .15s, background .15s;
}
.sm-field input:focus, .sm-field textarea:focus, .sm-field select:focus { border-color: var(--navy); background: #fff; }
.sm-field input:focus-visible, .sm-field textarea:focus-visible, .sm-field select:focus-visible { outline: 3px solid var(--amber); outline-offset: 1px; }
.sm-field--invalid input { border-color: #D64545; background: #FEF4F4; }
.sm-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.sm-field .sm-err { font-size: var(--fs-200); color: #C0392B; min-height: 0; }
.sm-twocol { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
@media (max-width: 480px) { .sm-row, .sm-twocol { grid-template-columns: 1fr; } }

/* Range / sqm pill input */
.sm-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.sm-pill { padding: .6rem 1rem; border-radius: var(--r-pill); border: 2px solid var(--line); background: var(--paper-2); cursor: pointer; font-weight: 600; font-size: var(--fs-300); transition: all .15s; }
.sm-pill[aria-pressed="true"] { border-color: var(--amber); background: #FFF6EE; color: var(--amber-600); }

/* Multi-select note */
.sm-multi-note { font-size: var(--fs-200); color: var(--ink-soft); margin-top: .8rem; }

/* Upsell card — visually distinct in the services step */
.sm-card--upsell { border-color: var(--amber); background: #FFFBF6; }
.sm-card--upsell .sm-card__ico { background: var(--amber); color: #fff; }
.sm-card--upsell[aria-pressed="true"] { background: #FFF1E2; }

/* Urgency pills sitting inside a field (contact step) */
.sm-field .sm-pills { margin-top: .15rem; }

/* File attach (room videos/photos) */
.sm-files { margin-top: 1.3rem; padding: 1.1rem 1.2rem; border: 1px dashed #cdbfa6; border-radius: var(--r-md); background: var(--paper-2); }
.sm-files__label { display: block; font-size: var(--fs-300); font-weight: 700; color: var(--navy-700); }
.sm-files .sm-hint { margin: .3rem 0 0; }
.sm-file { margin-top: .6rem; }
.sm-file input[type="file"] { width: 100%; font-size: var(--fs-300); padding: .55rem; border: 2px dashed var(--line); border-radius: var(--r-sm); background: #fff; cursor: pointer; }
.sm-file input[type="file"]::file-selector-button { font-family: var(--font-head); font-weight: 700; border: 0; border-radius: var(--r-pill); padding: .5rem .9rem; margin-right: .8rem; background: var(--navy-700); color: #fff; cursor: pointer; }
.sm-addfile { margin-top: .7rem; display: inline-flex; align-items: center; gap: .4rem; background: none; border: 0; color: var(--amber-ink); font-family: var(--font-head); font-weight: 700; font-size: var(--fs-300); cursor: pointer; padding: .3rem 0; }
.sm-addfile:hover { color: var(--amber-600); }

/* Nav */
.sm-nav { display: flex; align-items: center; gap: .8rem; margin-top: 1.5rem; }
.sm-back { background: none; border: 0; color: var(--ink-soft); font-weight: 700; font-family: var(--font-head); cursor: pointer; padding: .6rem .2rem; display: inline-flex; align-items: center; gap: .35rem; }
.sm-back:hover { color: var(--navy-700); }
.sm-nav .sm-next, .sm-nav .sm-submit { margin-left: auto; }
.sm-status { font-size: var(--fs-300); color: #C0392B; margin-top: .8rem; min-height: 1.2em; text-align: center; }
.sm-reassure { display: flex; align-items: center; justify-content: center; gap: .45rem; font-size: var(--fs-200); color: var(--ink-soft); margin-top: .9rem; }
.sm-reassure svg { width: 16px; height: 16px; color: var(--green); }

/* Honeypot */
.sm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Summary chips (carry answers along) */
.sm-summary { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.sm-chip { font-size: var(--fs-200); background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-pill); padding: .3rem .7rem; color: var(--ink-soft); }
.sm-chip b { color: var(--navy-700); font-weight: 700; }

/* Success */
.sm-done { text-align: center; padding: 2rem 1rem; }
.sm-done__ico { width: 72px; height: 72px; border-radius: 50%; background: rgba(31,157,107,.12); color: var(--green); display: grid; place-items: center; margin: 0 auto 1.2rem; }
.sm-done h3 { font-size: var(--fs-700); }
.sm-done p { color: var(--ink-soft); max-width: 40ch; margin: .6rem auto 0; }

@media (max-width: 860px) {
  .ogled-section { background: var(--navy-700); }
  .ogled-shell { grid-template-columns: 1fr; min-height: 0; }
  .ogled-aside { padding: 1.6rem 1.4rem; }
  .ogled-points { grid-template-columns: 1fr 1fr; }
  .ogled-aside__foot { display: none; }
}
@media (max-width: 520px) { .ogled-points { grid-template-columns: 1fr; } .ogled-main { padding: 1.4rem 1.2rem; } }

@media (prefers-reduced-motion: reduce) {
  .sm-step { animation: none; }
  .sm-progress::after { transition: none; }
  .sm-card, .sm-pill { transition: none; }
}
