/* body {
    font-family: Arial, sans-serif;
    background-color: #f4f6f8;
    margin: 0;
    padding: 0;
    color: #333;
}
*/

/* Apply this to the body to prevent the logo from covering your content */
body {
    padding-top: 100px; /* Adjust this value based on your logo height */
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #0d1b2b;
}

.logo-container {
    position: fixed; 
    top: 0;
    left: 0;         /* Anchors the container to the left edge */
    width: 100%;     /* Stretches the container across the whole screen */
    text-align: center; 
    padding: 15px 0;
    background-color: white; 
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Optional: adds a nice subtle shadow */
}

.logo {
    max-width: 180px; /* Slightly larger for desktop, adjusts via height: auto */
    height: auto;
    display: inline-block; 
}


.container {
    max-width: 700px;
    margin: 40px auto;
    background: #fff;
    padding: 30px 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
}

h1, h2 {
    color: #2c3e50;
}

form label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
}

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea {
    width: 100%;
    padding: 8px 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    font-family: inherit;
}

textarea {
    resize: vertical;
    min-height: 60px;
}

button {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

button:hover {
    background-color: #219150;
}

input[type="checkbox"] {
    margin-right: 8px;
}

p {
    margin: 5px 0 15px 0;
    font-weight: 500;
}



/* Media query for smaller screens */
@media (max-width: 480px) {
    .logo {
        max-width: 120px; /* Even smaller logo for very small screens */
    }

    .container {
        top: 80px; /* Less space below the logo for very small screens */
        padding: 10px; /* Reduced padding for very small screens */
    }

    h1 {
        font-size: 1.2em; /* Smaller font size for very small screens */
    }

    p {
        font-size: 0.8em; /* Smaller font size for very small screens */
    }
}





/* ---- Fixed header & global spacing ---- */

/* Single source of truth for header height */
:root {
  --header-h: 120px;       /* adjust to the visual height of your logo bar */
}

/* Keep your fixed header as is, but ensure its visual height is consistent */
.logo-container {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);                 /* define a height */
  display: flex; align-items: center;      /* vertically center logo */
  justify-content: center;                 /* horizontally center logo */
  padding: 0;                              /* no extra vertical padding; height handles space */
  background-color: white;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Push page content below the fixed header */
body {
  padding-top: var(--header-h);            /* replaces the hard-coded 100px */
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #0d1b2b;
}

/* Your logo size is fine; keep as-is */
.logo { max-width: 180px; height: auto; display: inline-block; }

/* ---- Payment result card (if you output .box) ---- */
.box {
  background: #ffffff;
  color: #0b1321;
  border: 1px solid #d9dee6;
  border-radius: 8px;
  padding: 16px 20px;
  max-width: 720px;
  margin: 16px auto;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  clear: both;                 /* avoids overlap with floated elements */
  position: relative;
  z-index: 2;                  /* sit above any background overlays */
}
.box .success { color: #0a7b33; font-weight: 700; }
.box .error   { color: #b42318; font-weight: 700; }

/* ---- If you switched to #payment-result instead of .box ---- */
/*
#payment-result {
  background: #ffffff;
  color: #0b1321;
  border: 1px solid #d9dee6;
  border-radius: 8px;
  padding: 16px 20px;
  max-width: 720px;
  margin: 16px auto;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  clear: both;
  position: relative;
  z-index: 2;
}
#payment-result .success { color: #0a7b33; font-weight: 700; }
#payment-result .error   { color: #b42318; font-weight: 700; }
*/

/* ---- Mobile tweaks ---- */
@media (max-width: 480px) {
  :root { --header-h: 96px; }              /* slightly shorter header on small screens */

  .logo { max-width: 120px; }

  /* .container had `top: 80px;` which doesn't apply without positioned elements.
     Use margin-top instead if you need more spacing on small screens. */
  .container { margin-top: 12px; padding: 10px; }

  /* If you use #payment-result instead of .box, you can also tighten margins for mobile:
  #payment-result { margin: 8px 12px; max-width: none; }
  */
}

/* ---- Payment confirmation card ---- */
:root { --header-h: 120px; --ok:#1aa36f; --ink:#0b1321; --bg:#0d1b2b; --muted:#5e6b7a; }

body { background-color: var(--bg); padding-top: var(--header-h); }

.pay-conf {
  max-width: 720px;
  margin: 24px auto;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid #e5e9ef;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
  padding: 20px 24px;
}
.pay-conf__icon {
  width: 40px; height: 40px; line-height: 40px; text-align: center;
  border-radius: 50%; background: var(--ok); color: #fff;
  font-weight: 800; font-size: 22px; margin-bottom: 8px;
}
.pay-conf__title { margin: 0 0 10px; font-size: 22px; font-weight: 800; }
.pay-conf__status { color: var(--ok); }

.pay-conf__meta { margin: 0; display: grid; gap: 10px 16px; }
.pay-conf__meta > div { display: grid; grid-template-columns: 130px 1fr; align-items: baseline; }
.pay-conf__meta dt { margin: 0; color: var(--muted); font-weight: 600; }
.pay-conf__meta dd { margin: 0; word-break: break-all; }
.pay-conf__meta code {
  background: #f6f8fb; padding: 2px 6px; border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.pay-conf__link { color: #0a58ca; text-decoration: underline; }
.pay-conf__hint { color: var(--muted); margin-left: 8px; font-size: 12px; }

.pay-conf__actions { margin-top: 16px; }

.btn {
  display: inline-block; background: #1b68d2; color: #fff; text-decoration: none;
  padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.btn:hover { background: #1557b2; }

.pay-conf__footnote {
  margin-top: 14px; color: var(--muted); font-size: 12px;
  border-top: 1px dashed #e7ecf3; padding-top: 10px;
}

/* Mobile tweaks */
@media (max-width: 520px) {
  .pay-conf { margin: 12px; padding: 16px; }
  .pay-conf__meta > div { grid-template-columns: 110px 1fr; }
}

/* ===== Payment Confirmation Card (polished) ===== */
:root{
  --header-h:120px;           /* adjust to your fixed header height */
  --bg:#0d1b2b;               /* page background */
  --ink:#0b1321;              /* primary text on white */
  --muted:#5e6b7a;            /* secondary text */
  --ok:#17b26a;               /* success green */
  --line:#e7ecf3;             /* subtle borders */
  --link:#0b5ed7;             /* links/buttons */
  --link-hover:#0a53be;
}

body{ background:var(--bg); padding-top:var(--header-h); }

.pay-conf{
  max-width: 760px;
  margin: 28px auto;
  background:#fff;
  color:var(--ink);
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:0 10px 26px rgba(0,0,0,.10);
  overflow:hidden;
}

.pay-conf__head{
  display:flex;
  align-items:center;
  gap:12px;
  padding:20px 22px 6px 22px;
}

.pay-conf__badge{
  width:32px; height:32px; flex:0 0 32px;
}

.pay-conf__title{
  margin:0;
  font-size:24px;
  font-weight:800;
  letter-spacing:.2px;
}

.pay-conf__status{ color:var(--ok); }

.pay-conf__body{
  padding:10px 22px 6px 22px;
}

.kv{
  margin:0;
  display:grid;
  gap:14px;
}

.kv__row{
  display:grid;
  grid-template-columns: 160px 1fr;
  gap:16px;
  padding:10px 0;
  border-bottom:1px dashed var(--line);
}
.kv__row:last-child{ border-bottom:none; }

.kv dt{
  margin:0; color:var(--muted); font-weight:700;
}
.kv dd{
  margin:0; word-break:break-word;
}

.mono{
  background:#f6f8fb;
  padding:2px 6px;
  border-radius:6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.amount{ font-weight:800; }

.hint{ color:var(--muted); margin-left:8px; font-size:12px; }

.pay-conf__actions{
  display:flex;
  gap:10px;
  align-items:center;
  padding:14px 22px 18px 22px;
  border-top:1px solid var(--line);
}

.btn{
  display:inline-block;
  border-radius:10px;
  padding:10px 16px;
  font-weight:800;
  text-decoration:none;
  cursor:pointer;
  line-height:1.1;
  transition: all .15s ease;
}
.btn--primary{
  background:var(--link);
  color:#fff;
  border:1px solid var(--link);
}
.btn--primary:hover{ background:var(--link-hover); border-color:var(--link-hover); }
.btn--ghost{
  background:transparent;
  color:var(--link);
  border:1px solid var(--line);
}
.btn--ghost:hover{ background:#f8fafc; }

.pay-conf__foot{
  color:var(--muted);
  font-size:12px;
  padding: 0 22px 20px 22px;
}

/* Mobile tweaks */
@media (max-width:600px){
  .pay-conf__title{ font-size:20px; }
  .kv__row{ grid-template-columns: 120px 1fr; }
  .pay-conf{ margin:14px; }
}

/* Print: only print the card content nicely */
@media print{
  body{ background:#fff; padding:0; }
  .logo-container{ display:none !important; }
  .pay-conf{ box-shadow:none; border:1px solid #ddd; margin:0; }
  .btn, .pay-conf__foot .hint{ display:none !important; }
}

/* --- Payment Confirmation: Fixes & Polish --- */

/* 1) Force the success badge to a small, fixed size (override any global svg rules) */
.pay-conf__badge {
  width: 36px !important;
  height: 36px !important;
  flex: 0 0 36px;
  display: inline-block;
  vertical-align: middle;
}

/* 2) Nicer title scale on the card */
.pay-conf__title {
  font-size: 22px;
  line-height: 1.25;
  margin: 0;
}

/* 3) Tighten body spacing a touch */
.pay-conf__head { padding: 18px 22px 6px 22px; }
.pay-conf__body { padding: 10px 22px 6px 22px; }

/* 4) Key/Value grid stays readable and compact */
.kv__row { 
  grid-template-columns: 150px 1fr; 
  gap: 12px 16px; 
  padding: 10px 0; 
}
.kv dt { font-weight: 700; opacity: 0.9; }
.kv dd { word-break: break-word; }

/* 5) Links look consistent */
.pay-conf__link, .btn--primary {
  color: #0b5ed7; 
}
.pay-conf__link:hover { color: #0a53be; }

/* 6) Mobile tweaks */
@media (max-width: 600px) {
  .pay-conf { margin: 14px; }
  .pay-conf__title { font-size: 20px; }
  .kv__row { grid-template-columns: 120px 1fr; }
}