/* Zavier theme-owned stylesheet; visual tokens are finalized by css/theme.css. */
/* Source: app/Modules/Home/Views/pendaftaran-online.php */

.member-registration-page {
  --registration-blue: #1f5fae;
  --registration-blue-dark: #16477f;
  --registration-blue-soft: #eaf2fb;
  --registration-border: #d8e3ef;
  --registration-text: #172b43;
  --registration-muted: #64748b;
  --registration-surface: #ffffff;
  min-height: 100vh;
  padding: 104px 20px 72px;
  color: var(--registration-text);
  background: #f4f7fa;
}

.registration-shell {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.registration-page-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 20px 22px;
  background: var(--registration-surface);
  border: 1px solid var(--registration-border);
  border-radius: 10px;
}

.registration-back {
  display: inline-flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--registration-blue-dark);
  background: var(--registration-blue-soft);
  border: 1px solid #c7dbf0;
  border-radius: 10px;
  text-decoration: none;
}

.registration-back:hover {
  color: #ffffff;
  background: var(--registration-blue);
  border-color: var(--registration-blue);
}

.registration-back svg,
.registration-heading-icon svg {
  width: 22px;
  height: 22px;
}

.registration-heading {
  min-width: 0;
  flex: 1;
}

.registration-heading h1 {
  margin: 0;
  color: var(--registration-text);
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  font-weight: 700;
  line-height: 1.25;
}

.registration-heading p {
  margin: 4px 0 0;
  color: var(--registration-muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.registration-heading-icon {
  display: inline-flex;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: var(--registration-blue);
  background: var(--registration-blue-soft);
  border-radius: 10px;
}

.registration-progress {
  margin-bottom: 18px;
  padding: 18px 22px 16px;
  background: var(--registration-surface);
  border: 1px solid var(--registration-border);
  border-radius: 10px;
}

.registration-progress .progress {
  height: 5px;
  overflow: hidden;
  background: #e6edf5;
  border-radius: 999px;
}

.registration-progress .progress-bar {
  width: 33%;
  background: var(--registration-blue);
  border-radius: inherit;
  transition: width 0.25s ease;
}

.step-indicator {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 14px;
}

.step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  color: #8290a2;
  font-size: 0.82rem;
  font-weight: 600;
}

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #718096;
  background: #eef2f6;
  border-radius: 50%;
}

.step-icon svg {
  width: 15px;
  height: 15px;
}

.step.active {
  color: var(--registration-blue-dark);
}

.step.active .step-icon {
  color: #ffffff;
  background: var(--registration-blue);
}

.registration-form {
  display: grid;
  gap: 16px;
}

.registration-card {
  padding: 24px;
  background: var(--registration-surface);
  border: 1px solid var(--registration-border);
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(22, 71, 127, 0.05);
}

.registration-section-header {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e6edf5;
}

.registration-section-icon {
  display: inline-flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--registration-blue);
  background: var(--registration-blue-soft);
  border-radius: 10px;
}

.registration-section-icon svg {
  width: 20px;
  height: 20px;
}

.registration-section-number {
  display: block;
  margin-bottom: 2px;
  color: var(--registration-blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.registration-section-header h2 {
  margin: 0;
  color: var(--registration-text);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
}

.registration-section-header p {
  margin: 3px 0 0;
  color: var(--registration-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.member-registration-page .form-group {
  margin: 0;
}

.member-registration-page .form-label {
  display: block;
  margin: 0 0 7px;
  color: #34495f;
  font-size: 0.86rem;
  font-weight: 600;
}

.member-registration-page .required::after {
  color: #c2413b;
  content: " *";
}

.member-registration-page .form-control,
.member-registration-page .form-select {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  color: var(--registration-text);
  background-color: #ffffff;
  border: 1px solid #cbd8e6;
  border-radius: 10px;
  box-shadow: none;
  font-size: 0.95rem;
  line-height: 1.35;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.member-registration-page textarea.form-control {
  min-height: 92px;
  resize: vertical;
}

.member-registration-page .form-control::placeholder {
  color: #95a2b1;
}

.member-registration-page .form-control:focus,
.member-registration-page .form-select:focus {
  border-color: var(--registration-blue);
  box-shadow: 0 0 0 3px rgba(31, 95, 174, 0.12);
  outline: none;
}

.member-registration-page .form-control:disabled,
.member-registration-page .form-select:disabled {
  color: #8b98a8;
  background-color: #f2f5f8;
  cursor: not-allowed;
}

.member-registration-page .form-control.is-invalid,
.member-registration-page .form-select.is-invalid,
.member-registration-page .form-check-input.is-invalid {
  border-color: #c2413b;
}

.member-registration-page .form-control.is-valid,
.member-registration-page .form-select.is-valid,
.member-registration-page .form-check-input.is-valid {
  border-color: #218653;
}

.help-text {
  margin-top: 6px;
  color: var(--registration-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.input-group-icon {
  position: relative;
}

.input-group-icon .form-control {
  padding-left: 42px;
}

.input-group-icon .icon {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 14px;
  width: 18px;
  height: 18px;
  color: #708399;
  pointer-events: none;
  transform: translateY(-50%);
}

.registration-check-column {
  display: flex;
  align-items: flex-end;
  padding-bottom: 24px;
}

.registration-check-button,
.registration-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
}

.registration-check-button {
  width: 100%;
  color: var(--registration-blue-dark);
  background: #ffffff;
  border: 1px solid #8fb5df;
}

.registration-check-button:hover,
.registration-check-button:focus {
  color: #ffffff;
  background: var(--registration-blue);
  border-color: var(--registration-blue);
}

.registration-check-button.btn-success {
  color: #17603b;
  background: #e8f6ee;
  border-color: #91c9a9;
}

.registration-check-button svg,
.registration-submit svg {
  width: 18px;
  height: 18px;
}

.copy-address-control,
.agreement-control {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 18px;
  padding: 14px;
  background: #f4f8fc;
  border: 1px solid #d8e5f2;
  border-radius: 10px;
  cursor: pointer;
}

.copy-address-control .form-check-input,
.agreement-control .form-check-input {
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  margin: 2px 0 0;
  border-color: #91a8bf;
}

.member-registration-page .form-check-input:checked {
  background-color: var(--registration-blue);
  border-color: var(--registration-blue);
}

.copy-address-control strong,
.copy-address-control small {
  display: block;
}

.copy-address-control strong {
  color: #2d435a;
  font-size: 0.88rem;
}

.copy-address-control small {
  margin-top: 2px;
  color: var(--registration-muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.registration-consent .registration-section-header {
  margin-bottom: 14px;
}

.agreement-control {
  align-items: flex-start;
  margin: 0;
  color: #34495f;
  font-size: 0.88rem;
  line-height: 1.5;
}

.registration-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  padding-top: 2px;
}

.registration-submit {
  min-width: 240px;
  min-height: 52px;
  padding: 11px 22px;
  color: #ffffff;
  background: var(--registration-blue);
  border: 1px solid var(--registration-blue);
}

.registration-submit:hover,
.registration-submit:focus {
  color: #ffffff;
  background: var(--registration-blue-dark);
  border-color: var(--registration-blue-dark);
}

.registration-check-button:disabled,
.registration-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.registration-message {
  width: 100%;
  color: var(--registration-muted);
  font-size: 0.85rem;
  text-align: center;
}

.registration-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  padding: 16px;
  color: var(--registration-muted);
  background: var(--registration-surface);
  border: 1px solid var(--registration-border);
  border-radius: 10px;
  font-size: 0.88rem;
}

.registration-login a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--registration-blue-dark);
  font-weight: 700;
  text-decoration: none;
}

.registration-login a:hover {
  text-decoration: underline;
}

.registration-login svg {
  width: 15px;
  height: 15px;
}

.shake {
  animation: registration-shake 0.42s ease both;
}

@keyframes registration-shake {
  20%, 60% { transform: translateX(-3px); }
  40%, 80% { transform: translateX(3px); }
}

@media (max-width: 768px) {
  .member-registration-page {
    padding: 76px 12px calc(92px + env(safe-area-inset-bottom));
  }

  .registration-page-header {
    gap: 11px;
    margin-bottom: 12px;
    padding: 16px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid #e8eef4;
  }

  .registration-back {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .registration-heading p {
    font-size: 0.8rem;
  }

  .registration-heading-icon {
    display: none;
  }

  .registration-progress {
    margin-bottom: 12px;
    padding: 14px 12px 12px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-top: 1px solid #e8eef4;
    border-bottom: 1px solid #e8eef4;
  }

  .step {
    flex-direction: column;
    gap: 5px;
    font-size: 0.72rem;
  }

  .mobile-bottom-nav,
  .main-footer {
    display: none !important;
  }

  .registration-form {
    gap: 12px;
    padding-bottom: 30px;
  }

  .registration-card {
    padding: 18px 14px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-top: 1px solid #e8eef4;
    border-bottom: 1px solid #e8eef4;
    box-shadow: none;
  }

  .registration-section-header {
    gap: 11px;
    margin-bottom: 16px;
    padding-bottom: 14px;
  }

  .registration-section-header h2 {
    font-size: 1rem;
  }

  .registration-section-header p {
    font-size: 0.78rem;
  }

  .registration-section-icon {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .member-registration-page .form-control,
  .member-registration-page .form-select {
    min-height: 50px;
    font-size: 16px;
  }

  .registration-check-column {
    padding-bottom: 0;
  }

  .registration-check-button {
    min-height: 50px;
  }

  .registration-actions {
    position: fixed;
    z-index: 1050;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0;
    padding: 12px 16px max(12px, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.98);
    border: none;
    border-top: 1px solid var(--registration-border);
    border-radius: 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  }

  .registration-submit {
    width: 100%;
    min-height: 52px;
  }

  .registration-login {
    flex-direction: column;
    gap: 5px;
    margin-top: 12px;
    margin-bottom: 30px;
    border-radius: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .registration-progress .progress-bar,
  .member-registration-page .form-control,
  .member-registration-page .form-select {
    transition: none;
  }

  .shake {
    animation: none;
  }
}
