/* ==========================================================================
   FORMS - inputs, labels, selects, textareas, checkboxes, radios,
   validation states, error messages, form-specific UI.
   ========================================================================== */

/* Uiverse.io hamburger by JulanDeAlb - checkbox-driven CSS animation from
   three lines into an X. The checkbox is visually hidden; toggling it
   (native behavior when its enclosing <label class="nav-toggle"> is
   clicked) both drives this animation and is read/set directly by
   main.js/bundle.js/account.js to keep the icon in sync with the actual
   open/closed state of the mobile sheet, including when it's closed via
   the backdrop, Escape key, or a nav link instead of the icon itself. */
.nav-toggle input {
  display: none;
}

.nav-toggle input:checked + svg {
  transform: rotate(-45deg);
}

.nav-toggle input:checked + svg .line-top-bottom {
  stroke-dasharray: 20 300;
  stroke-dashoffset: -32.42;
}

.net-card-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  color: var(--glass-text);
}

.footer-contact-label {
  font-size: 12px;
  color: #8a8a8f;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 7px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid #e3e0d5;
  font-family: var(--font-body);
  font-size: 14.5px;
  background: var(--off-white);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--yellow);
  outline-offset: 1px;
  background: var(--surface);
}

.form-msg {
  font-size: 13.5px;
  padding: 11px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  display: none;
}

.password-field input {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  opacity: 0.65;
  color: var(--text);
}

.password-toggle:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.05);
}

.password-toggle-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.form-msg.show {
  display: block;
}

.form-msg.error {
  background: rgba(229, 72, 77, 0.1);
  color: #b3262a;
}

.form-msg.success {
  background: rgba(31, 174, 92, 0.1);
  color: #157a41;
}

.size-pill-phone-error {
  display: none;
  font-size: 13px;
  color: #b3262a;
  margin-top: 6px;
}

.size-pill-phone-error.show {
  display: block;
}

.stat-label {
  font-size: 12.5px;
  color: var(--grey);
  margin-top: 4px;
}

.wallet-highlight-label {
  display: block;
  font-size: 12.5px;
  color: var(--grey);
}

.inline-form .field { margin-bottom: 0; }

.inline-form .field input,
.inline-form .field select { padding: 10px 12px; font-size: 13.5px; }

.size-select-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}

.verify-number-row input {
  flex: 1;
}

.verify-number-result.is-error {
  background: rgba(229, 72, 77, 0.12);
  color: var(--red);
}

.size-pill-label {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
}

.size-pill-panel .field {
  margin-bottom: 0;
}

.pay-option input {
  accent-color: var(--yellow-dark);
}

.receipt-qr-label {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey);
}

/* ---------- remember me / forgot password row ---------- */
.field-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -6px 0 18px;
  flex-wrap: wrap;
  gap: 8px;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--grey);
  cursor: pointer;
}

.checkbox-field input {
  width: 16px;
  height: 16px;
  accent-color: var(--yellow-dark);
  cursor: pointer;
}

.track-input-wrap {
  position: relative;
}

.track-input-wrap svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--grey);
}

.track-input-wrap input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border-radius: 12px;
  border: 1px solid #e2e0d6;
  background: var(--off-white);
  font-size: 15px;
  font-family: var(--font-body);
}

.track-input-wrap input:focus {
  outline: none;
  border-color: var(--yellow-dark);
}
/* The rule above removes the outline for any focus (mouse or keyboard) and
   only changes the border color, which alone is a fairly subtle indicator -
   this restores a strong, unmistakable ring specifically for keyboard
   focus, matching the site's global :focus-visible treatment (base.css). */
.track-input-wrap input:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--yellow);
}

.topup-form .field {
  min-width: 200px;
  margin-bottom: 0;
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea {
  background: var(--surface);
  border-color: var(--surface-border);
  color: var(--text);
}

:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder {
  color: var(--grey);
}

:root[data-theme="dark"] .password-toggle-icon {
  filter: invert(1);
}
