/* ============================================================================
   redesign.css — New IOTA Solutions Partner Portal design (2026).
   Loaded AFTER style.css and formStyle.css so it overrides the legacy look.
   Strategy: the landing page is rebuilt with inline-styled markup in index.html
   (faithful to the new mockup); this file supplies the hover interactions for
   it and a full restyle of the registration wizard (#partnershipModal) — all
   while leaving every JS hook (IDs / names / classes / data-step) untouched.
   ========================================================================== */

body {
  margin: 0;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  background: #ffffff;
  color: #353237;
}

/* ───────────────────────── Landing-page hover utilities ──────────────────
   Inline styles set the resting look; these :hover rules add the motion.
   !important is required because inline styles otherwise outrank selectors. */
.dz-link {
  transition: color 0.15s ease;
}
.dz-link:hover {
  color: #8205c5 !important;
}

.dz-pill {
  transition: border-color 0.15s ease, color 0.15s ease;
}
.dz-pill:hover {
  border-color: #8205c5 !important;
  color: #8205c5 !important;
}

.dz-btn-dark {
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.dz-btn-dark:hover {
  transform: translateY(-2px);
  background: #300378 !important;
  box-shadow: 0 14px 36px rgba(48, 3, 120, 0.3);
}
/* EUL apply button hovers to the brighter purple */
.dz-btn-dark.dz-eul:hover {
  background: #8205c5 !important;
}

.dz-btn-light {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.dz-btn-light:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.dz-btn-outline {
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.dz-btn-outline:hover {
  border-color: #8205c5 !important;
  color: #8205c5 !important;
  background: #ffffff !important;
}

.dz-btn-ghost {
  transition: background 0.15s ease;
}
.dz-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}

.dz-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dz-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 60px rgba(130, 5, 197, 0.18);
}

.dz-foot-link {
  transition: color 0.15s ease;
}
.dz-foot-link:hover {
  color: #ffffff !important;
}

/* ============================================================================
   REGISTRATION WIZARD  (#partnershipModal.partner-modal)
   ========================================================================== */

/* Full-screen overlay. main.js sets display:flex when opening. */
.partner-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(24, 24, 30, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.partner-modal .pm-shell {
  display: flex;
  width: min(1080px, 96vw);
  height: min(680px, 94vh);
  border-radius: 24px;
  overflow: hidden;
  background: #faf7fd;
  box-shadow: 0 40px 100px rgba(26, 4, 50, 0.5);
  animation: stepIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes stepIn {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Left brand rail ── */
.partner-modal .pm-rail {
  width: 320px;
  min-width: 320px;
  /* Deep purple → near-black theme with a soft purple glow bleeding in from
     the left, matching the new design's wizard rail. */
  background:
    radial-gradient(120% 85% at 0% 42%, rgba(120, 45, 195, 0.38), transparent 58%),
    linear-gradient(163deg, #2f2152 0%, #241845 38%, #170e30 72%, #0d0820 100%);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
/* Larger decorative rounded-square outline drifting in from the lower right. */
.partner-modal .pm-rail::after {
  content: "";
  position: absolute;
  bottom: 120px;
  right: -78px;
  width: 220px;
  height: 220px;
  border-radius: 52px;
  border: 28px solid rgba(255, 255, 255, 0.045);
  transform: rotate(11deg);
  pointer-events: none;
  z-index: 0;
}
.partner-modal .pm-rail-top {
  position: relative;
  z-index: 1;
}
.partner-modal .pm-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 40px;
}
.partner-modal .pm-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 4px solid #ffffff;
  position: relative;
}
.partner-modal .pm-logo-mark span {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 13px;
  height: 13px;
  border-radius: 4px;
  background: #ffffff;
}
.partner-modal .pm-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.partner-modal .pm-logo-name {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: #ffffff;
}
.partner-modal .pm-logo-sub {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.34em;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 3px;
}
.partner-modal .pm-rail-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: #ffffff;
  margin-bottom: 9px;
}
.partner-modal .pm-rail-desc {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 34px;
}

/* Vertical step indicators (reuses .step-item/.step-icon/.step-title that
   script.js toggles .active/.completed on). */
.partner-modal .pm-rail .step-indicators {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 4px;
  margin: 0;
  justify-content: flex-start;
}
.partner-modal .pm-rail .step-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  padding: 10px 12px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.2s ease;
}
.partner-modal .pm-rail .step-item .step-icon {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 9px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid transparent;
}
.partner-modal .pm-rail .step-item .step-content {
  text-align: left;
}
.partner-modal .pm-rail .step-item .step-title {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
}
.partner-modal .pm-rail .step-item.active {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
}
.partner-modal .pm-rail .step-item.active .step-icon {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}
.partner-modal .pm-rail .step-item.active .step-title {
  color: #ffffff;
  font-weight: 800;
}
.partner-modal .pm-rail .step-item.completed .step-icon {
  background: #ffffff;
  color: #300378;
}
.partner-modal .pm-rail .step-item.completed .step-title {
  color: #e5d5f7;
}

.partner-modal .pm-rail-stats {
  position: relative;
  z-index: 1;
  margin-top: auto;
  display: flex;
  gap: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 20px;
}
.partner-modal .pm-stat {
  display: flex;
  flex-direction: column;
}
.partner-modal .pm-stat-num {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
}
.partner-modal .pm-stat-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

/* ── Right form panel ── */
.partner-modal .pm-panel {
  flex: 1;
  min-width: 0;
  background: #faf7fd;
  display: flex;
  flex-direction: column;
}

.partner-modal .pm-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 38px 0;
}
.partner-modal .pm-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #8205c5;
}
.partner-modal .pm-head h2,
.partner-modal #stepTitle {
  margin: 6px 0 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #221e26;
}
.partner-modal .pm-close {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  border: 1px solid #e4dbee;
  background: #ffffff;
  color: #6b6473;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.partner-modal .pm-close:hover {
  background: #f2eaf9;
  color: #221e26;
}

/* Progress bar — force visible (formStyle.css hides .progress-section). */
.partner-modal .progress-section {
  display: block;
  margin: 0;
  padding: 16px 38px 0;
}
.partner-modal .progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.partner-modal .progress-text,
.partner-modal .progress-percentage {
  font-size: 12px;
  font-weight: 700;
  color: #6b6473;
}
.partner-modal .progress-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #eae2f2;
  overflow: hidden;
}
.partner-modal .progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #8205c5, #4c0492);
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scroll body */
.partner-modal .pm-body {
  flex: 1;
  overflow-y: auto;
  padding: 26px 38px;
}
.partner-modal .form-content {
  padding: 0;
  background: transparent;
  overflow: visible;
}
.partner-modal .form-card,
.partner-modal hr {
  /* legacy wrappers no longer used — neutralize if present */
  border: none;
  margin: 0;
  padding: 0;
}

/* ── Inputs / selects ── boxed (not the legacy underline) ── */
.partner-modal #partnerForm .form-group {
  display: block;
  margin-bottom: 20px;
}
.partner-modal #partnerForm .form-group:has(> input, > select, > textarea),
.partner-modal #partnerForm .form-group:has(> .checkbox-container) {
  display: block;
  margin-bottom: 22px;
}
.partner-modal #partnerForm .form-group > label,
.partner-modal #partnerForm .form-group:has(> input, > select, > textarea) > label,
.partner-modal #partnerForm .form-group:has(> .checkbox-container) > label {
  display: block;
  flex: none;
  max-width: none;
  text-align: left;
  padding: 0;
  margin: 0 0 8px;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.4;
  color: #2d2733;
}
.partner-modal #partnerForm .form-group > label .text-muted,
.partner-modal #partnerForm .ms-group > label .text-muted,
.partner-modal #partnerForm .qa-group > label .text-muted {
  display: inline;
  font-weight: 500;
  color: #8a7f96;
  font-size: 12.5px;
}

.partner-modal #partnerForm input[type="text"],
.partner-modal #partnerForm input[type="email"],
.partner-modal #partnerForm input[type="tel"],
.partner-modal #partnerForm input[type="url"],
.partner-modal #partnerForm input[type="number"],
.partner-modal #partnerForm input[type="password"],
.partner-modal #partnerForm input[type="date"],
.partner-modal #partnerForm select,
.partner-modal #partnerForm .form-group:has(> input, > select, > textarea) > input,
.partner-modal #partnerForm .form-group:has(> input, > select, > textarea) > select {
  width: 100%;
  flex: none;
  padding: 12px 14px;
  border: 1.5px solid #e4dbee;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: none;
  font-family: "Manrope", sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  color: #221e26;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.partner-modal #partnerForm select {
  cursor: pointer;
}
.partner-modal #partnerForm input:focus,
.partner-modal #partnerForm select:focus,
.partner-modal #partnerForm textarea:focus {
  outline: none;
  border: 1.5px solid #8205c5;
  box-shadow: 0 0 0 3px rgba(130, 5, 197, 0.12);
}
.partner-modal #partnerForm input.error,
.partner-modal #partnerForm select.error,
.partner-modal #partnerForm textarea.error {
  border: 1.5px solid #e5484d;
  box-shadow: none;
}

.partner-modal #partnerForm small {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: #8a7f96;
  margin-top: 6px;
}
.partner-modal #partnerForm .info-note-inline {
  color: #8205c5 !important;
  font-weight: 600;
}
.partner-modal #partnerForm .required {
  color: #e5484d;
}

/* Two/three-column field rows */
.partner-modal #partnerForm .form-row {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
}
.partner-modal #partnerForm .form-row.three-columns {
  grid-template-columns: 1fr 1fr 1fr;
}
.partner-modal #partnerForm .form-row:has(> .form-group:only-child) {
  grid-template-columns: 1fr;
}

/* ── Card-style multi-select checkboxes ── */
.partner-modal #partnerForm .checkbox-container {
  max-height: none;
  overflow: visible;
  background: transparent;
  border: none;
  margin-top: 14px;
}
.partner-modal #partnerForm .checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.partner-modal #partnerForm .checkbox-grid-products {
  grid-template-columns: repeat(3, 1fr) !important;
}
.partner-modal #partnerForm .checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: auto;
  margin: 0 !important;
  padding: 11px 14px;
  border: 1.5px solid #e8e2f0;
  border-radius: 10px;
  background: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  color: #2d2733;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.partner-modal #partnerForm .checkbox-item:hover {
  background: #faf5fe;
  border-color: #d9cce9;
}
.partner-modal #partnerForm .checkbox-item .checkmark {
  position: static;
  top: auto;
  left: auto;
  transform: none;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 5px;
  border: 1.5px solid #cfc5dc;
  background: #ffffff;
}
.partner-modal #partnerForm .checkbox-item input:checked ~ .checkmark {
  background: linear-gradient(135deg, #8205c5, #4c0492);
  border-color: #8205c5;
  transform: none;
}
.partner-modal #partnerForm .checkbox-item:has(input:checked) {
  border-color: #8205c5;
  background: #f7ebfd;
}
.partner-modal #partnerForm .checkbox-item .checkmark:after {
  left: 5.5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
}
.partner-modal #partnerForm .checkbox-item.none-item {
  font-style: italic;
  color: #6b6473;
}
.partner-modal #partnerForm .checkbox-item:has(input:disabled) {
  opacity: 0.5;
}

/* "Other" free-text box */
.partner-modal #partnerForm .form-group:has(> .checkbox-container) > textarea.other-input,
.partner-modal #partnerForm textarea.other-input {
  width: 100%;
  min-height: 64px;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1.5px solid #e4dbee;
  border-radius: 10px;
  background: #ffffff;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #221e26;
  resize: vertical;
}
.partner-modal #partnerForm .form-group:has(> .checkbox-container) > textarea.other-input:focus {
  border: 1.5px solid #8205c5;
  box-shadow: 0 0 0 3px rgba(130, 5, 197, 0.12);
}

/* Multi-select / questionnaire group spacing */
.partner-modal #partnerForm .ms-group.form-group,
.partner-modal #partnerForm .questionnaire-block .qa-group.form-group {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 26px;
}
.partner-modal #partnerForm .ms-group > label,
.partner-modal #partnerForm .qa-group > label {
  margin-bottom: 0;
}

/* Questionnaire container */
.partner-modal .questionnaire-block {
  margin-top: 6px;
  padding: 0;
  background: transparent;
  border: none;
}
.partner-modal .questionnaire-intro {
  background: rgba(130, 5, 197, 0.06);
  border: 1px solid rgba(130, 5, 197, 0.25);
  border-left: 1px solid rgba(130, 5, 197, 0.25);
  border-radius: 12px;
  color: #4a4253;
  font-size: 13.5px;
  margin-bottom: 24px;
}
.partner-modal .questionnaire-intro i {
  color: #8205c5;
}
#splQuestions.questionnaire-block .questionnaire-intro {
  background: rgba(48, 3, 120, 0.05);
  border-color: rgba(48, 3, 120, 0.22);
}

/* Detect-location button */
.partner-modal .detect-location-btn {
  margin-top: 10px;
  color: #8205c5;
  border-color: #e0d4ee;
}
.partner-modal .detect-location-btn:hover {
  background: #f7eefe;
  border-color: #8205c5;
}

/* Review section */
.partner-modal .review-section {
  margin-top: 6px;
  padding: 24px 26px;
  border: 1px solid #e4dbee;
  border-radius: 16px;
  background: #ffffff;
}
.partner-modal .review-section h6 {
  color: #221e26;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  font-weight: 800;
}
.partner-modal .review-section h6 i {
  color: #8205c5;
}
.partner-modal .review-section p {
  color: #6b6473;
  font-size: 13.5px;
}

/* Error messages */
.partner-modal .error-message {
  color: #e5484d;
  font-size: 12px;
  font-weight: 700;
  margin-top: 6px;
}

/* ── Footer nav (Prev / Next / Submit) ── */
.partner-modal .form-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 38px;
  border-top: 1px solid #eae2f2;
  background: #ffffff;
}
.partner-modal .nav-right {
  display: flex;
  gap: 12px;
  width: auto;
  margin-left: 0;
}
.partner-modal .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Manrope", sans-serif;
  font-size: 14.5px;
  font-weight: 800;
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.partner-modal .btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #8205c5, #4c0492);
  box-shadow: 0 6px 24px rgba(130, 5, 197, 0.3);
}
.partner-modal .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 32px rgba(130, 5, 197, 0.4);
}
.partner-modal .btn-secondary {
  color: #4a4253;
  background: #ffffff;
  border: 1.5px solid #e4dbee;
}
.partner-modal .btn-secondary:hover {
  background: #f2eaf9;
}

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width: 880px) {
  .partner-modal {
    padding: 0;
  }
  .partner-modal .pm-shell {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }
  .partner-modal .pm-rail {
    display: none;
  }
  .partner-modal .pm-head,
  .partner-modal .progress-section,
  .partner-modal .pm-body,
  .partner-modal .form-navigation {
    padding-left: 22px;
    padding-right: 22px;
  }
  .partner-modal #partnerForm .form-row,
  .partner-modal #partnerForm .form-row.three-columns,
  .partner-modal #partnerForm .checkbox-grid,
  .partner-modal #partnerForm .checkbox-grid-products {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 520px) {
  .partner-modal .form-navigation {
    flex-direction: column-reverse;
    gap: 10px;
  }
  .partner-modal .nav-right,
  .partner-modal .form-navigation .btn {
    width: 100%;
  }
  .partner-modal .nav-right {
    flex-direction: column;
  }
}
