/* ALPFA UIUC sponsor payment site — layout modeled on PayPal's invoice screen */
:root {
  --ink: #001435;
  --text: #1a1a1a;
  --muted: #545d68;
  --line: #d6dbe1;
  --soft: #f4f6f9;
  --bg: #ffffff;
  --link: #0057d8;
  --black: #000000;
  --accent: #e84a27; /* Illinois orange, used sparingly */
  --ok: #1f7a4d;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* Anything still to be confirmed */
.ph { background: #fff3c4; outline: 1px dashed #c9a400; border-radius: 3px; padding: 0 3px; }
.draft-banner {
  background: #fff3c4; border-bottom: 1px solid #e6cf6e;
  font-size: 0.85rem; text-align: center; padding: 8px 16px;
}

/* Top bar */
.topbar { border-bottom: 1px solid #eceff3; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.wordmark { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.01em; color: var(--black); text-decoration: none; }
.brand-link { display: flex; align-items: center; gap: 10px; text-decoration: none; }
/* The logo PNG is 200x200 with white space around the art (art spans x 24-175, y 35-167).
   Crop that border so the art itself shows larger. */
.site-logo { display: block; flex: none; width: 82px; height: 72px; overflow: hidden; }
.site-logo img { display: block; width: 108px; height: 108px; margin: -19px 0 0 -13px; }

/* Page title row */
.title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 36px 0 8px; }
.title-row h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; margin: 0; color: var(--black); line-height: 1.1; }
.legal-name { color: var(--muted); font-size: 0.9rem; margin: 8px 0 0; }
.offer { max-width: 760px; color: var(--muted); margin: 14px 0 24px; font-size: 1.02rem; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid #c8ced6; border-radius: 999px; background: #fff;
  padding: 9px 18px; font-weight: 700; font-size: 0.9rem; color: var(--black); text-decoration: none;
}
.pill:hover { border-color: var(--black); }

/* Two-column layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; padding-bottom: 48px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; }
.panel + .panel { margin-top: 20px; }
.panel h2 { font-size: 1.2rem; font-weight: 600; margin: 0 0 18px; color: var(--black); }
.panel h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 6px; color: var(--black); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.panel-head h2 { margin: 0; }
.chip { border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 0.85rem; }

/* Tier picker (styled like PayPal's radio row) */
.inner { border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.inner { container-type: inline-size; }
.tier-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
@container (max-width: 600px) { .tier-options { grid-template-columns: 1fr 1fr; } }
.tier-opt { position: relative; }
.tier-opt input { position: absolute; opacity: 0; pointer-events: none; }
.tier-opt label {
  display: flex; flex-direction: column; gap: 2px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 14px 12px 44px;
  position: relative; height: 100%;
}
.tier-opt label::before {
  content: ""; position: absolute; left: 14px; top: 16px;
  width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #8a929c; background: #fff;
}
.tier-opt input:checked + label { border-color: var(--black); box-shadow: 0 0 0 1px var(--black); }
.tier-opt input:checked + label::before { border: 2px solid var(--black); background: radial-gradient(circle, var(--black) 0 4.5px, #fff 5.5px); }
.tier-opt input:focus-visible + label { outline: 3px solid #99c3ff; outline-offset: 2px; }
.tier-name { font-weight: 600; }
.tier-price { font-size: 0.92rem; color: var(--muted); }

.field { border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.field + .field { margin-top: 12px; }
.field-label { font-size: 0.82rem; color: var(--muted); margin: 0 0 6px; }
.selected-benefits { list-style: none; padding: 0; margin: 0; }
.selected-benefits li { padding: 6px 0 6px 26px; position: relative; }
.selected-benefits li::before { content: "✓"; position: absolute; left: 2px; color: var(--ok); font-weight: 800; }
.total-row { display: flex; justify-content: flex-end; gap: 6px; margin-top: 16px; font-size: 1rem; }

.hint { font-size: 0.85rem; color: var(--muted); margin: 14px 0 0; }

/* Company details form (PayPal-style outlined inputs) */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.input-wrap.full { grid-column: 1 / -1; }
.input-wrap label { display: block; font-size: 0.85rem; font-weight: 600; margin: 0 0 6px; }
.input-wrap .opt { font-weight: 400; color: var(--muted); }
.input-wrap input {
  width: 100%; height: 52px; padding: 0 14px;
  border: 1px solid #b8c0ca; border-radius: 10px; font: inherit; font-size: 1rem; background: #fff;
}
.input-wrap input:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 1px var(--black); }
.input-wrap input.invalid { border-color: #c4262e; box-shadow: 0 0 0 1px #c4262e; }
.muted-val.muted-val { color: var(--muted); font-weight: 500; }
.need { font-size: 0.82rem; color: var(--muted); text-align: center; margin: 8px 0 0; }
.pay-msg.ok { color: var(--ok); background: #e9f6ef; }

/* Comparison table */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.compare { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 620px; }
.compare th, .compare td { padding: 12px 10px; border-bottom: 1px solid #eceff3; text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { font-weight: 700; color: var(--black); vertical-align: bottom; }
.compare thead th small { display: block; font-weight: 500; color: var(--muted); }
.compare .is-selected { background: #eef4ff; }
.compare .yes { color: var(--ok); font-weight: 700; }
.compare .no { color: #a3aab8; }

.funds ul { margin: 8px 0 0; padding-left: 20px; }
.funds li { margin: 4px 0; }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { position: relative; padding: 0 0 14px 40px; }
.steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--soft); font-weight: 700; display: flex; align-items: center; justify-content: center;
}

/* Right-hand summary panel */
.summary h2 { font-weight: 700; margin-bottom: 4px; }
.summary .meta { font-size: 0.85rem; color: var(--muted); margin: 0 0 18px; }
.box { background: var(--soft); border-radius: 12px; padding: 16px 18px; margin-bottom: 10px; }
.box-row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.95rem; }
.box-row + .box-row { margin-top: 6px; }
.box-row strong { font-weight: 700; }
.box-total { font-size: 1.25rem; font-weight: 800; }
.box p { margin: 0; font-size: 0.88rem; }

.agree { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; margin: 16px 0; cursor: pointer; }
.agree input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--black); }

.pay-btn {
  width: 100%; height: 56px; border: 0; border-radius: 999px;
  background: var(--black); color: #fff; font: inherit; font-size: 1.05rem; font-weight: 700; cursor: pointer;
}
.pay-btn:hover:not(:disabled) { background: #222; }
.pay-btn:disabled { background: #c4c9d0; cursor: not-allowed; }
.secure { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 0.82rem; color: var(--muted); margin: 10px 0 0; }
.pay-msg { font-size: 0.85rem; color: #8a4b00; background: #fff6e5; border-radius: 8px; padding: 10px 12px; margin: 10px 0 0; display: none; }
.pay-msg.show { display: block; }

.side-section { margin-top: 24px; }
.side-section h4 { margin: 0 0 4px; font-size: 0.95rem; font-weight: 600; }
.side-section .sub { margin: 0 0 10px; font-size: 0.85rem; color: var(--muted); }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pill-row .pill { padding: 7px 14px; font-size: 0.84rem; }

/* Card brand logos */
.cards { display: flex; gap: 6px; flex-wrap: wrap; }
.card-chip {
  width: 52px; height: 34px; border-radius: 5px; border: 1px solid #e3e6ea; background: #fff;
  display: flex; align-items: center; justify-content: center; padding: 4px 6px;
}
.card-chip img { max-width: 100%; max-height: 100%; display: block; }

/* Footer */
.site-footer { border-top: 1px solid #eceff3; background: var(--soft); padding: 32px 0 24px; font-size: 0.9rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.site-footer h4 { margin: 0 0 8px; color: var(--black); font-size: 0.95rem; }
.site-footer address { font-style: normal; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 4px 0; }
.fineprint { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 14px; font-size: 0.8rem; }

/* Policy pages */
.policy { max-width: 820px; padding: 8px 0 48px; }
.policy h1 { font-size: clamp(1.8rem, 4vw, 2.3rem); font-weight: 800; letter-spacing: -0.02em; color: var(--black); margin: 0 0 6px; }
.policy h2 { font-size: 1.1rem; color: var(--black); margin: 28px 0 6px; }
.updated { color: var(--muted); font-size: 0.9rem; margin: 0 0 20px; }
.back-link { display: inline-block; margin: 24px 0 12px; font-weight: 600; }

/* Responsive */
@media (max-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .tier-options { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .panel { padding: 20px 16px; }
  .inner { padding: 14px; }
  .site-logo { width: 62px; height: 54px; }
  .site-logo img { width: 81px; height: 81px; margin: -14px 0 0 -10px; }
  .wordmark { font-size: 1.3rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
