/* Local registration modal — offline demo */
.local-reg-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(2, 43, 103, 0.55);
  box-sizing: border-box;
}

.local-reg-overlay.is-open {
  display: flex;
}

.local-reg-modal {
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(2, 43, 103, 0.28);
  font-family: "Poppins", "Segoe UI", sans-serif;
  color: #022b67;
}

.local-reg-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 8px;
}

.local-reg-modal__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.local-reg-modal__close {
  border: 0;
  background: transparent;
  color: #022b67;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  opacity: 0.7;
}

.local-reg-modal__close:hover {
  opacity: 1;
}

.local-reg-modal__body {
  padding: 8px 24px 24px;
}

.local-reg-modal__hint {
  margin: 0 0 16px;
  font-size: 13px;
  color: #5a6b8a;
  line-height: 1.4;
}

.local-reg-field {
  margin-bottom: 12px;
}

.local-reg-field label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #022b67;
}

.local-reg-field input[type="text"],
.local-reg-field input[type="email"],
.local-reg-field input[type="tel"],
.local-reg-field input[type="password"],
.local-reg-field input[type="date"] {
  width: 100%;
  box-sizing: border-box;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #c5cddb;
  border-radius: 2px;
  font-size: 15px;
  color: #022b67;
  background: #fff;
  outline: none;
}

.local-reg-field input:focus {
  border-color: #022b67;
  box-shadow: 0 0 0 2px rgba(2, 43, 103, 0.12);
}

.local-reg-field input.is-invalid {
  border-color: #c0392b;
}

.local-reg-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.local-reg-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 8px;
  font-size: 13px;
  line-height: 1.35;
  color: #022b67;
}

.local-reg-check input {
  margin-top: 2px;
  flex-shrink: 0;
}

.local-reg-error {
  display: none;
  margin: 8px 0 0;
  padding: 10px 12px;
  background: #ffdfdf;
  border: 1px solid #ffbebe;
  color: #8b1e1e;
  font-size: 13px;
  border-radius: 2px;
}

.local-reg-error.is-visible {
  display: block;
}

.local-reg-success {
  display: none;
  text-align: center;
  padding: 24px 8px 8px;
}

.local-reg-success.is-visible {
  display: block;
}

.local-reg-success__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #e8f5e9;
  color: #1b7a3d;
  font-size: 28px;
  line-height: 56px;
  font-weight: 700;
}

.local-reg-success h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.local-reg-success p {
  margin: 0 0 20px;
  font-size: 14px;
  color: #5a6b8a;
}

.local-reg-form.is-hidden {
  display: none;
}

.local-reg-submit {
  display: block;
  width: 100%;
  margin-top: 16px;
  height: 48px;
  border: 0;
  border-radius: 2px;
  background: #022b67;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.local-reg-submit:hover {
  background: #031f4a;
}

.local-reg-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.local-reg-submit--secondary {
  background: #fff;
  color: #022b67;
  border: 1px solid #022b67;
  margin-top: 8px;
}

.local-reg-submit--secondary:hover {
  background: #f3f6fb;
}

@media (max-width: 480px) {
  .local-reg-row {
    grid-template-columns: 1fr;
  }

  .local-reg-modal__title {
    font-size: 18px;
  }
}
