/* =====================================================================
   ZPay Theme & UI/UX Enhancement Stylesheet
   Modern, trustworthy, responsive payment styling for ZeetSoft ZPay
   ===================================================================== */

:root {
    --zp-primary: #0066cc;
    --zp-primary-hover: #0052a3;
    --zp-secondary: #009879;
    --zp-secondary-hover: #007a61;
    --zp-dark: #0f172a;
    --zp-slate: #1e293b;
    --zp-card-bg: #ffffff;
    --zp-page-bg: #f8fafc;
    --zp-border: #e2e8f0;
    --zp-border-light: #f1f5f9;
    --zp-text-dark: #0f172a;
    --zp-text-body: #334155;
    --zp-text-muted: #64748b;
    --zp-paypal-blue: #003087;
    --zp-paypal-teal: #0079c1;
    --zp-razorpay-blue: #0784ff;
    --zp-razorpay-dark: #0c2340;
    --zp-success: #10b981;
    --zp-warning: #f59e0b;
    --zp-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --zp-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --zp-shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
    --zp-radius: 12px;
}

/* Keep declared responsive images usable while optional CDN styles are unavailable. */
.boxed-container .img-fluid { max-width: 100%; height: auto; }

/* Base resets & typography within ZPay container */
.zpay-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--zp-text-body);
    line-height: 1.6;
    margin-bottom: 3.5rem;
}

/* =====================================================================
   HERO BANNER
   ===================================================================== */
.zpay-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0f3057 100%);
    color: #ffffff;
    border-radius: var(--zp-radius);
    padding: 3.5rem 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--zp-shadow-lg);
    position: relative;
    overflow: hidden;
}

.zpay-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(7, 132, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.zpay-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(7, 132, 255, 0.18);
    border: 1px solid rgba(7, 132, 255, 0.4);
    color: #60a5fa;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
}

.zpay-hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.zpay-hero h1 span.gradient-text {
    background: linear-gradient(90deg, #38bdf8 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.zpay-hero p.lead-text {
    font-size: 1.15rem;
    color: #cbd5e1;
    max-width: 580px;
    margin-bottom: 1.75rem;
}

.zpay-hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 1.5rem;
}

.zpay-feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
}

.zpay-feature-pill i {
    color: #38bdf8;
}

.zpay-hero-img-wrap {
    text-align: center;
}

.zpay-hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.3s ease;
}

.zpay-hero-img:hover {
    transform: translateY(-4px);
}

/* =====================================================================
   GATEWAY CARDS (RAZORPAY & PAYPAL)
   ===================================================================== */
.zpay-section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.zpay-section-header h2 {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--zp-text-dark);
    margin-bottom: 0.5rem;
}

.zpay-section-header p {
    font-size: 1.05rem;
    color: var(--zp-text-muted);
    max-width: 650px;
    margin: 0 auto;
}

.zpay-gateway-card {
    background: var(--zp-card-bg);
    border: 1px solid var(--zp-border);
    border-radius: var(--zp-radius);
    padding: 2rem;
    box-shadow: var(--zp-shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.zpay-gateway-card:hover {
    box-shadow: var(--zp-shadow-md);
    border-color: #cbd5e1;
    transform: translateY(-3px);
}

.zpay-gateway-card.razorpay-card {
    border-top: 4px solid var(--zp-razorpay-blue);
}

.zpay-gateway-card.paypal-card {
    border-top: 4px solid var(--zp-paypal-teal);
}

.zpay-gateway-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--zp-border-light);
}

.gateway-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-inr {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.badge-global {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.gateway-brand-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--zp-text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.gateway-brand-title.rzp {
    color: var(--zp-razorpay-blue);
}

.gateway-brand-title.ppl {
    color: var(--zp-paypal-blue);
}

.zpay-gateway-card p.gateway-desc {
    font-size: 0.95rem;
    color: var(--zp-text-body);
    margin-bottom: 1.25rem;
}

.gateway-methods-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.gateway-methods-list li {
    font-size: 0.92rem;
    color: var(--zp-text-body);
    margin-bottom: 0.65rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.gateway-methods-list li i.fa-check-circle {
    color: var(--zp-secondary);
    margin-top: 3px;
    font-size: 0.95rem;
}

.gateway-pills-row {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 1rem;
    border-top: 1px solid var(--zp-border-light);
}

.mini-pill {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.78rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

/* =====================================================================
   ECOSYSTEM / PRODUCTS WHERE ZPAY IS USED
   ===================================================================== */
.zpay-product-card {
    background: #ffffff;
    border: 1px solid var(--zp-border);
    border-radius: var(--zp-radius);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--zp-shadow-sm);
    transition: all 0.25s ease;
    height: calc(100% - 1.5rem);
}

.zpay-product-card:hover {
    border-color: #38bdf8;
    box-shadow: var(--zp-shadow-md);
    transform: translateY(-2px);
}

.zpay-product-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.icon-baf {
    background: #eff6ff;
    color: #2563eb;
}

.icon-study {
    background: #fef3c7;
    color: #d97706;
}

.icon-service {
    background: #ecfdf5;
    color: #059669;
}

.icon-custom {
    background: #f3e8ff;
    color: #7c3aed;
}

.zpay-product-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--zp-text-dark);
    margin-bottom: 0.5rem;
}

.zpay-product-card p {
    font-size: 0.92rem;
    color: var(--zp-text-muted);
    margin-bottom: 0;
}

/* =====================================================================
   SECURITY & TRUST SHOWCASE
   ===================================================================== */
.zpay-security-box {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f6 100%);
    border: 1px solid #e2e8f0;
    border-radius: var(--zp-radius);
    padding: 2.75rem 2rem;
    margin: 2.5rem 0;
}

.security-pillar {
    display: flex;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.security-pillar-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: var(--zp-shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--zp-secondary);
    font-size: 1.15rem;
}

.security-pillar-text h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--zp-text-dark);
    margin-bottom: 0.25rem;
}

.security-pillar-text p {
    font-size: 0.9rem;
    color: var(--zp-text-muted);
    margin-bottom: 0;
}

/* =====================================================================
   HOW IT WORKS (3 STEPS)
   ===================================================================== */
.step-number {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 50%;
    background: var(--zp-primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.85rem;
}

.step-card {
    background: #ffffff;
    border: 1px solid var(--zp-border);
    border-radius: var(--zp-radius);
    padding: 1.5rem;
    text-align: center;
    height: 100%;
}

.step-card h4 {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--zp-text-dark);
    margin-bottom: 0.5rem;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--zp-text-muted);
    margin-bottom: 0;
}

/* =====================================================================
   FAQ SECTION
   ===================================================================== */
.zpay-faq-item {
    background: #ffffff;
    border: 1px solid var(--zp-border);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--zp-shadow-sm);
}

.zpay-faq-item h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--zp-text-dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.zpay-faq-item h5 i {
    color: var(--zp-primary);
}

.zpay-faq-item p {
    font-size: 0.92rem;
    color: var(--zp-text-body);
    margin-bottom: 0;
}

/* =====================================================================
   MODERN CHECKOUT CARD (FOR PAYMENT TRANSACTIONS)
   ===================================================================== */
.zpay-checkout-container {
    max-width: 760px;
    margin: 2rem auto;
    background: #ffffff;
    border: 1px solid var(--zp-border);
    border-radius: 14px;
    box-shadow: var(--zp-shadow-lg);
    overflow: hidden;
}

.zpay-checkout-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.zpay-checkout-title h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
}

.zpay-checkout-title span {
    font-size: 0.85rem;
    color: #94a3b8;
}

.zpay-secure-tag {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.zpay-checkout-body {
    padding: 2rem;
}

.zpay-alert-banner {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.zpay-amount-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
}

.zpay-amount-box .amount-label {
    font-size: 0.95rem;
    color: var(--zp-text-muted);
    font-weight: 500;
}

.zpay-amount-box .amount-value {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--zp-text-dark);
}

.zpay-details-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 2rem;
}

.zpay-details-table tr {
    border-bottom: 1px solid #f1f5f9;
}

.zpay-details-table tr:last-child {
    border-bottom: none;
}

.zpay-details-table td {
    padding: 11px 14px;
    font-size: 0.95rem;
}

.zpay-details-table td.field-name {
    color: var(--zp-text-muted);
    font-weight: 500;
    width: 35%;
}

.zpay-details-table td.field-val {
    color: var(--zp-text-dark);
    font-weight: 600;
}

.zpay-actions-row {
    display: flex;
    gap: 12px;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.btn-zpay-pay {
    background: linear-gradient(135deg, #0066cc 0%, #004c99 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 102, 204, 0.35);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-zpay-pay:hover:not(:disabled) {
    background: linear-gradient(135deg, #0052a3 0%, #003d7a 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 102, 204, 0.45);
}

.btn-zpay-pay:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-zpay-cancel {
    background: #ffffff;
    color: #475569 !important;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-zpay-cancel:hover {
    background: #f1f5f9;
    color: #1e293b !important;
    border-color: #94a3b8;
}

.zpay-checkout-footer-trust {
    border-top: 1px solid var(--zp-border);
    padding-top: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--zp-text-muted);
}

.zpay-checkout-footer-trust a {
    color: var(--zp-primary);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .zpay-hero {
        padding: 2.25rem 1.5rem;
    }
    .zpay-hero h1 {
        font-size: 1.85rem;
    }
    .zpay-actions-row {
        flex-direction: column;
    }
    .btn-zpay-pay, .btn-zpay-cancel {
        width: 100%;
        justify-content: center;
    }
    .zpay-amount-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}
