
:root{--bg:#f6f5f3;--panel:#fff;--text:#111;--muted:#6b6b6b;--border:#e8e6e2;--accent:#ffd24d;--accent-strong:#ffbf00;--success:#21a67a;--error:#c62828;--error-bg:#fdecea;--info:#0b62a1}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}
/* playful chat-like background */
.bg-pattern{position:fixed;inset:0;pointer-events:none;background:
  radial-gradient( circle at 10% 20%, rgba(255,240,200,.35) 0 12%, transparent 13% ) 0 0/180px 180px,
  radial-gradient( circle at 80% 0%, rgba(200,255,230,.35) 0 12%, transparent 13% ) 0 0/200px 200px,
  radial-gradient( circle at 30% 90%, rgba(210,225,255,.35) 0 12%, transparent 13% ) 0 0/220px 220px;}
.muted{color:#666}.small{font-size:13px}
header.hero{padding:22px 16px;border-bottom:1px solid var(--border);background:linear-gradient(180deg,#fff,#fff8e2);position:relative}
.hero-center{text-align:center}
.hero-center .welcome{margin:6px 0 0;font-size:28px;letter-spacing:-.01em}
.hero-center .lead{max-width:960px;margin:8px auto 0;color:#333}
.logo-wrap{display:flex;justify-content:center;align-items:center;gap:10px}
.logo{width:120px;height:48px;border:none;display:block}
.logo-fallback{font-weight:900;letter-spacing:2px;display:none}
.grid{display:grid;grid-template-columns:1.2fr .8fr;gap:22px;max-width:1100px;margin:0 auto;padding:16px}
.panel{background:var(--panel);border:1px solid var(--border);border-radius:16px;padding:18px 20px;box-shadow:0 1px 3px rgba(0,0,0,.04);position:relative}
.panel h2{margin:4px 0 10px}.panel h3{margin:18px 0 10px;color:#a86a00}
.panel-lite{background:#fffef8;border:1px dashed var(--border);border-radius:12px;padding:10px;margin-top:10px}
.row{display:flex;gap:14px;margin-bottom:12px}.row.two>*{flex:1}
.field label{display:block;font-size:13px;margin-bottom:6px;color:#555}
.field input,.field select{width:100%;padding:12px 10px;border:1px solid var(--border);border-radius:12px;background:#fbfaf8}
.group{border:1px solid var(--border);border-radius:12px;padding:10px;margin-bottom:10px;background:#fff}
.group.two-cols{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.check{display:flex;align-items:center;gap:8px;padding:8px 6px;border-bottom:1px dashed var(--border)}
.check.inline{display:inline-flex;margin-right:12px}
.check:last-child{border-bottom:none}
.bundle{background:#fff7e0;border-radius:10px;margin-top:6px}
.price{margin-left:auto;color:#222;font-weight:700}
.callout{background:#eefcf5;border:1px solid #d6f4e7;border-radius:12px;padding:10px;margin:8px 0;color:#0f5e46}
.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.actions .solid{background:var(--accent);border:1px solid #eecb4d;border-radius:12px;padding:12px 16px;font-weight:800;position:relative;padding-right:34px;cursor:pointer}
.actions .solid:hover{background:var(--accent-strong)}
.actions .solid.success{background:var(--success);border-color:#1b8b67;color:#fff}
.btn-spinner{position:absolute;right:10px;top:50%;width:16px;height:16px;margin-top:-8px;border-radius:50%;border:2px solid rgba(0,0,0,.2);border-top-color:rgba(0,0,0,.6);animation:spin 1s linear infinite;display:none}
.actions .solid.loading .btn-spinner{display:block}
@keyframes spin{to{transform:rotate(360deg)}}
.summary .totals{margin-top:10px;border-top:1px solid var(--border);padding-top:10px}
.summary .totals div{display:flex;justify-content:space-between;align-items:center;margin:8px 0}
.summary .totals .grand strong{font-size:26px}
.lines{font-size:14px;color:#333}
.disc-list{margin:8px 0;padding-left:18px}
.debug{max-width:1100px;margin:10px auto;padding:10px 12px;font-size:12px;color:var(--info);white-space:pre-wrap}
.alert{margin-top:12px;padding:10px 12px;border-radius:12px;border:1px solid var(--error);background:var(--error-bg);color:#c62828}
.alert.hidden{display:none}
.success{display:flex;align-items:center;gap:10px;background:#e9fbf4;border:1px solid #c5f0e0;border-radius:12px;padding:10px 12px;margin-top:12px}
.success .tick{width:26px;height:26px;border-radius:50%;background:#21a67a;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:900}
.success.hidden{display:none}
.special-grid .card{display:block;border:1px solid var(--border);border-radius:12px;padding:10px;background:#fff}
.special-grid .img{height:160px;width:100%;object-fit:cover;border-radius:10px;margin-bottom:8px}
.special-grid .title{font-weight:700}
.special-grid .desc{color:#555;margin-bottom:6px}
.row.between{display:flex;align-items:center;justify-content:space-between}
.program-link.inline{display:inline-block;margin:4px 0 8px;background:#111;color:#fff;text-decoration:none;padding:8px 10px;border-radius:10px;border:1px solid #111}
.req{color:#b40000;font-weight:700;margin-left:6px}.opt{color:#666;margin-left:6px}
/* Sticky summary */
.sticky{position:sticky; top:12px; align-self:start}
/* Chips */
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{padding:8px 12px;border-radius:999px;border:1px solid var(--border);background:#fff;cursor:pointer;font-size:14px}
.chip.active{background:#111;color:#fff;border-color:#111}
/* Country combo */
.combo{position:relative}
.combo-input{width:100%;padding:12px 10px;border:1px solid var(--border);border-radius:12px;background:#fbfaf8}
.combo-dropdown{position:absolute;top:100%;left:0;right:0;background:#fff;border:1px solid var(--border);border-top:none;border-radius:0 0 12px 12px;max-height:220px;overflow:auto;display:none;z-index:50}
.combo-item{padding:10px 12px;border-bottom:1px dashed #f0eee9;cursor:pointer}
.combo-item:last-child{border-bottom:none}
.combo-item:hover{background:#f9f7f2}
/* Fireworks */
.fireworks{position:fixed;inset:0;pointer-events:none}
.fireworks .spark{position:absolute;width:6px;height:6px;border-radius:50%;animation:boom 900ms ease-out forwards}
@keyframes boom{from{transform:translate(0,0) scale(1);opacity:1}to{transform:translate(var(--dx),var(--dy)) scale(0);opacity:0}}


/* Coupon UI */
.coupon-box{margin:10px 0 14px 0;background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.1);padding:12px;border-radius:12px}
.coupon-label{display:block;font-weight:700;margin-bottom:6px}
.coupon-row{display:flex;gap:8px}
.coupon-input{flex:1;min-height:40px;border-radius:10px;border:1px solid rgba(255,255,255,0.2);background:rgba(0,0,0,0.2);color:inherit;padding:8px 10px}
.coupon-msg{margin-top:6px;font-weight:700}
.coupon-note{margin-top:4px;opacity:0.9}
.btn.small{padding:8px 12px;border-radius:10px;font-weight:800}

/* Mobile adjustments to ensure visibility */
@media(max-width:900px){
  .coupon-row{flex-direction:row}
  .coupon-input{font-size:16px}
}
@media(max-width:700px){
  .coupon-box{margin-bottom:18px}
}


/* Coupon within Summary */
.coupon-box.in-summary{margin:12px 0 8px;background:var(--panel-bg, rgba(0,0,0,0.03));border:1px solid rgba(0,0,0,0.08);padding:10px;border-radius:12px}
.coupon-head{font-weight:800;margin-bottom:6px}
.coupon-row{display:flex;gap:8px}
.coupon-input{flex:1;min-height:40px;border-radius:10px;border:1px solid rgba(0,0,0,0.2);padding:8px 10px}
.coupon-msg{margin-top:6px;font-weight:700}
.btn.small{padding:8px 12px;border-radius:10px;font-weight:800}
@media(max-width:900px){ .coupon-input{font-size:16px} }


/* --- Mobile-first improvements (summary goes to bottom) --- */
@media (max-width: 900px){
  .grid, .page, .container, .layout { display:block !important; } /* collapse to single column */
  .summary{ order: 2; margin-top: 14px; } /* visual spacing when moved */
  .panel, .card{ width:100%; box-sizing:border-box; }
  .row.two{ flex-direction:column !important; gap:12px; }
  .actions .solid, .actions .btn{ width:100%; }
  .sticky{ position:static !important; top:auto !important; }
}
