/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto";
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at top left, #2b2b2b, #111);
  overflow-x: hidden;
  overflow-y: auto;
  color: #fff;
  padding: 30px 15px;
}

/* ================= FLOATING BACKGROUND ================= */
.floating-overlay {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -2;
}
.floating-overlay span {
  position: absolute;
  bottom: -50px;
  width: 12px;
  height: 12px;
  background: rgba(212, 175, 55, 0.2);
  border-radius: 50%;
  animation: floatUp 18s linear infinite;
}
.floating-overlay span:nth-child(1) {
  left: 10%;
  animation-duration: 15s;
}
.floating-overlay span:nth-child(2) {
  left: 20%;
  animation-duration: 18s;
}
.floating-overlay span:nth-child(3) {
  left: 35%;
  animation-duration: 13s;
}
.floating-overlay span:nth-child(4) {
  left: 50%;
  animation-duration: 22s;
}
.floating-overlay span:nth-child(5) {
  left: 65%;
  animation-duration: 16s;
}
.floating-overlay span:nth-child(6) {
  left: 75%;
  animation-duration: 20s;
}
.floating-overlay span:nth-child(7) {
  left: 85%;
  animation-duration: 17s;
}
.floating-overlay span:nth-child(8) {
  left: 95%;
  animation-duration: 19s;
}

@keyframes floatUp {
  0% {
    transform: translateY(0);
    opacity: 0.2;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-120vh);
    opacity: 0;
  }
}

/* ================= FORM CONTAINER ================= */
#multiStepForm {
  width: 490px;
  max-width: 95%;
  max-height: 90vh;
  overflow-x: hidden;
  overflow-y: auto;
  background: rgba(28, 28, 28, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 20px;
  padding: 28px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(202, 168, 74, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: fadeIn 0.5s ease;
  margin: auto;
}
#multiStepForm::-webkit-scrollbar {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= LOGO ================= */
.logo-section-signup {
  text-align: center;
  margin-bottom: 15px;
}
.logo-section-signup img {
  height: 45px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(202, 168, 74, 0.3));
}

/* ================= HEADING ================= */
.content {
  text-align: center;
  margin-bottom: 20px;
}
.content h1 {
  font-family: "Rufina";
  font-weight: 600;
  font-size: 1.5rem;
  transform: translateY(-8px);
  letter-spacing: 1px;
  margin-bottom: 5px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.content p {
  letter-spacing: 0.5px;
  font-size: 12px;
  color: #d9d9d9;
  font-weight: 300;
  margin: 0;
}

/* ================= PROGRESS ================= */
.form-progress {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}
.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}
.step-label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  transition: all 0.3s ease;
}
.progress-step.active .step-number {
  background: linear-gradient(135deg, #caa84a, #e6c35c);
  color: #000;
  box-shadow: 0 0 15px rgba(202, 168, 74, 0.4);
}
.progress-step.active .step-label {
  color: #d4af37;
  font-weight: 500;
}

.progress-line {
  flex: 1;
  height: 2px;
  background: rgba(212, 175, 55, 0.2);
  margin: 0 6px;
  transition: all 0.3s ease;
  align-self: flex-start;
  margin-top: 15px;
}
.progress-line.active {
  background: linear-gradient(90deg, #caa84a, #e6c35c) !important;
}

/* ================= FORM STEPS ================= */
.form-step {
  display: none;
  position: relative;
}
.form-step.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

/* ================= CLOSE BUTTON ================= */
.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: rgba(42, 42, 42, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(202, 168, 74, 0.3);
  color: #caa84a;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}
.close-btn:hover {
  background: #caa84a;
  transform: rotate(90deg);
}
.close-btn svg:hover {
  fill: #000;
}

/* ================= ROLE CARDS ================= */
/*
 * KEY FIX: CSS Grid with two equal columns.
 * Works correctly regardless of whether children are
 * <label>, <div>, or <a> — no flex hacks needed.
 */
.role-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 25px;
  margin-top: 20px;
  width: 100%;
}

/* Every direct child becomes a flex container so the card fills it */
.role-cards > * {
  min-width: 0;
  display: flex;
  text-decoration: none;
}

.role-card {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  position: relative;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 14px;
  padding: 16px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(42, 42, 42, 0.3);
  backdrop-filter: blur(10px);
}

.role-card .icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 10px auto;
}
.role-card .icon svg {
  height: 32px;
  width: auto;
  fill: #d4af37;
}

.role-card-content {
  position: relative;
  z-index: 1;
}

.role-card h3 {
  letter-spacing: 0.8px;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  word-break: break-word;
  overflow-wrap: break-word;
}
.role-card p {
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  font-weight: 300;
  color: #d9d9d9;
  line-height: 1.4;
  margin-bottom: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

.role-card:hover {
  border-color: rgba(202, 168, 74, 0.5);
  background: rgba(42, 42, 42, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(202, 168, 74, 0.2);
}

.role-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Radio dot */
.radio-indicator {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 50%;
  transition: all 0.3s ease;
}
.radio-indicator::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #caa84a;
  transition: transform 0.3s ease;
}

/* Selected — driven entirely by JS .selected class */
.role-card.selected {
  border-color: #caa84a;
  background: rgba(202, 168, 74, 0.15);
  box-shadow:
    0 0 30px rgba(202, 168, 74, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.role-card.selected .radio-indicator {
  border-color: #caa84a;
  background: rgba(202, 168, 74, 0.2);
}
.role-card.selected .radio-indicator::after {
  transform: translate(-50%, -50%) scale(1);
}

/* ================= INPUTS ================= */
.input-row {
  display: flex;
  gap: 12px;
}
.input-group {
  flex: 1;
  margin-bottom: 14px;
}
.input-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  letter-spacing: 0.5px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(42, 42, 42, 0.3);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  font-weight: 300;
}
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(33%) brightness(85%);
  cursor: pointer;
}

.otp-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(42, 42, 42, 0.3);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  font-weight: 300;
  transform: translateY(-2px);
  text-align: center;
}
.otp-input::placeholder {
  text-align: center;
}

input:focus {
  outline: none;
  border-color: #caa84a;
  background: rgba(42, 42, 42, 0.8);
  box-shadow:
    0 0 0 3px rgba(202, 168, 74, 0.15),
    0 4px 12px rgba(202, 168, 74, 0.2);
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.password-wrapper input {
  flex: 1;
  padding-right: 40px;
}
.toggle-password {
  position: absolute;
  right: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* ================= TERMS ROW ================= */
.terms {
  font-size: 13px;
  margin: 10px 0 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.terms input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin: 0;
  cursor: pointer;
  accent-color: #caa84a;
}
.terms p {
  margin-bottom: 0;
  font-size: 13px;
  letter-spacing: 0.5px;
  line-height: 1.4;
}
.terms a {
  color: #d4af37;
  cursor: pointer;
  text-decoration: none;
}
.terms a:hover {
  color: #e6c35c;
  text-decoration: underline;
}

/* ================= BUTTONS ================= */
.btn-group {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.next-btn-1,
.term-btn {
  width: 100%;
  padding: 11px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #caa84a 0%, #e6c35c 100%);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  color: #000;
  transition: 0.3s ease;
  margin-bottom: 10px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.next-btn,
.verify-btn {
  flex: 1;
  padding: 11px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #caa84a 0%, #e6c35c 100%);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  color: #000;
  transition: 0.3s ease;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.back-btn {
  flex: 1;
  padding: 11px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: transparent;
  color: #d4af37;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s ease;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

/* Shimmer */
.next-btn::before,
.verify-btn::before,
.next-btn-1::before,
.term-btn::before,
.back-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
}
.next-btn:hover::before,
.verify-btn:hover::before,
.next-btn-1:hover::before,
.term-btn:hover::before,
.back-btn:hover::before {
  animation: shimmer 1s infinite ease-in-out;
}
@keyframes shimmer {
  0% {
    left: -75%;
  }
  100% {
    left: 125%;
  }
}

.next-btn:hover,
.verify-btn:hover,
.next-btn-1:hover,
.term-btn:hover,
.back-btn:hover {
  transform: translateY(-2px);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 600px) {
  #multiStepForm {
    width: 100%;
    padding: 24px 20px;
  }
  .role-cards {
    gap: 10px;
  }
  .content h1 {
    font-size: 1.4rem;
  }
}

/* ================= ALERT ================= */
.modal-alert {
  width: 100%;
  margin-top: -15px;
  margin-bottom: 20px;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
}
.modal-alert.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.modal-alert-content {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
}
.modal-alert-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-top: 2px;
}
.modal-alert-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.modal-alert-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.modal-alert-message {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
}

.modal-alert.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.modal-alert.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.modal-alert.warning {
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.3);
}
.modal-alert.error .modal-alert-icon {
  background: rgba(239, 68, 68, 0.15);
}
.modal-alert.success .modal-alert-icon {
  background: rgba(34, 197, 94, 0.15);
}
.modal-alert.warning .modal-alert-icon {
  background: rgba(234, 179, 8, 0.15);
}
.modal-alert.error .modal-alert-title {
  color: #ef4444;
}
.modal-alert.success .modal-alert-title {
  color: #22c55e;
}
.modal-alert.warning .modal-alert-title {
  color: #eab308;
}
.modal-alert.error .modal-alert-message {
  color: rgba(239, 68, 68, 0.8);
}
.modal-alert.success .modal-alert-message {
  color: rgba(34, 197, 94, 0.8);
}
.modal-alert.warning .modal-alert-message {
  color: rgba(234, 179, 8, 0.8);
}

/* ================= TERMS MODAL ================= */
.terms-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.terms-modal {
  background: rgba(28, 28, 28, 0.85);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  width: 80%;
  max-width: 520px;
  max-height: 85vh;
  border-radius: 16px;
  padding: 30px;
  color: #fff;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(-40px);
}
.terms-content {
  max-height: 55vh;
  overflow-y: scroll;
  padding-right: 6px;
  font-weight: 300;
}
.terms-content::-webkit-scrollbar {
  display: none;
}

.terms-modal h2 {
  font-family: "Rufina";
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #d4af37;
}
.terms-content h3 {
  font-family: "Rufina";
  margin-bottom: 10px;
}
.terms-content p {
  font-size: 12px;
  line-height: 1.5;
  color: #d9d9d9;
  margin-bottom: 15px;
  text-align: justify;
}

.terms-modal .close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: rgba(42, 42, 42, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(202, 168, 74, 0.3);
  color: #caa84a;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}
.terms-modal .close-btn:hover {
  background: #caa84a;
  transform: rotate(90deg);
}
.terms-modal .close-btn svg:hover {
  fill: #000;
}

/* ================= OTP RESEND ================= */
.resend-otp {
  text-align: center;
  letter-spacing: 0.5px;
  font-size: 12px;
  font-weight: 300;
  transform: translateY(8px);
}
.resend-otp a {
  color: #d4af37;
  text-decoration: none;
}
.resend-otp a:hover {
  color: #e6c35c;
  text-decoration: underline;
}

/* ================= FIELD HINTS ================= */
.field-hint {
  font-size: 11px;
  color: #d4af37;
  letter-spacing: 0.4px;
  font-weight: 300;
  margin-top: 5px;
  padding: 7px 11px;
  background: rgba(212, 175, 55, 0.07);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 7px;
  display: none;
  animation: fadeIn 0.2s ease;
  align-items: center;
}
.field-hint.visible {
  display: flex;
}

/* ================= PASSWORD CHECKLIST ================= */
.pw-checklist {
  margin-top: 6px;
  padding: 10px 13px;
  background: rgba(28, 28, 28, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  display: none;
  animation: fadeIn 0.2s ease;
}
.pw-checklist.visible {
  display: block;
}
.pw-checklist ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.pw-checklist ul li {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color 0.2s ease;
}
.pw-checklist ul li .pw-icon {
  font-style: normal;
  font-size: 13px;
}
.pw-checklist ul li.met {
  color: #22c55e;
}
.pw-checklist ul li.unmet {
  color: rgba(255, 255, 255, 0.35);
}
