/* ==========================================================
   GildedPlanet — Leaf Coverage Calculator v2
   Dramatic visual redesign: dark hero intro, a clean guided
   decision sequence, and a bold, confident results view.
   Namespaced under .gp-calc2 to avoid clashing with sitewide
   Bootstrap 2 / main.css rules on this page.
   ========================================================== */

.gp-calc2 { --gold-deep:#7a5a1f; --gold-mid:#8a6a2f; --gold-bright:#cdbb8c; --cream:#fffdf8; --border:#d7cfbf; --ink:#2a2620; --ink-soft:#6b6355; }
.gp-calc2 * { box-sizing: border-box; }

/* ---------- Hero intro ---------- */
.gp-calc2-hero {
  background: linear-gradient(135deg, #1c1712 0%, #2c2416 55%, #3a2f18 100%);
  color: #f3ecda;
  padding: 56px 32px 64px;
  margin: 0 0 -34px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.gp-calc2-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 18% 20%, rgba(205,187,140,0.16), transparent 45%),
              radial-gradient(circle at 82% 75%, rgba(205,187,140,0.10), transparent 40%);
  pointer-events: none;
}
.gp-calc2-hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.gp-calc2-hero-eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold-bright); font-weight: 700; margin-bottom: 14px;
}
.gp-calc2-hero h1 {
  font-size: 44px; line-height: 1.12; margin: 0 0 16px 0; font-weight: 800;
  color: #fff; letter-spacing: -0.5px;
}
.gp-calc2-hero h1 span { color: var(--gold-bright); }
.gp-calc2-hero p {
  font-size: 17px; line-height: 1.6; color: #d9cfb8; margin: 0 auto; max-width: 560px;
}

/* ---------- Decision sequence card ---------- */
.gp-calc2-card {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 48px -24px rgba(30,20,5,0.35), 0 2px 8px rgba(30,20,5,0.06);
  padding: 40px 40px 34px;
  max-width: 900px;
  margin: 0 auto 40px;
}
.gp-calc2-card-kicker {
  font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; font-weight: 800;
  color: var(--gold-mid); margin-bottom: 6px;
}
.gp-calc2-card h2 { margin: 0 0 26px 0; font-size: 26px; color: var(--ink); font-weight: 800; }

.gp-calc2-field { margin-bottom: 22px; }
.gp-calc2-field label {
  display: block; font-size: 13px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1.2px; color: var(--gold-deep); margin-bottom: 8px;
}
.gp-calc2-field .gp-calc2-help { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
.gp-calc2-waste-custom { margin-top: 10px; }

.gp-calc2-row { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 4px; }
.gp-calc2-row > .gp-calc2-field { flex: 1 1 220px; margin-bottom: 22px; }

.gp-calc2-area-row { display: flex; gap: 10px; }
.gp-calc2-area-row input { flex: 1 1 auto; }
.gp-calc2-area-row select { flex: 0 0 110px; }

.gp-calc2 input[type="number"],
.gp-calc2 select {
  width: 100%; height: auto; font-size: 17px; line-height: 1.4; padding: 13px 14px; border: 1.5px solid var(--border);
  border-radius: 8px; background: #fff; color: var(--ink); font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
}
.gp-calc2 select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%237a5a1f' stroke-width='2' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.gp-calc2 input[type="number"]:focus,
.gp-calc2 select:focus {
  outline: none; border-color: var(--gold-mid); box-shadow: 0 0 0 4px rgba(138,106,47,0.14);
}

.gp-calc2-calc-btn {
  display: block; width: 100%; margin-top: 8px;
  background: linear-gradient(135deg, var(--gold-deep), var(--gold-mid));
  color: #fff; border: none; border-radius: 9px; padding: 18px 20px;
  font-size: 17px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  cursor: pointer; box-shadow: 0 12px 24px -10px rgba(122,90,31,0.55);
  transition: transform .12s ease, box-shadow .12s ease;
}
.gp-calc2-calc-btn:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -10px rgba(122,90,31,0.6); }
.gp-calc2-calc-btn:active { transform: translateY(0); }

.gp-calc2-error {
  display: none; margin-top: 16px; padding: 12px 16px; border-radius: 8px;
  background: #fbeceb; border: 1px solid #e3b3af; color: #8b2a24; font-weight: 700; font-size: 14px;
}

/* ---------- Results ---------- */
.gp-calc2-results { display: none; max-width: 1040px; margin: 0 auto; }

.gp-calc2-stat-band {
  background: #211a10; color: #fff; border-radius: 14px; padding: 30px 36px;
  display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: center;
  margin-bottom: 26px;
}
.gp-calc2-stat-label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-bright); font-weight: 800; margin-bottom: 6px; }
.gp-calc2-stat-value { font-size: 28px; font-weight: 800; line-height: 1.15; }
.gp-calc2-stat-value small { display: block; font-size: 14px; font-weight: 600; color: #d9cfb8; margin-top: 3px; }
.gp-calc2-stat-item { flex: 1 1 190px; }

.gp-calc2-hero-card {
  background: linear-gradient(180deg, #fffdf8 0%, #fbf3e2 100%);
  border: 2px solid var(--gold-mid);
  border-radius: 16px; padding: 32px 34px; margin-bottom: 22px;
  box-shadow: 0 18px 36px -22px rgba(122,90,31,0.45);
}
.gp-calc2-hero-card-label {
  display: inline-block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  font-weight: 800; color: #fff; background: var(--gold-deep); padding: 5px 12px; border-radius: 999px;
  margin-bottom: 14px;
}
.gp-calc2-hero-card h3 { margin: 0 0 4px 0; font-size: 26px; color: var(--ink); font-weight: 800; }
.gp-calc2-hero-card-qty { font-size: 20px; font-weight: 800; color: var(--gold-deep); margin: 4px 0 6px; }
.gp-calc2-hero-card-reason { font-size: 14px; color: var(--ink-soft); margin: 0 0 18px 0; max-width: 560px; line-height: 1.6; }
.gp-calc2-hero-card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.gp-calc2-hero-card-price { font-size: 15px; color: var(--ink-soft); }

.gp-calc2-btn {
  display: inline-block; border: none; border-radius: 8px; padding: 14px 26px;
  font-size: 15px; font-weight: 800; cursor: pointer; text-align: center;
  transition: transform .12s ease, box-shadow .12s ease; text-decoration: none;
}
.gp-calc2-btn--primary {
  background: linear-gradient(135deg, var(--gold-deep), var(--gold-mid)); color: #fff;
  box-shadow: 0 10px 20px -10px rgba(122,90,31,0.55);
}
.gp-calc2-btn--primary:hover { transform: translateY(-1px); }
.gp-calc2-btn--primary:disabled { opacity: .65; cursor: default; transform: none; }
.gp-calc2-btn--ghost {
  background: #fff; color: var(--gold-deep); border: 1.5px solid var(--gold-mid);
}
.gp-calc2-btn--ghost:hover { background: #fbf3e2; }
.gp-calc2-btn--full { display: block; width: 100%; text-align: center; }

.gp-calc2-alt-card {
  display: none;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 26px 30px; margin-bottom: 22px;
}
.gp-calc2-alt-card-label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 800; color: var(--gold-mid); margin-bottom: 10px; }
.gp-calc2-alt-card h4 { margin: 0 0 4px 0; font-size: 19px; color: var(--ink); font-weight: 800; }
.gp-calc2-alt-card-qty { font-size: 15px; font-weight: 700; color: var(--gold-deep); margin: 2px 0 8px; }
.gp-calc2-alt-card p.gp-calc2-alt-note { font-size: 14px; color: var(--ink-soft); margin: 0 0 16px 0; }

.gp-calc2-other-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 26px 30px; margin-bottom: 22px;
}
.gp-calc2-other-card h4 { margin: 0 0 16px 0; font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-mid); font-weight: 800; }
.gp-calc2-other-list { list-style: none; margin: 0 0 18px 0; padding: 0; }
.gp-calc2-other-list li {
  display: flex; justify-content: space-between; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid #f0ead9; font-size: 15px; color: var(--ink);
}
.gp-calc2-other-list li:last-child { border-bottom: none; }
.gp-calc2-other-list li span:first-child { font-weight: 700; }
.gp-calc2-other-list li span:last-child { color: var(--ink-soft); text-align: right; }

.gp-calc2-cart-status { margin-top: 14px; font-size: 14px; font-weight: 700; }
.gp-calc2-cart-status--ok { color: #1f6b34; }
.gp-calc2-cart-status--warn { color: #8b5a1f; }

.gp-calc2-actions {
  display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; align-items: center;
  padding: 22px 0 8px; margin-bottom: 30px;
}
.gp-calc2-actions button {
  background: none; border: none; color: var(--gold-deep); font-weight: 700; font-size: 14px;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 6px 2px;
}
.gp-calc2-actions button:hover { color: var(--gold-mid); }
.gp-calc2-actions-sep { color: var(--border); font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .gp-calc2-hero { padding: 44px 20px 56px; }
  .gp-calc2-hero h1 { font-size: 32px; }
  .gp-calc2-card { padding: 28px 22px 26px; }
  .gp-calc2-hero-card { padding: 26px 22px; }
  .gp-calc2-other-card, .gp-calc2-alt-card { padding: 22px; }
}

@media (max-width: 560px) {
  .gp-calc2-row { flex-direction: column; gap: 0; }
  .gp-calc2-row > .gp-calc2-field { flex: none; width: 100%; }
  .gp-calc2-area-row { flex-direction: row; }
  .gp-calc2-stat-band { flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px 22px; }
  .gp-calc2-stat-item { flex: none; width: 100%; }
  .gp-calc2-hero-card-foot { flex-direction: column; align-items: stretch; }
  .gp-calc2-hero-card-foot .gp-calc2-btn { width: 100%; }
}

/* ---------- Print ---------- */
@media print {
  .gp-calc2-hero, .gp-calc2-card, .gp-calc2-actions, .gp-calc2-btn { display: none !important; }
  .gp-calc2-results { display: block !important; }
}
