* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { display: flex; flex-direction: column; position: relative; isolation: isolate; margin: 0; min-height: 100vh; color: var(--color-text); background: radial-gradient(ellipse at 100% 0%, rgba(53, 166, 246, .95) 0%, rgba(53, 166, 246, .42) 30%, transparent 55%), radial-gradient(ellipse at 8% 108%, rgba(31, 157, 245, .9) 0%, transparent 43%), linear-gradient(112deg, #0757ca 0%, #075fce 48%, #1681dc 100%); font-family: var(--font-body); }
body::before { position: fixed; z-index: -1; inset: -25% -16%; border-radius: 0 0 52% 48%; content: ""; background: radial-gradient(ellipse at 55% 42%, transparent 0 49%, rgba(99, 188, 246, .18) 49.3% 49.8%, transparent 50.2% 65%, rgba(5, 74, 168, .15) 65.4% 66.2%, transparent 66.6%), linear-gradient(155deg, rgba(4, 58, 145, .4) 0%, rgba(7, 72, 160, .22) 58%, rgba(15, 98, 187, .02) 100%); transform: rotate(8deg); pointer-events: none; }
.generator-page { position: relative; z-index: 1; flex: 1 0 auto; width: min(920px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 24px; }
.site-footer { position: relative; z-index: 1; padding: 8px 16px 40px; color: white; text-align: center; }
.site-footer a { color: rgba(255, 255, 255, .88); font-size: .9rem; text-decoration-line: underline; text-decoration-style: dashed; text-decoration-color: #f5a623; text-underline-offset: 4px; }
.site-footer a:hover { color: white; }
.site-footer a:focus-visible { outline: 2px solid white; outline-offset: 4px; }
.generator-brand { display: block; width: 130px; margin: 0 auto; line-height: 0; }
.generator-brand img { display: block; width: 100%; height: auto; object-fit: contain; object-position: left center; }
.intro { position: relative; margin: 16px 0 28px; color: white; text-align: center; }
.eyebrow { margin: 0 0 8px; color: rgba(255, 255, 255, .82); font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 0; color: white; font-family: "Inter", var(--font-body); font-size: clamp(2.3rem, 3.8vw, 3.35rem); font-weight: 700; letter-spacing: -.055em; line-height: 1.05; -webkit-font-smoothing: antialiased; }
h1 span { color: #8ce6ff; }
.intro > p:last-child { max-width: 660px; margin: 12px auto 0; color: rgba(255, 255, 255, .9); font-size: 1.1rem; line-height: 1.55; }
.receipt-form { padding: clamp(16px, 3vw, 24px); border: 1px solid rgba(255, 255, 255, .72); border-radius: 18px; background: #eaf3ff; box-shadow: 0 12px 32px rgba(15, 45, 85, .16); }
.required-marker { color: var(--color-error-text); font-size: 1.15rem; font-weight: 700; line-height: 0; }
.field-label > .required-marker { color: var(--color-error-text); font-size: 1.15rem; }
.receipt-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.receipt-form fieldset + fieldset { margin-top: 18px; }
legend { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0; padding: 0 8px 10px; border: 0; color: #10274a; background: transparent; font-size: 1rem; font-weight: 700; letter-spacing: -.025em; }
legend > svg { display: block; flex: 0 0 24px; width: 24px; min-width: 24px; max-width: 24px; height: 24px; min-height: 24px; max-height: 24px; color: #1475df; }
legend small { display: block; margin-top: 2px; color: #647a99; font-size: .78rem; font-weight: 400; letter-spacing: 0; line-height: 1.4; }
.field-group-card { min-width: 0; padding: 18px 20px 2px; border: 1px solid #e2eaf5; border-radius: 14px; background: white; box-shadow: 0 4px 14px rgba(25, 64, 112, .05); }
.field-grid { display: grid; min-width: 0; gap: 0 18px; }
.field-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
label { display: block; min-width: 0; margin: 0 0 16px; color: #334155; font-size: .84rem; font-weight: 500; }
label > input, label > select, label > textarea { margin-top: 6px; }
.logo-field { display: block; min-width: 0; margin: 0 0 16px; }
.logo-label { display: block; margin-bottom: 6px; }
.amount-controls { display: flex; width: 100%; min-width: 0; align-items: stretch; gap: 10px; margin-top: 6px; }
.amount-controls input { flex: 1 1 0; min-width: 0; margin-top: 0; }.amount-controls select { flex: 0 0 120px; width: 120px; min-width: 0; margin-top: 0; }
.field-label { display: block; padding-top: 0; }
.field-label { color: #334155; font-size: .92rem; font-weight: 400; }
.field-label > span { color: var(--color-text-muted); font-size: .8rem; font-weight: 400; }
label span { color: var(--color-text-muted); font-size: .8rem; font-weight: 400; }
#logo-empty { display: block; width: 100%; }
#logo-selected { display: block; width: 100%; }
.logo-selected { position: relative; width: 100%; }
.logo-dropzone { display: flex; align-items: center; gap: 16px; width: 100%; max-width: 100%; min-width: 0; min-height: 104px; margin: 0; padding: 12px 12px 12px 16px; border: 1px dashed #aab8c8; border-radius: 12px; color: #263b53; background: white; text-align: left; cursor: pointer; transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease; }
.logo-dropzone:hover, .logo-dropzone:focus-visible { border-color: #3478c8; background: #f7fbff; }
#logo-empty .logo-dropzone { padding-right: 16px; }
#logo-selected .logo-dropzone { padding-right: 56px; }
.logo-dropzone:focus-visible { outline: 3px solid rgba(59, 130, 246, .25); outline-offset: 2px; }
.logo-upload-icon { display: block; flex: 0 0 32px; width: 32px; height: 32px; color: #3478c8; }
#logo-preview { display: block; flex: 0 0 auto; width: auto; max-width: min(200px, 42%); max-height: 80px; object-fit: contain; background: white; }
.logo-upload-copy { display: grid; gap: 5px; min-width: 0; }
.logo-upload-copy strong { color: #1d2939; font-size: .9rem; font-weight: 600; }
.logo-upload-copy small { color: #667085; font-size: .82rem; font-weight: 400; line-height: 1.4; }
.logo-remove { position: absolute; top: 8px; right: 8px; display: inline-grid; width: 40px; height: 40px; margin: 0; padding: 0; place-items: center; border: 1px solid transparent; border-radius: 9px; color: #667085; background: transparent; cursor: pointer; transition: color 150ms ease, background-color 150ms ease; }
.logo-remove:hover, .logo-remove:focus-visible { color: #b42318; background: #fff1f1; }
.logo-remove:focus-visible { outline: 3px solid rgba(180, 35, 24, .2); outline-offset: 2px; }
.logo-remove svg { width: 19px; height: 19px; }
.secondary-button { width: auto; margin: 0; padding: 10px 14px; color: var(--color-primary-dark); background: white; border: 1px solid var(--color-border-strong); font-size: .82rem; font-weight: 500; }.secondary-button:hover { color: var(--color-primary-dark); background: var(--color-surface-muted); }
input, select, textarea { display: block; width: 100%; margin-top: 7px; padding: 11px 12px; border: 1px solid var(--color-border-strong); border-radius: 7px; color: var(--color-text); background: white; font: inherit; font-weight: 400; }
textarea { min-height: 7.5rem; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--color-focus) 35%, transparent); border-color: var(--color-interactive); }
.two-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
button { display: block; width: min(100%, 420px); margin: 24px auto 12px; border: 0; border-radius: 7px; padding: 20px 18px; color: white; background: var(--color-action-primary); cursor: pointer; font: inherit; font-weight: 700; }
button[type="submit"] { display: flex; align-items: center; justify-content: center; gap: 10px; width: min(100%, 340px); padding: 14px 10px; border-radius: 14px; }
button[type="submit"] svg { width: 22px; height: 22px; flex: 0 0 auto; }
button:hover { background: var(--color-action-primary-hover); } button:disabled { cursor: wait; opacity: .7; }
.form-error { margin: 8px 0 18px; color: var(--color-error-text); }
body.logo-drop-active .generator-page { filter: blur(9px); transition: filter 140ms ease; }
body.logo-drop-active::after { content: "Drop image to upload your logo"; position: fixed; z-index: 10000; inset: 0; display: grid; place-items: center; background: rgba(240, 247, 252, .42); color: #213b55; font-size: 1.2rem; font-weight: 700; pointer-events: none; }
@media (max-width: 760px) { .field-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .generator-page { width: min(100% - 24px, 720px); padding-top: 12px; } .intro { margin-top: 32px; } .field-grid-2, .field-grid-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 680px) { h1 { font-size: clamp(1.9rem, 5.4vw, 2.3rem); } }
