
/* ═══════════════════════════════════════════════════════════
   tile-calculator.css  —  Captivating redesign
   Matches classes used in calculate.ejs exactly
   ═══════════════════════════════════════════════════════════ */

/* ── Page hero override (scoped) ── */
.calc-page-hero {
  background: linear-gradient(135deg, #1a1814 0%, #2a2620 50%, #1a1814 100%);
  padding: 64px 24px 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.calc-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 15% 50%, rgba(201,169,110,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 85% 50%, rgba(201,169,110,0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* ── Shell layout ── */
.calc-shell {
  max-width: 1140px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) {
  .calc-shell { grid-template-columns: 1fr; padding: 32px 16px 60px; }
}

.calc-left  { display: flex; flex-direction: column; gap: 20px; }
.calc-right { position: sticky; top: 100px; }

/* ── Step cards ── */
.card {
  background: #ffffff;
  border: 1px solid #ede9e3;
  border-radius: 20px;
  padding: 28px 28px 24px;
  box-shadow: 0 4px 24px rgba(26,24,20,0.07), 0 1px 4px rgba(26,24,20,0.04);
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(26,24,20,0.10), 0 2px 6px rgba(26,24,20,0.05);
}
.card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0ece6;
}
.step-badge {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #c9a96e 0%, #b8934f 100%);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(201,169,110,0.4);
}
.card__title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #1a1814;
}

/* ── Option button grid ── */
.opt-grid        { display: grid; gap: 10px; }
.opt-grid--2     { grid-template-columns: 1fr 1fr; }
.opt-grid--row   { display: flex; gap: 10px; flex-wrap: wrap; }
.tile-grid       { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 520px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── Option buttons ── */
.opt-btn {
  padding: 12px 14px;
  border: 1.5px solid #e8e4de;
  border-radius: 12px;
  background: #faf8f5;
  color: #3a3630;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  line-height: 1.4;
  transition: all 0.18s ease;
  position: relative;
  overflow: hidden;
}
.opt-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,169,110,0.08) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.18s;
}
.opt-btn:hover { border-color: #c9a96e; color: #1a1814; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(201,169,110,0.2); }
.opt-btn:hover::before { opacity: 1; }
.opt-btn.active {
  border-color: #c9a96e;
  background: linear-gradient(135deg, #c9a96e 0%, #b8934f 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(201,169,110,0.45);
  transform: translateY(-1px);
}
.opt-btn.active::before { opacity: 0; }
.opt-btn small  { display: block; font-size: 10px; opacity: 0.85; margin-top: 3px; font-weight: 400; }
.opt-btn--flex-1 { flex: 1; }

/* ── Surface type buttons ── */
.surface-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 22px;
}
.surface-btn {
  padding: 20px 16px 18px;
  border: 2px solid #e8e4de;
  border-radius: 16px;
  background: #faf8f5;
  color: #1a1814;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.surface-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,169,110,0.06) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.2s;
}
.surface-btn:hover { border-color: #c9a96e; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,169,110,0.18); }
.surface-btn:hover::after { opacity: 1; }
.surface-btn.active {
  border-color: #c9a96e;
  background: linear-gradient(135deg, #fdf6eb 0%, #faefd8 100%);
  color: #9a7a3a;
  box-shadow: 0 6px 24px rgba(201,169,110,0.25);
  transform: translateY(-2px);
}
.surface-btn.active svg { color: #c9a96e; }

/* ── Input fields ── */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 4px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a8480;
}
.unit-lbl { color: #c9a96e; font-weight: 800; }

.tm-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #e8e4de;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  color: #1a1814;
  background: #faf8f5;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
  -moz-appearance: textfield;
  appearance: textfield;
  box-sizing: border-box;
}
.tm-input::-webkit-outer-spin-button,
.tm-input::-webkit-inner-spin-button { -webkit-appearance: none; appearance: none; }
.tm-input:focus {
  outline: none;
  border-color: #c9a96e;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(201,169,110,0.14);
}
.tm-input::placeholder { color: #c4c0bb; }

/* ── Wall entries ── */
.wall-entry {
  background: linear-gradient(135deg, #faf8f5 0%, #f5f1eb 100%);
  border: 1.5px solid #e8e4de;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 12px;
  transition: border-color 0.18s;
}
.wall-entry:hover { border-color: #d4c09a; }
.wall-entry__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.wall-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #c9a96e;
}
.wall-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #b0aba5;
  font-size: 20px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 6px;
  transition: all 0.15s;
}
.wall-remove:hover { color: #dc2626; background: #fef2f2; }

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #3a3630;
  margin-top: 14px;
  padding: 10px 14px;
  background: #faf8f5;
  border-radius: 10px;
  border: 1.5px solid #e8e4de;
  user-select: none;
  transition: border-color 0.18s;
}
.checkbox-row:hover { border-color: #c9a96e; }
.checkbox-row input {
  width: 16px; height: 16px;
  cursor: pointer;
  accent-color: #c9a96e;
}

/* ── Custom tile section ── */
.custom-tile-wrap {
  margin-top: 16px;
  padding: 18px;
  background: #fdf6eb;
  border: 1.5px dashed #d4b87a;
  border-radius: 14px;
}

/* ── Error box ── */
.error-box {
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  border-radius: 12px;
  padding: 13px 18px;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 500;
  display: none;
  align-items: center;
  gap: 10px;
}

/* ── Action buttons ── */
.calc-actions {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

/* Use site .btn classes — but enhance inside calc */
.calc-shell .btn {
  border-radius: 14px;
  font-size: 15px;
  padding: 14px 24px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
}
.calc-shell .btn-primary {
  flex: 1;
  justify-content: center;
  background: linear-gradient(135deg, #c9a96e 0%, #b8934f 100%);
  box-shadow: 0 4px 18px rgba(201,169,110,0.4);
}
.calc-shell .btn-primary:hover {
  background: linear-gradient(135deg, #b8934f 0%, #a07c38 100%);
  box-shadow: 0 6px 24px rgba(201,169,110,0.55);
  transform: translateY(-2px);
}
.calc-shell .btn-outline {
  border-color: #e8e4de;
  color: #1a1814;
}
.calc-shell .btn-outline:hover {
  border-color: #c9a96e;
  color: #c9a96e;
  transform: translateY(-1px);
}

/* ── Hidden utility ── */
.hidden { display: none !important; }

/* ═══════════════════════════
   RIGHT PANEL
═══════════════════════════ */

/* ── Placeholder ── */
.placeholder {
  background: #ffffff;
  border: 2px dashed #ddd9d2;
  border-radius: 24px;
  padding: 56px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201,169,110,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.placeholder__icon {
  width: 88px;
  height: 88px;
  background: linear-gradient(135deg, #faf8f5 0%, #f0ece4 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: #c9a96e;
  box-shadow: 0 4px 20px rgba(201,169,110,0.2);
}
.placeholder h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1814;
  margin-bottom: 10px;
  line-height: 1.3;
}
.placeholder p {
  font-size: 14px;
  color: #8a8480;
  margin-bottom: 32px;
  line-height: 1.7;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}
.tip-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  background: #faf8f5;
  border-radius: 14px;
  padding: 18px 20px;
}
.tip {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #6b6760;
  font-weight: 500;
}
.tip svg { color: #c9a96e; flex-shrink: 0; }

/* ── Result card ── */
.result-card {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 8px 40px rgba(26,24,20,0.12), 0 2px 8px rgba(26,24,20,0.06);
  border: 1px solid #ede9e3;
}
.result-card__head {
  background: linear-gradient(135deg, #c9a96e 0%, #b8934f 100%);
  color: #fff;
  padding: 16px 24px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 9px;
}
.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #f0ece4;
  border-bottom: 1px solid #ede9e3;
}
.result-stat {
  background: #ffffff;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: background 0.15s;
}
.result-stat:hover { background: #faf8f5; }
.result-stat__label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a8a49e;
}
.result-stat__value {
  font-size: 14px;
  font-weight: 700;
  color: #1a1814;
}

/* ── Big result number ── */
.result-hero {
  padding: 28px 24px 32px;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #faf8f5 100%);
}
.result-hero__row { margin-bottom: 16px; }
.result-hero__label {
  display: block;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #a8a49e;
  margin-bottom: 6px;
}
.result-hero__area { font-size: 1.3rem; font-weight: 700; color: #1a1814; }
.result-hero__divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #e8e4de, transparent);
  margin: 20px 0;
}
.result-hero__main { display: flex; flex-direction: column; align-items: center; }
.result-hero__count {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 5.5rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #c9a96e 0%, #9a7a3a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
}
.result-hero__unit {
  font-size: 16px;
  font-weight: 700;
  color: #1a1814;
  margin-top: 8px;
  letter-spacing: 0.02em;
}
.result-hero__sub { font-size: 12px; color: #a8a49e; margin-top: 4px; }

/* ── Result action buttons ── */
.result-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}
.calc-shell .btn-wa {
  background: linear-gradient(135deg, #25D366 0%, #1aab52 100%);
  color: #fff;
  width: 100%;
  justify-content: center;
  border-radius: 14px;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 4px 18px rgba(37,211,102,0.3);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.calc-shell .btn-wa:hover {
  background: linear-gradient(135deg, #1ebe59 0%, #159944 100%);
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  transform: translateY(-2px);
}
.calc-shell .btn-browse {
  width: 100%;
  justify-content: center;
  background: #ffffff;
  color: #1a1814;
  border: 1.5px solid #e8e4de;
  border-radius: 14px;
  padding: 13px 20px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.calc-shell .btn-browse:hover {
  border-color: #c9a96e;
  color: #c9a96e;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(201,169,110,0.18);
}

.recalc-hint {
  text-align: center;
  font-size: 12px;
  color: #b0aba5;
  font-style: italic;
}

/* ── Responsive tweaks ── */
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
  .surface-grid { grid-template-columns: 1fr 1fr; }
  .calc-actions { flex-direction: column; }
  .result-hero__count { font-size: 4rem; }
}
