:root {
    --afc-navy: #0b203d;
    --afc-blue: #075fc8;
    --afc-cyan: #21a8cf;
    --afc-ink: #122039;
    --afc-muted: #65728a;
    --afc-line: #dfe6ef;
    --afc-bg: #f3f7fb;
    --afc-success: #087a55;
    --afc-danger: #b42318;
    --afc-warning: #a15c00;
}

* { box-sizing: border-box; }

body.afc-page {
    margin: 0;
    background:
        radial-gradient(circle at 8% 8%, rgba(33, 168, 207, .18), transparent 31rem),
        radial-gradient(circle at 92% 90%, rgba(7, 95, 200, .08), transparent 28rem),
        var(--afc-bg);
    color: var(--afc-ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

.afc-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1180px;
    padding: 22px 28px;
}

.afc-header img { display: block; height: 48px; max-width: 215px; object-fit: contain; }
.afc-secure { align-items: center; background: rgba(255,255,255,.72); border: 1px solid rgba(8,122,85,.14); border-radius: 99px; color: #526078; display: flex; font-size: 13px; font-weight: 700; padding: 8px 13px; }
.afc-secure::before { align-items: center; background: #dff8ed; border-radius: 50%; color: var(--afc-success); content: "\2713"; display: inline-flex; height: 20px; justify-content: center; margin-right: 7px; width: 20px; }
.afc-shell { margin: 0 auto; max-width: 1200px; min-height: calc(100vh - 180px); padding: 24px 28px 64px; }
.afc-layout { align-items: center; display: grid; gap: clamp(42px, 6vw, 82px); grid-template-columns: minmax(0, .88fr) minmax(460px, 1fr); }
.afc-intro h1 { font-size: clamp(40px, 5vw, 64px); letter-spacing: -.045em; line-height: 1.02; margin: 14px 0 22px; max-width: 630px; }
.afc-intro > p { color: var(--afc-muted); font-size: 18px; line-height: 1.7; max-width: 570px; }
.afc-kicker { color: var(--afc-blue); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.afc-service-preview { background: rgba(255,255,255,.68); border: 1px solid rgba(7,95,200,.1); border-radius: 14px; margin-top: 30px; max-width: 570px; padding: 17px 19px; }
.afc-preview-label { color: var(--afc-muted); display: block; font-size: 11px; font-weight: 750; letter-spacing: .08em; margin-bottom: 4px; text-transform: uppercase; }
.afc-service-preview strong { color: var(--afc-navy); font-size: 17px; }
.afc-service-preview p { color: var(--afc-muted); font-size: 13px; margin: 3px 0 0; }
.afc-trust { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); margin-top: 26px; max-width: 620px; }
.afc-trust div { border-left: 2px solid var(--afc-cyan); padding-left: 13px; }
.afc-trust strong, .afc-trust span { display: block; }
.afc-trust strong { color: var(--afc-navy); font-size: 13px; }
.afc-trust span { color: var(--afc-muted); font-size: 11px; line-height: 1.45; margin-top: 4px; }
.afc-help-note { align-items: center; color: var(--afc-muted); display: flex; gap: 11px; margin-top: 27px; max-width: 570px; }
.afc-help-note p { font-size: 12px; margin: 0; }
.afc-help-icon { align-items: center; border: 1px solid #c7d3e2; border-radius: 50%; color: var(--afc-blue); display: inline-flex; flex: 0 0 auto; font-size: 12px; font-weight: 800; height: 25px; justify-content: center; width: 25px; }
.afc-card { background: rgba(255,255,255,.97); border: 1px solid rgba(16, 35, 63, .08); border-radius: 22px; box-shadow: 0 28px 80px rgba(16, 35, 63, .13); padding: 31px 34px; }
.afc-card-top { align-items: flex-start; display: flex; gap: 18px; justify-content: space-between; margin-bottom: 21px; }
.afc-card-top h2 { color: var(--afc-navy); font-size: 23px; letter-spacing: -.025em; margin: 5px 0 3px; }
.afc-card-top p { color: var(--afc-muted); font-size: 13px; margin: 0; }
.afc-step { color: var(--afc-blue); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.afc-time { background: #edf6ff; border-radius: 99px; color: var(--afc-blue); flex: 0 0 auto; font-size: 10px; font-weight: 750; padding: 6px 9px; }
.afc-order { align-items: center; background: #f5f8fc; border: 1px solid #e4ebf4; border-radius: 13px; display: flex; gap: 20px; justify-content: space-between; padding: 16px 17px; }
.afc-order span { color: var(--afc-muted); display: block; font-size: 12px; font-weight: 700; letter-spacing: .05em; margin-bottom: 5px; text-transform: uppercase; }
.afc-order strong { color: var(--afc-navy); font-size: 15px; }
.afc-order .afc-amount { text-align: right; }
.afc-order .afc-amount strong { color: var(--afc-navy); font-size: 24px; white-space: nowrap; }
.afc-order small { font-size: 12px; }
.afc-form { margin-top: 22px; }
.afc-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.afc-field { margin-bottom: 15px; }
.afc-field label { color: #2c3850; display: block; font-size: 12px; font-weight: 750; margin-bottom: 6px; }
.afc-field label span { color: #8a95a8; float: right; font-size: 10px; font-weight: 550; }
.afc-field input { appearance: none; background: #fff; border: 1px solid #cbd5e2; border-radius: 9px; color: var(--afc-ink); font: inherit; font-size: 14px; outline: none; padding: 11px 12px; text-transform: none; transition: border .15s, box-shadow .15s; width: 100%; }
.afc-field input::placeholder { color: #a4adbc; }
.afc-field input[readonly] { background: #f6f8fb; color: #536176; cursor: not-allowed; }
.afc-field input:focus { border-color: var(--afc-blue); box-shadow: 0 0 0 4px rgba(18, 103, 214, .11); }
.afc-phone-field { align-items: stretch; display: flex; }
.afc-phone-field > span { align-items: center; background: #f4f7fa; border: 1px solid #cbd5e2; border-radius: 9px 0 0 9px; border-right: 0; color: #5e6b80; display: flex; font-size: 13px; font-weight: 700; padding: 0 10px; }
.afc-phone-field input { border-radius: 0 9px 9px 0; }
#customer_pan { text-transform: uppercase; }
.afc-consent { align-items: flex-start; color: var(--afc-muted); display: flex; font-size: 11px; gap: 9px; line-height: 1.45; margin: 1px 0 17px; }
.afc-consent input { margin-top: 3px; }
.afc-prefill-note { color: var(--afc-success); font-size: 11px; font-weight: 650; margin: -3px 0 14px; }
.afc-button { align-items: center; background: linear-gradient(135deg, #0871dd, #064b9d); border: 0; border-radius: 10px; box-shadow: 0 9px 22px rgba(7,95,200,.2); color: #fff; cursor: pointer; display: flex; font-size: 14px; font-weight: 750; justify-content: space-between; padding: 13px 16px; text-align: left; text-decoration: none; transition: transform .15s, box-shadow .15s; width: 100%; }
.afc-button strong { border-left: 1px solid rgba(255,255,255,.28); font-size: 14px; padding-left: 15px; }
.afc-button:hover { box-shadow: 0 11px 26px rgba(7,95,200,.27); filter: brightness(1.04); transform: translateY(-1px); }
.afc-payment-note { align-items: center; color: var(--afc-muted); display: flex; gap: 10px; justify-content: center; margin-top: 13px; }
.afc-payment-note p { font-size: 10px; line-height: 1.45; margin: 0; text-align: left; }
.afc-payment-note strong { color: #536176; }
.afc-lock { border: 2px solid var(--afc-success); border-radius: 3px; display: inline-block; height: 12px; position: relative; width: 13px; }
.afc-lock::before { border: 2px solid var(--afc-success); border-bottom: 0; border-radius: 8px 8px 0 0; content: ""; height: 7px; left: 2px; position: absolute; top: -8px; width: 5px; }
.afc-fineprint { color: var(--afc-muted); font-size: 11px; margin: 12px 0 0; text-align: center; }
.afc-honeypot { left: -9999px; position: absolute; }
.afc-state { padding: 22px 8px; text-align: center; }
.afc-state-icon { align-items: center; border-radius: 50%; display: inline-flex; font-size: 26px; font-weight: 800; height: 58px; justify-content: center; margin-bottom: 14px; width: 58px; }
.afc-state h1, .afc-state h2 { letter-spacing: -.025em; margin: 5px 0 10px; }
.afc-state p { color: var(--afc-muted); margin: 5px auto; max-width: 520px; }
.afc-state-success .afc-state-icon { background: #dff8ed; color: var(--afc-success); }
.afc-state-error .afc-state-icon { background: #fee4e2; color: var(--afc-danger); }
.afc-state-warning .afc-state-icon { background: #fff1d6; color: var(--afc-warning); }
.afc-diagnostics { background: #fff8e8; border: 1px solid #f2c66d; border-radius: 10px; font-size: 12px; margin-top: 18px; padding: 12px; }
.afc-diagnostics summary { cursor: pointer; font-weight: 750; }
.afc-diagnostics pre { overflow: auto; white-space: pre-wrap; }
.afc-result-card { margin: 4vh auto; max-width: 650px; }
.afc-summary { background: var(--afc-bg); border-radius: 12px; margin: 18px 0 24px; padding: 8px 20px; }
.afc-summary div { border-bottom: 1px solid var(--afc-line); display: flex; gap: 20px; justify-content: space-between; padding: 12px 0; }
.afc-summary div:last-child { border: 0; }
.afc-summary dt { color: var(--afc-muted); }
.afc-summary dd { font-weight: 700; margin: 0; text-align: right; }
.afc-secondary-link { color: var(--afc-blue); display: block; font-weight: 700; margin-top: 18px; text-align: center; }
.afc-thank-card { max-width: 760px; }
.afc-next-card { background: #f8fbff; border: 1px solid #e2ebf6; border-radius: 16px; margin: 0 0 22px; padding: 18px 20px; }
.afc-next-card h2 { color: var(--afc-navy); font-size: 20px; letter-spacing: -.02em; margin: 0 0 12px; }
.afc-next-card ol { counter-reset: afc-step; list-style: none; margin: 0; padding: 0; }
.afc-next-card li { align-items: flex-start; counter-increment: afc-step; display: grid; gap: 2px 12px; grid-template-columns: 34px 1fr; margin: 13px 0; }
.afc-next-card li::before { align-items: center; background: #e7f2ff; border-radius: 50%; color: var(--afc-blue); content: counter(afc-step); display: flex; font-size: 13px; font-weight: 850; grid-row: span 2; height: 34px; justify-content: center; width: 34px; }
.afc-next-card strong { color: var(--afc-navy); font-size: 14px; }
.afc-next-card span { color: var(--afc-muted); font-size: 12px; line-height: 1.5; }
.afc-footer { color: var(--afc-muted); font-size: 12px; padding: 0 24px 28px; text-align: center; }
.afc-footer p { margin: 3px; }
.afc-redirect-page { align-items: center; display: flex; justify-content: center; min-height: 100vh; }
.afc-redirect { text-align: center; }
.afc-redirect h1 { font-size: 24px; margin: 20px 0 5px; }
.afc-redirect p { color: var(--afc-muted); }
.afc-spinner { animation: afc-spin .9s linear infinite; border: 4px solid #dce6f3; border-radius: 50%; border-top-color: var(--afc-blue); height: 48px; margin: auto; width: 48px; }
@keyframes afc-spin { to { transform: rotate(360deg); } }

@media (max-width: 850px) {
    .afc-layout { gap: 30px; grid-template-columns: 1fr; }
    .afc-intro { text-align: center; }
    .afc-intro > p { margin-left: auto; margin-right: auto; }
    .afc-trust { margin: 28px auto 0; max-width: 550px; text-align: left; }
    .afc-service-preview, .afc-help-note { margin-left: auto; margin-right: auto; text-align: left; }
}

@media (max-width: 540px) {
    .afc-header { padding: 18px; }
    .afc-header img { height: 42px; max-width: 170px; }
    .afc-secure { font-size: 0; padding: 7px; }
    .afc-secure::before { margin: 0; }
    .afc-shell { padding: 10px 14px 45px; }
    .afc-intro h1 { font-size: 37px; }
    .afc-intro > p { font-size: 16px; }
    .afc-trust { grid-template-columns: 1fr; }
    .afc-help-note { display: none; }
    .afc-card { border-radius: 16px; padding: 22px 17px; }
    .afc-card-top { display: block; }
    .afc-time { display: inline-block; margin-top: 8px; }
    .afc-grid { grid-template-columns: 1fr; gap: 0; }
    .afc-order strong { font-size: 13px; }
    .afc-order .afc-amount strong { font-size: 20px; }
    .afc-button { font-size: 13px; }
}
