@font-face{font-family:CenturyGothic;src:url('../fonts/centurygothic.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:CenturyGothic;src:url('../fonts/centurygothic_bold.ttf') format('truetype');font-style:normal;font-weight:700;font-display:swap}
:root{--red:#E50917;--navy:#00236D;--blue:#275B9E;--slate:#7F91A1;--pale:#EAEEF0;--white:#FFFFFF;--ink:#14213D;--muted:#5E6F7D;--ok:#167548;--shadow:0 12px 38px rgba(0,35,109,.10);--radius:24px;--field-radius:13px}
*{box-sizing:border-box}
html{scroll-behavior:smooth;background:var(--pale)}
body{margin:0;color:var(--ink);background:linear-gradient(135deg,#f8fafb 0%,#eef3f7 48%,#e6ecf1 100%);font-family:CenturyGothic,Arial,sans-serif;font-size:16px;min-height:100vh}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
[hidden]{display:none!important}
.splash{position:fixed;inset:0;z-index:999;display:grid;place-content:center;justify-items:center;background:radial-gradient(circle at 50% 42%,#fff 0 23%,#edf2f6 72%);transition:opacity .35s ease,visibility .35s ease}
.splash.hide{opacity:0;visibility:hidden}
.splash img{width:min(48vw,260px);height:auto;z-index:1;filter:drop-shadow(0 18px 25px rgba(0,35,109,.18));animation:splash-in .7s cubic-bezier(.2,.8,.2,1)}
.splash p{color:var(--navy);font-size:.82rem;letter-spacing:.09em;margin:22px 0 0;text-transform:uppercase}
.splash-orbit{position:absolute;width:min(62vw,340px);aspect-ratio:1;border-radius:50%;border:2px solid transparent;border-top-color:var(--red);border-right-color:var(--navy);animation:spin 1.5s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}@keyframes splash-in{from{opacity:0;transform:scale(.84)}to{opacity:1;transform:scale(1)}}
.topbar{position:sticky;top:0;z-index:20;min-height:72px;padding:12px max(20px,calc((100vw - 1180px)/2));display:flex;align-items:center;justify-content:space-between;gap:18px;background:rgba(255,255,255,.9);backdrop-filter:blur(18px);border-bottom:1px solid rgba(127,145,161,.24)}
.brand{display:flex;align-items:center;gap:15px;color:var(--navy);text-decoration:none;font-weight:700}
.brand img{width:174px;max-width:40vw;height:auto}.brand span{padding-left:15px;border-left:1px solid #c8d2db}
.top-actions{display:flex;align-items:center;gap:12px}.status{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:.78rem;font-weight:700}.status>span{width:9px;height:9px;border-radius:50%;background:var(--ok);box-shadow:0 0 0 4px rgba(22,117,72,.1)}.status.offline>span{background:var(--red);box-shadow:0 0 0 4px rgba(229,9,23,.1)}
.app-shell{width:min(1180px,calc(100% - 34px));margin:28px auto 64px}
.welcome-card{position:relative;overflow:hidden;display:flex;justify-content:space-between;align-items:center;gap:28px;padding:30px 34px;border-radius:var(--radius);background:linear-gradient(120deg,var(--navy),#07398a);color:var(--white);box-shadow:0 18px 45px rgba(0,35,109,.23)}
.welcome-card:after{content:"";position:absolute;width:280px;height:280px;border:44px solid rgba(255,255,255,.07);border-radius:50%;right:-105px;top:-130px}
.eyebrow{margin:0 0 8px;color:#b8d4ff;font-size:.75rem;font-weight:700;letter-spacing:.14em}.welcome-card h1{margin:0 0 6px;font-size:clamp(1.7rem,4vw,2.5rem)}.welcome-card p:not(.eyebrow){margin:0;max-width:610px;color:#d9e6f7}
.date-card{position:relative;z-index:1;min-width:210px;padding:16px 18px;border:1px solid rgba(255,255,255,.22);border-radius:16px;background:rgba(255,255,255,.1)}.date-card span,.date-card small{display:block;color:#c8d9ef;font-size:.72rem}.date-card strong{display:block;margin:6px 0;font-size:1.18rem}
.stepper{display:flex;align-items:center;justify-content:center;margin:27px auto;width:min(650px,100%)}.stepper i{height:2px;flex:1;background:#c9d2db}.step{display:flex;align-items:center;gap:9px;border:0;background:transparent;color:var(--slate);padding:6px;font-size:.82rem}.step span{display:grid;place-items:center;width:31px;height:31px;border:2px solid #b4c0ca;border-radius:50%;font-weight:700;background:var(--pale)}.step.active{color:var(--navy)}.step.active span,.step.done span{color:#fff;border-color:var(--blue);background:var(--blue)}.step.done span{font-size:0}.step.done span:before{content:"✓";font-size:.9rem}
.form-section{display:none;padding:32px 34px;border:1px solid rgba(127,145,161,.22);border-radius:var(--radius);background:rgba(255,255,255,.96);box-shadow:var(--shadow);animation:section-in .35s ease}.form-section.active{display:block}@keyframes section-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:28px}.section-heading>div{display:flex;align-items:center;gap:12px}.section-number{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;color:#fff;background:var(--navy);font-size:.8rem;font-weight:700}.section-heading h2{margin:0;color:var(--navy);font-size:1.35rem}.section-heading p{margin:0;color:var(--muted);font-size:.84rem;text-align:right}
.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.field{display:flex;flex-direction:column;gap:8px;min-width:0}.field>span,.type-picker legend{color:#344a60;font-size:.79rem;font-weight:700;text-transform:uppercase;letter-spacing:.055em}.field input,.field select,.field textarea{width:100%;min-height:52px;border:1.5px solid #c8d2db;border-radius:var(--field-radius);outline:none;background:#fff;color:var(--ink);padding:13px 15px;transition:border-color .2s,box-shadow .2s,background .2s}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--blue);box-shadow:0 0 0 4px rgba(39,91,158,.11)}.field input:user-invalid,.field select:user-invalid{border-color:var(--red)}.field small{color:var(--slate);font-size:.7rem}.field textarea{resize:vertical;line-height:1.5}
.type-picker{border:0;padding:0;margin:30px 0 0}.type-picker legend{margin-bottom:13px}.type-card{position:relative;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;padding:15px 16px;margin:10px 0;border:1.5px solid #ccd5dd;border-radius:16px;cursor:pointer;transition:.2s}.type-card:hover{border-color:#8fa8c5;background:#f8fbff}.type-card.selected{border-color:var(--blue);background:#f0f5fc;box-shadow:0 0 0 3px rgba(39,91,158,.08)}.type-card input{position:absolute;opacity:0}.type-card .type-icon{display:grid;place-items:center;width:39px;height:39px;border-radius:12px;background:var(--pale);color:var(--navy);font-weight:700}.type-card.selected .type-icon{background:var(--blue);color:#fff}.type-card b,.type-card small{display:block}.type-card b{font-size:.95rem}.type-card small{margin-top:3px;color:var(--muted);font-size:.74rem}.type-card i{width:20px;height:20px;border:2px solid #a9b7c4;border-radius:50%}.type-card.selected i{border:6px solid var(--blue)}
.payment-panel{margin-top:20px;padding:22px;border-radius:18px;background:#f4f7fa;border-left:4px solid var(--blue)}.panel-title{display:flex;justify-content:space-between;margin-bottom:18px}.panel-title span{font-weight:700;color:var(--navy)}.panel-title small{color:var(--muted)}.bank-fields{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:20px}
.section-actions{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:30px;padding-top:22px;border-top:1px solid #e2e8ed}.button{min-height:44px;border:0;border-radius:999px;padding:10px 20px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:700;font-size:.83rem;transition:transform .15s,box-shadow .15s,background .15s}.button:active{transform:scale(.98)}.button-primary{color:#fff;background:var(--navy);box-shadow:0 7px 16px rgba(0,35,109,.18)}.button-primary:hover{background:#073988}.button-accent{color:#fff;background:var(--red);box-shadow:0 8px 20px rgba(229,9,23,.2)}.button-tonal{color:var(--navy);background:#e7effa}.button-outline{color:var(--blue);background:#fff;border:1.5px solid #9eb3cb}.button-text{color:var(--blue);background:transparent}
.items-head,.item-row{display:grid;grid-template-columns:1.05fr 2fr .7fr .8fr .9fr 40px;gap:10px;align-items:start}.items-head{padding:0 8px 9px;color:var(--muted);font-size:.69rem;font-weight:700;text-transform:uppercase}.item-row{margin-bottom:11px;padding:12px;border:1px solid #d6dee5;border-radius:16px;background:#fbfcfd}.item-row input{width:100%;height:44px;border:1px solid #c9d3dc;border-radius:10px;padding:10px;outline:none}.item-row input:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(39,91,158,.1)}.row-subtotal{height:44px;display:flex;align-items:center;justify-content:flex-end;font-weight:700;color:var(--navy)}.remove-item{width:40px;height:40px;border:0;border-radius:50%;color:var(--red);background:#ffedef;font-size:1.15rem}.remove-item:disabled{opacity:.3;cursor:not-allowed}
.totals{width:min(350px,100%);margin:22px 0 0 auto;padding:18px;border-radius:18px;background:#f1f5f8}.totals div{display:flex;justify-content:space-between;align-items:center;padding:7px}.totals span{color:var(--muted)}.totals small{font-size:.72rem}.totals strong{color:var(--navy)}.totals .grand-total{margin-top:7px;padding:13px 10px;border-radius:12px;background:var(--navy)}.totals .grand-total span,.totals .grand-total strong{color:#fff}.totals .grand-total strong{font-size:1.22rem}
.notice{display:flex;gap:8px;flex-direction:column;padding:18px 20px;border-radius:16px;background:#fff8dc;border:1px solid #ead77a;color:#5d5016}.notice span{font-size:.84rem}.textarea-field textarea{min-height:190px}.textarea-field>small{text-align:right}.signature-preview{margin:32px auto 12px;width:min(560px,100%);text-align:center}.signature-preview span{display:block;color:var(--muted);font-size:.72rem;text-transform:uppercase;letter-spacing:.05em}.signature-preview strong{display:block;margin-top:34px;color:var(--navy)}.signature-preview i{display:block;margin:8px auto 0;width:80%;border-bottom:1px solid var(--ink)}.important-note{width:min(560px,100%);margin:25px auto 0;padding:16px;border:1px solid #d7c300;background:#fffef0;text-align:center;color:var(--red)}.important-note b{display:block;background:#fff78f;margin:-16px -16px 10px;padding:8px}.important-note p{margin:0;font-size:.75rem;line-height:1.45}
.toast{position:fixed;left:50%;bottom:24px;z-index:80;max-width:min(90vw,520px);transform:translate(-50%,120px);opacity:0;padding:13px 19px;border-radius:14px;color:#fff;background:#172b4d;box-shadow:0 12px 30px rgba(0,0,0,.2);font-size:.83rem;transition:.3s}.toast.show{transform:translate(-50%,0);opacity:1}.toast.error{background:#97151d}
@media(max-width:760px){.topbar{min-height:64px;padding:10px 16px}.brand img{width:130px}.brand span{display:none}.status{font-size:0}.status>span{margin-right:2px}.button-tonal{padding:9px 13px;font-size:.72rem}.app-shell{width:min(100% - 22px,1180px);margin-top:16px}.welcome-card{padding:24px 22px;align-items:flex-start;flex-direction:column}.date-card{width:100%;min-width:0}.stepper{margin:18px auto}.step b{display:none}.form-section{padding:23px 18px}.section-heading{align-items:flex-start;flex-direction:column;margin-bottom:22px}.section-heading p{text-align:left}.field-grid,.bank-fields{grid-template-columns:1fr;gap:16px}.panel-title{flex-direction:column;gap:4px}.items-head{display:none}.item-row{grid-template-columns:1fr 1fr;gap:11px}.item-row input:nth-child(1),.item-row input:nth-child(2){grid-column:1/-1}.row-subtotal{justify-content:flex-start;padding-left:10px;background:#f0f4f8;border-radius:10px}.row-subtotal:before{content:"Subtotal: ";margin-right:5px;color:var(--muted);font-size:.72rem}.remove-item{justify-self:end}.section-actions{align-items:stretch}.section-actions .button{flex:1}.section-actions>span{display:none}}
@media(max-width:420px){.top-actions{gap:7px}.button-tonal{padding:9px 11px}.welcome-card h1{font-size:1.55rem}.type-card{grid-template-columns:auto 1fr}.type-card i{display:none}.item-row{grid-template-columns:1fr}.item-row input:nth-child(n){grid-column:1}.remove-item{justify-self:start}.section-actions{flex-direction:column-reverse}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.001ms!important;transition-duration:.001ms!important}}
