/* ─────────────────────────────────────────────
   Karporta Calculator v2
   ───────────────────────────────────────────── */

[x-cloak] { display: none !important; }

/* ── Inner wrapper ── */
.kc-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.5rem 7rem;
}
@media (min-width: 1024px) { .kc-inner { padding: 0 4rem 7rem; } }

/* ── Progress bar ── */
.kc-progress {
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  padding: 2.5rem 0 2.5rem;
  scrollbar-width: none;
  gap: 0;
}
.kc-progress::-webkit-scrollbar { display: none; }

.kc-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 52px;
  position: relative;
}
.kc-progress-step:not(:first-child)::before {
  content: '';
  position: absolute;
  top: 15px;
  right: 50%;
  left: -50%;
  height: 1px;
  background: #e5e3de;
  transition: background 0.3s;
}
.kc-progress-step.done:not(:first-child)::before { background: #e8832a; }
.kc-progress-step.active:not(:first-child)::before { background: #1a1a1a; }

.kc-progress-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid #e5e3de;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  background: #fafaf8;
  color: #a1a1aa;
  position: relative;
  z-index: 1;
  transition: all 0.25s;
}
.kc-progress-step.done .kc-progress-dot {
  background: #e8832a;
  border-color: #e8832a;
  color: #fff;
  font-size: 13px;
}
.kc-progress-step.active .kc-progress-dot {
  border-color: #1a1a1a;
  color: #1a1a1a;
  font-weight: 700;
}

.kc-progress-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #a1a1aa;
  margin-top: 7px;
  text-align: center;
  white-space: nowrap;
  transition: color 0.2s;
}
.kc-progress-step.done .kc-progress-label,
.kc-progress-step.active .kc-progress-label { color: #1a1a1a; }

/* ── 2-column layout ── */
.kc-layout {
  display: grid;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .kc-layout {
    grid-template-columns: 260px 1fr;
    gap: 5rem;
  }
}

/* ── Left rail ── */
.kc-rail {
  display: none;
}
@media (min-width: 1024px) {
  .kc-rail {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 5rem;
  }
}

.kc-step-done {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid #e5e3de;
}
.kc-done-check { color: #e8832a; font-size: 11px; flex-shrink: 0; }
.kc-done-text { flex: 1; font-size: 13px; color: #1a1a1a; line-height: 1.4; }
.kc-done-edit {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #a1a1aa;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
  flex-shrink: 0;
}
.kc-done-edit:hover { color: #1a1a1a; }

/* ── Right content ── */
.kc-content { min-width: 0; }

.kc-h {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.05;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}
.kc-h em { font-weight: 300; font-style: italic; color: #71717a; }
.kc-sub {
  font-size: 14px;
  color: #71717a;
  font-weight: 300;
  margin-bottom: 2rem;
  max-width: 42ch;
  line-height: 1.6;
}

/* ── PHOTO CARDS ── */
.kc-photo-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .kc-photo-cards { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }

.kc-photo-card {
  background: #fafaf8;
  border: 1.5px solid #e5e3de;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.25s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.kc-photo-card:hover {
  border-color: #1a1a1a;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.kc-photo-card.selected {
  border-color: #e8832a;
  border-width: 2px;
  box-shadow: 0 8px 32px rgba(232,131,42,0.14);
  transform: translateY(-2px);
}

.kc-photo-card-check {
  display: none;
  position: absolute;
  top: 11px;
  right: 11px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e8832a;
  color: #fff;
  font-size: 12px;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.kc-photo-card.selected .kc-photo-card-check { display: flex; }

.kc-photo-card-visual {
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #f0efeb 0%, #e8e6e0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  flex-shrink: 0;
}
.kc-photo-card-visual svg { max-width: 100%; max-height: 100%; }

.kc-photo-card-body {
  padding: 1rem 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kc-photo-card-title { font-family: 'Outfit', sans-serif; font-size: 18px; font-weight: 600; color: #1a1a1a; }
.kc-photo-card-desc { font-size: 12px; color: #71717a; }
.kc-photo-card-price { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: #a1a1aa; margin-top: 6px; }

/* ── PRESET BUTTONS ── */
.kc-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.25rem;
}
.kc-preset-btn {
  padding: 9px 18px;
  border: 1.5px solid #e5e3de;
  border-radius: 100px;
  font-size: 14px;
  color: #1a1a1a;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  font-family: 'Outfit', sans-serif;
  white-space: nowrap;
}
.kc-preset-btn:hover { border-color: #1a1a1a; }
.kc-preset-btn.selected { border-color: #e8832a; border-width: 2px; background: #fff8f3; color: #e8832a; }

.kc-custom-toggle {
  font-size: 13px;
  color: #71717a;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: 'Inter', sans-serif;
  transition: color 0.2s;
}
.kc-custom-toggle:hover { color: #1a1a1a; }

.kc-custom-dims {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e3de;
}
.kc-dim-group label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #71717a;
  margin-bottom: 8px;
}
.kc-dim-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  border-bottom: 1.5px solid #e5e3de;
  padding-bottom: 6px;
  transition: border-color 0.2s;
}
.kc-dim-wrap:focus-within { border-color: #1a1a1a; }
.kc-dim-wrap input[type=number] {
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  color: #1a1a1a;
  width: 100%;
  -moz-appearance: textfield;
}
.kc-dim-wrap input[type=number]::-webkit-outer-spin-button,
.kc-dim-wrap input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; }
.kc-dim-unit { font-size: 12px; color: #a1a1aa; flex-shrink: 0; }
.kc-dim-meters { font-size: 11px; color: #a1a1aa; margin-top: 4px; }

/* ── FILL CARDS ── */
.kc-fill-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 480px) { .kc-fill-cards { grid-template-columns: 1fr; } }

.kc-fill-card {
  border: 1.5px solid #e5e3de;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #fafaf8;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
}
.kc-fill-card:hover { border-color: #1a1a1a; transform: translateY(-1px); }
.kc-fill-card.selected { border-color: #e8832a; border-width: 2px; }

.kc-fill-visual {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0efeb;
}
.kc-fill-visual svg { max-width: 80%; max-height: 80%; }
.kc-fill-label { display: block; padding: 10px 12px 3px; font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 600; color: #1a1a1a; }
.kc-fill-price { display: block; padding: 0 12px 10px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: #a1a1aa; }

/* ── COLOR CIRCLES ── */
.kc-colors { display: flex; flex-wrap: wrap; gap: 1.25rem 1rem; margin-bottom: 2rem; }
.kc-color-opt { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; background: none; border: none; padding: 0; }
.kc-color-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  outline: 2.5px solid transparent;
  outline-offset: 3px;
  transition: outline-color 0.2s, transform 0.2s;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}
.kc-color-opt:hover .kc-color-circle { transform: scale(1.08); outline-color: #e5e3de; }
.kc-color-opt.selected .kc-color-circle { outline-color: #e8832a; transform: scale(1.08); }
.kc-color-name { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: #a1a1aa; text-align: center; line-height: 1.3; max-width: 52px; }
.kc-color-opt.selected .kc-color-name { color: #1a1a1a; }

.kc-selected-color-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid #e5e3de; }
.kc-selected-swatch { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1); flex-shrink: 0; }
.kc-selected-color-name { font-family: 'Outfit', sans-serif; font-size: 16px; color: #1a1a1a; }

/* ── AUTO CARDS ── */
.kc-auto-cards { display: grid; gap: 10px; }
.kc-auto-card {
  border: 1.5px solid #e5e3de;
  border-radius: 12px;
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #fafaf8;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  text-align: left;
}
.kc-auto-card:hover { border-color: #1a1a1a; transform: translateY(-1px); }
.kc-auto-card.selected { border-color: #e8832a; border-width: 2px; background: #fff8f3; transform: translateY(-1px); }
.kc-auto-card-left { flex: 1; min-width: 0; }
.kc-auto-card-title { font-family: 'Outfit', sans-serif; font-size: 17px; font-weight: 600; color: #1a1a1a; display: block; }
.kc-auto-card-desc { font-size: 12px; color: #71717a; display: block; margin-top: 2px; }
.kc-auto-card-price { font-family: 'Outfit', sans-serif; font-size: 16px; color: #e8832a; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.kc-auto-card.selected .kc-auto-card-price { color: #c96d1a; }

/* ── ADDON PILLS ── */
.kc-addons { display: grid; gap: 10px; }
.kc-addon-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border: 1.5px solid #e5e3de;
  border-radius: 12px;
  cursor: pointer;
  background: #fafaf8;
  transition: border-color 0.2s, background 0.2s;
  text-align: left;
}
.kc-addon-pill:hover { border-color: #1a1a1a; }
.kc-addon-pill.selected { border-color: #e8832a; border-width: 2px; background: #fff8f3; }

.kc-addon-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #f0efeb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: background 0.2s;
}
.kc-addon-pill.selected .kc-addon-icon { background: rgba(232,131,42,0.12); }
.kc-addon-label { flex: 1; font-size: 15px; color: #1a1a1a; }
.kc-addon-price { font-size: 12px; color: #a1a1aa; text-transform: uppercase; letter-spacing: 0.1em; white-space: nowrap; flex-shrink: 0; }
.kc-addon-pill.selected .kc-addon-price { color: #e8832a; }

/* ── CONTINUE BUTTON ── */
.kc-continue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 2.5rem;
  padding: 15px 32px;
  background: #1a1a1a;
  color: #fafaf8;
  border-radius: 100px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.2s;
}
.kc-continue:hover { background: #3d3d3d; transform: translateY(-1px); }
.kc-continue:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }

.kc-skip-link {
  display: inline-block;
  margin-top: 1rem;
  margin-left: 1.5rem;
  font-size: 13px;
  color: #a1a1aa;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: color 0.2s;
  font-family: 'Inter', sans-serif;
}
.kc-skip-link:hover { color: #1a1a1a; }

/* ── CONTACT STEP ── */
.kc-contact-wrap { display: grid; gap: 2.5rem; }
@media (min-width: 860px) { .kc-contact-wrap { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; } }

.kc-summary-box { background: #f0efeb; border-radius: 16px; padding: 1.5rem; order: 2; }
@media (min-width: 860px) { .kc-summary-box { order: 1; } }

.kc-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(26,26,26,0.07);
  font-size: 13px;
}
.kc-summary-row:last-child { border-bottom: none; }
.kc-summary-lbl { color: #71717a; }
.kc-summary-val { color: #1a1a1a; font-weight: 500; text-align: right; }

.kc-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 14px;
  margin-top: 6px;
  border-top: 1px solid #e5e3de;
}
.kc-summary-total-lbl { font-family: 'Outfit', sans-serif; font-size: 15px; font-weight: 600; color: #1a1a1a; }
.kc-summary-total-val { font-family: 'Outfit', sans-serif; font-size: 26px; font-weight: 700; color: #1a1a1a; }
.kc-summary-note { font-size: 11px; color: #a1a1aa; margin-top: 10px; line-height: 1.5; }

.kc-form { order: 1; }
@media (min-width: 860px) { .kc-form { order: 2; } }

.kc-field { margin-bottom: 1.5rem; }
.kc-label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.15em; color: #71717a; margin-bottom: 6px; }
.kc-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid #e5e3de;
  padding: 8px 0;
  font-size: 16px;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.2s;
  font-family: 'Inter', sans-serif;
}
.kc-input:focus { border-color: #1a1a1a; }
.kc-input::placeholder { color: #a1a1aa; }

/* ── SUCCESS ── */
.kc-success { padding: 3rem 0; }
.kc-success-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: #e8832a; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 1.5rem;
}
.kc-success h2 { font-family: 'Outfit', sans-serif; font-size: clamp(2rem,4vw,3rem); font-weight: 600; color: #1a1a1a; margin-bottom: 1rem; line-height: 1.05; }
.kc-success p { font-size: 15px; color: #71717a; max-width: 40ch; margin-bottom: 2rem; line-height: 1.7; }
.kc-success-stats { display: flex; gap: 2rem; flex-wrap: wrap; padding: 1.5rem 0; border-top: 1px solid #e5e3de; border-bottom: 1px solid #e5e3de; margin-bottom: 2rem; }
.kc-success-stat-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: #a1a1aa; margin-bottom: 4px; }
.kc-success-stat-val { font-family: 'Outfit', sans-serif; font-size: 22px; font-weight: 600; color: #1a1a1a; }

/* ── STICKY FOOTER ── */
.kc-footer { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: #1a1a1a; border-top: 1px solid rgba(255,255,255,0.06); }
.kc-footer-inner {
  max-width: 1440px; margin: 0 auto; padding: 13px 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
@media (min-width: 1024px) { .kc-footer-inner { padding: 13px 4rem; } }

.kc-footer-left { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.kc-footer-lbl { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.4); }
.kc-footer-amount { font-family: 'Outfit', sans-serif; font-size: 26px; font-weight: 600; color: #fafaf8; line-height: 1; }

.kc-footer-right { display: flex; align-items: center; gap: 1.25rem; }
.kc-footer-step-txt { display: none; font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.4); }
@media (min-width: 640px) { .kc-footer-step-txt { display: block; } }

.kc-footer-breakdown {
  display: none;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4); cursor: pointer; background: none; border: none; padding: 0;
  transition: color 0.2s; font-family: 'Outfit', sans-serif;
}
.kc-footer-breakdown:hover { color: rgba(255,255,255,0.7); }
@media (min-width: 768px) { .kc-footer-breakdown { display: block; } }

.kc-footer-btn {
  padding: 9px 20px;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  color: #fafaf8;
  font-size: 14px;
  cursor: pointer;
  background: transparent;
  font-family: 'Outfit', sans-serif;
  transition: border-color 0.2s, background 0.2s;
  white-space: nowrap;
}
.kc-footer-btn:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.05); }
.kc-footer-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ── BREAKDOWN MODAL ── */
.kc-modal-wrap {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: flex-end; justify-content: center; padding: 0;
}
@media (min-width: 640px) { .kc-modal-wrap { align-items: center; padding: 1.5rem; } }

.kc-modal-bg { position: absolute; inset: 0; background: rgba(10,10,10,0.65); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.kc-modal-panel {
  position: relative; z-index: 1; background: #fafaf8;
  border-radius: 20px 20px 0 0; width: 100%; max-width: 500px; max-height: 88vh;
  overflow-y: auto; padding: 2rem 1.75rem;
}
@media (min-width: 640px) { .kc-modal-panel { border-radius: 20px; } }

.kc-modal-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1.5rem; }
.kc-modal-title { font-family: 'Outfit', sans-serif; font-size: 22px; font-weight: 600; color: #1a1a1a; }
.kc-modal-close {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid #e5e3de;
  background: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: #71717a; transition: border-color 0.2s, color 0.2s; flex-shrink: 0;
}
.kc-modal-close:hover { border-color: #1a1a1a; color: #1a1a1a; }

.kc-breakdown-line {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 8px; padding: 10px 0; border-bottom: 1px solid #e5e3de; font-size: 14px;
}
.kc-breakdown-lbl { color: #1a1a1a; }
.kc-breakdown-val { color: #1a1a1a; font-family: 'Outfit', sans-serif; font-weight: 500; flex-shrink: 0; }

.kc-breakdown-sub-row {
  display: flex; justify-content: space-between;
  padding: 8px 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: #a1a1aa;
  border-bottom: 1px solid #e5e3de;
}
.kc-breakdown-total-row { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 1px solid #e5e3de; margin-top: 4px; }
.kc-breakdown-total-lbl { font-family: 'Outfit', sans-serif; font-size: 18px; font-weight: 600; color: #1a1a1a; }
.kc-breakdown-total-val { font-family: 'Outfit', sans-serif; font-size: 28px; font-weight: 700; color: #1a1a1a; }
.kc-breakdown-note { font-size: 12px; color: #a1a1aa; margin-top: 1rem; line-height: 1.6; }

/* Pasiūlymo nuoroda success ekrane */
.kc-quote-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: #1a1a2e;
  color: #fff !important;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s;
}
.kc-quote-link:hover { background: #2d2d4e; }
