/* =========================================================================
   REFILL / CHECKOUT PAGE STYLES
   Built entirely on the existing tokens in style.css (--bg, --surface,
   --accent, carrier gradients, etc.) so it drops straight into the site.
   ========================================================================= */

.refill-main{flex:1;padding:clamp(40px,6vw,64px) 24px 0;}
.refill-container{max-width:1080px;margin:0 auto;}

/* ---------- HERO ---------- */
.refill-hero{border-radius:24px;padding:clamp(32px,6vw,52px) clamp(24px,5vw,48px);position:relative;overflow:hidden;box-shadow:0 20px 50px rgba(0,0,0,0.35);margin-bottom:28px;}
.refill-hero::after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 85% 0%,rgba(255,255,255,0.16),transparent 55%);pointer-events:none;}
.refill-hero-inner{position:relative;max-width:560px;}
.refill-hero-eyebrow{display:inline-block;font-size:12px;font-weight:700;letter-spacing:0.1em;text-transform:uppercase;color:rgba(255,255,255,0.85);background:rgba(0,0,0,0.18);padding:5px 12px;border-radius:100px;margin-bottom:14px;}
.refill-hero h1{font-size:clamp(26px,4vw,36px);font-weight:800;letter-spacing:-0.6px;color:#fff;margin-bottom:10px;}
.refill-hero p{font-size:15px;color:rgba(255,255,255,0.85);line-height:1.6;max-width:460px;}

/* ---------- ALERT ---------- */
.refill-alert-error{background:rgba(255,77,77,0.1);border:1px solid rgba(255,77,77,0.3);color:var(--error-red);border-radius:12px;padding:14px 18px;font-size:14px;margin-bottom:24px;}

/* ---------- FORM + SUMMARY GRID ---------- */
.refill-grid{display:grid;grid-template-columns:1fr;gap:24px;margin-bottom:56px;}
@media(min-width:900px){.refill-grid{grid-template-columns:1.5fr 1fr;align-items:start;}}

.refill-form-card{background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:clamp(24px,4vw,36px);}

.refill-step-head{display:flex;align-items:center;gap:12px;margin-bottom:20px;}
.refill-step-num{width:28px;height:28px;flex-shrink:0;border-radius:50%;background:linear-gradient(135deg,var(--accent-cyan),var(--accent-blue));color:#0e1424;font-weight:800;font-size:13px;display:flex;align-items:center;justify-content:center;}
.refill-step-head h2{font-size:17px;font-weight:700;color:#fff;letter-spacing:-0.2px;}

.refill-field-row{display:grid;grid-template-columns:1fr;gap:16px;}
@media(min-width:520px){.refill-field-row{grid-template-columns:1fr 1fr;}}
.refill-field label{display:block;font-size:13px;font-weight:600;color:var(--text-muted);margin-bottom:8px;}
.refill-field input{width:100%;padding:13px 16px;background:rgba(255,255,255,0.03);border:1px solid var(--border);border-radius:10px;color:#fff;font-size:15px;font-family:inherit;outline:none;transition:border-color 0.2s ease,box-shadow 0.2s ease;}
.refill-field input:focus{border-color:rgba(56,189,248,0.5);}
.refill-field input.is-valid{border-color:var(--success-green);box-shadow:0 0 0 1px rgba(0,224,200,0.2);}
.refill-field input.is-invalid{border-color:var(--error-red);box-shadow:0 0 0 1px rgba(255,77,77,0.2);}

.refill-field-msg{min-height:18px;font-size:13px;margin-top:10px;font-weight:600;}
.refill-field-msg.is-ok{color:var(--success-green);}
.refill-field-msg.is-error{color:var(--error-red);}

.refill-divider{height:1px;background:var(--border-soft);margin:28px 0;}

/* ---------- AMOUNT TABS ---------- */
.refill-amount-tabs{display:inline-flex;background:rgba(255,255,255,0.03);border:1px solid var(--border);border-radius:100px;padding:4px;margin-bottom:20px;}
.refill-tab{border:none;background:transparent;color:var(--text-muted);font-size:13.5px;font-weight:600;padding:9px 18px;border-radius:100px;cursor:pointer;transition:all 0.2s ease;}
.refill-tab.is-active{background:linear-gradient(135deg,var(--accent-cyan),var(--accent-blue));color:#0e1424;}

.refill-amount-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:12px;}
.refill-amount-chip{position:relative;background:rgba(255,255,255,0.03);border:1.5px solid var(--border);border-radius:14px;color:#fff;font-size:18px;font-weight:700;padding:18px 10px 14px;cursor:pointer;transition:all 0.18s ease;}
.refill-amount-chip:hover{border-color:rgba(56,189,248,0.35);transform:translateY(-2px);}
.refill-amount-chip.is-selected{border-color:var(--accent);background:rgba(56,189,248,0.1);box-shadow:0 0 0 1px var(--accent);}
.chip-badge{position:absolute;top:-10px;left:50%;transform:translateX(-50%);background:var(--accent-cyan);color:#0e1424;font-size:9.5px;font-weight:800;letter-spacing:0.04em;text-transform:uppercase;padding:3px 8px;border-radius:100px;white-space:nowrap;}

.refill-custom-input{display:flex;align-items:center;background:rgba(255,255,255,0.03);border:1px solid var(--border);border-radius:10px;padding:0 16px;max-width:220px;}
.refill-custom-input span{color:var(--text-dim);font-weight:700;font-size:16px;}
.refill-custom-input input{border:none;background:transparent;padding:13px 8px;color:#fff;font-size:16px;font-weight:600;width:100%;outline:none;}
.refill-custom-input input::-webkit-outer-spin-button,.refill-custom-input input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}

/* ---------- ACTIONS ---------- */
.refill-actions{display:flex;gap:14px;flex-wrap:wrap;}
.refill-btn-back{flex:1;min-width:110px;text-align:center;padding:14px;border-radius:10px;background:rgba(255,255,255,0.04);border:1px solid var(--border);color:var(--text-main);font-weight:700;font-size:15px;text-decoration:none;transition:background 0.2s ease;}
.refill-btn-back:hover{background:rgba(255,255,255,0.08);opacity:1;}
.refill-btn-checkout{flex:2;min-width:180px;padding:14px;border:none;border-radius:10px;background:linear-gradient(135deg,var(--accent-cyan),var(--accent-blue));color:#0e1424;font-weight:800;font-size:15px;cursor:pointer;transition:opacity 0.2s ease,transform 0.15s ease;}
.refill-btn-checkout:hover:not(:disabled){opacity:0.9;transform:translateY(-1px);}
.refill-btn-checkout:disabled{background:rgba(255,255,255,0.08);color:var(--text-dim);cursor:not-allowed;}

/* ---------- LIVE SUMMARY ---------- */
.refill-summary-card{background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:28px;position:sticky;top:96px;}
.refill-summary-card h3{font-size:16px;font-weight:700;color:#fff;margin-bottom:18px;}
.refill-summary-carrier{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:600;color:var(--text-main);padding-bottom:18px;margin-bottom:18px;border-bottom:1px solid var(--border-soft);}
.refill-summary-dot{width:12px;height:12px;border-radius:4px;flex-shrink:0;}
.refill-summary-row{display:flex;justify-content:space-between;font-size:14.5px;color:var(--text-muted);margin-bottom:14px;}
.refill-summary-row span:last-child{color:var(--text-main);font-weight:600;}
.refill-summary-total{border-top:1px solid var(--border-soft);padding-top:16px;margin-top:6px;font-size:16px;}
.refill-summary-total span{color:#fff !important;font-weight:800 !important;font-size:19px;}
.refill-summary-note{font-size:12.5px;color:var(--text-dim);line-height:1.6;margin-top:18px;}

/* ---------- TRUST STRIP ---------- */
.refill-trust-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:64px;}
.refill-trust-item{display:flex;align-items:flex-start;gap:12px;background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:18px 20px;}
.refill-trust-item svg{width:20px;height:20px;color:var(--accent);flex-shrink:0;margin-top:2px;}
.refill-trust-item strong{display:block;font-size:14px;color:#fff;margin-bottom:3px;}
.refill-trust-item span{font-size:12.5px;color:var(--text-dim);line-height:1.5;}

/* ---------- MOBILE STICKY CHECKOUT BAR ---------- */
.refill-sticky-bar{position:fixed;left:0;right:0;bottom:0;z-index:60;display:none;align-items:center;justify-content:space-between;gap:16px;background:rgba(14,20,36,0.95);backdrop-filter:blur(16px);border-top:1px solid var(--border);padding:14px 20px calc(14px + env(safe-area-inset-bottom));box-shadow:0 -10px 30px rgba(0,0,0,0.4);}
.refill-sticky-bar.is-visible{display:flex;}
.refill-sticky-total{display:flex;flex-direction:column;line-height:1.2;}
.sticky-label{font-size:11px;color:var(--text-dim);text-transform:uppercase;letter-spacing:0.06em;}
.sticky-value{font-size:19px;font-weight:800;color:#fff;}
.refill-sticky-bar .refill-btn-checkout{flex:none;padding:12px 26px;}

@media(min-width:900px){
  .refill-sticky-bar{display:none !important;}
}
@media(max-width:899px){
  .refill-main{padding-bottom:96px;}
}

/* ---------- SMALL SCREENS ---------- */
@media(max-width:480px){
  .refill-amount-grid{grid-template-columns:repeat(2,1fr);}
  .refill-actions{flex-direction:column;}
  .refill-actions .refill-btn-back,.refill-actions .refill-btn-checkout{flex:none;width:100%;}
  .refill-actions .refill-btn-checkout{order:-1;}
}