/* ============================================
   PARTNER PAGE
   ============================================ */

/* ── Above-fold wrapper: hero + steps fill viewport ── */
.partner-above-fold {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  box-sizing: border-box;
  padding-top: 64px; /* navbar offset */
  position: relative;
}

/* ── Hero ── */
.partner-hero {
  padding: 0;
  margin-top: -28px;
  background: transparent;
  text-align: center;
}

.partner-hero-inner {
  max-width: 860px;
  margin: 0 auto;
}

.partner-hero-title {
  font-family: var(--font-d);
  font-size: clamp(32px, 4.5vw, 58px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0;
}

.partner-hero-accent {
  color: #0062CC;
  position: relative;
  display: inline-block;
}

/* ── Registration Steps ── */
.partner-steps-section {
  padding: 32px 0 0;
  background: transparent;
}

.partner-scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 0;
  color: var(--text-mute);
  text-decoration: none;
  transition: color 0.2s;
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
}

.partner-scroll-cue:hover { color: var(--blue); }

.psc-label {
  font-family: var(--font-d);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.psc-arrow {
  animation: psc-bounce 1.5s ease-in-out infinite;
}

@keyframes psc-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

.partner-steps-title {
  font-family: var(--font-d);
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 700;
  text-align: center;
  color: var(--text);
  margin-bottom: 36px;
  letter-spacing: -0.01em;
}

.partner-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  align-items: start;
  position: relative;
}

.partner-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.step-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 1.5px solid #d8d8d8;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.partner-step:hover .step-circle {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0,168,255,0.10);
}

.step-circle.is-active {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0,168,255,0.14);
}

.step-circle.is-active svg circle,
.step-circle.is-active svg path {
  stroke: var(--blue);
  transition: stroke 0.3s ease;
}

.step-connector {
  position: absolute;
  top: 38px;
  left: 50%;
  width: 100%;
  height: 1.5px;
  background: #d8d8d8;
  z-index: 1;
  overflow: hidden;
}

.step-connector::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0%;
  background: var(--blue);
  transition: width 0.5s ease;
}

.step-connector.is-filled::after {
  width: 100%;
}

.partner-step:last-child .step-connector {
  display: none;
}

.step-label {
  margin-top: 14px;
  text-align: center;
  padding: 0 8px;
}

.step-label h4 {
  font-family: var(--font-d);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.3;
}

.step-label p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0;
}

/* ── Application Form ── */
.partner-form-section {
  padding: 80px 0 100px;
  background: var(--bg-2);
}

.partner-form-section .section-overline { color: #0062CC; }
.partner-form-section .check { color: #0062CC; }

.partner-form-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 72px;
  align-items: start;
}

.partner-form-left {
  position: sticky;
  top: 100px;
}

/* Form */
.partner-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.06);
}

.pf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.pf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.pf-row .pf-field {
  margin-bottom: 0;
}

.pf-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pf-field input,
.pf-field select,
.pf-field textarea {
  font-family: var(--font-d);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  box-sizing: border-box;
  appearance: none;
}

.pf-field input::placeholder,
.pf-field textarea::placeholder {
  color: var(--text-mute);
}

.pf-field input:focus,
.pf-field select:focus,
.pf-field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,168,255,0.12);
}

.pf-field textarea {
  resize: vertical;
  min-height: 100px;
}

.pf-error {
  font-size: 13px;
  color: #e53e3e;
  margin: 0 0 12px;
  min-height: 18px;
}

.pf-submit {
  width: 100%;
  justify-content: center;
  font-size: 15px;
  padding: 14px;
  position: relative;
  background: #0062CC;
  color: #fff;
}
.pf-submit::after { display: none; }
.pf-submit:hover { background: #004FA3; }

.pf-submit.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.pf-submit.is-loading::after {
  content: '';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

/* Success state */
.pf-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 56px 40px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.06);
}

.pf-success.is-visible {
  display: flex;
}

.pf-success h3 {
  font-family: var(--font-d);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.pf-success p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 340px;
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .partner-form-wrap {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .partner-form-left {
    position: static;
  }
}

@media (max-width: 768px) {
  .partner-hero {
    padding: 100px 24px 60px;
  }

  .partner-steps {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 320px;
    margin: 0 auto;
  }

  .step-connector {
    display: none;
  }

  .step-circle {
    width: 80px;
    height: 80px;
  }

  .partner-form {
    padding: 28px 20px;
  }

  .pf-row {
    grid-template-columns: 1fr;
  }
}
