:root {
  --blue-main: #0b3b5b;
  --blue-light: #e7f1fb;
  --grey-text: #555;
  --border-radius: 14px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: #f4f6f8;
  color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.wrapper {
  width: 100%;
  max-width: 720px;
  padding: 16px;
}
.carousel {
  background: #ffffff;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  padding: 18px 18px 14px;
}
.header-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #dde3ea;
  padding-bottom: 8px;
}
.logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blue-main);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 0.9rem;
}
.header-text { font-size: 0.9rem; line-height: 1.25; }
.header-text span { display: block; }
.header-text .title { font-weight: 700; color: var(--blue-main); }
.header-text .subtitle { color: var(--grey-text); font-size: 0.8rem; }

.progress-bar { margin: 10px 0 14px; }
.progress-label {
  font-size: 0.8rem;
  color: var(--grey-text);
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}
.progress-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #e2e6ec;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #0b3b5b, #1f6bb0);
  transition: width 0.25s ease-out;
}

.lead-import {
  background: #f7f9fd;
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 10px;
  border: 1px dashed #c3cce0;
}
.lead-import label {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}
.lead-import textarea {
  width: 100%;
  min-height: 40px;
  resize: vertical;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #d0d6dd;
  font-family: inherit;
  font-size: 0.85rem;
}
.lead-actions {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.slide { display: none; }
.slide.active { display: block; }
.slide-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-main);
  margin-bottom: 4px;
}
.slide-subtitle {
  font-size: 0.8rem;
  color: var(--grey-text);
  margin-bottom: 12px;
}
.slide-body { font-size: 0.95rem; line-height: 1.5; }

.field-group { margin-top: 10px; }
.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.field { flex: 1; min-width: 120px; }
label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 3px;
  font-weight: 600;
  color: #333;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
textarea,
select {
  width: 100%;
  padding: 7px 8px;
  border-radius: 8px;
  border: 1px solid #d0d6dd;
  font-family: inherit;
  font-size: 0.9rem;
}
textarea { min-height: 80px; resize: vertical; }

.options-column {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
  font-size: 0.9rem;
}
.options-column label { font-weight: 400; }

.help-text {
  font-size: 0.78rem;
  color: var(--grey-text);
  margin-top: 4px;
}

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  gap: 8px;
}
.btn-row {
  display: flex;
  gap: 8px;
  flex: 1;
  justify-content: flex-end;
}
button {
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.9rem;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.btn-secondary { background: #e3e7ef; color: #333; }
.btn-primary { background: var(--blue-main); color: #fff; }
button:disabled { opacity: 0.4; cursor: default; }

.footer-note { font-size: 0.75rem; color: var(--grey-text); }

.summary-block {
  background: var(--blue-light);
  border-radius: 10px;
  padding: 16px;
  font-size: 0.95rem;
  text-align: left;
  max-height: 800px;
  overflow-y: auto;
}
.summary-block h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--blue-main);
}
.summary-line { margin-bottom: 4px; }
.summary-label { font-weight: 600; }
.btn-small { padding: 6px 10px; font-size: 0.8rem; }

@media (max-width: 600px) {
  .carousel { padding: 14px 12px 12px; border-radius: 12px; }
  .header-bar { align-items: flex-start; }
  .logo { width: 40px; height: 40px; font-size: 0.8rem; }
  .slide-title { font-size: 1rem; }
  .slide-body { font-size: 0.9rem; }
  .footer-bar { flex-direction: column-reverse; align-items: flex-start; }
  .btn-row { width: 100%; justify-content: space-between; }
  button { flex: 1; justify-content: center; }
}

@media print {
  body {
    background: #ffffff;
  }
  .wrapper {
    max-width: 100%;
    padding: 0;
  }
  .carousel {
    box-shadow: none;
    padding: 0;
  }
  .summary-block {
    max-height: none;
    overflow: visible;
  }
}
