/* Phone and verification controls are scoped to avoid legacy form floats. */
.container .ui-generic-form .zb-phone-row { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; }
.container .ui-generic-form .zb-phone-row > label { float: none; width: auto; margin: 12px 0 0; }
.container .zb-phone-field { min-width: 0; flex: 1; }
.container .zb-phone-controls { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 10px; align-items: center; }
.container .zb-phone-controls .ui-selectmenu { width: 100%; min-width: 0; float: none; margin: 0; }
.container .zb-phone-controls select,
.container .zb-phone-controls #zb-phone-number { width: 100%; min-width: 0; max-width: 100%; height: 52px; margin: 0; padding: 12px; border: 1px solid #ccd6e5; border-radius: 12px; background: #fff; box-shadow: none; color: var(--re-text); font-size: 16px; box-sizing: border-box; }
.container .zb-phone-controls select { font-weight: 650; cursor: pointer; }
.container .zb-phone-controls #zb-phone-number { direction: ltr; text-align: start; }
.container .zb-phone-help { margin: 9px 0 0; color: var(--re-muted); font-size: 12px; line-height: 1.6; }
.container .zb-phone-field.is-invalid .zb-phone-help { color: #b42335; }
.container .zb-phone-field.is-invalid #zb-phone-number { border-color: #b42335; }
.container .zb-otp { clear: both; box-sizing: border-box; padding: clamp(18px, 3vw, 28px); margin: 22px 0; border: 1px solid #dce4f1; border-radius: 22px; background: linear-gradient(145deg, #fff 30%, #f6f8ff); box-shadow: 0 8px 24px rgba(20, 37, 61, .04); color: var(--re-text); min-width: 0; }
.container .zb-otp [hidden] { display: none !important; }
.container .zb-otp-heading { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.container .zb-otp-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 46px; height: 46px; border-radius: 14px; color: var(--re-primary); background: #eaf0ff; }
.container .zb-otp-heading > div { flex: 1; min-width: 130px; }
.container .zb-otp-eyebrow { margin: 0 0 4px; font-size: 10px; letter-spacing: .12em; font-weight: 750; color: var(--re-muted); text-transform: uppercase; }
.container .zb-otp-heading h3 { margin: 0; font-size: 20px; line-height: 1.25; letter-spacing: -.02em; }
.container .zb-otp-badge { display: inline-flex; padding: 5px 9px; font-size: 10px; line-height: 1.5; font-weight: 650; border: 1px solid #dce4f1; border-radius: 20px; background: #fff; color: var(--re-muted); }
.container .zb-otp-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; list-style: none; margin: 0 0 24px; padding: 0; }
.container .zb-otp-progress li { display: flex; gap: 7px; align-items: center; color: var(--re-muted); font-size: 11px; line-height: 1.4; padding: 0; margin: 0; border: 0; font-weight: 600; }
.container .zb-otp-progress li > span { display: inline-flex; align-items: center; justify-content: center; width: 23px; height: 23px; flex: 0 0 23px; background: #edf0f6; color: #58677b; border-radius: 50%; font-size: 11px; }
.container .zb-otp-progress li[aria-current="step"] { color: var(--re-primary); }
.container .zb-otp-progress li[aria-current="step"] > span { background: var(--re-primary); color: #fff; }
.container .zb-otp-progress li.is-complete > span { background: #e2f4ed; color: #137c59; }
.container .zb-otp-intro { margin: 0 0 16px; color: var(--re-muted); font-size: 14px; line-height: 1.6; }
.container .zb-otp-security { display: flex; justify-content: center; padding: 16px 0; margin-bottom: 14px; border: 1px solid #e5eaf3; border-radius: 14px; background: #f5f7fc; min-width: 0; }
.container .zb-otp-security:has([data-otp-captcha]:empty) { padding: 0; border: 0; margin: 0; }
.container .zb-otp .zb-otp-primary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; height: auto; width: 100%; margin: 0; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 650; line-height: 1.45; white-space: normal; }
.container .zb-otp button:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }
.container #register button[type="submit"]:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.container .zb-otp label { float: none; display: block; width: auto; margin: 0 0 10px; color: var(--re-text); font-size: 13px; font-weight: 650; line-height: 1.5; }
.container .zb-otp .zb-otp-input { display: block; width: 100%; max-width: 100%; min-width: 0; height: 68px; padding: 12px 0 12px .35em; margin: 0 0 14px; border: 1px solid #bdcce8; border-radius: 14px; background: #fff; color: var(--re-text); font: 650 28px/1.2 "Consolas", monospace; text-align: center; letter-spacing: .35em; box-shadow: inset 0 1px 3px rgba(20,37,61,.03); box-sizing: border-box; }
.container .zb-otp .zb-otp-input::placeholder { color: #b3bfd4; opacity: 1; }
.container #register .zb-otp .zb-otp-input { font-size: 28px !important; }
.container .zb-otp-destination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px; margin-bottom: 20px; font-size: 12px; color: var(--re-muted); overflow-wrap: anywhere; }
.container .zb-otp-text-button { appearance: none; padding: 5px 0; margin: 0; border: 0; background: transparent; color: var(--re-primary); font: inherit; font-size: 12px; font-weight: 650; line-height: 1.5; min-height: 32px; height: auto; cursor: pointer; box-shadow: none; white-space: normal; }
.container .zb-otp-resend { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; margin-top: 12px; font-size: 12px; color: var(--re-muted); }
.container .zb-otp-countdown { text-align: center; margin: 10px 0 0; font-size: 11px; color: var(--re-muted); font-variant-numeric: tabular-nums; }
.container .zb-otp-countdown:empty { display: none; }
.container .zb-otp-status { margin: 14px 0 0; color: var(--re-muted); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.container .zb-otp-status:empty { display: none; }
.container .zb-otp[data-error="true"] .zb-otp-status { color: #b42335; }
.container .zb-otp[data-error="true"] .zb-otp-input { border-color: #b42335; }
.container .zb-otp-privacy { padding-top: 16px; margin: 18px 0 0; border-top: 1px solid #e5eaf3; color: #66758a; font-size: 11px; line-height: 1.7; }
.container .zb-otp-privacy a { font-weight: 600; }
.container .zb-otp-success { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid #c9e9db; border-radius: 14px; background: #effaf5; color: #146549; }
.container .zb-otp-success > span { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; background: #14835b; color: #fff; font-size: 20px; }
.container .zb-otp-success strong { font-size: 16px; }
.container .zb-otp-success p { font-size: 12px; line-height: 1.6; margin: 5px 0 0; }
.container .zb-otp[data-phase="verified"] .zb-otp-badge { color: #146549; background: #effaf5; border-color: #c9e9db; }
.container .zb-otp[data-phase="verified"] .zb-otp-icon { color: #146549; background: #e2f4ed; }
.container .zb-otp[aria-busy="true"] .zb-otp-primary::before { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: zb-otp-spin .8s linear infinite; }
@keyframes zb-otp-spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
  .container .ui-generic-form .zb-phone-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .container .ui-generic-form .zb-phone-row > label { margin: 0; }
  .container .zb-phone-controls { grid-template-columns: 116px minmax(0, 1fr); gap: 8px; }
  .container .zb-phone-controls select, .container .zb-phone-controls #zb-phone-number { padding: 10px; }
  .container .zb-otp-heading { gap: 10px; }
  .container .zb-otp-badge { margin-inline-start: 56px; }
  .container .zb-otp-progress { gap: 6px; }
  .container .zb-otp-progress li { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 10px; }
}
@media (max-width: 380px) {
  .container .ui-generic-form .zb-phone-row { margin-inline: -8px; }
  .container .zb-phone-controls { grid-template-columns: 100px minmax(0, 1fr); gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { .container .zb-otp[aria-busy="true"] .zb-otp-primary::before { animation: none; } }
