:root {
  --bg: #f7fafc;
  --card: #ffffff;
  --muted: #6b7280;
  --brand: #0f766e;
  --accent: #064e3b;
  --success: #16a34a;
  --danger: #ef4444;
}

* {
  box-sizing: border-box;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg), #eef2f7);
  padding: 20px;
  color: #1e293b;
}

/* Main container */
.container {
  max-width: 880px;
  margin: 0 auto;
  background: var(--card);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 6px 28px rgba(15, 23, 42, 0.08);
}

/* Header */
header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.logo {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), #14532d);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 22px;
}

h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
}

p.lead {
  margin: 6px 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

/* Progress bar */
.progress-wrap {
  background: #e6eef0;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 20px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand), #047857);
  transition: width 0.35s ease;
}

/* Form layout */
form .row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

form .col {
  flex: 1;
}

label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e6eef3;
  background: #fbfdff;
  font-size: 15px;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.small {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

/* Chips / pilihan */
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.chip {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #e6eef3;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.chip:hover {
  border-color: var(--brand);
}

.chip.active {
  background: linear-gradient(90deg, var(--brand), #047857);
  color: #fff;
  border: 0;
}

/* Steps indicator */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 0 18px;
}

.step {
  background: #f8fafb;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  border: 1px solid #eef3f6;
  transition: all 0.2s ease;
}

.step.active {
  border-color: var(--brand);
  background: linear-gradient(180deg, #ecfdf5, #ffffff);
  font-weight: 600;
}

/* Buttons & Actions */
.actions {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.btn {
  padding: 12px 18px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--brand);
  color: white;
}

.btn.primary:hover {
  transform: scale(1.03);
  box-shadow: 0 3px 8px rgba(15, 118, 110, 0.25);
}

.btn.ghost {
  background: transparent;
  border: 1px solid #e6eef3;
}

.note {
  font-size: 13px;
  color: var(--muted);
}

/* File input */
.file-input {
  border: 1px dashed #e6eef3;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  background: #fbfdff;
}

.hide {
  display: none;
}

/* Footer */
footer {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px dashed #f1f5f9;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  body {
    padding: 16px;
  }

  .container {
    padding: 20px;
    border-radius: 12px;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .logo {
    width: 52px;
    height: 52px;
    font-size: 20px;
  }

  h1 {
    font-size: 18px;
  }

  p.lead {
    font-size: 14px;
  }

  form .row {
    flex-direction: column;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .note {
    text-align: center;
  }

  footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

.demo-section {
  margin-top: 20px;
  padding: 20px;
  background: #f8fff9;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  transition: box-shadow 0.3s ease;
}

.demo-section:hover {
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.08);
}

.demo-label {
  font-weight: 600;
  color: #166534;
  display: block;
  font-size: 1.1em;
  margin-bottom: 4px;
}

.demo-subtext {
  color: #16a34a;
  font-size: 0.9em;
  margin-bottom: 16px;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.demo-field label {
  display: block;
  color: #065f46;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.9em;
}

.demo-field input[type="date"],
.demo-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1fae5;
  border-radius: 8px;
  background: white;
  font-size: 0.95em;
  color: #065f46;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.demo-field input[type="date"]:focus,
.demo-field select:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}

.slot-info {
  margin-top: 6px;
  font-size: 0.85em;
  color: #16a34a;
}

.time-slot-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.time-slot {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #d1fae5;
  background: #ffffff;
  color: #065f46;
  font-size: 0.9em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.time-slot:hover {
  background: #dcfce7;
  border-color: #16a34a;
}

.time-slot.selected {
  background: #16a34a;
  color: white;
  border-color: #16a34a;
  font-weight: 600;
}

.time-slot.disabled {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
  text-decoration: line-through;
}
