/**
 * Halaman registrasi pelanggan – desain standalone (registrasi.php)
 */

.reg-page {
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(81, 86, 190, 0.14), transparent),
    linear-gradient(180deg, #f3f6fc 0%, #eef1f8 100%);
  padding: clamp(1rem, 4vw, 2rem);
  padding-bottom: calc(clamp(1rem, 4vw, 2rem) + env(safe-area-inset-bottom, 0px));
}

.reg-shell {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

/* Header */
.reg-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.reg-logo {
  display: inline-block;
  margin-bottom: 1rem;
}

.reg-logo img {
  max-width: min(180px, 55vw);
  height: auto;
}

.reg-header__title {
  font-size: clamp(1.25rem, 4.5vw, 1.5rem);
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.reg-header__sub {
  font-size: 0.9375rem;
  color: #64748b;
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

/* Progress steps */
.reg-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 0.5rem;
}

.reg-progress__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
}

.reg-progress__dot {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  background: #e2e8f0;
  color: #94a3b8;
  transition: all 0.2s ease;
}

.reg-progress__label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.reg-progress__item.is-active .reg-progress__dot {
  background: linear-gradient(135deg, #5156be, #6366f1);
  color: #fff;
  box-shadow: 0 4px 14px rgba(81, 86, 190, 0.35);
}

.reg-progress__item.is-active .reg-progress__label {
  color: #5156be;
}

.reg-progress__item.is-done .reg-progress__dot {
  background: #dcfce7;
  color: #16a34a;
}

.reg-progress__item.is-done .reg-progress__label {
  color: #16a34a;
}

.reg-progress__line {
  flex: 1;
  max-width: 4rem;
  height: 3px;
  background: #e2e8f0;
  border-radius: 99px;
  margin: 0 0.5rem;
  margin-bottom: 1.1rem;
}

.reg-progress__item.is-done + .reg-progress__line {
  background: linear-gradient(90deg, #16a34a, #5156be);
}

/* Card */
.reg-card {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 32px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: clamp(1.25rem, 4vw, 1.75rem);
  animation: none;
}

.reg-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(81, 86, 190, 0.1);
  color: #5156be;
  margin-bottom: 0.75rem;
}

.reg-card__heading {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.35rem;
}

.reg-card__desc {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0 0 1.25rem;
  line-height: 1.55;
}

/* Map section */
.reg-map-tip {
  display: flex;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: linear-gradient(135deg, rgba(81, 86, 190, 0.07), rgba(99, 102, 241, 0.05));
  border-radius: 0.875rem;
  border: 1px solid rgba(81, 86, 190, 0.12);
  margin-bottom: 1rem;
}

.reg-map-tip__icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  background: #5156be;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
}

.reg-map-tip__text h6 {
  margin: 0 0 0.2rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #1e293b;
}

.reg-map-tip__text p {
  margin: 0;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.45;
}

.reg-map-frame {
  border-radius: 0.875rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.reg-map-frame #map {
  display: block;
  width: 100%;
  height: 400px;
}

/* Actions – jarak jelas dari konten di atasnya */
.reg-actions {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-top: 1.75rem;
  padding-top: 0.25rem;
}

.reg-actions .btn {
  width: 100%;
  min-height: 50px;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.75rem 1.25rem;
}

.reg-actions .btn-primary {
  background: linear-gradient(135deg, #5156be 0%, #6366f1 100%);
  border: none;
  box-shadow: 0 4px 14px rgba(81, 86, 190, 0.3);
}

.reg-actions .btn-primary:hover {
  background: linear-gradient(135deg, #4549a8 0%, #5558e3 100%);
  box-shadow: 0 6px 18px rgba(81, 86, 190, 0.35);
}

.reg-actions .btn-outline-secondary {
  background: #fff;
  border: 1.5px solid #cbd5e1;
  color: #475569;
}

.reg-actions .btn-outline-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #334155;
}

/* Form fields */
.reg-form {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.reg-field label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.45rem;
}

.reg-field label i {
  color: #5156be;
  font-size: 1.05rem;
}

.reg-field .form-control,
.reg-field .form-select {
  min-height: 50px;
  border-radius: 0.75rem;
  border: 1.5px solid #e2e8f0;
  padding: 0.65rem 0.95rem;
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.reg-field .form-control:focus,
.reg-field .form-select:focus {
  border-color: #5156be;
  box-shadow: 0 0 0 3px rgba(81, 86, 190, 0.15);
}

.reg-field textarea.form-control {
  min-height: 100px;
  padding-top: 0.75rem;
}

.reg-field__hint {
  display: block;
  font-size: 0.8125rem;
  color: #94a3b8;
  margin-top: 0.35rem;
}

.reg-loc-ok {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 99px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: #dcfce7;
  color: #15803d;
  margin-bottom: 1rem;
}

/* Footer links */
.reg-bottom {
  text-align: center;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
}

.reg-bottom p {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  color: #64748b;
}

.reg-bottom a {
  color: #5156be;
  font-weight: 600;
  text-decoration: none;
}

.reg-bottom a:hover {
  text-decoration: underline;
}

.reg-copy {
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 0.75rem 0 0;
}

/* Override body auth untuk halaman ini */
body.auth-public.reg-body {
  background: #eef1f8 !important;
}

@media (min-width: 768px) {
  .reg-page {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
