/* Form fields and buttons. */

/* =========================================================
   7. Form fields
   ========================================================= */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { margin-bottom: 16px; }
.card__section > .field:last-child { margin-bottom: 0; }
.field__label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 600; }
.field__control { position: relative; }
.field__prefix {
  position: absolute; top: 1.5px; bottom: 1.5px; left: 1.5px; width: 52px;
  display: grid; place-items: center;
  border-right: 1px solid var(--line); color: var(--muted); font-size: 15px;
  pointer-events: none;
}
.field__input {
  width: 100%; height: 50px; padding: 0 15px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); font-size: 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field__input--prefixed { padding-left: 66px; }
.field__input::placeholder { color: #A9A293; }
.field__input:hover { border-color: #BCAF95; }
.field__input:focus { outline: none; border-color: var(--gold); box-shadow: var(--focus-ring); }
.field__hint, .field__error { margin: 6px 0 0; font-size: 13px; }
.field__hint { color: var(--muted); }
.field__error { display: none; color: var(--danger); }
.field.is-invalid .field__input { border-color: var(--danger); }
.field.is-invalid .field__error { display: block; }
.field.is-invalid .field__hint { display: none; }

.group-error { display: none; margin: 10px 0 0; color: var(--danger); font-size: 13.5px; }
.group-error.is-visible { display: block; }


/* =========================================================
   9. Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border: 0; border-radius: 12px;
  font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .06s ease;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--block { width: 100%; }
.btn--gold { background: var(--gold); color: var(--navy); box-shadow: 0 10px 22px rgba(198, 161, 91, .32); }
.btn--gold:hover:not(:disabled) { background: var(--gold-light); }
.btn--gold:disabled { box-shadow: none; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover:not(:disabled) { background: var(--navy-soft); }
.btn--outline { background: var(--surface); color: var(--navy); border: 1.5px solid var(--line-strong); }
.btn--outline:hover { border-color: var(--navy); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn__spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(11, 22, 37, .25); border-top-color: var(--navy);
  animation: spin .8s linear infinite;
}
.btn--navy .btn__spinner { border-color: rgba(255, 255, 255, .3); border-top-color: #fff; }
#payBtn { margin-top: 20px; }

.field__hint--tight { margin-top: 2px; }
.field--spaced { margin-top: 18px; }
