/* ============================================================
   Become a Partner – Premium Redesign
   ============================================================ */

/* ── Hero ──────────────────────────────────────────────────── */
.bp-hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.bp-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(40,40,40,0.78) 0%, rgba(40,40,40,0.5) 35%, transparent 70%);
    z-index: 1;
}

.bp-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 80px 24px 80px 56px;
}

.bp-hero-inner {
    max-width: 540px;
}

.bp-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.bp-hero-title {
    font-size: 52px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin: 0 0 20px;
}

.bp-hero-gradient {
    background: linear-gradient(to right, #7dd3fc, #86efac);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bp-hero-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    margin: 0 0 36px;
}

.bp-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.bp-hero-btn-primary {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(to right, #288CCB, #49A644);
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    padding: 15px 30px;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

.bp-hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}

.bp-hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.12);
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    padding: 15px 30px;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.3);
    transition: background 0.2s;
}

.bp-hero-btn-secondary:hover {
    background: rgba(255,255,255,0.22);
}

/* ── Stats Bar ─────────────────────────────────────────────── */
.bp-stats-bar {
    background: #ffffff;
    border-bottom: 1px solid #e8eef3;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.bp-stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 0;
}

.bp-stat {
    flex: 1;
    text-align: center;
    padding: 8px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bp-stat strong {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(to right, #288CCB, #49A644);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.bp-stat span {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bp-stats-sep {
    width: 1px;
    height: 48px;
    background: #e2e8f0;
    flex-shrink: 0;
}

/* ── Shared Helpers ─────────────────────────────────────────── */
.bp-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #288CCB;
    margin-bottom: 12px;
}

.bp-section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.bp-section-header h2 {
    font-size: 34px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin: 0 0 12px;
}

.bp-section-sub {
    font-size: 16px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* ── Why Partner ───────────────────────────────────────────── */
.bp-why-section {
    padding: 96px 0;
    background: #f8fafc;
}

.bp-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.bp-benefit-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 36px 28px;
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.25s, transform 0.25s;
}

.bp-benefit-card:hover {
    box-shadow: 0 10px 36px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.bp-benefit-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(40,140,203,0.1), rgba(73,166,68,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.bp-benefit-card h4 {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px;
}

.bp-benefit-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

/* ── What You Can Sell ─────────────────────────────────────── */
.bp-sell-section {
    padding: 96px 0;
    background: #ffffff;
}

.bp-sell-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.bp-sell-card {
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: box-shadow 0.25s, transform 0.25s;
}

.bp-sell-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.09);
    transform: translateY(-3px);
}

.bp-sell-img-wrap {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.bp-sell-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.bp-sell-card:hover .bp-sell-img-wrap img {
    transform: scale(1.04);
}

.bp-sell-img-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: linear-gradient(to right, #288CCB, #49A644);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
}

.bp-sell-body {
    padding: 32px;
}

.bp-sell-body h3 {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 12px;
}

.bp-sell-body p {
    font-size: 14px;
    color: #475569;
    line-height: 1.75;
    margin: 0 0 20px;
}

.bp-sell-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bp-sell-list li {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bp-sell-list li::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(to right, #288CCB, #49A644);
    flex-shrink: 0;
}

/* ── How It Works ──────────────────────────────────────────── */
.bp-steps-section {
    padding: 96px 0;
    background: #f8fafc;
}

.bp-steps-grid {
    display: flex;
    align-items: center;
    gap: 0;
    justify-content: center;
}

.bp-step {
    flex: 1;
    text-align: center;
    padding: 40px 28px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.25s, transform 0.25s;
    max-width: 220px;
}

.bp-step:hover {
    box-shadow: 0 10px 36px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.bp-step-num {
    font-size: 36px;
    font-weight: 900;
    background: linear-gradient(to right, #288CCB, #49A644);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
}

.bp-step h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px;
}

.bp-step p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}

.bp-step-arrow {
    padding: 0 12px;
    flex-shrink: 0;
    opacity: 0.7;
}

/* ── Testimonials ──────────────────────────────────────────── */
.bp-testimonials-section {
    padding: 96px 0;
    background: #ffffff;
}

.bp-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.bp-testimonial-card {
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: box-shadow 0.25s, transform 0.25s;
}

.bp-testimonial-card:hover {
    box-shadow: 0 10px 36px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.bp-testimonial-top-bar {
    height: 4px;
    background: linear-gradient(to right, #288CCB, #49A644);
}

.bp-testimonial-body {
    padding: 32px;
}

.bp-quote-mark {
    margin-bottom: 16px;
    display: block;
}

.bp-testimonial-body p {
    font-size: 14px;
    font-style: italic;
    color: #334155;
    line-height: 1.75;
    margin: 0 0 24px;
}

.bp-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bp-testimonial-author img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.bp-testimonial-author strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.bp-testimonial-author span {
    font-size: 12px;
    color: #64748b;
}

/* ── CTA Strip ─────────────────────────────────────────────── */
.bp-cta-strip {
    background: linear-gradient(to right, #13618C, #297B35);
    position: relative;
    overflow: hidden;
}

.bp-cta-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='40' cy='40' r='30'/%3E%3Ccircle cx='0' cy='0' r='20'/%3E%3Ccircle cx='80' cy='80' r='20'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.bp-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

.bp-cta-content {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.bp-cta-content h2 {
    font-size: 38px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 16px;
    line-height: 1.2;
}

.bp-cta-content p {
    font-size: 16px;
    color: rgba(255,255,255,0.82);
    line-height: 1.7;
    margin: 0 0 36px;
}

.bp-cta-btn {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    color: #13618C;
    font-weight: 700;
    font-size: 15px;
    padding: 16px 36px;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.bp-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .bp-benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .bp-testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .bp-steps-grid { flex-wrap: wrap; justify-content: center; gap: 16px; }
    .bp-step-arrow { display: none; }
    .bp-step { max-width: 200px; }
}

@media (max-width: 768px) {
    .bp-hero { min-height: 480px; }
    .bp-hero-title { font-size: 36px; }
    .bp-hero-content { padding: 60px 24px; }
    .bp-hero-inner { max-width: 100%; }
    .bp-stats-row { flex-wrap: wrap; }
    .bp-stats-sep { display: none; }
    .bp-stat { width: 50%; flex: none; }
    .bp-sell-grid { grid-template-columns: 1fr; }
    .bp-benefits-grid { grid-template-columns: 1fr; }
    .bp-testimonials-grid { grid-template-columns: 1fr; }
    .bp-steps-grid { gap: 12px; }
    .bp-step { max-width: 100%; width: 100%; }
    .bp-cta-content h2 { font-size: 28px; }
}

/* ============================================================
   Partner Application Side Panel  (.bpf-*)
   ============================================================ */

/* ── Backdrop ────────────────────────────────────────────────── */
.bpf-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}
.bpf-backdrop.is-open {
    opacity: 1;
    pointer-events: all;
}

/* ── Panel ───────────────────────────────────────────────────── */
.bpf-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 490px;
    max-width: 100vw;
    background: #ffffff;
    z-index: 1000;
    box-shadow: -8px 0 48px rgba(0, 0, 0, 0.14);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.bpf-panel.is-open { transform: translateX(0); }

/* ── Header ──────────────────────────────────────────────────── */
.bpf-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 24px 28px 20px;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(40, 140, 203, 0.04), rgba(73, 166, 68, 0.04));
}
.bpf-header-text h3 { font-size: 18px; font-weight: 800; color: #0f172a; margin: 0 0 4px; }
.bpf-header-text p  { font-size: 13px; color: #64748b; margin: 0; }
.bpf-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #64748b;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}
.bpf-close-btn:hover { background: #f1f5f9; color: #0f172a; }

/* ── Scrollable Body ─────────────────────────────────────────── */
.bpf-body { flex: 1; overflow-y: auto; padding: 28px; }

/* ── Success State ───────────────────────────────────────────── */
.bpf-success-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 56px 16px;
    gap: 16px;
}
.bpf-success-icon { margin-bottom: 8px; }
.bpf-success-state h4 { font-size: 20px; font-weight: 800; color: #0f172a; margin: 0; }
.bpf-success-state p  { font-size: 14px; color: #64748b; line-height: 1.7; margin: 0; max-width: 320px; }

/* ── Field Groups ────────────────────────────────────────────── */
.bpf-field-group { margin-bottom: 20px; }
.bpf-label { display: block; font-size: 13px; font-weight: 700; color: #374151; margin-bottom: 7px; }
.bpf-req   { color: #ef4444; }

.bpf-input,
.bpf-select,
.bpf-textarea {
    width: 100%;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 14px;
    color: #1e293b;
    background: #f8fafc;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
    box-sizing: border-box;
}
.bpf-input:focus,
.bpf-select:focus,
.bpf-textarea:focus {
    border-color: #288CCB;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(40, 140, 203, 0.12);
}
.bpf-textarea { resize: vertical; min-height: 88px; }
.bpf-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

/* ── Phone Row ───────────────────────────────────────────────── */
.bpf-phone-row { display: flex; gap: 8px; }
.bpf-phone-code {
    flex-shrink: 0;
    width: 118px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    padding: 11px 8px 11px 10px;
    font-size: 13px;
    color: #1e293b;
    background: #f8fafc;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    padding-right: 24px;
    cursor: pointer;
    box-sizing: border-box;
}
.bpf-phone-code:focus { border-color: #288CCB; background-color: #ffffff; box-shadow: 0 0 0 3px rgba(40,140,203,0.12); }
.bpf-phone-input { flex: 1; }

/* ── Merchant Type Cards ─────────────────────────────────────── */
.bpf-type-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bpf-type-card  { cursor: pointer; }
.bpf-type-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.bpf-type-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 18px 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 12px;
    background: #f8fafc;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    text-align: center;
}
.bpf-type-card-inner strong { font-size: 13px; font-weight: 700; color: #1e293b; line-height: 1.3; }
.bpf-type-card-inner small  { font-size: 11px; color: #64748b; }
.bpf-type-card.is-selected .bpf-type-card-inner,
.bpf-type-card input:checked ~ .bpf-type-card-inner {
    border-color: #288CCB;
    background: rgba(40, 140, 203, 0.05);
    box-shadow: 0 0 0 3px rgba(40, 140, 203, 0.1);
}

/* ── Upload Area ─────────────────────────────────────────────── */
.bpf-upload-area {
    border: 1.5px dashed #d1d5db;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    background: #f8fafc;
    transition: border-color 0.15s, background 0.15s;
}
.bpf-upload-area:hover,
.bpf-upload-area.drag-over { border-color: #288CCB; background: rgba(40,140,203,0.04); }
.bpf-upload-area.has-file  { border-color: #49A644; background: rgba(73,166,68,0.04); }
.bpf-upload-icon  { margin-bottom: 8px; }
.bpf-upload-text  { font-size: 13px; font-weight: 600; color: #374151; margin: 0 0 4px; word-break: break-all; }
.bpf-upload-hint  { font-size: 12px; color: #94a3b8; margin: 0; }

/* ── Error Banner ────────────────────────────────────────────── */
.bpf-error-banner {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    color: #dc2626;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* ── Submit Button ───────────────────────────────────────────── */
.bpf-footer { padding-top: 8px; padding-bottom: 4px; }
.bpf-btn-primary {
    width: 100%;
    background: linear-gradient(to right, #288CCB, #49A644);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.2s, transform 0.2s;
    font-family: inherit;
}
.bpf-btn-primary:hover:not(:disabled) { opacity: 0.9; transform: translateY(-1px); }
.bpf-btn-primary:disabled { opacity: 0.65; cursor: not-allowed; }

/* ── Spinner ─────────────────────────────────────────────────── */
.bpf-spinner { animation: bpf-spin 0.75s linear infinite; }
@keyframes bpf-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ── Panel Responsive ────────────────────────────────────────── */
@media (max-width: 520px) {
    .bpf-panel  { width: 100%; }
    .bpf-body   { padding: 20px 16px; }
    .bpf-header { padding: 20px 16px 16px; }
    .bpf-type-cards { grid-template-columns: 1fr; }
}
