.krl-app {
  --krl-bg: #f4f4f2;
  --krl-ink: #0d0d0d;
  --krl-muted: #6b6b6b;
  --krl-line: rgba(13, 13, 13, 0.08);
  --krl-surface: rgba(255, 255, 255, 0.92);
  --krl-shadow: 0 30px 60px rgba(0, 0, 0, 0.16);
  display: flex;
  justify-content: center;
  padding: 28px 12px;
  font-family: "Poppins", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.68), transparent 22%),
    radial-gradient(circle at bottom right, rgba(255,255,255,0.24), transparent 24%),
    linear-gradient(135deg, #0d0d0d 0%, #181818 36%, #ece9e3 36%, #f4f1eb 100%);
  border-radius: 44px;
  overflow: hidden;
}

.krl-stage {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 18px 0;
}

.krl-phone {
  width: min(100%, 400px);
  min-height: 790px;
  padding: 18px;
  border-radius: 40px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.16), transparent 26%),
    linear-gradient(180deg, #030303 0%, #0f0f0f 26%, #f8f6f1 26%, #efede7 100%);
  box-shadow: var(--krl-shadow);
  border: 1px solid rgba(255,255,255,0.12);
  position: relative;
}

.krl-phone::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
}

.krl-topbar {
  color: #111;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 6px 10px 24px;
}

.krl-brandrow {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(17,17,17,0.08);
  border-radius: 18px;
  padding: 8px 12px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.krl-brandmark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(17,17,17,0.08);
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  background: #fff;
}

.krl-brandmark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.krl-brandtext {
  display: grid;
  justify-items: start;
  gap: 1px;
}

.krl-topbar strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}

.krl-topbar small {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.62);
  font-size: 0.62rem;
}

.krl-dot {
  width: 70px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  margin-bottom: 10px;
}

.krl-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.krl-progress-step {
  display: grid;
  place-items: center;
  height: 40px;
  border-radius: 16px;
  background: rgba(12, 12, 12, 0.1);
  color: #707070;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.krl-progress-step.is-active {
  background: #0a0a0a;
  color: #fff;
}

.krl-progress-step.is-current {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.16);
}

.krl-form,
.krl-result {
  background: var(--krl-surface);
  backdrop-filter: blur(16px);
  border-radius: 30px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 18px 40px rgba(17,17,17,0.06);
}

.krl-form {
  margin-top: 2px;
}

.krl-step { display: none; }
.krl-step.is-active { display: block; }

.krl-step h3,
.krl-success h3 {
  margin: 0 0 10px;
  color: var(--krl-ink);
  font-family: "Cormorant Garamond", serif;
  font-size: 2.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.krl-lead,
.krl-note,
.krl-info,
.krl-success p {
  margin: 0 0 18px;
  color: var(--krl-muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.krl-services {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.krl-service-card input {
  display: none;
}

.krl-service-shell {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 112px;
  padding: 12px;
  border-radius: 24px;
  border: 1px solid var(--krl-line);
  background: linear-gradient(180deg, #ffffff 0%, #f9f8f5 100%);
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.krl-service-shell img {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 20px;
  background: #0e0e0e;
  filter: grayscale(100%) contrast(1.05);
  box-shadow: 0 10px 18px rgba(0,0,0,0.12);
}

.krl-service-shell strong {
  display: block;
  color: var(--krl-ink);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.52rem;
  font-weight: 600;
  line-height: 1.02;
}

.krl-service-card input:checked + .krl-service-shell {
  background: #0a0a0a;
  border-color: #0a0a0a;
  box-shadow: 0 20px 32px rgba(0, 0, 0, 0.14);
  transform: translateY(-2px);
}

.krl-service-card input:checked + .krl-service-shell img {
  filter: grayscale(10%) contrast(1.02);
}

.krl-service-card input:checked + .krl-service-shell strong {
  color: #fff;
}

.krl-slot-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.krl-slot {
  min-height: 56px;
  border: 1px solid var(--krl-line);
  border-radius: 18px;
  background: #fff;
  color: var(--krl-ink);
  font-weight: 600;
  cursor: pointer;
}

.krl-slot.is-selected {
  background: #0a0a0a;
  color: #fff;
}

.krl-form input[type="text"],
.krl-form input[type="tel"],
.krl-form input[type="date"],
.krl-form textarea {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  margin-bottom: 12px;
  border: 1px solid rgba(13, 13, 13, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--krl-ink);
  font-family: "Poppins", sans-serif;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}

.krl-form textarea {
  min-height: 110px;
  padding-top: 14px;
  resize: vertical;
}

.krl-form input::placeholder {
  color: #888;
}

.krl-summary-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 14px;
  margin-top: 14px;
  margin-bottom: 4px;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f6f4 100%);
  border: 1px solid var(--krl-line);
}

.krl-summary-card span {
  color: #7b7b7b;
}

.krl-summary-card strong {
  color: var(--krl-ink);
  font-weight: 600;
}

.krl-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.krl-next,
.krl-back,
.krl-submit,
.krl-wa-link {
  flex: 1;
  min-height: 54px;
  border-radius: 19px;
  border: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.krl-next,
.krl-submit,
.krl-wa-link {
  background: linear-gradient(180deg, #111111 0%, #050505 100%);
  color: #fff;
  box-shadow: 0 14px 28px rgba(0,0,0,0.16);
}

.krl-back {
  background: #dde3e8;
  color: #111;
}

.krl-error {
  color: #8a1f1f;
  background: #f8eaea;
  border-radius: 18px;
  padding: 12px 14px;
}

.krl-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0 14px;
  color: #444;
  font-size: 0.88rem;
  line-height: 1.6;
}

.krl-consent input {
  margin-top: 4px;
}

.krl-policy-link {
  border: 0;
  background: transparent;
  color: #111;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font: inherit;
  font-weight: 600;
  margin-left: 6px;
}

.krl-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.krl-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.krl-modal-card {
  position: relative;
  width: min(92vw, 520px);
  max-height: 80vh;
  overflow: auto;
  margin: 8vh auto 0;
  background: #fff;
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.22);
}

.krl-modal-card h4 {
  margin: 0 0 14px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #111;
}

.krl-modal-content {
  color: #555;
  line-height: 1.75;
  font-size: 0.95rem;
}

.krl-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 0;
  background: #111;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
}

@media (max-width: 480px) {
  .krl-app {
    border-radius: 32px;
  }

  .krl-phone {
    border-radius: 32px;
    min-height: 730px;
  }

  .krl-brandrow {
    padding: 7px 10px;
  }

  .krl-step h3,
  .krl-success h3 {
    font-size: 2rem;
  }

  .krl-service-shell {
    grid-template-columns: 72px 1fr;
    min-height: 96px;
  }

  .krl-service-shell img {
    width: 72px;
    height: 72px;
  }
}
