:root {
  --aaf-bg: #fffaf7;
  --aaf-surface: #ffffff;
  --aaf-surface-2: #fff4ec;
  --aaf-text: #1f2937;
  --aaf-muted: #6b7280;
  --aaf-border: #f1d8c8;
  --aaf-accent: #ef7d57;
  --aaf-accent-soft: #fff1ea;
  --aaf-shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
}

.aaf-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  color: var(--aaf-text);
}

.aaf-panel {
  background: linear-gradient(180deg, #fff, #fffaf7);
  border: 1px solid var(--aaf-border);
  border-radius: 28px;
  box-shadow: var(--aaf-shadow);
  padding: 22px;
}

.aaf-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.aaf-eyebrow {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--aaf-accent-soft);
  border: 1px solid #ffd0bb;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.aaf-header h2 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.1;
}

.aaf-header p,
.aaf-progress-card span,
.aaf-step-head span { color: var(--aaf-muted); }

.aaf-progress-card {
  min-width: 220px;
  background: var(--aaf-surface);
  border: 1px solid var(--aaf-border);
  border-radius: 22px;
  padding: 18px;
}

.aaf-progress {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 24px;
}

.aaf-progress-step {
  height: 10px;
  border-radius: 999px;
  background: #f4e4db;
  text-indent: -9999px;
  overflow: hidden;
}

.aaf-progress-step.is-active,
.aaf-progress-step.is-done {
  background: var(--aaf-accent);
}

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

.aaf-step-head { margin-bottom: 18px; }
.aaf-step-head h3 { margin: 6px 0 0; font-size: 24px; }

.aaf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.aaf-field,
.aaf-field .aaf-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aaf-field-wide { grid-column: 1 / -1; }

.aaf-label,
.aaf-field label { font-weight: 600; }

.aaf-field input[type="text"],
.aaf-field input[type="email"],
.aaf-field input[type="number"],
.aaf-field select,
.aaf-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--aaf-border);
  background: #fff;
  box-sizing: border-box;
}

.aaf-field textarea {
  min-height: 130px;
  resize: vertical;
}

.aaf-choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.aaf-choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--aaf-border);
  cursor: pointer;
}

.aaf-choice input { margin: 0; }

.aaf-schedule {
  display: grid;
  gap: 12px;
}

.aaf-schedule-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px;
  align-items: start;
}

.aaf-choice-day {
  justify-content: flex-start;
}

.aaf-schedule-time {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: var(--aaf-accent-soft);
  border: 1px solid var(--aaf-border);
}

.aaf-schedule-time .aaf-field label {
  font-size: 12px;
}

.aaf-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.aaf-btn {
  min-height: 50px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--aaf-border);
  cursor: pointer;
  font-weight: 600;
}

.aaf-btn-primary {
  background: var(--aaf-accent);
  color: #fff;
  border-color: var(--aaf-accent);
}

.aaf-btn-primary:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.aaf-btn-secondary {
  background: #fff;
  color: var(--aaf-text);
}

.aaf-submit-btn { display: none; }
.aaf-form.is-last-step .aaf-submit-btn { display: inline-flex; }
.aaf-form.is-last-step [data-step-next] { display: none; }
.aaf-form:not(.is-first-step) [data-step-prev] { opacity: 1; pointer-events: auto; }
.aaf-form.is-first-step [data-step-prev] { opacity: .45; pointer-events: none; }

.aaf-notice {
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.aaf-notice-success { background: #ecfdf5; border: 1px solid #a7f3d0; }
.aaf-notice-error { background: #fef2f2; border: 1px solid #fecaca; }

.aaf-admin-card {
  background: #fff;
  border: 1px solid var(--aaf-border);
  border-radius: 20px;
  padding: 20px;
  max-width: 900px;
}

@media (max-width: 767px) {
  .aaf-header { flex-direction: column; }
  .aaf-progress { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .aaf-grid { grid-template-columns: 1fr; }
  .aaf-actions { flex-direction: column; }
  .aaf-btn { width: 100%; justify-content: center; }
  .aaf-schedule-row { grid-template-columns: 1fr; }
  .aaf-schedule-time { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
