/* =======================================================
   CREATE SONG / STORY DNA WIZARD
======================================================= */

.song-wizard-shell {
  padding: 0;
  overflow: hidden;
}

.song-wizard-header {
  padding: 28px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  display: grid;
  gap: 18px;
}

.song-package-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,122,0,0.14);
  border: 1px solid rgba(255,122,0,0.34);
  color: #d95f00;
  font-size: 13px;
  font-weight: 800;
}

.song-progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.08);
  overflow: hidden;
}

.song-progress-fill {
  height: 100%;
  width: 0%;
  background: #ff7a00;
  transition: width 0.25s ease;
}

.song-step-label {
  margin: 0;
  color: #666666;
  font-size: 14px;
  font-weight: 700;
}

.song-step {
  display: none;
  padding: 32px;
}

.song-step.active {
  display: block;
}

.song-step h3 {
  margin-bottom: 12px;
  color: #ff7a00;
  font-weight: 900;
}

.song-step p {
  color: #333333;
  line-height: 1.7;
  margin-bottom: 26px;
}

/* =======================================================
   OCCASION IMAGE MAP
======================================================= */

.occasion-map-wrap {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.occasion-map-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.occasion-map-buttons {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(4, 1fr);
}

.occasion-map-buttons button {
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition:
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.occasion-map-buttons button:hover {
  box-shadow: inset 0 0 0 4px rgba(255,122,0,0.72);
  transform: scale(0.985);
}

.occasion-map-buttons button.selected {
  box-shadow: inset 0 0 0 5px rgba(255,122,0,0.95);
}

/* =======================================================
   STORY CHOICE CARDS
======================================================= */

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

.story-choice-card {
  min-height: 76px;
  padding: 18px 16px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #ffffff;
  color: #1f1f1f;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.story-choice-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,122,0,0.55);
  box-shadow: 0 14px 30px rgba(0,0,0,0.10);
}

.story-choice-card.selected {
  background: #ff7a00;
  border-color: #ff7a00;
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(255,122,0,0.28);
}

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

/* =======================================================
   FORM FIELDS
======================================================= */

.song-step .form-group {
  margin-bottom: 22px;
}

.song-step label {
  display: block;
  margin-bottom: 9px;
  color: #1f1f1f;
  font-weight: 800;
  font-size: 15px;
}

.song-step .form-control {
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.22);
  color: #111111;
  border-radius: 10px;
  min-height: 48px;
  padding: 11px 14px;
  font-size: 15px;
}

.song-step select.form-control {
  cursor: pointer;
}

.song-step textarea.form-control {
  min-height: 150px;
  resize: vertical;
  padding-top: 12px;
  line-height: 1.6;
}

.song-step .form-control:focus {
  border-color: #ff7a00;
  box-shadow: 0 0 0 3px rgba(255,122,0,0.18);
}

.field-hint {
  margin: 8px 0 0;
  color: #666666;
  font-size: 13px;
  line-height: 1.5;
}

/* =======================================================
   REVIEW / CONFIRMATION
======================================================= */

.request-review-box {
  padding: 24px;
  white-space: pre-wrap;
  line-height: 1.8;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  color: #111111;
  font-size: 15px;
}

.confirmation-box {
  padding: 38px;
  text-align: center;
}

.confirmation-box h3 {
  color: #ff7a00;
  margin-bottom: 14px;
}

.confirmation-box p {
  color: #333333;
  line-height: 1.7;
}

/* =======================================================
   ACTIONS / ALERTS
======================================================= */

.song-wizard-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding: 22px 32px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  background: #ffffff;
}

.song-wizard-actions-top {
  position: sticky;
  top: 0;
  z-index: 20;
}

.song-wizard-actions .btn {
  min-width: 140px;
}

#wizardAlert {
  margin: 24px 32px 0;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255,80,80,0.12);
  border: 1px solid rgba(255,80,80,0.34);
  color: #8a1f1f;
  font-weight: 700;
}

/* =======================================================
   RESPONSIVE
======================================================= */

@media screen and (max-width: 1100px) {
  .story-choice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 768px) {
  .song-step {
    padding: 22px;
  }

  .song-wizard-header {
    padding: 22px;
  }

  .story-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .song-direction-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .story-choice-card {
    min-height: 68px;
    padding: 15px 12px;
    font-size: 14px;
  }

  .song-wizard-actions {
    padding: 22px;
    justify-content: stretch;
  }

  .song-wizard-actions .btn {
    width: 100%;
  }

  #wizardAlert {
    margin: 18px 22px 0;
  }
}

@media screen and (max-width: 480px) {
  .story-choice-grid {
    grid-template-columns: 1fr;
  }

  .occasion-map-buttons button:hover {
    box-shadow: inset 0 0 0 3px rgba(255,122,0,0.72);
  }

  .occasion-map-buttons button.selected {
    box-shadow: inset 0 0 0 4px rgba(255,122,0,0.95);
  }
}
