/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:       #2a7a2a;
  --green-dark:  #1f5c1f;
  --green-light: #e8f5e8;
  --text:        #1a1a1a;
  --muted:       #666666;
  --border:      #e0e0e0;
  --hover-bg:    #f5f5f5;
  --white:       #ffffff;
  --radius:      10px;
  --shadow:      0 2px 12px rgba(0,0,0,.08);
  --transition:  .18s ease;
}

html { font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f7f8f7;
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ===== HEADER ===== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  text-align: center;
}
.logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -.5px;
}

/* ===== PROGRESS BAR ===== */
.progress-bar-wrap {
  background: var(--border);
  height: 4px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.progress-bar {
  background: var(--green);
  height: 100%;
  width: 20%;
  transition: width .35s ease;
}

/* ===== WIZARD CONTAINER ===== */
.wizard-container {
  max-width: 520px;
  margin: 0 auto;
  padding: 32px 16px 80px;
}

/* ===== STEP ===== */
.step { animation: fadeIn .22s ease; }
.step.hidden { display: none; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step-header { margin-bottom: 28px; }
.step-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
}
.step-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 6px;
}
.step-desc {
  font-size: .93rem;
  color: var(--muted);
}

/* ===== FIELDS ===== */
.fields { display: flex; flex-direction: column; gap: 20px; }

.field-group { display: flex; flex-direction: column; gap: 6px; }

.field-group label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
}
.optional {
  font-weight: 400;
  color: var(--muted);
  font-size: .82rem;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"] {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(42,122,42,.12);
}
input::placeholder { color: #b0b0b0; }

.hint {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ===== RADIO CARDS ===== */
.radio-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.radio-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--white);
  transition: border-color var(--transition), background var(--transition);
  user-select: none;
}
.radio-card input[type="radio"] { display: none; }
.radio-card:hover { background: var(--hover-bg); border-color: #b0b0b0; }
.radio-card:has(input:checked) {
  border-color: var(--green);
  background: var(--green-light);
}
.card-emoji { font-size: 1.8rem; line-height: 1; }
.card-label { font-size: .83rem; font-weight: 600; text-align: center; color: var(--text); }

/* ===== UPLOAD AREA ===== */
.upload-area {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--white);
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), background var(--transition);
  cursor: pointer;
}
.upload-area:hover { border-color: var(--green); background: var(--green-light); }
.upload-area.dragover { border-color: var(--green); background: var(--green-light); }

.upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  border: none;
  box-shadow: none;
  padding: 0;
}
.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}
.upload-icon { font-size: 1.8rem; }
.upload-text { font-size: .88rem; color: var(--muted); text-align: center; line-height: 1.4; }
.upload-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  width: 100%;
}
.upload-preview.hidden { display: none; }
.upload-preview img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.upload-preview #previewName {
  font-size: .82rem;
  color: var(--muted);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.remove-logo {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 1rem;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background var(--transition);
  z-index: 3;
  position: relative;
}
.remove-logo:hover { background: var(--hover-bg); color: #c00; }

/* ===== COLOR PICKER ===== */
.color-field {
  display: flex;
  align-items: center;
  gap: 12px;
}
input[type="color"] {
  width: 44px;
  height: 44px;
  padding: 2px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  background: var(--white);
  flex-shrink: 0;
}
.color-preview {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2a7a2a;
  border: 2px solid var(--border);
  flex-shrink: 0;
  transition: background .1s;
}
.color-value {
  font-size: .85rem;
  font-family: monospace;
  color: var(--muted);
}

/* ===== HERO PREVIEW ===== */
.hero-preview {
  position: relative;
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius);
  padding: 24px 20px 20px;
  margin-top: 4px;
  overflow: hidden;
}
.hero-preview-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
  background: rgba(255,255,255,.18);
  padding: 3px 8px;
  border-radius: 20px;
}
.hero-preview-slogan {
  font-size: .8rem;
  opacity: .8;
  margin-bottom: 6px;
  min-height: 1em;
}
.hero-preview-title {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
}
.hero-preview-sub {
  font-size: .85rem;
  opacity: .85;
  margin-bottom: 14px;
  min-height: 1em;
}
.hero-preview-cta {
  background: var(--white);
  color: var(--green);
  border: none;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: .88rem;
  font-weight: 700;
  cursor: default;
}

/* ===== TOGGLES ===== */
.toggle-row {
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}
.toggle-info { flex: 1; }
.toggle-label { display: block; font-size: .93rem; font-weight: 600; margin-bottom: 2px; }

.toggle-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #ccc;
  border-radius: 26px;
  transition: background var(--transition);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: transform var(--transition);
}
.toggle-switch input:checked + .toggle-slider { background: var(--green); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ===== INPUT WITH PREFIX ===== */
.input-prefix {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.input-prefix:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(42,122,42,.12);
}
.input-prefix span {
  padding: 0 12px;
  color: var(--muted);
  font-size: .95rem;
  background: var(--hover-bg);
  border-right: 1.5px solid var(--border);
  height: 100%;
  display: flex;
  align-items: center;
}
.input-prefix input {
  border: none !important;
  box-shadow: none !important;
  flex: 1;
}

/* ===== NAVIGATION BUTTONS ===== */
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  gap: 12px;
}

.btn-primary, .btn-secondary {
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), opacity var(--transition);
  border: none;
  outline: none;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  flex-shrink: 0;
}
.btn-primary:hover { background: var(--green-dark); box-shadow: 0 2px 8px rgba(42,122,42,.3); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }

.btn-secondary {
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { background: var(--hover-bg); color: var(--text); }

.btn-submit { min-width: 180px; position: relative; }
.hidden { display: none !important; }

/* ===== SUCCESS SCREEN ===== */
.success-screen {
  text-align: center;
  padding: 48px 16px;
  animation: fadeIn .3s ease;
}
.success-icon { font-size: 3.5rem; margin-bottom: 20px; }
.success-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
.success-text { font-size: 1rem; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }
.success-firma { font-size: .9rem; color: var(--muted); font-style: italic; }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #c00;
  color: var(--white);
  padding: 12px 22px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  animation: fadeIn .2s ease;
}

/* ===== VALIDATION ===== */
input.invalid { border-color: #c00 !important; }
.error-msg {
  font-size: .78rem;
  color: #c00;
  margin-top: 2px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .wizard-container { padding: 20px 12px 60px; }
  .step-title { font-size: 1.3rem; }
  .radio-cards { grid-template-columns: 1fr 1fr; gap: 8px; }
  .radio-card { padding: 12px 8px; }
  .btn-primary, .btn-secondary { padding: 12px 18px; font-size: .9rem; }
  .hero-preview { padding: 18px 14px 16px; }
  .hero-preview-title { font-size: 1.2rem; }
}
