/* ============================================
   MELOGRAM — create.css
   Wizard-specific styles. Extends styles.css.
   ============================================ */

.create-body {
  background: #FEF8FA;
}

/* Nav "back to home" pill sits where the primary CTA usually does.
   Override the .btn-outline width: 100% (it's designed for cards). */
.nav-back-cta {
  width: auto;
  flex-shrink: 0;
  padding: 10px 20px;
  font-size: 0.88rem;
}

/* ── WIZ HEADER ── */

.wiz-header {
  padding: 56px 40px 20px;
  text-align: center;
  background: #FEF8FA;
  position: relative;
}

.wiz-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 480px;
  height: 300px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(212, 20, 90, 0.07), transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.wiz-header-inner {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  z-index: 1;
}

.wiz-title {
  font-family: "brushberry-script", sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.1;
  color: var(--char);
  font-weight: 400;
  margin: 8px 0 10px;
}

.wiz-title em {
  color: var(--pink);
  font-style: normal;
}

.wiz-sub {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 32px;
}

/* ── PROGRESS ── */

.wiz-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 700px;
  margin: 0 auto;
  flex-wrap: nowrap;
}

.wiz-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  font-family: 'Poppins', sans-serif;
  flex-shrink: 0;
  transition: opacity 0.2s;
  opacity: 0.55;
}

.wiz-step:disabled {
  cursor: not-allowed;
}

.wiz-step.is-active,
.wiz-step.is-done {
  opacity: 1;
}

.wiz-step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: 2px solid rgba(212, 20, 90, 0.18);
  color: var(--pink);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}

.wiz-step.is-active .wiz-step-num {
  background: var(--pink);
  color: white;
  border-color: var(--pink);
  box-shadow: 0 10px 24px rgba(212, 20, 90, 0.30);
  transform: scale(1.05);
}

.wiz-step.is-done .wiz-step-num {
  background: var(--pink-pale);
  color: var(--pink);
  border-color: var(--pink);
}

.wiz-step.is-done .wiz-step-num::after {
  content: '✓';
  font-size: 1rem;
}

.wiz-step.is-done .wiz-step-num > span,
.wiz-step.is-done .wiz-step-num {
  font-size: 0;
}

.wiz-step.is-done .wiz-step-num::after {
  font-size: 1rem;
}

.wiz-step-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.wiz-step.is-active .wiz-step-label {
  color: var(--char);
}

.wiz-step-bar {
  flex: 1;
  height: 3px;
  background: rgba(212, 20, 90, 0.12);
  border-radius: 999px;
  margin: 0 4px;
  position: relative;
  overflow: hidden;
  max-width: 120px;
  align-self: flex-start;
  margin-top: 20px;
}

.wiz-step-bar-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--pink), var(--pink-light));
  transition: width 0.5s ease;
}

.wiz-counter {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 18px;
  font-weight: 500;
}

/* ── MAIN ── */

.wiz-main {
  padding: 30px 40px 80px;
}

.wiz-form {
  max-width: 1040px;
  margin: 0 auto;
  background: white;
  border-radius: 28px;
  padding: 48px;
  box-shadow:
    0 2px 0 rgba(212, 20, 90, 0.08),
    0 12px 48px rgba(212, 20, 90, 0.10),
    0 2px 8px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(212, 20, 90, 0.06);
}

.wiz-panel {
  display: none;
  animation: wiz-fade 0.4s ease;
}

.wiz-panel.is-active {
  display: block;
}

@keyframes wiz-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.wiz-panel-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
}

.wiz-panel-copy {
  position: sticky;
  top: 90px;
}

.wiz-panel-copy .step-num {
  margin-bottom: 14px;
}

.wiz-step-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.wiz-step-counter {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(212, 20, 90, 0.08);
  border: 1px solid rgba(212, 20, 90, 0.18);
  padding: 4px 12px;
  border-radius: 999px;
}

.wiz-step-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.wiz-panel-copy h2 {
  font-family: "brushberry-script", sans-serif;
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 400;
  color: var(--char);
  letter-spacing: 0;
  line-height: 1.1;
  margin-bottom: 12px;
}

.wiz-panel-copy p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 22px;
}

.wiz-panel-art {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(60, 20, 60, 0.10);
}

.wiz-panel-art-img {
  display: block;
  width: 100%;
  height: auto;
}

.wiz-panel-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── FORM FIELDS ── */

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

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--char);
  letter-spacing: 0.01em;
}

.field-label--section {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-top: 10px;
  margin-bottom: 2px;
  display: inline-block;
}

.req {
  color: var(--pink);
  font-weight: 700;
}

.opt {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.78rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="number"],
.field textarea,
.select-wrap select {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  color: var(--char);
  background: #FFF9FB;
  border: 1.5px solid rgba(212, 20, 90, 0.14);
  border-radius: 14px;
  padding: 13px 16px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
  width: 100%;
  font-weight: 500;
}

.field textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.55;
  font-family: 'Poppins', sans-serif;
}

.field input:focus,
.field textarea:focus,
.select-wrap select:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(212, 20, 90, 0.10);
  background: white;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  font-weight: 400;
}

/* Number inputs: constrain width so they don't stretch full row */
.field input[type="number"] {
  width: 140px;
  -moz-appearance: textfield;
}

.field input[type="number"]::-webkit-outer-spin-button,
.field input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Inline layout: e.g. number input + "I'm not sure" checkbox side by side */
.field-inline {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  padding: 8px 12px;
  border-radius: 10px;
  transition: background 0.15s ease;
}

.inline-check--stacked {
  margin-top: 4px;
  margin-bottom: 2px;
}

.inline-check:hover {
  background: var(--pink-pale, #FFF0F5);
}

.inline-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--pink);
  cursor: pointer;
  margin: 0;
}

.field-hint {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
  font-style: italic;
}

.relationship-clarifier {
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff7fb 0%, #fff2f8 100%);
  border: 1.5px solid rgba(212, 20, 90, 0.18);
  box-shadow: 0 6px 18px rgba(212, 20, 90, 0.08);
}

.relationship-clarifier-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--char);
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.relationship-clarifier-check input[type="checkbox"] {
  width: 19px;
  height: 19px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--pink);
  cursor: pointer;
}

.relationship-clarifier-hint {
  display: block;
  margin-top: 8px;
  color: var(--pink);
  font-size: 0.82rem;
  font-weight: 600;
}

.relationship-clarifier-note {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.field-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.field-count {
  flex-shrink: 0;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
}

.field-error {
  font-size: 0.78rem;
  color: var(--pink);
  font-weight: 600;
  display: none;
  margin-top: 2px;
}

.field-error.is-visible {
  display: block;
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: var(--pink);
  background: #FFF0F5;
}

/* Select arrow */
.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--pink);
  border-bottom: 2px solid var(--pink);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  cursor: pointer;
}

/* ── CARD TEMPLATES ── */

.card-template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card-template-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 2px solid rgba(212, 20, 90, 0.12);
  border-radius: 22px;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.card-template-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.card-template-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 20, 90, 0.35);
  box-shadow: 0 8px 22px rgba(212, 20, 90, 0.10);
}

.card-template-card.is-selected {
  border-color: var(--pink);
  box-shadow: 0 10px 24px rgba(212, 20, 90, 0.14);
}

.card-template-card.is-selected::after {
  content: '✓';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pink);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
}

.card-template-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(212, 20, 90, 0.08);
  background: #fff7fa;
}

.card-template-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-template-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--char);
  line-height: 1.35;
}

/* ── GENRE CARDS ── */

.genre-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.genre-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 10px;
  background: white;
  border: 2px solid rgba(212, 20, 90, 0.12);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s, background 0.2s;
  gap: 4px;
}

.genre-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.genre-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 20, 90, 0.35);
  box-shadow: 0 6px 18px rgba(212, 20, 90, 0.10);
}

.genre-card.is-selected {
  border-color: var(--pink);
  background: linear-gradient(155deg, #FFF0F5 0%, #FFFAFC 100%);
  box-shadow: 0 8px 24px rgba(212, 20, 90, 0.18);
}

.genre-card.is-selected::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 10px;
  width: 20px;
  height: 20px;
  background: var(--pink);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.genre-emoji {
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 6px;
}

.genre-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--char);
}

.genre-desc {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.3;
  margin-top: 2px;
}

/* ── MOOD SLIDER ── */

.mood-block {
  margin-top: 12px;
}

.mood-slider-wrap {
  background: var(--pink-pale);
  padding: 22px 22px 18px;
  border-radius: 18px;
  margin-top: 8px;
  border: 1px solid rgba(212, 20, 90, 0.10);
}

.mood-slider-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.mood-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #FFB86C 0%,
    var(--pink-light) 50%,
    var(--purple-soft) 100%
  );
  outline: none;
  cursor: pointer;
}

.mood-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--pink);
  box-shadow: 0 4px 12px rgba(212, 20, 90, 0.30);
  cursor: grab;
  transition: transform 0.15s;
}

.mood-slider::-webkit-slider-thumb:active {
  transform: scale(1.1);
  cursor: grabbing;
}

.mood-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--pink);
  box-shadow: 0 4px 12px rgba(212, 20, 90, 0.30);
  cursor: grab;
}

.mood-slider-stops {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  padding: 0 3px;
}

.mood-slider-stops span {
  width: 2px;
  height: 6px;
  background: rgba(212, 20, 90, 0.22);
  border-radius: 999px;
}

.mood-readout {
  margin-top: 10px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--char);
  font-weight: 600;
  font-style: italic;
}

/* ── SNIPPET PREVIEW ── */

.snippet-block {
  margin-top: 20px;
}

.snippet-caption {
  font-size: 0.84rem;
  color: var(--text);
  line-height: 1.5;
  margin: 4px 0 14px;
}

.snippet-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.snippet-card {
  display: flex;
  background: #FFFAFB;
  border: 1px solid rgba(212, 20, 90, 0.10);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.snippet-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 20, 90, 0.10);
}

.snippet-thumb {
  width: 80px;
  min-width: 80px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.snippet-body {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.snippet-title {
  font-family: "brushberry-script", sans-serif;
  font-size: 1.1rem;
  color: var(--char);
  margin-bottom: 8px;
  line-height: 1;
}

.snippet-card .audio-player {
  margin-bottom: 6px;
  padding: 5px 10px;
}

.snippet-card .ex-genre {
  margin-bottom: 0;
  font-size: 0.72rem;
}

/* ── TIER CARDS ── */

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.tier-card {
  position: relative;
  background: white;
  border: 2px solid rgba(212, 20, 90, 0.10);
  border-radius: 18px;
  padding: 22px 20px 46px; /* extra bottom padding for the selected checkmark */
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 8px rgba(60, 20, 60, 0.04);
  min-width: 0; /* so content never forces the grid column wider than 1fr */
}

.tier-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tier-card:hover {
  border-color: rgba(212, 20, 90, 0.30);
  box-shadow: 0 6px 18px rgba(212, 20, 90, 0.08);
}

/* Selected: thicker pink border, pink tier-name, and a bottom-right checkmark.
   Padding compensates for the 1px extra border to prevent any layout shift. */
.tier-card.is-selected {
  border-color: var(--pink);
  border-width: 3px;
  padding: 21px 19px 45px;
  box-shadow: 0 4px 14px rgba(212, 20, 90, 0.10);
}

.tier-card.is-selected .tier-name {
  color: var(--pink);
}

.tier-card.is-selected::after {
  content: '✓';
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 26px;
  height: 26px;
  background: var(--pink);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(212, 20, 90, 0.32);
}

.tier-card--featured {
  background: linear-gradient(155deg, #2e163a 0%, #1a0c25 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 10px 26px rgba(40, 10, 50, 0.30);
}

.tier-card--featured:hover {
  box-shadow: 0 14px 32px rgba(40, 10, 50, 0.38);
}

.tier-card--featured .tier-name {
  color: rgba(255, 255, 255, 0.55);
}

.tier-card--featured .tier-price {
  color: white;
}

.tier-card--featured .tier-desc {
  color: rgba(255, 255, 255, 0.55);
}

.tier-card--featured .tier-features li {
  color: rgba(255, 255, 255, 0.82);
}

.tier-card--featured.is-selected {
  border-color: var(--pink);
  border-width: 3px;
  padding: 21px 19px 45px;
  background: linear-gradient(155deg, #2e163a 0%, #1a0c25 100%);
  box-shadow: 0 12px 30px rgba(40, 10, 50, 0.40);
}

.tier-card--featured.is-selected .tier-name {
  color: #FF7BAA;
}

.tier-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pink);
  color: white;
  font-size: 0.64rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.tier-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 10px;
}

.tier-name {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pink);
}

.tier-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--char);
  letter-spacing: -0.03em;
  line-height: 1;
}

.tier-price span {
  font-size: 0.82rem;
  font-weight: 500;
  vertical-align: super;
  margin-right: 1px;
}

.tier-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 14px;
}

.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.tier-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.45;
}

.tier-features li::before {
  content: '✓';
  font-size: 0.72rem;
  font-weight: 800;
  color: white;
  background: var(--pink);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 2px 6px rgba(212, 20, 90, 0.28);
}

.tier-card--featured .tier-features li::before {
  background: linear-gradient(135deg, #FF5C94, var(--pink));
  color: white;
  box-shadow: 0 2px 8px rgba(212, 20, 90, 0.5);
}

.tier-features li {
  position: relative;
  display: block;
  padding-left: 32px;
  min-height: 24px;
}

.tier-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: -1px;
  width: 24px;
  height: 24px;
  margin-top: 0;
}

.tier-features li::after {
  content: var(--feature-symbol, '•');
  position: absolute;
  left: 0;
  top: -1px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}

.tier-features li[data-feature-icon="music"] { --feature-symbol: '♪'; }
.tier-features li[data-feature-icon="edit"] { --feature-symbol: '✎'; }
.tier-features li[data-feature-icon="star"] { --feature-symbol: '☆'; }
.tier-features li[data-feature-icon="share"] { --feature-symbol: '↗'; }
.tier-features li[data-feature-icon="download"] { --feature-symbol: '↓'; }
.tier-features li[data-feature-icon="heart"] { --feature-symbol: '♡'; }
.tier-features li[data-feature-icon="card"] { --feature-symbol: '▣'; }

/* ── SUMMARY CARD ── */

.summary-block {
  margin-top: 12px;
}

.summary-card {
  background: var(--pink-pale);
  border: 1px solid rgba(212, 20, 90, 0.14);
  border-radius: 18px;
  padding: 20px 22px;
  margin-top: 6px;
}

.summary-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(212, 20, 90, 0.14);
  font-size: 0.86rem;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row dt {
  font-weight: 600;
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.7rem;
}

.summary-row dd {
  color: var(--char);
  line-height: 1.5;
  margin: 0;
  word-break: break-word;
}

.summary-row dd.is-empty {
  color: var(--muted);
  font-style: italic;
}

/* ── DELIVERY ── */

.delivery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.delivery-card {
  position: relative;
  background: white;
  border: 2px solid rgba(212, 20, 90, 0.12);
  border-radius: 16px;
  padding: 18px 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.delivery-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.delivery-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 20, 90, 0.30);
  box-shadow: 0 6px 18px rgba(212, 20, 90, 0.10);
}

.delivery-card.is-selected {
  border-color: var(--pink);
  background: linear-gradient(155deg, #FFF0F5 0%, #FFFAFC 100%);
  box-shadow: 0 8px 22px rgba(212, 20, 90, 0.16);
}

.delivery-emoji {
  font-size: 1.6rem;
  line-height: 1;
}

.delivery-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--char);
}

.delivery-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.recipient-email-wrap {
  animation: wiz-fade 0.3s ease;
}

/* ── WIZARD NAV BUTTONS ── */

.wiz-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px 16px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(212, 20, 90, 0.10);
}

.wiz-nav-spacer {
  display: none;
}

/* Back button — outlined style on the left */
.wiz-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--pink);
  border: 2px solid rgba(212, 20, 90, 0.25);
  padding: 12px 22px;
  border-radius: 100px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  grid-column: 1;
  justify-self: start;
}

.wiz-back-link svg {
  width: 16px;
  height: 16px;
}

.wiz-back-link:hover {
  border-color: var(--pink);
  background: rgba(212, 20, 90, 0.05);
}

/* Primary button on the right */
.wiz-next,
.wiz-submit {
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  grid-column: 3;
  justify-self: end;
}

.wiz-next-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* "Save your progress automatically" line — sits beneath, centered under the button */
.wiz-save-note {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  grid-column: 1 / -1;
  margin-top: 2px;
}

.wiz-save-note svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Hidden back button shouldn't reserve space */
.wiz-nav .wiz-back-link[hidden] {
  display: none;
}

/* .btn-primary uses display: inline-flex which beats [hidden]'s default
   display: none. Force the native hidden behaviour back. */
.wiz-nav [hidden] {
  display: none !important;
}

.wiz-form.is-busy {
  opacity: 0.7;
}

.wiz-feedback {
  max-width: 1040px;
  margin: 24px auto 0;
}

.wiz-feedback[hidden] {
  display: none;
}

.wiz-feedback-card {
  background: white;
  border-radius: 28px;
  padding: 36px 34px;
  box-shadow:
    0 2px 0 rgba(212, 20, 90, 0.08),
    0 12px 48px rgba(212, 20, 90, 0.10),
    0 2px 8px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(212, 20, 90, 0.08);
}

.wiz-feedback-card h2 {
  font-family: "brushberry-script", sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 400;
  color: var(--char);
  margin: 10px 0 10px;
}

.wiz-feedback-card p {
  color: var(--text);
  line-height: 1.6;
}

.wiz-feedback-order {
  margin: 14px 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--pink);
}

/* Legacy lyric-preview controls are no longer used on the create page.
   Keep the loading card clean while review.html handles actions. */
.wiz-feedback-meta,
.wiz-song-card,
.wiz-feedback-actions {
  display: none !important;
}

.wiz-feedback-meta {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--pink-pale);
  font-size: 0.9rem;
  color: var(--char);
}

.wiz-song-card {
  margin-top: 22px;
  border: 1px solid rgba(212, 20, 90, 0.12);
  border-radius: 22px;
  background: linear-gradient(180deg, #fffafc 0%, #ffffff 100%);
  overflow: hidden;
}

.wiz-song-card-head {
  padding: 22px 24px 14px;
  border-bottom: 1px solid rgba(212, 20, 90, 0.10);
}

.wiz-song-kicker {
  margin: 0 0 6px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink);
}

.wiz-song-title {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.15;
  color: var(--char);
}

.wiz-song-sections {
  display: grid;
  gap: 0;
}

.wiz-song-section {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 18px;
  padding: 18px 24px;
  border-top: 1px dashed rgba(212, 20, 90, 0.12);
}

.wiz-song-section:first-child {
  border-top: none;
}

.wiz-song-section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink);
}

.wiz-song-lines p {
  margin: 0 0 10px;
  color: var(--char);
  line-height: 1.7;
}

.wiz-song-lines p:last-child {
  margin-bottom: 0;
}

.wiz-feedback-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 22px;
}

.wiz-feedback-actions .btn-outline {
  width: auto;
  padding: 11px 22px;
}

/* ── OVERLAYS ── */

.wiz-overlay,
.wiz-success {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(30, 10, 35, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: wiz-fade 0.3s ease;
}

.wiz-overlay[hidden],
.wiz-success[hidden] {
  display: none;
}

.wiz-overlay-card,
.wiz-success-card {
  background: white;
  border-radius: 28px;
  padding: 44px 40px;
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(30, 10, 40, 0.30);
  position: relative;
  overflow: hidden;
}

.wiz-overlay-card::before,
.wiz-success-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #D4145A, #FF6B9D, #D4145A);
}

.wiz-overlay-bird img,
.wiz-success-bird img {
  width: 150px;
  height: auto;
  display: block;
  margin: 0 auto 14px;
}

.wiz-overlay-card h2,
.wiz-success-card h2 {
  font-family: "brushberry-script", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--char);
  font-weight: 400;
  margin: 6px 0 10px;
}

.wiz-success-card h2 em {
  color: var(--pink);
  font-style: normal;
}

.wiz-overlay-card p,
.wiz-success-card p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 18px;
}

.wiz-overlay-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 44px;
  margin-top: 16px;
}

.wiz-overlay-wave .wb {
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff84b2 0%, #d4145a 100%);
  animation: wa 1.2s ease-in-out infinite;
}

.wiz-success-summary {
  background: var(--pink-pale);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 4px 0 20px;
  text-align: left;
  font-size: 0.86rem;
  color: var(--char);
  line-height: 1.6;
}

.wiz-success-summary strong {
  color: var(--pink);
}

.wiz-success-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.wiz-success-actions .btn-outline {
  width: auto;
  padding: 11px 22px;
}

.wiz-success-note {
  margin-top: 18px;
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
}

/* ============================================
   RESPONSIVE — TABLET (max 980px)
   ============================================ */

@media (max-width: 980px) {
  .wiz-form {
    padding: 32px 28px;
  }

  .wiz-panel-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .wiz-panel-copy {
    position: static;
  }

  .wiz-panel-art {
    max-width: 320px;
  }

  .genre-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .tier-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tier-card--featured {
    order: -1;
  }
}

/* ============================================
   RESPONSIVE — MOBILE (max 700px)
   ============================================ */

@media (max-width: 700px) {
  .wiz-header {
    padding: 36px 20px 16px;
  }

  .wiz-title {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }

  .wiz-sub {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }

  /* Compact progress on mobile */
  .wiz-progress {
    max-width: 100%;
    padding: 0 4px;
  }

  .wiz-step-label {
    display: none;
  }

  .wiz-step-num {
    width: 36px;
    height: 36px;
    font-size: 0.78rem;
  }

  .wiz-step-bar {
    max-width: none;
    margin-top: 16px;
  }

  .wiz-main {
    padding: 16px 16px 60px;
  }

  .wiz-form {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .genre-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .card-template-grid {
    grid-template-columns: 1fr;
  }

  .genre-card {
    padding: 14px 8px;
  }

  .genre-emoji {
    font-size: 1.5rem;
  }

  .snippet-list {
    grid-template-columns: 1fr;
  }

  .delivery-grid {
    grid-template-columns: 1fr;
  }

  .field-meta-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .summary-row {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 8px 0;
  }

  .wiz-nav {
    flex-direction: column;
    gap: 10px;
    margin-top: 28px;
    padding-top: 20px;
  }

  .wiz-nav > * {
    width: 100%;
  }

  .wiz-next,
  .wiz-submit {
    justify-content: center;
  }

  .nav-back-cta {
    display: none;
  }

  .wiz-overlay-card,
  .wiz-success-card {
    padding: 32px 22px;
  }

  .wiz-overlay-bird img,
  .wiz-success-bird img {
    width: 120px;
  }

  .wiz-feedback-card {
    padding: 28px 20px;
  }

  .wiz-song-section {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 18px;
  }

  .wiz-feedback-actions {
    flex-direction: column;
  }

  .wiz-feedback-actions > * {
    width: 100%;
  }
}

/* ============================================
   WIZ SECTIONS (step-1 + step-2 subsections)
   ============================================ */

.wiz-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 22px;
  border-bottom: 1px dashed rgba(212, 20, 90, 0.14);
}

.wiz-section:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}

.wiz-section + .wiz-section {
  padding-top: 6px;
}

.wiz-section .field-label--section {
  margin-bottom: 6px;
}

.wiz-optional-details {
  border: 1px solid rgba(212, 20, 90, 0.14);
  border-radius: 18px;
  padding: 0;
  background: #fff9fb;
}

.wiz-optional-details:last-child {
  padding-bottom: 0;
}

.wiz-optional-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}

.wiz-optional-details summary::-webkit-details-marker {
  display: none;
}

.wiz-optional-details summary::after {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #fff0f5;
  color: var(--pink);
  font-weight: 800;
  line-height: 1;
}

.wiz-optional-details[open] summary::after {
  content: '-';
}

.wiz-optional-summary-copy {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
}

.wiz-optional-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 20px 22px;
}

/* Chip-card radio groups */

.chip-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.chip-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 18px 14px 16px;
  border: 2px solid var(--border, #E6DDE8);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.chip-card:hover {
  border-color: var(--pink);
  transform: translateY(-1px);
}

.chip-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip-card:has(input[type="radio"]:checked) {
  border-color: var(--pink);
  background: var(--pink-pale, #FFF0F6);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02), 0 0 0 3px rgba(220, 38, 99, 0.08);
}

.chip-card:focus-within {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}

.chip-emoji {
  font-size: 26px;
  line-height: 1;
  margin-bottom: 2px;
}

.chip-name {
  font-weight: 600;
  color: #2A2230;
  font-size: 0.95rem;
}

.chip-desc {
  font-size: 0.8rem;
  color: #6B6373;
  line-height: 1.3;
}

.tone-field {
  gap: 8px;
}

.tone-chip-group {
  gap: 12px;
  margin-top: 8px;
}

.tone-card {
  min-height: 132px;
  justify-content: center;
  gap: 5px;
  padding: 18px 14px 16px;
  border: 1px solid rgba(212, 20, 90, 0.16);
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}

.tone-card:hover {
  border-color: rgba(212, 20, 90, 0.38);
  background: #fffafb;
  transform: translateY(-1px);
}

.tone-card:has(input[type="radio"]:checked) {
  border-color: var(--pink);
  background: linear-gradient(180deg, #fff9fb 0%, #fff0f6 100%);
  box-shadow: inset 0 0 0 1px rgba(212, 20, 90, 0.16);
}

.tone-card:has(input[type="radio"]:checked)::after {
  content: '✓';
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
}

.tone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin: 0 0 6px;
  border-radius: 50%;
  background: #fff0f6;
  color: #19163d;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
}

.tone-icon--heart {
  font-size: 1.48rem;
  padding-bottom: 2px;
}

.tone-icon--mix {
  color: #19163d;
  font-size: 1.2rem;
  letter-spacing: -0.14em;
}

.tone-card .chip-name {
  color: #19163d;
  font-size: 0.98rem;
  font-weight: 800;
}

.tone-card .chip-desc {
  color: #5f5a78;
  font-size: 0.82rem;
}

@media (max-width: 560px) {
  .chip-group {
    grid-template-columns: 1fr;
  }
  .chip-card {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    padding: 12px 14px;
    gap: 12px;
  }
  .chip-card .chip-desc {
    margin-left: auto;
  }

  .tone-card {
    min-height: 0;
    align-items: center;
    padding: 12px 14px;
  }

  .tone-icon {
    width: 42px;
    height: 42px;
    margin: 0;
    font-size: 1.2rem;
  }

  .tone-icon--heart {
    font-size: 1.24rem;
    padding-bottom: 1px;
  }

  .tone-card:has(input[type="radio"]:checked)::after {
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
  }

}
