/* ── Calculator Hero ─────────────────────────────── */
.calc-hero {
  background: var(--ink);
  padding: 160px 40px 80px;
}
.calc-hero__inner { max-width: 1200px; margin: 0 auto; }

.calc-hero__eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #d0b608;
  margin: 0 0 20px;
}

.calc-hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--white);
  margin: 0 0 20px;
}

.calc-hero__title em {
  color: #d0b608;
  font-style: italic;
}

.calc-hero__sub {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  color: rgba(255,255,255,0.45);
  margin: 0;
  max-width: 480px;
  line-height: 1.6;
}

/* ── Layout ──────────────────────────────────────── */
.calc-section { padding: 60px 24px 100px; background: var(--white); }
.calc-container { max-width: 720px; margin: 0 auto; }

/* ── Form groups ─────────────────────────────────── */
.calc-form { display: flex; flex-direction: column; gap: 44px; }
.calc-group__label {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 16px;
}

/* ── Product type cards ──────────────────────────── */
.calc-product-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.calc-product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 12px 20px;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: var(--white);
}
.calc-product-card__input { display: none; }
.calc-product-card__icon {
  width: 64px;
  height: 64px;
  color: var(--ink-soft);
  transition: color 0.15s;
}
.calc-product-card__icon svg { width: 100%; height: 100%; }
.calc-product-card__name {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-align: center;
}
.calc-product-card:has(.calc-product-card__input:checked) {
  border-color: var(--walnut);
  background: rgba(123,81,53,0.04);
}
.calc-product-card:has(.calc-product-card__input:checked) .calc-product-card__icon { color: var(--ink); }
.calc-product-card:has(.calc-product-card__input:checked) .calc-product-card__name { color: var(--ink); }

/* ── Shape cards ─────────────────────────────────── */
.calc-shapes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 560px) {
  .calc-shapes { grid-template-columns: repeat(2, 1fr); }
}
.calc-shape-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: var(--white);
}
.calc-shape-card__input { display: none; }
.calc-shape-card__icon {
  width: 48px;
  height: 48px;
  color: var(--ink-soft);
  transition: color 0.15s;
}
.calc-shape-card__icon svg { width: 100%; height: 100%; }
.calc-shape-card__name {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.3;
}
.calc-shape-card:has(.calc-shape-card__input:checked) {
  border-color: var(--walnut);
  background: var(--white);
}
.calc-shape-card:has(.calc-shape-card__input:checked) .calc-shape-card__icon { color: var(--ink); }
.calc-shape-card:has(.calc-shape-card__input:checked) .calc-shape-card__name { color: var(--ink); font-weight: 500; }

/* ── Dimension fields ────────────────────────────── */
.calc-dims { display: flex; gap: 20px; }
@media (max-width: 480px) { .calc-dims { flex-direction: column; } }
.calc-dim-field { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.calc-dim-field__label {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.calc-dim-field__input {
  width: 100%;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.15);
  padding: 12px 0;
  outline: none;
  transition: border-color 0.2s;
}
.calc-dim-field__input:focus { border-color: var(--walnut); }

/* ── Toggle options ──────────────────────────────── */
.calc-toggle { display: flex; gap: 10px; flex-wrap: wrap; }
.calc-toggle__option { cursor: pointer; }
.calc-toggle__input { display: none; }
.calc-toggle__label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 100px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  color: var(--ink-soft);
  background: var(--white);
  transition: border-color 0.15s, color 0.15s;
}
.calc-toggle__label small {
  display: block;
  font-size: 0.7rem;
  color: rgba(0,0,0,0.35);
  margin-top: 2px;
}
.calc-toggle__option:has(.calc-toggle__input:checked) .calc-toggle__label {
  border-color: var(--walnut);
  color: var(--ink);
}

/* ── Color swatches ──────────────────────────────── */
.calc-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
}
.calc-swatch--white { background: #fff; }
.calc-swatch--color { background: linear-gradient(135deg, #4a4a4a 50%, #8B6914 50%); border-color: #999; }

/* ── Submit ──────────────────────────────────────── */
.calc-submit {
  align-self: center;
  padding: 16px 40px;
  background: var(--ink);
  color: var(--white);
  border: none;
  border-radius: 100px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.calc-submit:hover { background: var(--walnut); transform: translateY(-1px); }

.add-product-form { margin-top: 40px; display: flex; justify-content: center; }

.plist-offer-wrap { display: flex; flex-direction: column; align-items: stretch; }

/* ── Result frame ────────────────────────────────── */
.calc-result-frame { display: block; margin-top: 32px; }

/* ── Estimate result ─────────────────────────────── */
.estimate-result {
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  padding: 24px;
}
.estimate-result__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 24px;
  color: var(--ink);
}
.estimate-result__breakdown {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 20px;
}
.estimate-result__row {
  display: flex;
  justify-content: space-between;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.estimate-result__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  color: var(--ink);
  padding-top: 20px;
}
.estimate-result__total strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--walnut);
  line-height: 1;
}
.estimate-result__disclaimer {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  color: rgba(0,0,0,0.3);
  margin: 16px 0 0;
}

/* ── MODE TABS ───────────────────────────── */
.calc-tabs-bar {
  background: var(--ink);
  display: flex;
  justify-content: center;
  padding: 0 0 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.calc-tabs {
  display: flex;
  background: rgba(255,255,255,0.07);
  border-radius: 100px;
  padding: 4px;
  gap: 4px;
}

.calc-tab {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 10px 32px;
  border-radius: 100px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.calc-tab:hover { color: rgba(255,255,255,0.75); }

.calc-tab.active {
  background: #d0b608;
  color: #1C1C1E;
}

/* ── COMING SOON ─────────────────────────── */
.calc-coming-soon {
  max-width: 480px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}

.calc-coming-soon__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  color: #1C1C1E;
  margin-bottom: 16px;
}

.calc-coming-soon__body {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #5A5A5A;
}

/* ── AI Chat UI ──────────────────────────────────── */
.chat-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 680px;
  margin: 0 auto 48px;
}

.chat-input-wrap__label {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5A5A5A;
}

.chat-textarea {
  width: 100%;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  color: #1C1C1E;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(0,0,0,0.15);
  padding: 12px 0;
  outline: none;
  resize: none;
  line-height: 1.6;
  transition: border-color 0.2s;
}
.chat-textarea:focus { border-color: #d0b608; }

/* Offer card - reuses estimate-result classes, add extras */
.chat-offer {
  max-width: 680px;
  margin: 0 auto 48px;
}

.chat-offer__query {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-style: italic;
  color: #999;
  margin-bottom: 24px;
}

.chat-offer__item-block {
  margin-bottom: 16px;
}

.chat-offer__qty-row {
  font-weight: 700;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 8px;
  margin-top: 4px;
}

.chat-offer__grand-total {
  margin-top: 8px;
}

.chat-offer__cta {
  width: 100%;
  margin-top: 16px;
}

/* Error */
.chat-error {
  max-width: 680px;
  margin: 0 auto 32px;
  padding: 20px 24px;
  background: rgba(220,50,50,0.06);
  border: 1px solid rgba(220,50,50,0.15);
  border-radius: 12px;
}

.chat-error__msg {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: #c0392b;
  margin-bottom: 8px;
}

.chat-error__hint {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: #888;
  line-height: 1.6;
}

.chat-error__hint em {
  color: #555;
  font-style: italic;
}

/* Blocker */
.chat-blocked {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 32px;
  background: #f9f9f7;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  text-align: center;
}

.chat-blocked__msg {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  color: #1C1C1E;
  margin-bottom: 12px;
}

.chat-blocked__hint {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: #5A5A5A;
  margin-bottom: 28px;
  line-height: 1.7;
}

/* Confirmation */
.chat-confirmation {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
  padding: 48px 32px;
}

.chat-confirmation__icon {
  width: 56px;
  height: 56px;
  background: #d0b608;
  color: #1C1C1E;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 24px;
}

.chat-confirmation__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #1C1C1E;
  margin-bottom: 16px;
}

.chat-confirmation__body {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: #5A5A5A;
  margin-bottom: 24px;
}

.chat-confirmation__link {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: #d0b608;
  text-decoration: none;
}

/* ── AI tab badge ──────────────────────────────── */
.calc-tab__ai-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: #d0b608;
  color: #1C1C1E;
  border-radius: 4px;
  padding: 2px 5px;
  vertical-align: middle;
  margin-left: 5px;
  line-height: 1.4;
  position: relative;
  top: -1px;
}

.calc-tab.active .calc-tab__ai-badge {
  background: #1C1C1E;
  color: #d0b608;
}

/* ── AI intro block ─────────────────────────────── */
.chat-ai-intro {
  max-width: 680px;
  margin: 0 auto 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-ai-intro__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d0b608;
}

.chat-ai-intro__text {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #5A5A5A;
}

/* ── Chat thread - ChatGPT style ─────────────────── */
.chat-thread {
  max-width: 680px;
  margin: 0 auto 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* AI message - plain text, left aligned, no bubble */
.chat-msg--ai {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #1C1C1E;
  max-width: 600px;
}

.chat-msg--ai p { margin: 0 0 6px; }

.chat-msg__hint {
  font-size: 13px;
  color: #999;
  margin-top: 6px !important;
}
.chat-msg__hint em { color: #777; }

/* User message - right aligned dark bubble */
.chat-msg--user {
  display: flex;
  justify-content: flex-end;
}

.chat-msg--user p {
  background: #1C1C1E;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  padding: 12px 18px;
  border-radius: 18px 18px 4px 18px;
  max-width: 480px;
  margin: 0;
  word-break: break-word;
}

/* Error inside AI message */
.chat-msg--ai .chat-error {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
}
.chat-msg--ai .chat-error__msg { color: #c0392b; margin-bottom: 4px; }
.chat-msg--ai .chat-error__hint { color: #888; font-size: 14px; }

/* Input bar */
.chat-input-wrap {
  position: relative;
  max-width: 680px;
  margin: 0 auto 48px;
  background: #f5f5f3;
  border-radius: 14px;
  padding: 12px 56px 12px 18px;
}

.chat-textarea {
  display: block;
  width: 100%;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  color: #1C1C1E;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  line-height: 1.5;
  height: 24px;
  max-height: 120px;
  overflow-y: hidden;
  padding: 0;
  box-sizing: border-box;
}

.chat-send-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #1C1C1E;
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
}
.chat-send-btn:hover { background: #d0b608; color: #1C1C1E; }

/* ── Chat offer bubble & CTA wrap ───────────────── */
.chat-msg--offer {
  max-width: 680px;
}

.chat-cta-wrap {
  max-width: 680px;
  margin: 0 auto 48px;
}

.chat-cta-wrap .calc-submit {
  width: 100%;
}

.chat-offer-form { display: flex; flex-direction: column; gap: 16px; }

.chat-offer-form__fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Two-column layout ───────────────────────────── */
.calc-container--wide { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.calc-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 768px) {
  .calc-cols { grid-template-columns: 1fr; }
}

/* ── Product list ────────────────────────────────── */
.calc-col--list .calc-group__label { margin-bottom: 16px; }

.plist { display: flex; flex-direction: column; gap: 0; }

.plist-empty {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: rgba(0,0,0,0.35);
  padding: 24px 0;
}

.plist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.plist-item__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.plist-item__label {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.plist-item__price {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: rgba(0,0,0,0.55);
}

.plist-item__eur {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  color: rgba(0,0,0,0.38);
}

.plist-item__remove {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(0,0,0,0.3);
  font-size: 16px;
  padding: 4px 8px;
  transition: color 0.15s;
}
.plist-item__remove:hover { color: #c00; }

.plist-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 24px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  border-top: 2px solid var(--ink);
  margin-top: 8px;
}

/* ── Offer form ──────────────────────────────────── */
.offer-form { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }

.offer-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.offer-form__field label {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.5);
}

.offer-form__input {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  padding: 12px 14px;
  border: 1.5px solid rgba(0,0,0,0.15);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.15s;
  color: var(--ink);
}
.offer-form__input:focus { border-color: var(--ink); }

.calc-submit--add {
  margin-top: 8px;
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.calc-submit--add:hover {
  background: var(--ink);
  color: var(--white);
}

/* ── Confirmation ────────────────────────────────── */
.offer-confirm {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 0;
  gap: 16px;
}

.offer-confirm__icon { color: #2d8a4e; }

.offer-confirm__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.offer-confirm__msg {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  color: rgba(0,0,0,0.6);
  margin: 0;
  max-width: 300px;
  line-height: 1.6;
}

.offer-form__error {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: #c00;
  margin: 0 0 8px;
}
