/* Opiekunka Loss Calculator — frontend styles */
.olc-root { font-family: 'Inter', system-ui, sans-serif; max-width: 560px; margin: 24px auto; color: #1a1a1a; }
.olc-root *, .olc-root *::before, .olc-root *::after { box-sizing: border-box; }
.olc-hidden { display: none !important; }
.olc-card { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.08); border: 1px solid #eee; }

/* HERO */
.olc-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #312e2e 100%);
  color: #fff;
  padding: 22px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.olc-hero::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(220, 38, 38, .25); filter: blur(60px);
}
.olc-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px;
  background: rgba(220, 38, 38, .25); color: #fee2e2;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 12px; position: relative; z-index: 1;
}
.olc-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px; font-weight: 800; line-height: 1.1;
  margin: 0 0 8px; position: relative; z-index: 1;
}
.olc-gold { color: #d4af37; }
.olc-sub { font-size: 13px; opacity: .9; margin: 0; line-height: 1.45; position: relative; z-index: 1; }

/* BODY */
.olc-body { padding: 18px 18px 22px; }

/* PICKER */
.olc-picker { margin-bottom: 16px; }
.olc-picker-head { display: flex; justify-content: center; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.olc-picker-label { font-size: 14px; font-weight: 600; color: #475569; }
.olc-picker-val { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: #1a1a1a; }
.olc-picker-grid { display: grid; gap: 6px; width: 85%; margin: 0 auto; }
.olc-grid-5 { grid-template-columns: repeat(5, 1fr); }
.olc-grid-4 { grid-template-columns: repeat(4, 1fr); }
.olc-opt {
  height: 42px; border-radius: 10px; border: 2px solid #e2e8f0;
  background: #fff; color: #1a1a1a; font-weight: 700; font-size: 14px;
  cursor: pointer; transition: all .15s; font-family: inherit;
  padding: 0; line-height: 1;
}
.olc-opt:hover { border-color: #d4af37; }
.olc-opt.is-active { background: #0f172a; color: #fff; border-color: #0f172a; box-shadow: 0 4px 12px rgba(15,23,42,.25); }

/* RESULT */
.olc-result {
  background: linear-gradient(135deg, rgba(220,38,38,.08) 0%, #fff 50%, rgba(212,175,55,.12) 100%);
  border: 2px solid rgba(220,38,38,.3);
  border-radius: 16px; padding: 18px 14px; margin: 18px auto;
  width: 85%; text-align: center;
  box-shadow: 0 8px 24px rgba(220,38,38,.1);
}
.olc-result-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #dc2626; font-weight: 700; margin-bottom: 4px; }
.olc-result-amount { font-family: 'Playfair Display', serif; font-size: 42px; font-weight: 900; color: #dc2626; line-height: 1; word-break: break-all; }
.olc-result-yearly { font-size: 12px; color: #64748b; margin-top: 6px; }
.olc-result-diff {
  background: rgba(255,255,255,.7); border-radius: 10px;
  padding: 8px 10px; margin-top: 12px; width: 60%; margin-left: auto; margin-right: auto;
  font-size: 12px;
}
.olc-result-diff > div { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 0; }
.olc-diff-row { border-top: 1px solid #e2e8f0; padding-top: 6px !important; margin-top: 4px; }
.olc-good { color: #059669; }

/* ANALOGIES */
.olc-analogies { margin: 18px 0; }
.olc-analogies h3 { font-family: 'Playfair Display', serif; font-size: 17px; text-align: center; margin: 0 0 10px; color: #1a1a1a; }
.olc-analogies-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 85%; margin: 0 auto; }
.olc-analogy { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px; text-align: center; }
.olc-analogy-val { font-weight: 700; font-size: 14px; color: #0f172a; margin-bottom: 2px; }
.olc-analogy-lbl { font-size: 11px; color: #64748b; line-height: 1.3; }

/* WARN */
.olc-warn {
  width: 85%; margin: 0 auto;
  background: rgba(220,38,38,.08); border: 1px solid rgba(220,38,38,.3);
  border-radius: 12px; padding: 12px; text-align: center;
  font-size: 13px; color: #1a1a1a; line-height: 1.45;
}
.olc-warn strong { color: #dc2626; }

/* CTA */
.olc-btn-gold {
  display: block; width: 85%; margin: 16px auto 4px;
  background: linear-gradient(135deg, #d4af37 0%, #f4d574 100%);
  color: #0f172a; border: none; border-radius: 12px;
  padding: 14px 20px; font-size: 15px; font-weight: 800;
  cursor: pointer; transition: all .15s; font-family: inherit;
  box-shadow: 0 8px 20px rgba(212,175,55,.35);
}
.olc-btn-gold:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(212,175,55,.45); }
.olc-btn-gold:disabled { opacity: .6; cursor: wait; transform: none; }
.olc-fineprint { text-align: center; font-size: 10px; color: #94a3b8; margin: 4px 0 0; }

/* FORM */
.olc-form { padding: 22px 22px 24px; }
.olc-form-head { text-align: center; margin-bottom: 14px; }
.olc-form-head h3 { font-family: 'Playfair Display', serif; font-size: 22px; margin: 0 0 4px; color: #1a1a1a; }
.olc-form-head p { font-size: 13px; color: #64748b; margin: 0; line-height: 1.45; }
.olc-field { margin-bottom: 12px; }
.olc-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: #1a1a1a; }
.olc-muted { color: #94a3b8; font-weight: 400; }
.olc-field input {
  width: 100%; padding: 11px 12px; border: 1px solid #cbd5e1; border-radius: 9px;
  font-size: 15px; font-family: inherit; transition: border-color .15s;
  background: #fff; color: #1a1a1a;
}
.olc-field input:focus { outline: none; border-color: #d4af37; box-shadow: 0 0 0 3px rgba(212,175,55,.2); }

/* THANKS */
.olc-thanks { padding: 40px 22px; text-align: center; }
.olc-check { width: 64px; height: 64px; border-radius: 50%; background: #059669; color: #fff; font-size: 36px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.olc-thanks h3 { font-family: 'Playfair Display', serif; font-size: 24px; margin: 0 0 6px; }
.olc-thanks p { color: #64748b; font-size: 14px; margin: 0; }

@media (max-width: 480px) {
  .olc-title { font-size: 22px; }
  .olc-result-amount { font-size: 32px; }
  .olc-picker-grid, .olc-result, .olc-analogies-grid, .olc-warn, .olc-btn-gold { width: 95%; }
  .olc-result-diff { width: 75%; }
}
