/* ============================================================
   Kids Party Paint — Quote Tool Styles
   Color palette extracted directly from logo:
     Black:  #0F0E0E
     Orange: #D86000
     Red:    #C01818
     Cream:  #F2EDE2
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --brand-black: #0F0E0E;
  --brand-black-soft: #1F1B1A;
  --brand-orange: #D86000;
  --brand-orange-bright: #F07818;
  --brand-red: #C01818;
  --brand-red-deep: #A01010;
  --brand-cream: #F2EDE2;
  --brand-cream-warm: #EBE3D2;

  /* Surfaces */
  --bg: #FAF6EE;
  --bg-card: #FFFFFF;
  --bg-input: #FAF6EE;
  --bg-soft: #FCE5D2;
  --bg-warn: #FFF0DC;
  --bg-ok: #E5F1DA;

  /* Borders */
  --border: #EBE3D2;
  --border-soft: #E0D4BC;

  /* Text */
  --text: #1F1B1A;
  --text-muted: #5C5048;
  --text-subtle: #8C7A6E;
  --text-placeholder: #BFAE9C;

  /* Status colors */
  --primary: var(--brand-red);
  --primary-hover: var(--brand-red-deep);
  --warn: #A0521A;
  --ok: #4A7028;

  /* Layout */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* Shadows */
  --shadow-card: 0 1px 3px rgba(31, 27, 26, 0.06);
  --shadow-quote: 0 24px 60px -20px rgba(192, 24, 24, 0.4);
  --shadow-success: 0 20px 60px -15px rgba(192, 24, 24, 0.25);
  --shadow-button: 0 6px 20px rgba(192, 24, 24, 0.4);

  /* Type */
  --font-display: 'Caveat Brush', 'Fredoka', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 400; letter-spacing: 0.01em; }
p { margin: 0; }
button { font-family: inherit; border: none; cursor: pointer; }
input, textarea { font-family: inherit; font-size: 1rem; }
.hidden { display: none !important; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header (DARK) ---------- */
.site-header {
  background: var(--brand-black);
  color: var(--brand-cream);
  position: relative;
  overflow: hidden;
}
.site-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(216, 96, 0, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 15% 85%, rgba(192, 24, 24, 0.15) 0%, transparent 50%);
  pointer-events: none;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
  position: relative;
  z-index: 1;
}
.logo-img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--brand-cream);
  line-height: 1;
  letter-spacing: 0.02em;
}
.brand-handle {
  font-size: 0.7rem;
  color: rgba(242, 237, 226, 0.6);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 6px;
  font-weight: 500;
}

/* ---------- Hero (DARK, attached to header) ---------- */
.hero {
  background: var(--brand-black);
  color: var(--brand-cream);
  text-align: center;
  padding: 16px 24px 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(216, 96, 0, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse at 90% 30%, rgba(192, 24, 24, 0.15) 0%, transparent 50%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(216, 96, 0, 0.18);
  color: var(--brand-orange-bright);
  border: 1px solid rgba(216, 96, 0, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 0.95;
  margin-bottom: 16px;
  color: var(--brand-cream);
}
.hero h1 .accent {
  color: var(--brand-orange);
}
.hero p {
  font-size: 1.1rem;
  color: rgba(242, 237, 226, 0.75);
  max-width: 480px;
  margin: 0 auto;
}

/* Painterly bottom border that connects dark header to light body */
.hero-divider {
  height: 32px;
  background: var(--brand-black);
  position: relative;
}
.hero-divider::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 32px;
  background: var(--bg);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

/* ---------- Main ---------- */
.main {
  padding-top: 32px;
  padding-bottom: 64px;
}

/* ---------- Grid layout ---------- */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 900px) {
  .grid {
    grid-template-columns: 3fr 2fr;
    gap: 32px;
  }
}

/* ---------- Form column ---------- */
.form-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.step {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--brand-orange);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-body);
}
.card-head h3 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--text);
  line-height: 1;
  margin-top: 4px;
}

/* ---------- Fields ---------- */
.fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: block;
  min-width: 0;
}
.field-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box; 
  -webkit-appearance: none;
  appearance: none; 
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-placeholder);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-orange);
  background: var(--bg-card);
}
.field textarea {
  resize: none;
  font-family: inherit;
}

/* ---------- Notices ---------- */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.45;
}
.notice-warn {
  background: var(--bg-warn);
  color: var(--warn);
}
.notice-ok {
  background: var(--bg-ok);
  color: var(--ok);
}
.notice-info {
  background: var(--bg-soft);
  color: var(--text-muted);
}
.notice-neutral {
  background: var(--bg);
  color: var(--text-muted);
  font-style: italic;
}
.notice svg {
  margin-top: 2px;
  flex-shrink: 0;
}

/* ---------- Quote sidebar (DARK) ---------- */
.quote-col {
  position: sticky;
  top: 24px;
  align-self: start;
}
.quote-card {
  background: var(--brand-black);
  color: var(--brand-cream);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-quote);
  position: relative;
  overflow: hidden;
}
.quote-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 96, 0, 0.45) 0%, transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}
.quote-card::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 24, 24, 0.35) 0%, transparent 65%);
  filter: blur(30px);
  pointer-events: none;
}
.quote-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-orange-bright);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  position: relative;
  letter-spacing: 0.02em;
}
.quote-empty {
  padding: 48px 0;
  text-align: center;
  color: rgba(242, 237, 226, 0.5);
  font-size: 0.95rem;
  position: relative;
}
.quote-body {
  position: relative;
}
.quote-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.quote-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.9rem;
}
.quote-line-label {
  color: rgba(242, 237, 226, 0.75);
}
.quote-line-value {
  font-weight: 600;
  white-space: nowrap;
  color: var(--brand-cream);
}
.quote-line-note {
  font-size: 0.75rem;
  color: rgba(242, 237, 226, 0.55);
  font-style: italic;
  padding-top: 4px;
}
.quote-total-row {
  border-top: 1px solid rgba(242, 237, 226, 0.15);
  padding-top: 16px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.quote-total-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242, 237, 226, 0.65);
  font-weight: 600;
}
.quote-total-value {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--brand-orange-bright);
}

/* ---------- Submit button ---------- */
.submit-btn {
  margin-top: 24px;
  width: 100%;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.05rem;
  background: var(--brand-red);
  color: var(--brand-cream);
  box-shadow: var(--shadow-button);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s ease, transform 0.1s ease;
}
.submit-btn:hover:not(:disabled) {
  background: var(--brand-red-deep);
}
.submit-btn:active:not(:disabled) {
  transform: scale(0.98);
}
.submit-btn:disabled {
  background: rgba(242, 237, 226, 0.08);
  color: rgba(242, 237, 226, 0.35);
  cursor: not-allowed;
  box-shadow: none;
}
.btn-spinner {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.submit-hint {
  margin-top: 12px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(242, 237, 226, 0.55);
}
.submit-hint:empty { display: none; }
.deposit-note {
  margin-top: 16px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(242, 237, 226, 0.5);
  line-height: 1.5;
}
.origin-note {
  margin-top: 14px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-subtle);
}

/* ---------- Success screen ---------- */
.success-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}
.success-card {
  max-width: 460px;
  width: 100%;
  text-align: center;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  box-shadow: var(--shadow-success);
}
.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-card h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin-bottom: 12px;
  line-height: 1;
}
.success-card p {
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.55;
}
.success-summary {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: left;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.success-summary .row-total {
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .quote-card { padding: 24px; }
  .quote-total-value { font-size: 2.4rem; }
  .hero { padding-bottom: 48px; }
  .hero h1 { font-size: 2.6rem; }
  .card-head h3 { font-size: 1.6rem; }
}