:root {
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --primary-light: #e0f2fe;
    --accent: #059669;
    --accent-light: #ecfdf5;
    --navy: #0f172a;
    --slate: #475569;
    --light-slate: #94a3b8;
    --border: #e2e8f0;
    --bg-page: #f1f5f9;
    --bg-card: #ffffff;
    --danger: #ef4444;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-page);
    color: var(--navy);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

.logo-icon svg {
    width: 24px;
    height: 24px;
}

.brand-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.02em;
    display: block;
    line-height: 1.1;
}

.brand-name .highlight {
    color: var(--primary);
}

.brand-tagline {
    font-size: 0.78rem;
    color: var(--slate);
    font-weight: 500;
    display: block;
}

.nav-badges {
    display: flex;
    gap: 0.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 9999px;
}

.badge.verified {
    background: var(--accent-light);
    color: var(--accent);
}

.badge.security {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* Main Layout */
.main-wrapper {
    flex: 1;
    max-width: 1100px;
    width: 100%;
    margin: 2rem auto;
    padding: 0 1.25rem;
}

.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--slate);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.payment-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 1.8rem;
    box-shadow: var(--shadow-md);
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.4rem;
}

.step-num {
    background: var(--primary);
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.mt-4 {
    margin-top: 1.75rem;
}

/* Form Styling */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.1rem;
}

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.4rem;
}

.req {
    color: var(--danger);
}

input, select {
    width: 100%;
    padding: 0.75rem 0.95rem;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--navy);
    background: #ffffff;
    transition: all 0.2s ease;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.input-currency {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 1rem;
    font-weight: 700;
    color: var(--slate);
    font-size: 1.1rem;
}

.input-currency input {
    padding-left: 2.2rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
}

/* Method Selector */
.method-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    margin-bottom: 1.5rem;
}

.method-btn {
    border: 1.5px solid var(--border);
    background: #f8fafc;
    border-radius: var(--radius-sm);
    padding: 0.85rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.2s ease;
}

.method-btn:hover {
    background: #ffffff;
    border-color: var(--primary-light);
    color: var(--primary);
}

.method-btn.active {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary-dark);
    font-weight: 700;
}

/* Method Panels */
.method-panel {
    display: none;
    background: #f8fafc;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.method-panel.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* UPI */
.upi-box {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.qr-wrapper {
    text-align: center;
    background: #ffffff;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.qr-wrapper img {
    width: 150px;
    height: 150px;
    display: block;
    border-radius: 4px;
}

.qr-helper {
    display: block;
    font-size: 0.75rem;
    color: var(--slate);
    font-weight: 600;
    margin-top: 0.4rem;
}

.upi-apps {
    flex: 1;
    min-width: 180px;
}

.upi-tag {
    display: inline-block;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    margin: 0.2rem 0.2rem 0.2rem 0;
    color: var(--slate);
}

.upi-vpa {
    margin-top: 0.8rem;
    font-size: 0.85rem;
    background: #ffffff;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.copy-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
}

.copy-btn:hover {
    background: var(--primary-dark);
}

.nb-note {
    font-size: 0.85rem;
    color: var(--slate);
    margin-top: 0.5rem;
}

/* Pay Button */
.btn-pay {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
    transition: all 0.2s ease;
}

.btn-pay:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
}

.btn-pay:active {
    transform: translateY(0);
}

/* Sidebar & Summary */
.summary-card {
    position: sticky;
    top: 5rem;
}

.summary-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--navy);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--slate);
    margin-bottom: 0.8rem;
}

.summary-item strong {
    color: var(--navy);
    font-weight: 600;
}

.free-text {
    color: var(--accent);
    font-weight: 700;
}

.divider {
    height: 1px;
    background: var(--border);
    margin: 1.1rem 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1.4rem;
}

.total-price {
    font-size: 1.45rem;
    color: var(--primary-dark);
}

.guarantee-box {
    display: flex;
    gap: 0.75rem;
    background: var(--accent-light);
    border: 1px solid #bbf7d0;
    padding: 0.85rem;
    border-radius: var(--radius-sm);
    color: #166534;
}

.guarantee-box svg {
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 2px;
}

.guarantee-box strong {
    font-size: 0.85rem;
    display: block;
}

.guarantee-box p {
    font-size: 0.78rem;
    margin-top: 2px;
    line-height: 1.4;
}

/* Contact Card */
.contact-card {
    margin-top: 1.5rem;
}

.contact-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.contact-sub {
    font-size: 0.8rem;
    color: var(--slate);
    margin-bottom: 0.85rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.contact-pill:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

/* Receipt Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.modal-card {
    background: #ffffff;
    max-width: 440px;
    width: 100%;
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: popIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.success-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.success-icon svg {
    width: 32px;
    height: 32px;
}

.modal-card h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.modal-sub {
    font-size: 0.9rem;
    color: var(--slate);
    margin-bottom: 1.5rem;
}

.receipt-details {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.1rem;
    text-align: left;
    margin-bottom: 1.5rem;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    margin-bottom: 0.6rem;
    color: var(--slate);
}

.receipt-row:last-child {
    margin-bottom: 0;
}

.receipt-row strong {
    color: var(--navy);
}

.rec-highlight {
    color: var(--accent) !important;
    font-size: 1.05rem;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-primary {
    flex: 1;
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    flex: 1;
    background: #f1f5f9;
    color: var(--slate);
    border: 1px solid var(--border);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

/* Footer */
.footer {
    background: #ffffff;
    border-top: 1px solid var(--border);
    padding: 1.5rem;
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--slate);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--slate);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 860px) {
    .payment-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .method-selector {
        grid-template-columns: 1fr;
    }
}
