/* ==========================================================================
   GK DreamZ - Forms & Registration Styles (Luxury Light Editorial Theme)
   ========================================================================== */

.form-grid,
.registration-layout {
  --glass-bg: #ffffff;
  --glass-border: #e7e3de;
  --glass-shadow: 0 16px 40px rgba(0, 0, 0, 0.04);
  --glass-input: #ffffff;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-field {
  position: relative;
  display: block;
  min-width: 0;
  font-size: 13px;
}

.form-field > span:not(.sr-only) {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #111116;
  letter-spacing: 0.01em;
}

.form-field input,
.form-field textarea,
.form-field select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  border: 1px solid #d9d5d0;
  border-radius: 12px;
  background: #ffffff;
  padding: 14px 16px;
  color: #111116;
  font: inherit;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 135px;
  padding-bottom: 30px;
}

.form-field select option {
  background: #ffffff;
  color: #111116;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #8c8694;
  opacity: 1;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: #ff1730;
  background: #ffffff;
  box-shadow:
    0 0 0 3px rgba(255, 23, 48, 0.12),
    0 2px 10px rgba(255, 23, 48, 0.08);
}

.character-count {
  position: absolute;
  bottom: 12px;
  right: 14px;
  color: #8c8694;
  font-size: 11px;
  pointer-events: none;
}

.field-error {
  display: block;
  color: #ff1730;
  font-size: 12px;
  margin-top: 6px;
  font-weight: 600;
}

.form-field [aria-invalid="true"] {
  border-color: #ff1730 !important;
  box-shadow: 0 0 0 3px rgba(255, 23, 48, 0.18) !important;
}

.form-feedback {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
}

.form-feedback:empty {
  display: none;
}

.form-feedback.is-error {
  background: #fff0f2;
  border: 1px solid #ffd1d6;
  color: #c40a20;
}

.form-feedback.is-success {
  background: #edfbf2;
  border: 1px solid #c0ebd2;
  color: #0d8a4e;
}

.form-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-top: 24px;
}

.form-bottom .button {
  min-width: 45%;
}

.trust-copy {
  font-size: 11px;
  color: #64606f;
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   Page Register Theme (Luxury Light Editorial UI)
   ========================================================================== */

.page-register {
  position: relative;
  background-color: #fbf9f6;
  color: #111116;
  min-height: 100vh;
}

/* Light Background Atmosphere */
.page-register-backdrop {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(212, 175, 55, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(255, 23, 48, 0.04) 0%, transparent 45%),
    linear-gradient(180deg, #fdfbf7 0%, #f6f3ed 100%);
  z-index: -3;
  pointer-events: none;
}

.page-register-overlay {
  display: none;
}

.snow-canvas {
  display: none;
}

/* Registration Page Wrap & Panel */
.page-register .registration-layout {
  position: relative;
  z-index: 1;
  padding-block: 48px 72px;
  max-width: 960px;
  margin-inline: auto;
}

.registration-panel {
  box-sizing: border-box;
  min-width: 0;
  border: 1px solid #e7e3de;
  background: #ffffff;
  border-radius: 24px;
  padding: 42px 48px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.04),
    0 4px 16px rgba(0, 0, 0, 0.02);
  color: #111116;
  overflow: hidden;
  position: relative;
}

.registration-header-area {
  position: relative;
  z-index: 1;
  margin-bottom: 28px;
  text-align: left;
}

.registration-panel h1 {
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111116;
  margin: 0 0 8px;
}

.registration-panel > p,
.registration-header-area > p {
  color: #55505e;
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   Multi-Step Stepper Navigation UI
   ========================================================================== */

.stepper-nav {
  position: relative;
  z-index: 1;
  margin-bottom: 26px;
  padding: 16px 20px;
  background: #faf8f5;
  border: 1px solid #e7e3de;
  border-radius: 18px;
}

.stepper-progress-track {
  position: relative;
  width: 100%;
  height: 6px;
  background: #e7e3de;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}

.stepper-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #c48d3f 0%, #ff1730 100%);
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.stepper-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.stepper-item {
  min-width: 0;
}

.stepper-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #64606f;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: all 0.25s ease;
}

.stepper-pill:hover {
  background: #ffffff;
  border-color: #d9d5d0;
  color: #111116;
}

.stepper-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #d9d5d0;
  font-weight: 700;
  font-size: 13px;
  color: #64606f;
  transition: all 0.25s ease;
}

.stepper-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.stepper-label {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #33303c;
}

.stepper-sub {
  font-size: 11px;
  color: #8c8694;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stepper-item.is-active .stepper-pill {
  background: #ffffff;
  border-color: #ff1730;
  box-shadow: 0 4px 14px rgba(255, 23, 48, 0.08);
}

.stepper-item.is-active .stepper-num {
  background: linear-gradient(135deg, #ff1730, #c40a20);
  border-color: #ff1730;
  color: #ffffff;
}

.stepper-item.is-active .stepper-label {
  color: #111116;
  font-weight: 700;
}

.stepper-item.is-completed .stepper-num {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.stepper-item.is-completed .stepper-label {
  color: #111116;
}

/* Step Status Header Bar */
.step-status-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid #e7e3de;
}

.step-badge-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #faf8f5;
  border: 1px solid #e7e3de;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #111116;
}

.step-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff1730;
}

.step-status-title {
  font-size: 14px;
  font-weight: 600;
  color: #55505e;
}

/* ==========================================================================
   Multi-Step Viewport & Track
   ========================================================================== */

.form-steps-viewport {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-steps-track {
  display: flex;
  width: 100%;
  align-items: flex-start;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-step {
  flex: 0 0 100%;
  min-width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.form-step.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.form-step-header {
  margin-bottom: 20px;
}

.form-step-header h2 {
  font-size: 21px;
  font-weight: 700;
  color: #111116;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.form-step-header p {
  font-size: 13px;
  color: #64606f;
  margin: 0;
}

/* ==========================================================================
   Step Navigation Buttons
   ========================================================================== */

.step-nav-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e7e3de;
}

.step-nav-actions--end {
  justify-content: flex-end;
}

.step-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-btn--next,
.step-btn--submit {
  background: linear-gradient(135deg, #ff1730 0%, #d60920 100%);
  color: #ffffff;
  border: 1px solid #d60920;
  box-shadow: 0 4px 16px rgba(255, 23, 48, 0.25);
}

.step-btn--next:hover,
.step-btn--submit:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ff2a44 0%, #e00d24 100%);
  box-shadow: 0 8px 24px rgba(255, 23, 48, 0.35);
}

.step-btn--prev {
  background: #faf8f5;
  color: #44404c;
  border: 1px solid #d9d5d0;
}

.step-btn--prev:hover {
  background: #ffffff;
  color: #111116;
  border-color: #111116;
}

/* ==========================================================================
   Applicant Type Radios & Glass Choices
   ========================================================================== */

.registration-panel fieldset {
  min-width: 0;
  padding: 0;
  border: 0;
  margin: 22px 0;
}

.registration-panel legend {
  font-weight: 600;
  font-size: 13px;
  color: #111116;
  margin-bottom: 12px;
}

.type-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.type-choices label {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 13px 12px;
  border: 1px solid #e7e3de;
  border-radius: 12px;
  background: #faf8f5;
  font-size: 12px;
  color: #33303c;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.type-choices label:hover {
  background: #ffffff;
  border-color: #c48d3f;
  transform: translateY(-1px);
}

.type-choices input {
  accent-color: #ff1730;
}

.type-choices label:has(input:checked) {
  border-color: #ff1730;
  color: #ff1730;
  font-weight: 600;
  background: #fff0f2;
}

.type-choices label:focus-within {
  outline: 2px solid #ff1730;
  outline-offset: 2px;
}

.registration-panel .hint {
  display: block;
  margin-top: 6px;
  color: #8c8694;
  font-size: 11px;
}

/* ==========================================================================
   Document Verification & Upload Grid
   ========================================================================== */

.verification-heading {
  margin: 0 0 16px;
}

.verification-heading h3 {
  font-size: 18px;
  font-weight: 700;
  color: #111116;
  margin: 0 0 6px;
}

.verification-heading p {
  font-size: 12px;
  color: #64606f;
  margin: 0;
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.upload-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1.5px dashed #d9d5d0;
  background: #faf8f5;
  padding: 18px 12px;
  border-radius: 14px;
  min-width: 0;
  color: #111116;
  cursor: pointer;
  transition: all 0.25s ease;
}

.upload-box:hover {
  background: #ffffff;
  border-color: #c48d3f;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.upload-box b {
  font-size: 11px;
  color: #111116;
  margin-bottom: 4px;
  line-height: 1.3;
}

.upload-box > span {
  color: #ff1730;
  font-size: 26px;
  margin: 4px 0;
}

.upload-box strong {
  font-size: 12px;
  color: #111116;
}

.upload-box small {
  font-size: 10px;
  color: #8c8694;
  line-height: 1.3;
  margin-top: 2px;
}

.upload-box input {
  max-width: 100%;
  font-size: 10px;
  margin-top: 10px;
  color: #55505e;
}

.upload-box input::file-selector-button {
  padding: 6px 10px;
  border: 1px solid #d9d5d0;
  border-radius: 6px;
  background: #ffffff;
  color: #111116;
  font: inherit;
  margin-right: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.upload-box input::file-selector-button:hover {
  background: #faf8f5;
  border-color: #111116;
}

.upload-box .file-feedback {
  overflow-wrap: anywhere;
  margin-top: 6px;
  font-size: 10px;
  color: #10b981;
  font-weight: 600;
}

/* ==========================================================================
   Spinners, Confirmation & Responsive States
   ========================================================================== */

.form-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: form-spin 0.7s linear infinite;
}

.button.is-confirmed {
  background: #10b981 !important;
  border-color: #10b981 !important;
}

.button[aria-busy="true"] {
  gap: 10px;
}

@keyframes form-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Contact page compatibility fallback */
.inquiry-form-panel {
  border-radius: 24px;
  padding: 28px;
  border: 1px solid var(--glass-border, #e7e3de);
  background: var(--glass-bg, #ffffff);
  box-shadow:
    var(--glass-shadow, 0 16px 40px rgba(0, 0, 0, 0.04));
}

/* Responsive Media Queries */
@media (max-width: 950px) {
  .registration-panel {
    padding: 32px 28px;
    border-radius: 22px;
  }

  .stepper-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

@media (max-width: 650px) {
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .type-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .upload-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stepper-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stepper-pill {
    padding: 6px 8px;
  }

  .stepper-label {
    font-size: 12px;
  }

  .stepper-sub {
    display: none;
  }

  .registration-panel {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .step-nav-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .step-btn {
    width: 100%;
  }

  .form-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .trust-copy {
    text-align: center;
  }
}

@media (max-width: 400px) {
  .type-choices {
    grid-template-columns: minmax(0, 1fr);
  }

  .stepper-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .stepper-sub {
    display: inline;
  }
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  .form-steps-track,
  .form-steps-viewport,
  .stepper-progress-bar,
  .form-field input,
  .form-field textarea,
  .form-field select,
  .type-choices label,
  .upload-box,
  .step-btn {
    transition: none !important;
  }

  .form-spinner {
    animation: none;
  }
}