/*
=========================================================
QUOTE CONFIRMATION OVERLAY STYLESHEET - Joshua Dalton Media
=========================================================

Purpose
-------
Overlay shown after the quote builder form is submitted via
AJAX. Stays on the same page, presents next-steps and a
summary of the submitted quote.

What belongs in this file
-------------------------
- Overlay shell and backdrop
- Panel animation
- Header and icon
- Step indicators
- Summary line items and totals
- Note callout
- Action buttons
- Responsive rules
- Reduced motion

Asset path usage
----------------
This stylesheet is intended to be referenced from pages with:

<link rel="stylesheet" href="/assets/css/quote-confirm.css">

Relationship to page files
--------------------------
Page files should:
1. Load this stylesheet after global.css and quote.css
2. Use this stylesheet only on the /wedding-quote/ page
3. Keep shared quote system styling in quote.css

Maintenance rule
----------------
If reusable beyond quote confirmation, move to a shared
overlay stylesheet.
*/

/* ================= OVERLAY SHELL ================= */
.qc-overlay{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center}
.qc-overlay[hidden]{display:none}
.qc-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.65);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.qc-panel{position:relative;z-index:1;width:calc(100% - 24px);max-width:560px;max-height:calc(100dvh - 48px);border-radius:20px;overflow:hidden;background:linear-gradient(180deg, rgba(16,16,16,.98), rgba(16,16,16,.94));border:1px solid rgba(255,255,255,.08);box-shadow:0 24px 80px rgba(0,0,0,.5);opacity:0;transform:translateY(16px) scale(.98);transition:opacity .35s ease, transform .35s ease}
.qc-overlay.is-open .qc-panel{opacity:1;transform:translateY(0) scale(1)}
.qc-scroll{overflow-y:auto;overscroll-behavior:contain;max-height:calc(100dvh - 48px);padding:24px 20px}
body.qc-open{overflow:hidden}

/* ================= HEADER ================= */
.qc-header{display:grid;gap:8px;text-align:center;justify-items:center}
.qc-icon{animation:qcPopIn .4s cubic-bezier(.34,1.56,.64,1) both}
@keyframes qcPopIn{0%{opacity:0;transform:scale(.5)} 100%{opacity:1;transform:scale(1)}}
.qc-header h2{margin:0;font-size:clamp(1.05rem, 4.5vw, 1.3rem);line-height:1.15}
.qc-lead{margin:0;font-size:.86rem;line-height:1.5;color:var(--muted)}

/* ================= STEPS ================= */
.qc-steps{display:grid;gap:10px;margin-top:20px}
.qc-step{display:grid;grid-template-columns:auto 1fr;gap:12px;padding:12px 14px;border-radius:12px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.06)}
.qc-step-num{width:28px;height:28px;border-radius:999px;background:rgba(255,77,77,.12);color:var(--accent);font-weight:800;font-size:.76rem;line-height:1;display:grid;place-items:center;flex-shrink:0}
.qc-step-body{display:grid;gap:2px}
.qc-step-body strong{font-size:.84rem;line-height:1.25;color:var(--ink)}
.qc-step-body span{font-size:.76rem;line-height:1.45;color:var(--muted)}

/* ================= SUMMARY ================= */
.qc-summary{margin-top:16px;padding:14px;border-radius:12px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08)}
.qc-summary-line{display:flex;align-items:start;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid rgba(255,255,255,.06)}
.qc-summary-line:first-child{padding-top:0}
.qc-summary-line:last-child{padding-bottom:0;border-bottom:0}
.qc-summary-label{font-size:.68rem;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:700}
.qc-summary-value{font-size:.82rem;line-height:1.4;color:var(--ink);font-weight:700;text-align:right}
.qc-summary-total{display:flex;align-items:end;justify-content:space-between;gap:12px;padding-top:10px;margin-top:4px;border-top:1px solid rgba(255,255,255,.08)}
.qc-summary-total strong{font-size:.78rem;color:var(--ink)}
.qc-summary-total span{font-size:1.1rem;font-weight:800;color:var(--accent)}

/* ================= NOTE ================= */
.qc-note{margin-top:16px;padding:12px 14px;border-radius:12px;background:linear-gradient(180deg, rgba(255,77,77,.08), rgba(255,77,77,.03));border:1px solid rgba(255,77,77,.14);font-size:.78rem;line-height:1.5;color:var(--muted)}
.qc-note strong{color:var(--ink)}

/* ================= ACTIONS ================= */
.qc-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:20px}

/* ================= RESPONSIVE BREAKPOINTS ================= */

@media(min-width:360px){
	/* ================= OVERLAY SHELL ================= */
	.qc-scroll{padding:28px 24px}
}

@media(min-width:700px){
	/* ================= OVERLAY SHELL ================= */
	.qc-panel{max-width:600px}
	.qc-scroll{padding:32px 28px}
	/* ================= HEADER ================= */
	.qc-header h2{font-size:1.3rem}
	/* ================= STEPS ================= */
	.qc-step{padding:14px 16px}
}

@media(prefers-reduced-motion:reduce){
	/* ================= OVERLAY SHELL ================= */
	.qc-panel{transition:none}
	/* ================= HEADER ================= */
	.qc-icon{animation:none}
}
