/* ============================================
   OHMEDIACORP — payment.css
   Tambahkan ke <link> setelah style.css
   ============================================ */

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing {
    padding: 120px 0;
    background: var(--bg);
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 56px;
}

.pricing-toggle span {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

.pricing-toggle span.active-label { color: var(--white); }

.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    cursor: pointer;
}

.toggle-switch input { display: none; }

.toggle-track {
    position: absolute;
    inset: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    transition: var(--transition);
}

.toggle-switch input:checked ~ .toggle-track { background: var(--accent); border-color: var(--accent); }

.toggle-thumb {
    position: absolute;
    top: 4px; left: 4px;
    width: 20px; height: 20px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: var(--transition);
}

.toggle-switch input:checked ~ .toggle-thumb {
    left: 28px;
    background: #fff;
}

.save-badge {
    background: rgba(232,71,47,0.15);
    color: var(--accent);
    border: 1px solid rgba(232,71,47,0.3);
    font-size: 11px; font-weight: 600;
    padding: 2px 10px;
    border-radius: 50px;
    letter-spacing: 0.5px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 32px;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(232,71,47,0.3);
    box-shadow: 0 24px 56px rgba(0,0,0,0.3);
}

.pricing-card.popular {
    border-color: var(--accent);
    background: linear-gradient(160deg, rgba(232,71,47,0.1) 0%, var(--bg-card) 60%);
    transform: scale(1.04);
    box-shadow: 0 32px 80px rgba(232,71,47,0.2);
}

.pricing-card.popular:hover { transform: scale(1.04) translateY(-4px); }

.popular-badge {
    position: absolute;
    top: -14px; left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: 11px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    padding: 5px 18px;
    border-radius: 50px;
    white-space: nowrap;
}

.plan-name {
    font-family: var(--font-display);
    font-size: 13px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.plan-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 28px;
}

.plan-price {
    margin-bottom: 28px;
}

.price-amount {
    font-family: var(--font-display);
    font-size: 48px; font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.price-currency {
    font-size: 22px;
    vertical-align: super;
    color: var(--text-muted);
}

.price-period {
    font-size: 13px;
    color: var(--text-muted);
    margin-left: 4px;
}

.price-yearly {
    display: none;
}

.yearly-mode .price-monthly { display: none; }
.yearly-mode .price-yearly { display: block; }

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

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
}

.plan-features li .feat-icon {
    width: 20px; height: 20px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-size: 10px;
}

.plan-features li .feat-icon.check {
    background: rgba(5,150,105,0.15);
    color: #34d399;
}

.plan-features li .feat-icon.cross {
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
}

.plan-features li.inactive { opacity: 0.4; }

.btn-plan {
    display: block;
    text-align: center;
    width: 100%;
    padding: 14px;
    border-radius: 50px;
    font-size: 15px; font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: var(--font-body);
}

.btn-plan-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-plan-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-plan-primary {
    background: var(--accent);
    color: #fff;
}

.btn-plan-primary:hover {
    background: var(--accent-2);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(232,71,47,0.35);
}

.pricing-note {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 40px;
}

.pricing-note a { color: var(--accent); }

/* ============================================
   CHECKOUT MODAL OVERLAY
   ============================================ */
.checkout-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.checkout-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.checkout-modal {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 24px;
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(24px) scale(0.98);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

.checkout-overlay.open .checkout-modal {
    transform: translateY(0) scale(1);
}

.checkout-modal::-webkit-scrollbar { width: 4px; }
.checkout-modal::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 32px 0;
    margin-bottom: 28px;
}

.modal-header-left h3 {
    font-family: var(--font-display);
    font-size: 22px; font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.modal-header-left p { font-size: 13px; color: var(--text-muted); }

.modal-close {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 16px;
    transition: var(--transition);
    flex-shrink: 0;
}

.modal-close:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 0;
    padding: 0 32px 32px;
}

/* Order Summary */
.order-summary {
    padding-right: 32px;
    border-right: 1px solid var(--border);
}

.order-summary h4 {
    font-size: 12px; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.order-plan-card {
    background: linear-gradient(135deg, rgba(232,71,47,0.1), var(--bg-card));
    border: 1px solid rgba(232,71,47,0.25);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
}

.order-plan-name {
    font-family: var(--font-display);
    font-size: 18px; font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.order-plan-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.order-plan-price {
    font-family: var(--font-display);
    font-size: 32px; font-weight: 800;
    color: var(--accent);
}

.order-plan-price small {
    font-size: 14px;
    color: var(--text-muted);
    font-family: var(--font-body);
}

.order-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-muted);
}

.order-item span:last-child { color: var(--white); }

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

.order-total {
    display: flex;
    justify-content: space-between;
    font-size: 16px; font-weight: 600;
    color: var(--white);
}

.order-total .total-amount { color: var(--accent); font-family: var(--font-display); }

.order-guarantee {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 16px;
    background: rgba(5,150,105,0.08);
    border: 1px solid rgba(5,150,105,0.2);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: #34d399;
}

/* Payment Form */
.payment-form-wrap {
    padding-left: 32px;
}

.payment-form-wrap h4 {
    font-size: 12px; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Steps */
.checkout-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 28px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
}

.step-item.active { color: var(--accent); }
.step-item.done { color: #34d399; }

.step-num {
    width: 24px; height: 24px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    flex-shrink: 0;
    transition: var(--transition);
}

.step-item.active .step-num {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.step-item.done .step-num {
    background: #059669;
    border-color: #059669;
    color: #fff;
}

.step-connector {
    flex: 1;
    height: 1px;
    background: var(--border);
    margin: 0 8px;
}

/* Step panels */
.step-panel { display: none; }
.step-panel.active { display: block; }

/* Customer form */
.pay-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.pay-form-group label {
    font-size: 12px; font-weight: 500;
    color: var(--text-muted);
}

.pay-form-group input,
.pay-form-group select {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    font-size: 14px; color: var(--text);
    font-family: var(--font-body);
    transition: var(--transition);
    outline: none;
    width: 100%;
}

.pay-form-group input::placeholder { color: rgba(255,255,255,0.2); }

.pay-form-group input:focus,
.pay-form-group select:focus {
    border-color: var(--accent);
    background: rgba(232,71,47,0.05);
}

.pay-form-group select option { background: var(--bg-2); }

.pay-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Payment Methods */
.pay-methods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.pay-method-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 12px; font-weight: 500;
    color: var(--text-muted);
    text-align: center;
}

.pay-method-btn i { font-size: 22px; }
.pay-method-btn:hover { border-color: var(--accent); color: var(--accent); }
.pay-method-btn.selected { border-color: var(--accent); background: rgba(232,71,47,0.08); color: var(--accent); }

/* Card form */
.card-input-wrap {
    position: relative;
    margin-bottom: 14px;
}

.card-input-wrap input {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    font-size: 14px; color: var(--text);
    font-family: var(--font-body);
    transition: var(--transition);
    outline: none;
    width: 100%;
}

.card-input-wrap input:focus { border-color: var(--accent); }
.card-input-wrap input::placeholder { color: rgba(255,255,255,0.2); }

.card-icon-right {
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    display: flex; gap: 4px;
}

.card-brand-icon {
    width: 32px; height: 20px;
    border-radius: 3px;
    display: flex; align-items: center; justify-content: center;
    font-size: 9px; font-weight: 800;
}

.card-brand-visa { background: #1a1f71; color: #fff; }
.card-brand-mc { background: #eb001b; color: #fff; letter-spacing: -0.5px; }

/* Transfer bank */
.bank-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.bank-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.bank-option:hover { border-color: rgba(232,71,47,0.4); }
.bank-option.selected { border-color: var(--accent); background: rgba(232,71,47,0.06); }

.bank-option-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bank-logo {
    width: 40px; height: 24px;
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-size: 9px; font-weight: 800;
    letter-spacing: -0.5px;
}

.bank-logo-bca { background: #003f7d; color: #fff; }
.bank-logo-bni { background: #ff6600; color: #fff; }
.bank-logo-bri { background: #00529b; color: #fff; }
.bank-logo-mandiri { background: #003087; color: #ffd700; }

.bank-option-name { font-size: 14px; font-weight: 500; color: var(--white); }
.bank-option-sub { font-size: 12px; color: var(--text-muted); }

.bank-radio {
    width: 18px; height: 18px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.bank-option.selected .bank-radio {
    border-color: var(--accent);
    background: var(--accent);
}

.bank-option.selected .bank-radio::after {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #fff;
}

/* E-wallet */
.ewallet-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.ewallet-btn {
    padding: 14px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-size: 12px; font-weight: 600;
}

.ewallet-btn:hover, .ewallet-btn.selected {
    border-color: var(--accent);
    background: rgba(232,71,47,0.08);
    color: var(--accent);
}

.ewallet-logo {
    font-size: 20px;
    margin-bottom: 6px;
    display: block;
}

/* QRIS */
.qris-wrap {
    text-align: center;
    padding: 16px 0;
}

.qris-box {
    width: 160px; height: 160px;
    margin: 0 auto 16px;
    border: 2px solid var(--accent);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.qris-pattern {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(10, 1fr);
    gap: 2px;
    width: 140px; height: 140px;
}

.qris-cell {
    background: #000;
    border-radius: 1px;
}

.qris-timer {
    font-family: var(--font-display);
    font-size: 28px; font-weight: 800;
    color: var(--accent);
    margin-bottom: 8px;
}

.qris-note { font-size: 12px; color: var(--text-muted); line-height: 1.6; }

/* Checkout nav buttons */
.checkout-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.btn-back-step {
    display: flex; align-items: center; gap: 6px;
    font-size: 14px; color: var(--text-muted);
    background: none; border: none; cursor: pointer;
    font-family: var(--font-body);
    transition: var(--transition);
}

.btn-back-step:hover { color: var(--white); }

.btn-next-step {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--accent);
    color: #fff;
    border: none; cursor: pointer;
    font-family: var(--font-body);
    font-size: 15px; font-weight: 500;
    padding: 12px 28px;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-next-step:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn-next-step:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Success state */
.checkout-success {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 72px; height: 72px;
    background: rgba(5,150,105,0.15);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; color: #34d399;
    margin: 0 auto 20px;
}

.checkout-success h3 {
    font-family: var(--font-display);
    font-size: 24px; font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.checkout-success p { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: 28px; }

.invoice-mini {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 28px;
    text-align: left;
}

.invoice-mini-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
    padding: 6px 0;
}

.invoice-mini-row:not(:last-child) { border-bottom: 1px solid var(--border); }
.invoice-mini-row span:last-child { color: var(--white); font-weight: 500; }
.invoice-mini-row.total span { color: var(--accent); font-family: var(--font-display); font-size: 16px; }

/* ============================================
   MIDTRANS SIMULATION BANNER
   ============================================ */
.gateway-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 0;
    margin-top: 12px;
    border-top: 1px solid var(--border);
}

.gateway-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
    padding: 4px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
}

.gateway-badge i { font-size: 13px; color: var(--accent); }

/* ============================================
   PAYMENT RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
    .pricing-card.popular { transform: scale(1); }
    .pricing-card.popular:hover { transform: translateY(-4px); }
}

@media (max-width: 860px) {
    .modal-body {
        grid-template-columns: 1fr;
        padding: 0 20px 24px;
    }
    .order-summary { padding-right: 0; border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 24px; margin-bottom: 24px; }
    .payment-form-wrap { padding-left: 0; }
    .modal-header { padding: 20px 20px 0; }
    .pay-methods-grid { grid-template-columns: repeat(2, 1fr); }
    .ewallet-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
    .pay-methods-grid { grid-template-columns: 1fr 1fr; }
    .pay-form-row { grid-template-columns: 1fr; }
    .checkout-modal { border-radius: 16px 16px 0 0; }
    .checkout-overlay { align-items: flex-end; padding: 0; }
}
