/* ==========================================================================
   Sandip Online Payments — theme "Oxford Blue & Ivory"
   Oxford blue #14284b · fine gold line #b8975a · warm ivory #faf8f3
   Headings: Lora (serif) · Text: Source Sans 3
   Change the variables below to re-theme every page (also bump ?v= in layouts/app.blade.php).
   ========================================================================== */
:root {
    --oxford: #14284b;          /* header text, banner, buttons, headings */
    --oxford-2: #1e3a66;        /* hover / gradient end */
    --gold: #b8975a;            /* fine lines, highlights */
    --gold-soft: #f7f1e3;       /* amount box, notes */
    --gold-line: #e2d3ae;
    --ivory: #faf8f3;           /* page background */
    --paper: #ffffff;           /* cards */
    --ink: #22262e;             /* body text */
    --label: #3a3f4a;
    --muted: #6e6a60;
    --line: #e8e3d8;            /* borders */
    --input-line: #dcd5c6;
    --ro: #f7f4ee;              /* read-only inputs */
    --ok: #2d6a3e;
    --ok-bg: #e9f2ea;
    --err: #b42318;
    --radius: 10px;
    --shadow: 0 6px 20px rgba(20, 40, 75, .08);
    --font-head: "Lora", Georgia, "Times New Roman", serif;
    --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

    --bs-body-font-family: var(--font-body);
    --bs-body-color: var(--ink);
    --bs-primary: var(--oxford);
    --bs-primary-rgb: 20, 40, 75;
    --bs-link-color: var(--oxford-2);
    --bs-link-hover-color: var(--oxford);
}

body { background: var(--ivory); color: var(--ink); font-size: 1rem; line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }
h1, h2, h3, h4, .serif { font-family: var(--font-head); color: var(--oxford); text-wrap: balance; }
a { color: var(--oxford-2); }
.text-gold { color: var(--gold) !important; }
:focus-visible { outline: 3px solid rgba(184, 151, 90, .55); outline-offset: 2px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--oxford); color: #fff; padding: .4rem .8rem; border-radius: 6px; z-index: 3000; }
.skip-link:focus { left: 12px; }

/* ---- header / banner / footer ---------------------------------------- */
.site-header { background: var(--paper); border-bottom: 2px solid var(--gold); padding: .7rem 0; }
.site-header__brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; min-width: 0; }
.site-header__name { display: grid; line-height: 1.2; padding-left: .9rem; border-left: 1px solid var(--line); }
.site-header__title { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--oxford); }
.site-header__sub { font-size: .8rem; color: var(--muted); }
.site-header__help { display: grid; text-align: right; font-size: .8rem; color: var(--muted); line-height: 1.35; }
.site-header__help span:first-child { color: var(--label); font-weight: 600; }

.page-banner { background: var(--oxford); color: #fff; padding: 2rem 0 4.25rem; }
.page-banner__title { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin: 0; font-weight: 700; color: #fff; }
.page-banner__sub { color: #d9cfb8; margin-top: .35rem; }
.page-body { margin-top: -2.75rem; margin-bottom: 2.5rem; flex: 1 0 auto; position: relative; z-index: 1; }
.site-footer { background: var(--oxford); color: #c8cfdc; font-size: .88rem; padding: 1rem 0; border-top: 2px solid var(--gold); }

/* ---- cards ------------------------------------------------------------ */
.pay-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.75rem; }
.pay-card + .pay-card { margin-top: 1.5rem; }
.pay-card__title { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; color: var(--oxford); border-bottom: 1px solid var(--line); padding-bottom: .6rem; margin-bottom: 1.25rem; }
.pay-card__title small { font-family: var(--font-body); font-size: .85rem; color: var(--muted); font-weight: 400; }

/* ---- progress steps (optional: <ol class="steps"><li class="is-done">…) */
.steps { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1rem; font-size: .82rem; font-weight: 600; }
.steps li { flex: 1; text-align: center; padding: .35rem .5rem; border-radius: 999px; background: #f3efe6; color: var(--muted); }
.steps li.is-done, .steps li.is-current { background: var(--oxford); color: #fff; }

/* ---- forms ------------------------------------------------------------ */
.form-label { font-weight: 600; color: var(--label); margin-bottom: .3rem; }
.form-label .req { color: var(--err); margin-left: 2px; }
.form-control, .form-select { border-radius: 8px; border-color: var(--input-line); padding: .6rem .8rem; background-color: var(--paper); }
.form-control:focus, .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 .2rem rgba(184, 151, 90, .25); }
.form-control[readonly] { background: var(--ro); }
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--err); }
.invalid-feedback { font-weight: 600; color: var(--err); }
.form-hint { font-size: .85rem; color: var(--muted); }

.btn-royal { background: var(--oxford); color: #fff; border: 0; border-radius: 8px; padding: .7rem 1.4rem; font-weight: 700; letter-spacing: .2px; }
.btn-royal:hover, .btn-royal:focus { background: var(--oxford-2); color: #fff; }
.btn-royal:disabled { background: #9aa3b2; color: #f1f3f6; }
.btn-gold { background: var(--paper); color: var(--oxford); border: 1px solid var(--gold); border-radius: 8px; padding: .7rem 1.4rem; font-weight: 700; }
.btn-gold:hover { background: var(--gold-soft); color: var(--oxford); }

/* ---- status / info ---------------------------------------------------- */
.status-line { font-weight: 600; font-size: .92rem; margin-top: .35rem; }
.status-line.ok { color: var(--ok); }
.status-line.err { color: var(--err); }

.info-table th { width: 38%; color: var(--muted); font-weight: 600; background: #fbf9f4; }
.info-table td, .info-table th { padding: .55rem .8rem; border-color: var(--line); }
.amount-box { background: var(--gold-soft); border: 1px solid var(--gold-line); border-radius: var(--radius); padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.amount-box__value { font-size: 1.6rem; font-weight: 700; color: var(--oxford); font-variant-numeric: tabular-nums; }

.result-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 2.2rem; margin: 0 auto 1rem; color: #fff; }
.result-icon.ok { background: var(--ok); }
.result-icon.err { background: var(--err); }
.result-icon.wait { background: #d99a1e; }

/* ---- policy text ------------------------------------------------------ */
.policy h2 { font-size: 1.6rem; text-align: center; }
.policy h3 { text-align: center; font-size: 1.2rem; color: var(--oxford-2); }
.policy h4 { font-size: 1.05rem; font-weight: 700; color: var(--oxford); border-left: 3px solid var(--gold); padding-left: .6rem; margin-top: 1.4rem; font-family: var(--font-body); }
.policy li { margin-bottom: .45rem; line-height: 1.6; }
.policy .highlight { font-weight: 700; color: var(--oxford); }
.policy .note-box { background: var(--gold-soft); border-left: 3px solid var(--gold); padding: .6rem .9rem; border-radius: 6px; margin-top: .5rem; }

/* ---- loader ----------------------------------------------------------- */
.page-loader { position: fixed; inset: 0; background: rgba(20, 40, 75, .55); z-index: 2000; display: grid; place-items: center; }
.page-loader[hidden] { display: none; }
.page-loader__box { background: var(--paper); border-radius: var(--radius); padding: 1.5rem 2rem; text-align: center; box-shadow: 0 10px 40px rgba(0, 0, 0, .25); }

/* ---- small screens ---------------------------------------------------- */
@media (max-width: 768px) {
    .site-header__help { display: none; }
}
@media (max-width: 576px) {
    .pay-card { padding: 1.15rem; }
    .page-banner { padding-bottom: 3.75rem; }
    .site-header__name { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
