/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #edeae4;
  --bg2:       #e4e1da;
  --glass:     rgba(255,255,255,0.62);
  --glass2:    rgba(255,255,255,0.42);
  --border:    rgba(0,0,0,0.08);
  --border2:   rgba(0,0,0,0.12);
  --text:      #111;
  --text-m:    rgba(0,0,0,0.5);
  --text-d:    rgba(0,0,0,0.3);
  --accent:    #111;
  --green:     #16a34a;
  --green-bg:  #d1fae5;
  --blue:      #2563eb;
  --blue-bg:   rgba(59,130,246,0.08);
  --blue-b:    rgba(59,130,246,0.18);
  --amber:     #92400e;
  --amber-bg:  rgba(245,158,11,0.08);
  --amber-b:   rgba(245,158,11,0.22);
  --radius:    18px;
  --radius-sm: 10px;
  --shadow:    0 8px 32px rgba(0,0,0,0.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(0,0,0,0.035), transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(0,0,0,0.025), transparent 65%);
  z-index: 0;
}

body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0.012),
    rgba(0,0,0,0.012) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.3;
  z-index: 0;
}

/* ── Home button ──────────────────────────────────────────── */
.home-btn {
  position: fixed;
  top: 18px; left: 18px;
  z-index: 100;
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border2);
  padding: 9px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: background 0.2s, transform 0.15s;
}

.home-btn:hover {
  background: rgba(255,255,255,0.82);
  transform: translateY(-1px);
}

/* ── Container ────────────────────────────────────────────── */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 80px 20px 60px;
  position: relative;
  z-index: 1;
}

/* ── Alert (chyby / blok) ─────────────────────────────────── */
.alert {
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid rgba(153,27,27,0.15);
}

/* ── Step system ──────────────────────────────────────────── */
.step { display: none; }
.step.active { display: block; }

/* ── Page title ───────────────────────────────────────────── */
h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  color: var(--text);
}

/* ── Card ─────────────────────────────────────────────────── */
.card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
}

h2 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  opacity: 0.45;
  text-transform: uppercase;
  margin: 0 0 16px;
}

h2.center { text-align: center; }

/* ── Type selector ────────────────────────────────────────── */
.type-wrapper {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.type-group { text-align: center; }

.type-group h3 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 0.4;
  margin-bottom: 10px;
}

.options {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.option {
  padding: 10px 18px;
  border: 1.5px solid var(--border2);
  border-radius: 12px;
  cursor: pointer;
  background: rgba(255,255,255,0.5);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s;
  line-height: 1.3;
}

.option:hover {
  background: rgba(255,255,255,0.85);
  border-color: rgba(0,0,0,0.2);
  transform: translateY(-1px);
}

.option.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.option small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  opacity: 0.6;
  margin-top: 3px;
}

/* ── Sliders ──────────────────────────────────────────────── */
.sliders {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 8px 0 24px;
}

.slider-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.slider-box > div:first-child {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  opacity: 0.45;
}

.slider-box > div:last-child {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

input[type=range] {
  width: 180px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(0,0,0,0.12);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.15s;
}

input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.15); }

/* ── Toggles ──────────────────────────────────────────────── */
.toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.toggle:last-of-type { border-bottom: none; }

.left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}

.info {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  color: var(--text-m);
  border: 1px solid rgba(0,0,0,0.1);
  transition: background 0.2s;
}

.info:hover { background: rgba(0,0,0,0.14); }

.info::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.info:hover::after { opacity: 1; }

/* ── Toggle switch ────────────────────────────────────────── */
.switch {
  position: relative;
  width: 46px;
  height: 26px;
  background: rgba(0,0,0,0.12);
  border-radius: 13px;
  cursor: pointer;
  transition: background 0.28s cubic-bezier(0.4,0,0.2,1);
  flex-shrink: 0;
  border: 1.5px solid rgba(0,0,0,0.08);
}

.switch::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  top: 1px;
  left: 1px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.22);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
}

.switch.active {
  background: #22c55e;
  border-color: #16a34a;
}

.switch.active::after { transform: translateX(20px); }

/* ── Mail box ─────────────────────────────────────────────── */
#mailBox {
  display: none;
  margin-top: 10px;
  padding: 14px;
  background: rgba(0,0,0,0.03);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.mail-plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.mail-plan { cursor: pointer; }
.mail-plan input[type="radio"] { display: none; }

.mail-plan-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 8px;
  border-radius: 12px;
  border: 1.5px solid var(--border2);
  background: rgba(255,255,255,0.45);
  transition: all 0.2s;
  cursor: pointer;
  gap: 3px;
}

.mail-plan-body:hover {
  background: rgba(255,255,255,0.72);
  border-color: rgba(0,0,0,0.2);
  transform: translateY(-1px);
}

.mail-plan input:checked + .mail-plan-body {
  border-color: var(--blue);
  background: var(--blue-bg);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.10);
}

.mail-plan-name {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 0.45;
}

.mail-plan-storage {
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin: 3px 0 1px;
}

.mail-plan-price {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
}

.mail-plan-note {
  font-size: 10px;
  opacity: 0.45;
  margin-top: 1px;
  line-height: 1.3;
}

#mailCountWrap {
  display: none;
  margin-top: 10px;
}

#mailCountWrap label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.45;
  margin-bottom: 6px;
}

#mailCountWrap input[type="number"] {
  width: 80px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border2);
  background: rgba(255,255,255,0.65);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

#mailCountWrap input[type="number"]:focus {
  border-color: rgba(0,0,0,0.28);
}

.mail-note {
  margin-top: 10px;
  padding: 10px 13px;
  background: var(--blue-bg);
  border: 1px solid var(--blue-b);
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-m);
}

/* ── Textarea ─────────────────────────────────────────────── */
textarea {
  width: 100%;
  height: 100px;
  margin-top: 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border2);
  background: rgba(255,255,255,0.55);
  padding: 12px 14px;
  resize: vertical;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

textarea:focus {
  border-color: rgba(0,0,0,0.25);
  background: rgba(255,255,255,0.78);
}

textarea::placeholder { color: var(--text-d); }

/* ── Email input ──────────────────────────────────────────── */
.email-box { margin-bottom: 16px; }

.email-box input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border2);
  background: rgba(255,255,255,0.55);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.email-box input:focus {
  border-color: rgba(0,0,0,0.25);
  background: rgba(255,255,255,0.78);
}

.email-box input::placeholder { color: var(--text-d); }

/* ── Summary box ──────────────────────────────────────────── */
.summary-box { margin-bottom: 16px; }

.summary-list {
  background: rgba(0,0,0,0.04);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-m);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
}

.summary-row span   { opacity: 0.7; }
.summary-row strong { color: var(--text); font-weight: 700; }

.summary-features {
  align-items: flex-start !important;
  flex-wrap: wrap;
  margin-top: 2px;
}

.summary-features ul {
  margin: 0;
  padding: 0 0 0 16px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ── Price box ────────────────────────────────────────────── */
.price-box {
  margin-bottom: 16px;
  padding: 18px;
  background: rgba(255,255,255,0.45);
  border: 1px solid var(--border2);
  border-radius: 14px;
  font-size: 15px;
}

.price-box hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 10px 0;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  font-size: 15px;
}

.price-row.discounted strong { color: var(--green); }

.discount {
  display: inline-block;
  color: var(--blue);
  background: var(--blue-bg);
  border: 1px solid var(--blue-b);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 800;
  margin: 8px 0 6px;
  letter-spacing: 0.3px;
}

/* ── Notices ──────────────────────────────────────────────── */
.estimate-notice {
  padding: 11px 14px;
  background: var(--amber-bg);
  border: 1px solid var(--amber-b);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--amber);
  margin-bottom: 18px;
}

.submit-notice {
  font-size: 13px;
  color: var(--text-d);
  text-align: center;
  margin: 8px 0 4px;
  line-height: 1.5;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  gap: 10px;
}

.next, .send {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.next:hover, .send:hover:not(:disabled) {
  opacity: 0.85;
  transform: translateY(-1px);
}

.next:active, .send:active { transform: translateY(0); }

.back {
  background: rgba(0,0,0,0.07);
  color: var(--text);
  border: none;
  border-radius: 12px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.back:hover { background: rgba(0,0,0,0.12); }

.send:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.info-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 18px;
  margin-bottom: 20px;
  border-radius: 12px;
  text-decoration: none;
  background: rgba(0,0,0,0.05);
  border: 1px solid var(--border2);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}

.info-btn:hover {
  background: rgba(0,0,0,0.09);
  transform: translateY(-1px);
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 16px 0;
}

/* ══════════════════════════════════════════════════════════
   DĚKUJEME STRÁNKA
══════════════════════════════════════════════════════════ */
.thankyou-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 52px 32px 44px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  animation: fadeUp 0.5s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.thankyou-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-bg);
  border: 2px solid rgba(22,163,74,0.25);
  color: var(--green);
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  box-shadow: 0 4px 16px rgba(22,163,74,0.12);
}

.thankyou-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.thankyou-text {
  font-size: 15px;
  color: var(--text-m);
  line-height: 1.7;
  max-width: 380px;
  margin-bottom: 32px;
}

.thankyou-text strong {
  color: var(--text);
  font-weight: 700;
}

/* Tlačítko — okamžitý kontakt */
.contact-now-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 400px;
  padding: 15px 24px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.2px;
  transition: opacity 0.2s, transform 0.15s;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.14);
}

.contact-now-btn:hover {
  opacity: 0.87;
  transform: translateY(-2px);
}

.contact-now-btn:active { transform: translateY(0); }

.contact-icon {
  font-size: 18px;
  line-height: 1;
}

/* Tlačítko — zpět domů */
.home-big-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  padding: 14px 24px;
  border-radius: 14px;
  background: rgba(0,0,0,0.07);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.home-big-btn:hover {
  background: rgba(0,0,0,0.12);
  transform: translateY(-1px);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .container { padding: 72px 14px 48px; }
  h1 { font-size: 22px; }
  .card { padding: 20px 16px; }
  .type-wrapper { gap: 24px; }
  .sliders { gap: 20px; }
  input[type=range] { width: 140px; }
  .btn-row { flex-direction: column-reverse; }
  .next, .back, .send { width: 100%; text-align: center; }
  .mail-plans { grid-template-columns: repeat(2, 1fr); }
  .summary-row { flex-direction: column; gap: 1px; }
  .thankyou-card { padding: 36px 20px 32px; }
  .thankyou-title { font-size: 24px; }
  .contact-now-btn, .home-big-btn { max-width: 100%; }
}