/* =========================================================
   reseller-partner.css — only the blocks /reseller-partner
   adds on top of hosting.css + vps.css + vds.css (hero,
   feature cards, why cards, FAQ and CTA reuse those styles).
========================================================= */

#benefits, #partner-tiers, #how-it-works, #apply { scroll-margin-top: 90px; }

/* 8 benefit cards: 4 per row on desktop (hosting.css drops to 2 / 1 below) */
@media (min-width: 1101px) {
    .rp-benefits .sh-features-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Trust strip ---------- */
.rp-trust {
    padding: 28px 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}
.rp-trust-lead {
    text-align: center;
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #64748b;
}
.rp-trust-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 12px;
}
.rp-trust-list li {
    padding: 8px 16px;
    border-radius: 50px;
    background: #f1f5ff;
    border: 1px solid rgba(65, 105, 225, 0.18);
    color: #1e3a8a;
    font-size: 14px;
    font-weight: 600;
}

/* ---------- Partner tiers ---------- */
.rp-tiers {
    padding: 90px 0;
    background: #f8fafc;
}
.rp-tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}
.rp-tier {
    position: relative;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}
.rp-tier:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(65, 105, 225, 0.12); }
.rp-tier-featured {
    border: 2px solid #4169E1;
    box-shadow: 0 16px 40px rgba(65, 105, 225, 0.16);
}
.rp-tier-flag {
    position: absolute;
    top: -13px;
    right: 24px;
    background: #4169E1;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 50px;
}
.rp-tier-step {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #4169E1;
    margin-bottom: 6px;
}
.rp-tier h3 { font-size: 20px; font-weight: 800; color: #0f172a; margin: 0 0 12px; }
.rp-tier-value {
    font-size: 34px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 12px;
}
.rp-tier-value small { font-size: 14px; font-weight: 600; color: #64748b; }
.rp-tier p { font-size: 14px; color: #6b7280; line-height: 1.65; margin: 0 0 18px; }
.rp-tier p strong { color: #0f172a; }
.rp-tier ul { list-style: none; margin: auto 0 0; padding: 18px 0 0; border-top: 1px dashed #e2e8f0; display: grid; gap: 10px; }
.rp-tier li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #334155; }
.rp-tier li svg { flex: 0 0 auto; margin-top: 2px; color: #16a34a; }
.rp-tier-note {
    max-width: 760px;
    margin: 28px auto 0;
    text-align: center;
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

/* ---------- White-label section (reuses .vds-what) ---------- */
.rp-white { background: #ffffff; }

/* ---------- Onboarding steps ---------- */
.rp-steps {
    padding: 90px 0;
    background: linear-gradient(180deg, #f0f4ff 0%, #ffffff 100%);
}
.rp-step-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    counter-reset: none;
    position: relative;
}
.rp-step-list::before {
    content: "";
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: repeating-linear-gradient(90deg, rgba(65,105,225,.35) 0 8px, transparent 8px 14px);
    z-index: 0;
}
.rp-step {
    position: relative;
    z-index: 1;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 0 18px 22px;
    margin-top: 0;
}
.rp-step-num {
    width: 60px;
    height: 60px;
    margin: -1px auto 14px;
    transform: translateY(0);
    border-radius: 0 0 16px 16px;
    background: #4169E1;
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
}
.rp-step h3 { font-size: 16px; font-weight: 700; color: #0f172a; margin: 0 0 8px; }
.rp-step p { font-size: 14px; color: #6b7280; line-height: 1.6; margin: 0; }
.rp-step a { color: #4169E1; font-weight: 600; text-decoration: none; }
.rp-step a:hover { text-decoration: underline; }

/* ---------- Regional representation ---------- */
.rp-regional { padding: 20px 0 80px; background: #ffffff; }
.rp-regional-card {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 36px 40px;
    border-radius: 20px;
    background: linear-gradient(120deg, #0f172a 0%, #1e3a8a 100%);
    color: #e2e8f0;
}
.rp-regional-icon {
    flex: 0 0 auto;
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background: rgba(255,255,255,0.1);
    color: #93c5fd;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* vps.css sets `.vps-hero ~ section h2` dark, so match its specificity */
.vps-hero ~ section .rp-regional-text h2,
.rp-regional-text h2 { font-size: 24px; font-weight: 800; color: #ffffff; margin: 0 0 8px; }
.rp-regional-text p { font-size: 15px; line-height: 1.65; margin: 0; color: #cbd5e1; }
.rp-regional-btn {
    flex: 0 0 auto;
    padding: 14px 24px;
    border-radius: 12px;
    background: #ffffff;
    color: #1e3a8a;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease;
}
.rp-regional-btn:hover { transform: translateY(-2px); }

/* ---------- Apply form ---------- */
.rp-apply { padding: 90px 0; background: #f8fafc; }
.rp-apply-grid {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 48px;
    align-items: start;
}
.rp-apply-info h2 { font-size: 34px; font-weight: 800; color: #0f172a; line-height: 1.2; margin: 0 0 14px; }
.rp-apply-info > p { font-size: 16px; color: #475569; line-height: 1.7; margin: 0 0 22px; }
.rp-apply-points { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.rp-apply-points li { display: flex; gap: 10px; align-items: center; font-size: 15px; color: #0f172a; font-weight: 600; }
.rp-apply-points svg { color: #16a34a; flex: 0 0 auto; }
.rp-apply-contact {
    padding: 20px 22px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    display: grid;
    gap: 6px;
}
.rp-apply-contact p { margin: 0 0 4px; font-size: 13px; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.rp-apply-contact a { color: #4169E1; font-weight: 700; text-decoration: none; font-size: 15px; }
.rp-apply-contact a:hover { text-decoration: underline; }

.rp-form {
    position: relative;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
    display: grid;
    gap: 16px;
}
.rp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rp-field { display: grid; gap: 6px; }
.rp-field > span { font-size: 13px; font-weight: 600; color: #334155; }
.rp-field em { color: #ef4444; font-style: normal; }
.rp-field i { color: #94a3b8; font-style: normal; font-weight: 500; }
.rp-field input,
.rp-field select,
.rp-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    font: inherit;
    font-size: 15px;
    color: #0f172a;
    transition: border-color .2s ease, background .2s ease;
}
.rp-field textarea { resize: vertical; min-height: 96px; }
.rp-field input:focus,
.rp-field select:focus,
.rp-field textarea:focus { outline: none; border-color: #4169E1; background: #ffffff; }
.rp-field .rp-invalid,
.rp-invalid { border-color: #ef4444 !important; background: #fef2f2 !important; }
.rp-submit {
    margin-top: 4px;
    padding: 15px 24px;
    border: none;
    border-radius: 12px;
    background: #4169E1;
    color: #ffffff;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.rp-submit:hover { background: #3154c7; transform: translateY(-1px); }
.rp-submit:disabled { opacity: .7; cursor: wait; transform: none; }
.rp-msg { margin: 0; padding: 12px 14px; border-radius: 10px; font-size: 14px; line-height: 1.5; }
.rp-msg-ok { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.rp-msg-err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.rp-msg[hidden], .rp-submit [hidden] { display: none; }
.rp-form-legal { margin: 0; font-size: 12px; color: #94a3b8; text-align: center; }
.rp-form-legal a { color: #64748b; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .rp-step-list { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
    .rp-step-list::before { display: none; }
}
@media (max-width: 900px) {
    .rp-tier-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
    .rp-apply-grid { grid-template-columns: 1fr; gap: 32px; }
    .rp-regional-card { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
}
@media (max-width: 640px) {
    .rp-tiers, .rp-steps, .rp-apply { padding: 64px 0; }
    .rp-step-list { grid-template-columns: 1fr 1fr; }
    .rp-row { grid-template-columns: 1fr; }
    .rp-form { padding: 22px 18px; }
    .rp-apply-info h2 { font-size: 28px; }
    .rp-trust-list li { font-size: 13px; padding: 7px 12px; }
}
@media (max-width: 420px) {
    .rp-step-list { grid-template-columns: 1fr; }
}
