/* ============================================================
   Consultation Form — Inline multi-step hair analysis
   Reuses smart-form design tokens
   ============================================================ */

/* --- Section --- */
.cf-section {
  padding: 90px 0;
  background: linear-gradient(160deg, #e8f6fa 0%, #f0fafb 30%, #f7f8fa 100%);
  position: relative;
  overflow: hidden;
}
/* Soft decorative blob */
.cf-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,165,220,.08) 0%, transparent 70%);
  top: -200px;
  left: -100px;
  pointer-events: none;
}
.cf-section::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(136,234,255,.06) 0%, transparent 70%);
  bottom: -150px;
  right: -100px;
  pointer-events: none;
}

/* --- Unified shell (one card, two sides) --- */
.cf-shell {
  display: flex;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 12px 48px rgba(57,82,99,.1);
  overflow: hidden;
  position: relative;
  z-index: 1;
  max-width: 1060px;
  margin: 0 auto;
}

/* --- Left info panel --- */
.cf-info {
  flex: 1;
  min-width: 0;
  padding: 44px 40px;
  background: linear-gradient(160deg, #eaf5fa 0%, #f2f9fc 100%);
  border-right: 1px solid rgba(59,165,220,.08);
}
.cf-info__title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 14px;
  color: var(--sf-text, #1a1c1e);
}
.cf-info__subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: var(--sf-muted, #8d99a4);
  margin: 0 0 32px;
  max-width: 420px;
}

/* Icon strip (mobile only) */
.cf-info__icons {
  display: none;
}

/* Features list */
.cf-info__features {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 32px;
  background: rgba(255,255,255,.6);
  border-radius: 14px;
  padding: 6px;
}
.cf-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  transition: background .2s;
}
.cf-feature:hover {
  background: rgba(255,255,255,.8);
}
.cf-feature__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(59,165,220,.08);
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--sf-primary, #3BA5DC);
}
.cf-feature__text {
  font-size: 15px;
  font-weight: 500;
  color: var(--sf-text, #1a1c1e);
}

/* Trust badge */
.cf-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(59,165,220,.06);
  border: 1px solid rgba(59,165,220,.12);
  border-radius: 12px;
  margin-bottom: 8px;
}
.cf-trust__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59,165,220,.1);
  border-radius: 10px;
  color: var(--sf-primary, #3BA5DC);
}
.cf-trust__text {
  font-size: 13px;
  font-weight: 500;
  color: var(--sf-text, #1a1c1e);
  line-height: 1.4;
}

/* Stats */
.cf-info__stats {
  display: flex;
  gap: 0;
}
.cf-stat {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: rgba(255,255,255,.6);
  border-radius: 14px;
}
.cf-stat:first-child {
  border-radius: 14px 0 0 14px;
  border-right: 1px solid rgba(59,165,220,.08);
}
.cf-stat:last-child {
  border-radius: 0 14px 14px 0;
}
.cf-stat__number {
  font-size: 26px;
  font-weight: 800;
  color: var(--sf-primary, #3BA5DC);
  line-height: 1;
}
.cf-stat__detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cf-stat__label {
  font-size: 12px;
  color: var(--sf-muted, #8d99a4);
  text-transform: uppercase;
  letter-spacing: .4px;
  line-height: 1.2;
}
.cf-stat__stars {
  display: flex;
  gap: 1px;
  color: #f5a623;
}

/* --- Card (right side of shell) --- */
.cf-card {
  position: relative;
  width: 480px;
  flex-shrink: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 480px;
}

/* --- Header --- */
.cf-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  flex-shrink: 0;
}
.cf-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  border-radius: 50%;
  color: var(--sf-muted, #8d99a4);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s, color .2s;
  padding: 0;
}
.cf-back:hover {
  background: var(--sf-bg, #f7f8fa);
  color: var(--sf-text, #1a1c1e);
}
.cf-back[hidden] { display: none; }

/* --- Progress bar --- */
.cf-progress-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.cf-progress {
  width: 100%;
  height: 4px;
  background: var(--sf-bg, #f7f8fa);
  border-radius: 2px;
  overflow: hidden;
}
.cf-progress__fill {
  height: 100%;
  width: 0%;
  background: var(--sf-primary, #3BA5DC);
  border-radius: 2px;
  transition: width .4s cubic-bezier(.4, 0, .2, 1);
}
.cf-step-counter {
  font-size: 12px;
  color: var(--sf-muted, #8d99a4);
  text-align: center;
  letter-spacing: .3px;
}

/* --- Steps container --- */
.cf-steps {
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
  min-height: 380px;
}

/* --- Single step --- */
.cf-step {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  padding: 20px 28px 28px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  transition: transform .35s cubic-bezier(.4, 0, .2, 1),
              opacity .35s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
  will-change: transform, opacity;
  scrollbar-width: thin;
  scrollbar-color: #d0d5da transparent;
}
.cf-step::-webkit-scrollbar { width: 4px; }
.cf-step::-webkit-scrollbar-thumb { background: #d0d5da; border-radius: 2px; }
.cf-step::-webkit-scrollbar-track { background: transparent; }

.cf-step--right  { transform: translateX(60px); opacity: 0; }
.cf-step--active { transform: translateX(0); opacity: 1; pointer-events: auto; }
.cf-step--left   { transform: translateX(-60px); opacity: 0; }

/* RTL */
html[dir="rtl"] .cf-step--right  { transform: translateX(-60px); }
html[dir="rtl"] .cf-step--left   { transform: translateX(60px); }
html[dir="rtl"] .cf-step--active { transform: translateX(0); }
html[dir="rtl"] .cf-back svg     { transform: scaleX(-1); }

/* --- Step title & subtitle --- */
.cf-step__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--sf-text, #1a1c1e);
  line-height: 1.3;
  margin: 0 0 6px;
}
.cf-step__subtitle {
  font-size: 15px;
  color: var(--sf-muted, #8d99a4);
  line-height: 1.5;
  margin: 0 0 24px;
}

/* --- Input fields --- */
.cf-field {
  margin-bottom: 18px;
  position: relative;
}
.cf-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--sf-muted, #8d99a4);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
}
.cf-input {
  display: block;
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1.5px solid var(--sf-border, #e0e4e8);
  border-radius: 10px;
  font-family: inherit;
  font-size: 16px;
  color: var(--sf-text, #1a1c1e);
  background: var(--sf-white, #fff);
  outline: none;
  box-sizing: border-box;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}
.cf-input:focus {
  border-color: var(--sf-primary, #3BA5DC);
  box-shadow: 0 0 0 3px rgba(59, 165, 220, .12);
}
.cf-input--error {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, .1) !important;
}
.cf-error-msg {
  font-size: 13px;
  color: #e74c3c;
  margin-top: 6px;
  display: none;
}
.cf-input--error ~ .cf-error-msg {
  display: block;
}

/* --- Country search (reuses smart-form pattern) --- */
.cf-country-search {
  position: relative;
  margin-bottom: 14px;
}
.cf-country-search .cf-input {
  padding-left: 42px;
}
html[dir="rtl"] .cf-country-search .cf-input {
  padding-left: 16px;
  padding-right: 42px;
}
.cf-country-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sf-muted, #8d99a4);
  pointer-events: none;
}
html[dir="rtl"] .cf-country-search__icon {
  left: auto;
  right: 14px;
}

/* Country list */
.cf-country-list {
  list-style: none;
  margin: 0; padding: 0;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #d0d5da transparent;
}
.cf-country-list::-webkit-scrollbar { width: 4px; }
.cf-country-list::-webkit-scrollbar-thumb { background: #d0d5da; border-radius: 2px; }
.cf-country-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s;
  font-size: 15px;
  color: var(--sf-text, #1a1c1e);
}
.cf-country-item:hover { background: var(--sf-bg, #f7f8fa); }
.cf-country-item:active { background: #edf0f3; }
.cf-country-item--selected { background: rgba(59, 165, 220, .08); }
.cf-country-item__flag { font-size: 22px; line-height: 1; flex-shrink: 0; }
.cf-country-item__name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-country-item__code { color: var(--sf-muted, #8d99a4); font-size: 14px; flex-shrink: 0; }
.cf-country-empty { padding: 24px 14px; text-align: center; color: var(--sf-muted, #8d99a4); font-size: 14px; }

/* --- Phone step --- */
.cf-phone-row {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--sf-border, #e0e4e8);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.cf-phone-row:focus-within {
  border-color: var(--sf-primary, #3BA5DC);
  box-shadow: 0 0 0 3px rgba(59, 165, 220, .12);
}
.cf-phone-row.cf-input--error {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, .1);
}
.cf-phone-prefix {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  background: var(--sf-bg, #f7f8fa);
  font-size: 15px;
  color: var(--sf-text, #1a1c1e);
  white-space: nowrap;
  border: none;
  border-right: 1px solid var(--sf-border, #e0e4e8);
  flex-shrink: 0;
  cursor: pointer;
  transition: background .2s;
  font-family: inherit;
}
.cf-phone-prefix:hover { background: #edf0f3; }
.cf-phone-prefix__arrow { color: var(--sf-muted, #8d99a4); flex-shrink: 0; }
html[dir="rtl"] .cf-phone-prefix { border-right: none; border-left: 1px solid var(--sf-border, #e0e4e8); }
.cf-phone-prefix__flag { font-size: 20px; line-height: 1; }
.cf-phone-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 16px;
  height: 50px;
  font-family: inherit;
  font-size: 16px;
  color: var(--sf-text, #1a1c1e);
  background: transparent;
  min-width: 0;
  -webkit-appearance: none;
}

/* Inline code picker */
.cf-code-picker {
  position: absolute;
  top: 58px; left: 0; right: 0;
  background: var(--sf-white, #fff);
  border: 1px solid var(--sf-border, #e0e4e8);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,.12);
  z-index: 10;
  display: none;
  flex-direction: column;
  max-height: 260px;
  overflow: hidden;
  animation: cfDropIn .2s cubic-bezier(.4, 0, .2, 1);
}
@keyframes cfDropIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cf-code-picker--open { display: flex; }
.cf-code-picker__search {
  margin: 10px 12px 6px;
  width: calc(100% - 24px) !important;
  height: 42px !important;
  flex-shrink: 0;
}
.cf-code-picker__list {
  list-style: none;
  margin: 0;
  padding: 0 6px 6px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #d0d5da transparent;
}
.cf-code-picker__list::-webkit-scrollbar { width: 4px; }
.cf-code-picker__list::-webkit-scrollbar-thumb { background: #d0d5da; border-radius: 2px; }
.cf-code-picker__list .cf-country-item { padding: 10px; border-radius: 8px; font-size: 14px; }

/* --- Yes / No toggle --- */
.cf-question {
  margin-bottom: 18px;
}
.cf-question__text {
  font-size: 15px;
  font-weight: 600;
  color: var(--sf-text, #1a1c1e);
  margin-bottom: 10px;
  line-height: 1.4;
}
.cf-toggle-row {
  display: flex;
  gap: 10px;
}
.cf-toggle-btn {
  flex: 1;
  height: 44px;
  border: 1.5px solid var(--sf-border, #e0e4e8);
  border-radius: 10px;
  background: var(--sf-white, #fff);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--sf-text, #1a1c1e);
  cursor: pointer;
  transition: all .2s;
  -webkit-tap-highlight-color: transparent;
}
.cf-toggle-btn:hover {
  border-color: var(--sf-primary, #3BA5DC);
  background: rgba(59, 165, 220, .04);
}
.cf-toggle-btn--active {
  border-color: var(--sf-primary, #3BA5DC);
  background: rgba(59, 165, 220, .1);
  color: var(--sf-primary, #3BA5DC);
  font-weight: 600;
}

/* Specify field (slides in) */
.cf-specify-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s cubic-bezier(.4, 0, .2, 1), margin .3s, opacity .2s;
  margin-top: 0;
  opacity: 0;
}
.cf-specify-wrap--open {
  max-height: 80px;
  margin-top: 10px;
  opacity: 1;
}
.cf-specify-input {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--sf-border, #e0e4e8);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  color: var(--sf-text, #1a1c1e);
  background: var(--sf-bg, #f7f8fa);
  outline: none;
  box-sizing: border-box;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}
.cf-specify-input:focus {
  border-color: var(--sf-primary, #3BA5DC);
  box-shadow: 0 0 0 3px rgba(59, 165, 220, .12);
}

/* --- Gender cards --- */
.cf-gender-row {
  display: flex;
  gap: 12px;
}
.cf-gender-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  border: 1.5px solid var(--sf-border, #e0e4e8);
  border-radius: 12px;
  background: var(--sf-white, #fff);
  cursor: pointer;
  transition: all .2s;
  -webkit-tap-highlight-color: transparent;
}
.cf-gender-card:hover {
  border-color: var(--sf-primary, #3BA5DC);
  background: rgba(59, 165, 220, .04);
}
.cf-gender-card--active {
  border-color: var(--sf-primary, #3BA5DC);
  background: rgba(59, 165, 220, .08);
}
.cf-gender-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sf-bg, #f7f8fa);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.cf-gender-card--active .cf-gender-card__icon {
  background: rgba(59, 165, 220, .15);
}
.cf-gender-card__label {
  font-size: 15px;
  font-weight: 600;
  color: var(--sf-text, #1a1c1e);
}

/* --- Photo upload --- */
.cf-photos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cf-upload-zone {
  position: relative;
  border: 2px dashed var(--sf-border, #e0e4e8);
  border-radius: 12px;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all .2s;
  min-height: 120px;
  background: var(--sf-bg, #f7f8fa);
  -webkit-tap-highlight-color: transparent;
}
.cf-upload-zone:hover {
  border-color: var(--sf-primary, #3BA5DC);
  background: rgba(59, 165, 220, .04);
}
.cf-upload-zone--filled {
  border-style: solid;
  border-color: var(--sf-primary, #3BA5DC);
  padding: 4px;
  background: var(--sf-white, #fff);
}
.cf-upload-zone__icon {
  color: var(--sf-muted, #8d99a4);
  transition: color .2s;
}
.cf-upload-zone:hover .cf-upload-zone__icon {
  color: var(--sf-primary, #3BA5DC);
}
.cf-upload-zone__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--sf-text, #1a1c1e);
  text-align: center;
}
.cf-upload-zone__hint {
  font-size: 11px;
  color: var(--sf-muted, #8d99a4);
  text-align: center;
}
.cf-upload-zone__preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.cf-upload-zone__remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background .2s;
}
html[dir="rtl"] .cf-upload-zone__remove { right: auto; left: 6px; }
.cf-upload-zone__remove:hover { background: rgba(0,0,0,.8); }
.cf-upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

/* --- Optional badge --- */
.cf-optional-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--sf-muted, #8d99a4);
  background: var(--sf-bg, #f7f8fa);
  padding: 3px 10px;
  border-radius: 20px;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: .3px;
  vertical-align: middle;
}
html[dir="rtl"] .cf-optional-badge { margin-left: 0; margin-right: 8px; }

/* --- Footer / buttons --- */
.cf-footer {
  padding: 16px 28px 24px;
  flex-shrink: 0;
}
.cf-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 54px;
  border: none;
  border-radius: 16px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.5px;
  cursor: pointer;
  transition: all .7s;
  -webkit-tap-highlight-color: transparent;
}
.cf-btn--continue {
  background: linear-gradient(115deg, #88eaff 0%, #6fbaff 50%, #6fbaff 70%, #88eaff 110%);
  background-size: 200%;
  color: #1a1c1e;
}
.cf-btn--continue:hover { background-position: 100% 0; }
.cf-btn--continue:active { transform: scale(.98); }
.cf-btn--continue:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.cf-btn--done {
  background: var(--sf-bg, #f7f8fa);
  color: var(--sf-text, #1a1c1e);
}
.cf-btn--done:hover { background: #edf0f3; }

.cf-btn--skip {
  background: none;
  border: 1.5px solid var(--sf-border, #e0e4e8);
  color: var(--sf-muted, #8d99a4);
  font-size: 14px;
  height: 44px;
  margin-top: 8px;
}
.cf-btn--skip:hover {
  border-color: var(--sf-primary, #3BA5DC);
  color: var(--sf-text, #1a1c1e);
}

/* --- Thank you --- */
.cf-thankyou {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 40px;
  flex: 1;
}
.cf-thankyou__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #88eaff 0%, #3BA5DC 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  animation: cfPop .5s cubic-bezier(.4, 0, .2, 1) both;
}
@keyframes cfPop {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
.cf-thankyou__icon svg {
  animation: cfCheck .4s cubic-bezier(.4, 0, .2, 1) .3s both;
}
@keyframes cfCheck {
  0%   { stroke-dashoffset: 30; opacity: 0; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
.cf-thankyou__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--sf-text, #1a1c1e);
  margin: 0 0 8px;
  animation: cfFadeUp .4s cubic-bezier(.4, 0, .2, 1) .25s both;
}
.cf-thankyou__text {
  font-size: 15px;
  color: var(--sf-muted, #8d99a4);
  margin: 0;
  max-width: 320px;
  line-height: 1.5;
  animation: cfFadeUp .4s cubic-bezier(.4, 0, .2, 1) .35s both;
}
@keyframes cfFadeUp {
  0%   { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* --- Spinner --- */
.cf-spinner {
  width: 22px;
  height: 22px;
  border: 2.5px solid rgba(0,0,0,.15);
  border-top-color: #1a1c1e;
  border-radius: 50%;
  animation: cfSpin .6s linear infinite;
}
@keyframes cfSpin { to { transform: rotate(360deg); } }

/* --- Keyboard hint --- */
.cf-keyboard-hint {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--sf-muted, #8d99a4);
  margin-top: 8px;
  justify-content: center;
}
.cf-keyboard-hint kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  padding: 2px 6px;
  border: 1px solid var(--sf-border, #e0e4e8);
  border-radius: 4px;
  font-family: inherit;
  font-size: 11px;
  background: var(--sf-bg, #f7f8fa);
}
@media (hover: hover) and (pointer: fine) {
  .cf-keyboard-hint { display: flex; }
}

/* --- RTL layout --- */
html[dir="rtl"] .cf-shell { flex-direction: row-reverse; }
html[dir="rtl"] .cf-info { border-right: none; border-left: 1px solid rgba(59,165,220,.08); }

/* --- Tablet --- */
@media (max-width: 960px) {
  .cf-shell {
    flex-direction: column;
    max-width: 520px;
  }
  .cf-info {
    border-right: none;
    text-align: center;
    padding: 36px 32px 28px;
    background: #fff;
  }
  /* Progress bar edge-to-edge as divider — back button hidden here, shown in step */
  .cf-header { padding: 0; gap: 0; }
  .cf-back { display: none !important; }
  .cf-progress-wrap { width: 100%; }
  .cf-progress { height: 4px; border-radius: 0; }
  .cf-progress__fill { border-radius: 0; }
  .cf-step-counter { text-align: center; padding: 10px 0 4px; }
  .cf-info__title { font-size: 28px; }
  .cf-info__subtitle { margin-left: auto; margin-right: auto; }
  .cf-info__stats { justify-content: center; }
  .cf-card { width: 100%; min-height: auto; }
}

/* --- Mobile --- */
@media (max-width: 600px) {
  .cf-section { padding: 50px 0; }
  .cf-layout { gap: 30px; }
  .cf-shell { border-radius: 18px; }
  .cf-info { padding: 22px 20px 16px; }
  .cf-info__title { font-size: 21px; margin-bottom: 4px; }
  .cf-info__subtitle { font-size: 13px; margin-bottom: 0; }

  /* Hide heavy content on mobile — form is the priority */
  .cf-info__features,
  .cf-trust,
  .cf-info__stats { display: none; }

  /* Show icon strip on mobile */
  .cf-info__icons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
  }
  .cf-info__icon-dot {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59,165,220,.08);
    border-radius: 10px;
    color: var(--sf-primary, #3BA5DC);
  }

  .cf-card {
    border-radius: 16px;
    min-height: auto;
    box-shadow: 0 12px 40px rgba(57,82,99,.1);
  }
  .cf-steps {
    flex: none;
    overflow: visible;
    min-height: 320px;
  }
  .cf-step {
    position: static;
    opacity: 1;
    transform: none;
    display: none;
    pointer-events: auto;
    padding: 16px 20px 20px;
  }
  .cf-step--active { display: flex; }
  .cf-header { padding: 0 0 10px; }
  .cf-footer { padding: 12px 20px 20px; }
  .cf-country-list { max-height: 45vh; }
  .cf-mobile-back {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--sf-muted, #8d99a4);
    font-size: 13px;
    padding: 0 0 10px;
    cursor: pointer;
    width: 100%;
  }
  .cf-mobile-back svg { flex-shrink: 0; }
  .cf-step__title { font-size: 19px; }
  .cf-step__subtitle { font-size: 14px; margin-bottom: 18px; }
  .cf-photos-grid { gap: 10px; }
  .cf-upload-zone { min-height: 100px; padding: 14px 8px; }
  .cf-gender-card { padding: 16px 10px; }
  .cf-toggle-btn { height: 42px; font-size: 14px; }
}

