/* Layout */
.reg-wrap {
  max-width: 900px;
  margin: 40px auto 80px;
  padding: 0 18px;
}

.reg-hero {
  margin-top: 26px;
  margin-bottom: 18px;
}

.reg-title {
  margin: 0 0 10px;
  font-size: 34px;
  color: var(--neon);
}

.reg-sub {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  max-width: 820px;
}

/* Section (keep it clean, not card-heavy) */
.reg-section {
  margin-top: 18px;
}

/* Form */
.reg-form {
  display: grid;
  gap: 14px;
}

/* Fields */
.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.2px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(255, 165, 0, 0.55);
}

/* Radio */
.radio-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.radio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.radio input {
  accent-color: var(--ocean);
}

/* Consent */
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
  margin-top: 2px;
}

.consent input {
  margin-top: 4px;
  accent-color: var(--neon);
}

/* Submit button */
.btn-submit {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 165, 0, 0.45);
  background: rgba(255, 165, 0, 0.14);
  color: #FFA500;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-submit:hover {
  background: rgba(255, 165, 0, 0.22);
  transform: translateY(-1px);
}

/* Note */
.reg-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.reg-note a {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.reg-note a:hover {
  color: #FFA500;
}

/* Optional messages (hidden by default) */
.msg {
  display: none;
  padding: 12px 14px;
  border-radius: 12px;
  margin-top: 8px;
}

.msg.success {
  border: 1px solid rgba(124, 255, 0, 0.35);
  background: rgba(124, 255, 0, 0.10);
  color: var(--text);
}

.msg.error {
  border: 1px solid rgba(255, 0, 0, 0.35);
  background: rgba(255, 0, 0, 0.10);
  color: var(--text);
}

@media (max-width: 640px) {
  .reg-title {
    font-size: 28px;
  }

  .radio-row {
    gap: 10px;
  }
}


.registration-pipeline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  /* background: #0b1622; */
  padding: 30px 20px;
  border-radius: 16px;
  position: relative;
  overflow-x: auto;
}

/* Connection line */
.registration-pipeline::before {
  content: "";
  position: absolute;
  top: 55px;
  left: 40px;
  right: 40px;
  height: 3px;
  background: linear-gradient(90deg, #4da3ff, #9a4dff);
  z-index: 0;
}

.pipeline-step {
  position: relative;
  z-index: 1;
  min-width: 140px;
  text-align: center;
  color: #e6edf3;
}

.step-number {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #0b1622;
  border: 3px solid #4da3ff;
  color: #4da3ff;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
  transition: 0.3s;
}

.pipeline-step h4 {
  margin: 6px 0 4px;
  font-size: 0.95rem;
}

.pipeline-step p {
  font-size: 0.8rem;
  opacity: 0.85;
}

/* Active / hover */
.pipeline-step:hover .step-number,
.pipeline-step.active .step-number {
  background: linear-gradient(135deg, #4da3ff, #9a4dff);
  color: #fff;
  border-color: transparent;
  transform: scale(1.05);
}

/* Responsive */
/* Mobile: horizontal, 2 lines (4 + 3 steps) */
/* =================================================
   Registration Pipeline – Mobile: 2-line horizontal
   ================================================= */
@media (max-width: 900px) {

  .registration-pipeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 16px 12px;
    justify-items: center;
    padding: 22px 16px;
  }

  /* Hide long connection line on mobile */
  .registration-pipeline::before {
    display: none;
  }

  .pipeline-step {
    min-width: unset;
    max-width: 160px;
  }

  .pipeline-step h4 {
    font-size: 0.9rem;
  }

  .pipeline-step p {
    font-size: 0.75rem;
  }
}


/* ===== NAVBAR LOCK (prevents other pages CSS overriding it) ===== */
.topbar {
  background: rgba(10, 20, 30, .90) !important;
}

.nav {
  max-width: 1100px;
  margin: auto;
  min-height: var(--nav-h);
  padding: 12px 18px;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 16px;
  /* direction: ltr; */
}

.nav-links {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex-wrap: wrap;
  justify-content: flex-end;
  /* direction: rtl; */
}

.nav-links a {
  color: var(--text) !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  padding: 8px 10px !important;
  border-radius: 10px !important;
  background: transparent !important;
}

.nav-links a:hover {
  color: var(--neon) !important;
  background: rgba(255, 255, 255, .06) !important;
}

/* Footer */
.footer {
  margin-top: 50px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.zoho-form-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.zoho-form-wrap iframe {
  width: 100%;
  min-height: 900px;
}

/* ===== THANK YOU MODAL (popup) ===== */
.modal-overlay[hidden] {
  display: none !important;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgb(78 100 26); /* same green overlay */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
}

/* lock page behind */
body.modal-open {
  overflow: hidden;
}

/* optional: prevent any click behind (extra-safe) */
body.modal-open main,
body.modal-open .topbar,
body.modal-open .footer {
  pointer-events: none;
  user-select: none;
}

/* allow modal to still work */
body.modal-open .modal-overlay,
body.modal-open .modal-overlay * {
  pointer-events: auto;
}

/* ✅ The important change: modal fits viewport, no internal scroll */
.modal {
  width: min(980px, 100%);
  height: min(720px, calc(100vh - 36px)); /* fits screen */
  background: rgba(14, 26, 36, .98);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  position: relative;

  display: flex;
  flex-direction: column;
  overflow: hidden; /* ✅ lock everything inside */
}

/* ✅ Header becomes compact and image is capped */
.modal-head {
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);

  display: grid;
  grid-template-columns: clamp(120px, 22vh, 180px) 1fr auto;
  gap: 14px;
  align-items: center;
}

/* Your existing HTML uses .succes-image img */
.succes-image {
  height: clamp(110px, 20vh, 180px);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);

  display: flex;
  align-items: center;
  justify-content: center;
}

.succes-image img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* ✅ no oversized image */
  display: block;
}

.modal-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.modal-sub {
  margin: 6px 0 0 0;
  color: rgba(216, 227, 234, .85);
  font-size: 14px;
  line-height: 1.45;
  max-width: 72ch;
}

.modal-close {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
}

/* ✅ Body fills remaining space, still no scrolling */
.modal-body {
  padding: 12px 16px 16px;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
}

/* ✅ Grid panels fit the remaining space */
.detail-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
  width: 100%;
  min-height: 0;
  align-items: stretch;
}

/* Make panels nice and contained */
.detail-grid .panel {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 14px;
  min-height: 0;
  overflow: hidden;
}

/* ✅ Mobile: stack and keep close button usable */
@media (max-width: 860px) {
  .modal {
    height: calc(100vh - 24px);
  }

  .modal-head {
    grid-template-columns: 110px 1fr;
    grid-template-rows: auto auto;
  }

  .modal-close {
    grid-column: 2 / 3;
    justify-self: end;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }
}
