body {
  min-height: 100vh;
  background: #f9f6f1;
  display: flex;
  flex-direction: column;
}

.q-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid #e0dbd3;
  background: #fff;
}

.q-header-brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: #111;
  text-decoration: none;
}

.q-header-brand span { color: #FF385C; }

.q-step-count {
  font-size: 0.8rem;
  color: #888;
  letter-spacing: 0.05em;
}

.q-progress-bar {
  height: 3px;
  background: #e0dbd3;
}

.q-progress-fill {
  height: 100%;
  background: #4d9090;
  transition: width 0.4s ease;
}

.q-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 24px;
}

.q-card {
  width: 100%;
  max-width: 620px;
}

/* Single-question styles */
.q-number {
  font-size: 0.75rem;
  color: #4d9090;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 600;
}

.q-question {
  font-family: Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #111;
  line-height: 1.35;
  margin-bottom: 8px;
}

.q-hint {
  font-size: 0.875rem;
  color: #888;
  margin-bottom: 36px;
  min-height: 1em;
}

.q-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.q-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1.5px solid #ddd8d0;
  border-radius: 10px;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.15s, background 0.15s;
  font-size: 0.95rem;
  color: #222;
  text-align: left;
  width: 100%;
}

.q-option:hover { border-color: #4d9090; }

.q-option.selected {
  border-color: #4d9090;
  background: #f0f7f7;
}

.q-option-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #ccc;
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s;
}

.q-option.selected .q-option-dot {
  background: #4d9090;
  border-color: #4d9090;
}

.q-textarea {
  width: 100%;
  min-height: 130px;
  padding: 16px;
  border: 1.5px solid #ddd8d0;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #222;
  resize: vertical;
  background: #fff;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s;
}

.q-textarea:focus { border-color: #4d9090; }
.q-textarea::placeholder { color: #aaa; }

/* Section styles */
.section-label {
  font-size: 0.75rem;
  color: #4d9090;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-heading {
  font-family: Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #111;
  line-height: 1.35;
  margin-bottom: 36px;
}

.section-subtext {
  font-size: 0.875rem;
  color: #999;
  line-height: 1.55;
  margin-top: -20px;
  margin-bottom: 32px;
}

.section-fields {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.field-block { display: flex; flex-direction: column; gap: 10px; }

.field-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #555;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Pill group */
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  padding: 8px 16px;
  border: 1.5px solid #ddd8d0;
  border-radius: 999px;
  background: #fff;
  font-size: 0.875rem;
  color: #333;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  white-space: nowrap;
}

.pill:hover { border-color: #4d9090; }

.pill.selected {
  border-color: #4d9090;
  background: #4d9090;
  color: #fff;
}

/* Shared text input */
.field-text-input {
  padding: 12px 16px;
  border: 1.5px solid #ddd8d0;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #222;
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
  box-sizing: border-box;
}

.field-text-input:focus { border-color: #4d9090; }
.field-text-input::placeholder { color: #aaa; }

/* Job input */
.job-input-wrapper { display: flex; flex-direction: column; gap: 10px; }

.prefer-not-to-say {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1.5px solid #ddd8d0;
  border-radius: 999px;
  background: #fff;
  font-size: 0.85rem;
  color: #888;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  width: fit-content;
}

.prefer-not-to-say:hover { border-color: #bbb; color: #555; }

.prefer-not-to-say.active {
  border-color: #4d9090;
  background: #4d9090;
  color: #fff;
}

.job-text-input:disabled {
  background: #f5f3f0;
  color: #bbb;
  cursor: not-allowed;
}

/* Autocomplete */
.autocomplete-wrapper { position: relative; }

.autocomplete-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid #ddd8d0;
  border-radius: 10px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 200;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.autocomplete-dropdown.open { display: block; }

.autocomplete-option {
  display: block;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid #f0ede8;
  cursor: pointer;
  font-size: 0.9rem;
  color: #222;
}

.autocomplete-option:last-child { border-bottom: none; }
.autocomplete-option:hover { background: #f0f7f7; color: #4d9090; }

/* Dynamic course list */
.course-entry {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.course-entry-inputs {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.course-remove {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1.5px solid #ddd8d0;
  border-radius: 50%;
  background: #fff;
  color: #aaa;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, color 0.15s;
  line-height: 1;
}

.course-remove:hover { border-color: #c0392b; color: #c0392b; }

.add-course-btn {
  background: none;
  border: none;
  color: #4d9090;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 6px;
}

.add-course-btn:hover { color: #3d7878; }

/* Conditional field */
.conditional-field {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.2s ease;
}

.conditional-field.visible {
  max-height: 200px;
  opacity: 1;
}

.field-textarea {
  width: 100%;
  min-height: 100px;
  padding: 14px 16px;
  border: 1.5px solid #ddd8d0;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #222;
  resize: vertical;
  background: #fff;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s;
}

.field-textarea:focus { border-color: #4d9090; }
.field-textarea::placeholder { color: #aaa; }

/* Nav */
.q-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
}

.q-back {
  background: none;
  border: none;
  color: #888;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 10px 0;
}

.q-back:hover { color: #333; }

.q-next {
  background: #4d9090;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}

.q-next:hover { background: #3d7878; }
.q-next:disabled { opacity: 0.4; cursor: default; }

.q-submit-error {
  color: #c0392b;
  font-size: 0.85rem;
  margin: 0 0 12px;
}

/* Done screen */
.q-done {
  text-align: center;
  display: none;
}

.q-done-icon {
  font-size: 3rem;
  margin-bottom: 24px;
}

.q-done h2 {
  font-family: Georgia, serif;
  font-size: 2rem;
  color: #111;
  margin-bottom: 12px;
}

.q-done p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 420px;
  margin: 0 auto 32px;
}

.q-done-home {
  display: inline-block;
  color: #4d9090;
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid #4d9090;
}
