/* Base */
html, body { height: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--fg);
  background: #fff;
}

/* Top progress */
.progress-wrap { width: 100%; background: #d9d9d9; }
.progress-wrap .progress-bar {
  height: 5px;
  width: 12.5%; /* step 1 of 8 */
  background: linear-gradient(90deg, var(--progress-y), var(--progress-g));
}

/* Header */
.app-header { padding: var(--s-5) 0 var(--s-3); }
.app-header .logo { width: 160px; height: auto; }
.app-header .title {
  display: inline-block;
  border: 2px solid #000;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.1;
}
.app-header .address {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

/* Section legends */
legend { font-size: 18px; font-weight: 600; margin-bottom: var(--s-3); }

/* Legal note */
.legal-note { font-size: 11px; color: var(--muted); }

/* Floating labels adjustments */
.form-floating > label {
  white-space: normal !important;
  overflow: visible;
  text-overflow: unset;
  height: auto;
  line-height: 1.2;
}

.form-control {
  border-radius: var(--radius);
  border-color: var(--border-strong);
}
.form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.2rem rgba(164, 209, 54, 0.3);
}

/* Buttons */
.btn-primary {
  background: var(--brand);
  border: none;
  color: #000;
  padding: 6px 40px;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--brand-dark);
  color: #000;
}

.btn-outline-success { border-radius: var(--radius); }

/* Step footer */
.step-footer { margin-top: var(--s-5); }
.step-text { color: #9f9f9f; font-size: 12px; padding: 5px 20px 5px 0; }
.step-text strong { color: #191919; font-weight: 700; }

/* Errors */
.field-error { color: var(--error); font-size: 12px; margin-top: 6px; display: none; }
.is-invalid { border-color: var(--error) !important; }
.is-invalid:focus { box-shadow: 0 0 0 0.2rem rgba(185, 28, 28, 0.2); }

/* Utils */
.hidden { display: none; }

/* Responsive tweaks */
@media (max-width: 767.98px) {
  .app-header .title { font-size: 16px; }
  .app-header .address { font-size: 11px; }
  .btn-primary, .btn-outline-secondary, .btn-outline-success { padding: 6px 16px; }
}
