* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.5;
    color: var(--gray-900);
    background: var(--white);
}
/* Room for the sticky action bar, so it never covers the footer. */
body.has-bar { padding-bottom: 150px; }

[hidden] { display: none !important; }

button, input { font: inherit; color: inherit; }
input:focus-visible, button:focus-visible, a:focus-visible, label:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.skip-link {
    position: absolute; left: -999px; top: 0;
    background: var(--white); color: var(--blue-900); padding: 8px 12px; z-index: 30;
}
.skip-link:focus { left: 8px; top: 8px; outline: 3px solid var(--focus); }

.site-header { background: var(--blue-900); color: var(--white); position: sticky; top: 0; z-index: 5; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { color: var(--white); text-decoration: none; font-size: 22px; font-weight: 700; letter-spacing: .2px; white-space: nowrap; }
.brand span { font-weight: 400; }
.header-note { font-size: 14px; opacity: .85; }

main.container { padding-top: 20px; padding-bottom: 40px; }

h1 { font-size: 26px; line-height: 1.2; margin: 0 0 10px; color: var(--blue-900); text-wrap: balance; }
h2 { font-size: 22px; line-height: 1.25; margin: 0 0 8px; color: var(--blue-900); text-wrap: balance; }
.flush-top { margin: 0; }
.lede { margin: 0 0 20px; color: var(--gray-700); }

.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 20px; font-size: 13px; color: var(--gray-500); }
.steps li { flex: 1; padding-top: 6px; border-top: 4px solid var(--gray-200); }
.steps li.is-current { border-top-color: var(--blue-700); color: var(--blue-900); font-weight: 700; }
.steps li.is-done { border-top-color: var(--blue-700); color: var(--gray-700); }

.card { border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 18px; background: var(--white); }
.card.flush { padding: 0; overflow: hidden; }
.stack { display: grid; gap: 16px; }

label.lbl, .lbl { display: block; font-weight: 700; margin-bottom: 6px; }
.hint { font-size: 15px; color: var(--gray-700); margin: 0 0 8px; font-weight: 400; }
.input { width: 100%; font: inherit; padding: 12px 14px; min-height: 48px; border: 2px solid var(--gray-700); border-radius: var(--radius); background: var(--white); }
.input.dot { font-size: 22px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.input[aria-invalid="true"] { border-color: var(--red-700); }
.error { color: var(--red-700); font-weight: 700; margin: 8px 0 0; font-size: 15px; }
.error:empty { display: none; }

/* Buttons: blue is the site default, green is the "move forward" action. */
.btn {
    display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; padding: 12px 20px;
    font: inherit; font-weight: 700; font-size: 18px; color: var(--white); background: var(--blue-700);
    border: 0; border-radius: var(--radius); cursor: pointer; text-align: center;
}
.btn.go { background: var(--green-700); }
.btn.go:active { background: var(--green-900); }
.btn.grey { background: var(--gray-100); color: var(--gray-700); border: 1px solid var(--gray-200); font-weight: 600; min-height: 46px; font-size: 16px; }
.btn.outline { background: var(--white); color: var(--blue-700); border: 2px solid var(--blue-700); min-height: 48px; font-size: 16px; }
.btn.sm { width: auto; min-height: 42px; font-size: 16px; padding: 8px 18px; }
.btn[disabled] { opacity: .7; cursor: progress; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--blue-700); text-decoration: underline; cursor: pointer; }
.link-btn.small { font-size: 15px; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Sticky bottom action bar, within thumb reach on phones */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--white); border-top: 1px solid var(--gray-200); box-shadow: 0 -4px 14px rgba(17,46,81,.08); padding-top: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
.bar .container { display: grid; gap: 8px; }
.bar .note { text-align: center; font-size: 13px; color: var(--gray-500); margin: 0; }
.bar .note a { color: inherit; }

/* Business details */
.dotline { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; background: var(--blue-100); border-bottom: 1px solid var(--gray-200); font-size: 15px; color: var(--blue-900); }
.dotline b { font-size: 18px; font-variant-numeric: tabular-nums; }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 18px; border-top: 1px solid var(--gray-200); align-items: center; }
.row:first-child { border-top: 0; }
.row .k { font-size: 14px; color: var(--gray-700); grid-column: 1; }
.row .v { grid-column: 1; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.row .v.empty { color: var(--red-700); }
.row .pen { grid-column: 2; grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: var(--radius); border: 1px solid var(--gray-200); background: var(--white); display: grid; place-items: center; cursor: pointer; color: var(--blue-700); }
.row .pen svg { width: 18px; height: 18px; }
.row .edit { grid-column: 1 / -1; display: grid; gap: 8px; margin-top: 4px; }
.row .edit .trio { display: grid; grid-template-columns: 1fr 64px 92px; gap: 8px; }
.row .edit .acts { display: flex; gap: 8px; }
.row .error { grid-column: 1 / -1; }

/* Status: not filed is loud red, filed is the green callout */
.alert { border: 2px solid var(--red-700); border-radius: var(--radius); overflow: hidden; background: var(--red-50); }
.alert .band { display: flex; align-items: center; gap: 10px; background: var(--red-700); color: var(--white); padding: 12px 18px; font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.alert .band svg { width: 22px; height: 22px; flex: none; }
.alert .body { padding: 16px 18px 18px; display: grid; gap: 10px; }
.alert h2 { color: var(--red-700); margin: 0; }
.alert p { margin: 0; color: var(--gray-900); }
.facts { margin: 4px 0 0; padding: 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--red-100); font-size: 15px; }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--gray-700); }
.facts dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
.facts dd.red { color: var(--red-700); }
.callout { border-left: 6px solid var(--blue-700); background: var(--blue-100); padding: 16px 18px; border-radius: var(--radius); display: grid; gap: 8px; }
.callout.success { border-left-color: var(--green-700); background: var(--green-100); }
.callout h1, .callout h2, .callout p { margin: 0; }
.callout .facts div { border-bottom-color: rgba(46,133,64,.25); }

/* Options */
.opt-fix { display: grid; grid-template-columns: 26px 1fr; gap: 4px 12px; width: 100%; text-align: left; padding: 16px 18px; border: 2px solid var(--green-700); background: var(--green-100); border-radius: var(--radius); cursor: pointer; }
.opt-fix .tag { justify-self: start; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--green-700); color: var(--white); padding: 2px 8px; border-radius: 2px; }
.opt-fix .t { font-size: 20px; font-weight: 700; color: var(--blue-900); }
.opt-fix ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 3px; font-size: 15px; }
.opt-fix li { display: flex; gap: 8px; }
.opt-fix li::before { content: "\2713"; color: var(--green-700); font-weight: 700; }
.radio { grid-row: 1 / span 3; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--gray-500); margin-top: 2px; display: grid; place-items: center; background: var(--white); }
[aria-checked="true"] > .radio { border-color: var(--green-700); }
[aria-checked="true"] > .radio::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--green-700); }
.opt-fix[aria-checked="false"] { border-color: var(--gray-200); background: var(--white); }
.opt-stay { display: grid; grid-template-columns: 20px 1fr; gap: 0 10px; align-items: center; width: 100%; text-align: left; padding: 10px 14px; border: 1px solid var(--gray-200); background: var(--white); border-radius: var(--radius); cursor: pointer; color: var(--gray-500); font-size: 15px; }
.opt-stay .radio { grid-row: auto; width: 18px; height: 18px; border-width: 1px; border-color: var(--gray-300); margin: 0; }
.opt-stay[aria-checked="true"] > .radio { border-color: var(--gray-500); }
.opt-stay[aria-checked="true"] > .radio::after { width: 8px; height: 8px; background: var(--gray-500); }

/* Payment */
.summary { margin: 0; padding: 0; }
.summary div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--gray-200); }
.summary dt { color: var(--gray-700); }
.summary dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
.price-line { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 12px; border-top: 2px solid var(--blue-900); }
.price-line .amount { font-size: 30px; font-weight: 700; color: var(--blue-900); font-variant-numeric: tabular-nums; }
.sched { border-left: 6px solid var(--green-700); background: var(--green-100); padding: 12px 16px; border-radius: var(--radius); font-size: 15px; display: grid; gap: 4px; }
.sched b { color: var(--blue-900); font-size: 16px; }
#email-error { margin-bottom: 12px; }
#payment-element { min-height: 160px; margin-top: 12px; }
.non-us { margin: 10px 0 0; }
.fine-print { font-size: 14px; color: var(--gray-700); margin: 12px 0 0; }

/* Decline sheet */
.scrim { position: fixed; inset: 0; z-index: 20; background: var(--scrim); display: grid; align-items: end; }
.sheet { background: var(--white); border-radius: 10px 10px 0 0; border-top: 6px solid var(--red-700); padding-top: 12px; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); max-height: 92vh; overflow: auto; animation: up .2s ease-out; }
.sheet .container { display: grid; gap: 12px; }
.sheet h2 { color: var(--red-700); margin: 0; }
.sheet p { margin: 0; color: var(--gray-700); }
.sheet .sub { font-size: 14px; color: var(--gray-700); text-align: center; margin-top: -4px; }
.ack { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--gray-200); border-radius: var(--radius); cursor: pointer; font-size: 14px; color: var(--gray-500); }
.ack input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--gray-500); }
.decline { background: none; border: 0; padding: 6px; color: var(--gray-500); font-size: 14px; text-decoration: underline; cursor: pointer; justify-self: center; }
.decline[disabled] { color: var(--gray-300); text-decoration: none; cursor: not-allowed; }
@keyframes up { from { transform: translateY(30px); opacity: .5; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sheet, .spin { animation: none; } }

.site-footer { border-top: 1px solid var(--gray-200); padding: 20px 0 32px; font-size: 13px; color: var(--gray-700); }
.site-footer p { margin: 0 0 8px; }

/* Terms and privacy pages */
.legal h1 { font-size: 30px; margin-bottom: 4px; }
.legal .updated { color: var(--gray-700); font-size: 15px; margin: 0 0 24px; }
.legal h2 { font-size: 20px; margin: 28px 0 8px; }
.legal p, .legal li { margin: 0 0 10px; }
.legal ul { padding-left: 22px; margin: 0 0 10px; }

@media (min-width: 700px) {
    h1 { font-size: 30px; }
}
