/* =========================================================
   UK ONLINE CONSULTATION PAGE
   Builds on the main site's style.css (same colours and tokens).
   ========================================================= */

.uk-page .site-header { position: sticky; }

/* ---------- Hero ---------- */
.uk-hero {
  position: relative;
  background:
    radial-gradient(900px 460px at 80% -15%, rgba(22,163,163,0.14), transparent 62%),
    radial-gradient(700px 420px at -10% 110%, rgba(14,107,168,0.10), transparent 62%),
    linear-gradient(180deg, var(--blue-50) 0%, #fff 88%);
  padding: 64px 0 72px;
  overflow: hidden;
}
.uk-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(14,107,168,0.14) 1px, transparent 1.5px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.4), transparent 55%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.4), transparent 55%);
  pointer-events: none;
}
.uk-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 52px;
  align-items: start;
}
.uk-flagline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--blue-200);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--blue-800);
  box-shadow: var(--sh-sm);
  margin-bottom: 18px;
}
.uk-flag { font-size: 1.15rem; line-height: 1; }
.uk-hero h1 { text-wrap: balance; }
.uk-hero .lead { color: var(--ink-soft); font-size: 1.14rem; margin: 18px 0 26px; max-width: 540px; }
.hero-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fdeced;
  border: 1px solid #f5c2c7;
  border-inline-start: 4px solid #d92d20;
  border-radius: var(--r-sm);
  padding: 13px 16px;
  margin-top: 20px;
  max-width: 540px;
  font-size: 0.93rem;
  line-height: 1.6;
  color: #7a2018;
  flex-wrap: wrap;
}
.hero-warning strong { color: #b42318; display: block; width: 100%; }

.uk-points { list-style: none; display: grid; gap: 12px; margin-top: 30px; }
.uk-points li { display: flex; align-items: flex-start; gap: 11px; font-weight: 600; font-size: 1rem; }
.uk-points li::before {
  content: "✓";
  width: 25px; height: 25px;
  border-radius: 50%;
  background: var(--grad-soft);
  color: var(--teal-600);
  display: grid; place-items: center;
  font-size: 0.82rem;
  flex-shrink: 0;
  margin-top: 3px;
}

/* ---------- Doctor profile card ---------- */
.doctor-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  padding: 26px 26px 24px;
  position: sticky;
  top: 96px;
}
.doctor-photo {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(160deg, var(--blue-100), #d6eee2);
  margin-bottom: 18px;
}
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.doctor-name { font-size: 1.24rem; margin-bottom: 4px; }
.doctor-role { color: var(--teal-600); font-weight: 700; font-size: 0.94rem; line-height: 1.5; }
.doctor-block { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.doctor-block h3 {
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--blue-700);
  margin-bottom: 12px;
}
.doctor-list { list-style: none; display: grid; gap: 9px; }
.doctor-list li {
  position: relative;
  padding-inline-start: 20px;
  font-size: 0.93rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.doctor-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.62em;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--grad);
}
.doctor-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.doctor-tags li {
  background: var(--blue-50);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-800);
}
.doctor-meta { display: grid; gap: 14px; }
.dm-label {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.doctor-meta strong { color: var(--blue-900); font-size: 0.95rem; }

/* ---------- How it works ---------- */
.steps-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 22px;
  position: relative;
  transition: transform .22s ease, box-shadow .22s ease;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.step-num {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 14px;
}
.step-card h3 { margin-bottom: 6px; font-size: 1.04rem; }
.step-card p { color: var(--ink-soft); font-size: 0.94rem; }

/* ---------- Form shell ---------- */
.form-shell { max-width: 880px; }

.wizard-progress {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 30px;
}
.wizard-progress li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  position: relative;
  padding-top: 6px;
}
.wizard-progress li span {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line);
  color: var(--ink-soft);
  font-weight: 800;
  font-size: 0.95rem;
  transition: all .25s ease;
}
.wizard-progress li em {
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.4;
}
.wizard-progress li.active span { background: var(--grad); border-color: transparent; color: #fff; box-shadow: var(--sh-brand); }
.wizard-progress li.active em { color: var(--blue-900); }
.wizard-progress li.done span { background: var(--blue-100); border-color: var(--blue-200); color: var(--blue-700); }
.wizard-progress li::after {
  content: "";
  position: absolute;
  top: 25px;
  inset-inline-start: calc(50% + 26px);
  width: calc(100% - 52px);
  height: 2px;
  background: var(--line);
}
.wizard-progress li:last-child::after { display: none; }
.wizard-progress li.done::after { background: var(--blue-200); }

.uk-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh);
  padding: 32px 30px;
}
.wizard-step { display: none; border: 0; }
.wizard-step.is-active { display: block; animation: stepIn .3s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.wizard-step legend {
  font-weight: 800;
  color: var(--blue-900);
  font-size: 1.1rem;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
  width: 100%;
}
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.uk-form .form-row { margin-bottom: 16px; }
.uk-form input.invalid,
.uk-form select.invalid,
.uk-form textarea.invalid {
  border-color: #d9534f;
  box-shadow: 0 0 0 4px rgba(217,83,79,.12);
}
.field-group-title {
  font-weight: 800;
  color: var(--blue-900);
  margin: 24px 0 6px;
  font-size: 1rem;
}
.field-hint { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 14px; }

/* Honeypot — hidden from people, still fillable by bots.
   Must NOT use left:-9999px: in right-to-left pages that adds
   10,000px of horizontal scroll to the whole document. */
.hp-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ---------- Checkboxes ---------- */
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-bottom: 8px; }
.check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  background: var(--blue-50);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 15px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  transition: border-color .18s, background .18s;
}
.check:hover { border-color: var(--blue-200); background: #fff; }
.check input {
  width: 20px; height: 20px;
  accent-color: var(--blue-700);
  flex-shrink: 0;
  margin-top: 1px;
  cursor: pointer;
}
.check.consent { margin-bottom: 10px; font-weight: 500; line-height: 1.6; }

/* ---------- Dropzone ---------- */
.dropzone {
  border: 2px dashed var(--blue-200);
  border-radius: var(--r-lg);
  background: var(--blue-50);
  padding: 34px 22px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
  color: var(--blue-700);
}
.dropzone:hover, .dropzone.is-over { border-color: var(--blue-700); background: #fff; transform: translateY(-2px); }
.dropzone svg { width: 40px; height: 40px; margin-bottom: 10px; }
.dropzone p { margin: 0; color: var(--blue-900); font-size: 1rem; }
.dropzone .dz-sub { color: var(--ink-soft); font-size: 0.88rem; margin-top: 5px; }

.file-list { list-style: none; display: grid; gap: 9px; margin-top: 14px; }
.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 11px 14px;
  font-size: 0.92rem;
}
.file-item > svg { width: 21px; height: 21px; color: var(--blue-700); flex-shrink: 0; }
.file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.file-size { color: var(--ink-soft); font-size: 0.85rem; flex-shrink: 0; }
.file-remove {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background .18s, color .18s;
}
.file-remove:hover { background: #fdeced; color: #a4272f; }
.file-remove svg { width: 15px; height: 15px; }

/* ---------- Notices ---------- */
.notice {
  border-radius: var(--r-sm);
  padding: 15px 18px;
  font-size: 0.94rem;
  line-height: 1.65;
  margin-bottom: 20px;
}
.notice-warning { background: #fff6e6; border: 1px solid #f2d9a8; color: #7a5410; }
.notice-warning strong { display: block; margin-bottom: 3px; color: #64430b; }
.notice-info { background: var(--blue-50); border: 1px solid var(--line); color: var(--ink-soft); margin-top: 18px; }

.uk-form .form-error { margin-top: 18px; }

/* ---------- Wizard navigation ---------- */
.wizard-nav {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}
.btn-send svg { width: 19px; height: 19px; }
[dir="rtl"] .btn-send svg { transform: scaleX(-1); }

/* ---------- Success ---------- */
.success-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh);
  padding: 46px 34px;
  text-align: center;
}
.success-icon {
  width: 74px; height: 74px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1ebe5d, #25d366);
  color: #fff;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  box-shadow: 0 12px 30px rgba(37,211,102,.35);
}
.success-icon svg { width: 36px; height: 36px; }
.success-panel h2 { margin-bottom: 14px; }
.success-panel p { color: var(--ink-soft); max-width: 520px; margin: 0 auto 12px; }
.ref-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--blue-50);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 22px;
  margin-bottom: 20px !important;
}
.ref-line strong { color: var(--blue-900); font-size: 1.08rem; letter-spacing: .04em; }
.ok-note { font-size: 0.9rem; margin-bottom: 24px !important; }

/* ---------- Footer ---------- */
.uk-footer { text-align: center; padding: 38px 0; }
.uk-footer strong { color: #fff; font-size: 1.05rem; }
.uk-footer .footer-note { margin-top: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .uk-hero-inner { grid-template-columns: 1fr; gap: 38px; }
  .doctor-card { position: static; max-width: 560px; }
  .wizard-progress li em { display: none; }
  .wizard-progress { grid-template-columns: repeat(4, 1fr); max-width: 320px; margin-inline: auto; }
}
@media (max-width: 620px) {
  .uk-hero { padding: 40px 0 52px; }
  .uk-form { padding: 24px 18px; }
  .wizard-nav { flex-direction: column-reverse; }
  .wizard-nav .btn { width: 100%; }
  .success-panel { padding: 34px 20px; }
  .check-grid { grid-template-columns: 1fr; }
}
