/* Partners page — home design system. IDs used by inline JS preserved. */

.partners-page { background: var(--ro-paper, #f6f8fe); }

.partners-hero .ro-page-lede { max-width: 640px; }

.partners-section {
  position: relative;
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 24px;
  z-index: 2;
}
.partners-section .ro-overline {
  margin: 0 auto 14px;
  color: var(--ro-blue);
}
.partners-section h2 {
  margin: 0;
  text-align: center;
  font-family: var(--ro-display, "Plus Jakarta Sans", sans-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.035em;
  color: var(--ro-ink, #0a1531);
  line-height: 1.1;
}
.partners-section > p {
  max-width: 520px;
  margin: 14px auto 40px;
  text-align: center;
  color: var(--ro-copy, #4d5b73);
  font-size: 1.02rem;
  line-height: 1.7;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.step-card {
  position: relative;
  padding: 28px 24px;
  border-radius: 22px;
  border: 1px solid var(--ro-line, rgba(10, 34, 83, 0.12));
  background: #fff;
  box-shadow: 0 18px 48px rgba(12, 42, 101, 0.06), inset 0 1px 0 #fff;
  transition: transform .32s var(--ro-ease, cubic-bezier(.16,1,.3,1)), box-shadow .32s ease;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(12, 42, 101, 0.1);
}
.step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 14px;
  font-family: var(--ro-display, "Plus Jakarta Sans", sans-serif);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #2974ff, #0b4ee7);
  box-shadow: 0 12px 28px rgba(0, 55, 190, 0.22);
}
.step-title {
  margin: 0 0 8px;
  font-family: var(--ro-display, "Plus Jakarta Sans", sans-serif);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ro-ink, #0a1531);
}
.step-desc {
  margin: 0;
  font-size: .92rem;
  line-height: 1.65;
  color: var(--ro-copy, #4d5b73);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.benefit-card {
  padding: 24px 20px;
  border-radius: 20px;
  border: 1px solid var(--ro-line, rgba(10, 34, 83, 0.12));
  background: #fff;
  box-shadow: 0 16px 40px rgba(12, 42, 101, 0.05), inset 0 1px 0 #fff;
  text-align: center;
  transition: transform .32s var(--ro-ease, cubic-bezier(.16,1,.3,1));
}
.benefit-card:hover { transform: translateY(-3px); }
.benefit-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: rgba(18, 97, 255, 0.08);
  border: 1px solid rgba(18, 97, 255, 0.16);
  color: var(--ro-blue, #1261ff);
}
.benefit-icon svg { width: 22px; height: 22px; }
.benefit-value {
  margin: 0 0 6px;
  font-family: var(--ro-display, "Plus Jakarta Sans", sans-serif);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ro-ink, #0a1531);
}
.benefit-label {
  margin: 0;
  font-size: .8rem;
  line-height: 1.5;
  color: var(--ro-copy, #4d5b73);
}

.form-section {
  width: min(560px, calc(100% - 40px));
  margin: 48px auto 96px;
  position: relative;
  z-index: 2;
}
.form-card {
  padding: 36px 32px;
  border-radius: 24px;
  border: 1px solid var(--ro-line, rgba(10, 34, 83, 0.12));
  background: #fff;
  box-shadow: 0 24px 64px rgba(12, 42, 101, 0.08), inset 0 1px 0 #fff;
}
.form-card h3 {
  margin: 0 0 8px;
  font-family: var(--ro-display, "Plus Jakarta Sans", sans-serif);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ro-ink, #0a1531);
  text-align: center;
}
.form-card > p,
#formSubtitle {
  margin: 0 0 28px;
  text-align: center;
  color: var(--ro-copy, #4d5b73);
  font-size: .92rem;
  line-height: 1.6;
}

#formLoadingMsg {
  text-align: center;
  color: var(--ro-copy, #4d5b73);
  font-size: .9rem;
  padding: 24px 0;
}

#authGateNotLoggedIn,
#authGateNoLicense,
#partnerForm {
  display: none;
}
#authGateNotLoggedIn.visible,
#authGateNoLicense.visible,
#partnerForm.visible {
  display: block;
}

.gate-msg {
  margin: 0 0 20px;
  text-align: center;
  color: var(--ro-copy, #4d5b73);
  font-size: .95rem;
  line-height: 1.7;
}
.gate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  width: 100%;
  padding: 0 22px;
  border-radius: 16px;
  border: 1px solid rgba(163, 195, 255, 0.42);
  color: #fff;
  font-family: var(--ro-ui, "Plus Jakarta Sans", sans-serif);
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(145deg, #2974ff, #0b4ee7 65%, #073bbf);
  box-shadow: 0 16px 36px rgba(0, 55, 190, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform .28s var(--ro-ease, cubic-bezier(.16,1,.3,1)), box-shadow .28s ease;
  cursor: pointer;
}
.gate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(0, 55, 190, 0.36);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.form-group label {
  font-size: .8rem;
  font-weight: 700;
  color: var(--ro-ink, #0a1531);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid var(--ro-line, rgba(10, 34, 83, 0.14));
  background: #fff;
  color: var(--ro-ink, #0a1531);
  font-family: var(--ro-body, Inter, sans-serif);
  font-size: .95rem;
  transition: border-color .25s, box-shadow .25s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(18, 97, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(18, 97, 255, 0.12);
}
.form-group input[readonly] {
  background: var(--ro-paper-blue, #eaf1ff);
  color: var(--ro-copy, #4d5b73);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.55;
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234d5b73' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  margin-top: 8px;
  border: 1px solid rgba(163, 195, 255, 0.42);
  border-radius: 16px;
  color: #fff;
  font-family: var(--ro-ui, "Plus Jakarta Sans", sans-serif);
  font-size: .92rem;
  font-weight: 800;
  background: linear-gradient(145deg, #2974ff, #0b4ee7 65%, #073bbf);
  box-shadow: 0 16px 36px rgba(0, 55, 190, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: transform .28s var(--ro-ease, cubic-bezier(.16,1,.3,1)), box-shadow .28s ease;
}
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(0, 55, 190, 0.36);
}
.submit-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

.success-msg {
  display: none;
  margin-top: 24px;
  padding: 28px 24px;
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, 0.28);
  background: rgba(16, 185, 129, 0.08);
  color: var(--ro-ink, #0a1531);
  text-align: center;
  font-size: .95rem;
  line-height: 1.7;
}
.success-msg.visible { display: block; }
.success-msg strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--ro-display, "Plus Jakarta Sans", sans-serif);
  font-size: 1.15rem;
  font-weight: 800;
  color: #059669;
}
.success-msg a { color: #059669; font-weight: 700; text-decoration: underline; }

@media (max-width: 900px) {
  .steps-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .benefits-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px 20px; }
  .partners-section { width: min(100% - 28px, 680px); padding-top: 48px; }
  .form-section { width: min(100% - 28px, 560px); margin-bottom: 64px; }
}
