/* JulyLearn Site V12.95 · Feedback Foundation */
.feedback-page {
  background: #f5f6f8;
  color: #16181d;
}
.feedback-main { min-height: calc(100vh - 180px); }
.feedback-shell {
  width: min(760px, calc(100% - 32px));
  margin: 48px auto 72px;
}
.feedback-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6d5efc;
  margin-bottom: 12px;
}
.survey-intro,
.survey-workspace,
.survey-complete,
.feedback-modal-card {
  background: #fff;
  border: 1px solid #e7e9ef;
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(28, 31, 38, .08);
}
.survey-intro,
.survey-complete { padding: clamp(28px, 6vw, 56px); }
.survey-intro h1,
.survey-complete h1,
.wishes-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 6vw, 54px);
  line-height: 1.04;
  letter-spacing: -.035em;
}
.survey-intro > p,
.survey-complete > p,
.wishes-hero p {
  font-size: 17px;
  line-height: 1.85;
  color: #5b616c;
}
.survey-time {
  display: inline-flex;
  margin: 10px 0 28px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f0efff;
  color: #5144d8;
  font-size: 13px;
  font-weight: 700;
}
.feedback-fineprint {
  margin: 18px 0 0 !important;
  font-size: 12px !important;
  color: #8a909b !important;
}
.feedback-primary,
.feedback-secondary,
.text-button {
  border: 0;
  font: inherit;
  cursor: pointer;
}
.feedback-primary,
.feedback-secondary {
  min-height: 44px;
  border-radius: 12px;
  padding: 11px 18px;
  font-weight: 750;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.feedback-primary {
  background: #17191f;
  color: #fff;
  box-shadow: 0 8px 24px rgba(23, 25, 31, .16);
}
.feedback-primary:hover { transform: translateY(-1px); box-shadow: 0 11px 28px rgba(23, 25, 31, .22); }
.feedback-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.feedback-secondary {
  background: #fff;
  color: #2a2d34;
  border: 1px solid #dfe2e8;
}
.feedback-secondary:hover { background: #f7f8fa; }
.as-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

.survey-workspace { padding: 28px clamp(18px, 5vw, 44px) 32px; }
.survey-progress-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #777e8a;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}
.survey-progress {
  height: 5px;
  background: #eef0f4;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 34px;
}
.survey-progress span {
  display: block;
  width: 20%;
  height: 100%;
  background: #6d5efc;
  border-radius: inherit;
  transition: width .25s ease;
}
.survey-heading { margin-bottom: 28px; }
.survey-heading h2 { margin: 0 0 8px; font-size: clamp(26px, 5vw, 36px); letter-spacing: -.025em; }
.survey-heading p { margin: 0; color: #777e8a; line-height: 1.7; }
.survey-question {
  border: 0;
  padding: 0;
  margin: 0 0 34px;
}
.survey-question legend,
.survey-text > span {
  display: block;
  margin: 0 0 14px;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.55;
}
.survey-question legend em,
.survey-text > span em,
.feedback-field em { color: #d34b62; font-style: normal; font-size: 12px; margin-left: 4px; }
.survey-question legend span,
.survey-question legend small,
.survey-text small,
.feedback-field small { color: #9298a3; font-weight: 500; font-size: 12px; }
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.choice-grid button {
  min-height: 48px;
  padding: 12px 14px;
  text-align: left;
  background: #fff;
  border: 1px solid #dfe2e8;
  border-radius: 12px;
  color: #292d34;
  font: inherit;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.choice-grid button:hover { border-color: #b8bdc8; }
.choice-grid button.is-selected {
  border-color: #6d5efc;
  background: #f3f1ff;
  color: #4437ca;
  box-shadow: 0 0 0 2px rgba(109, 94, 252, .08);
}
.rank-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rank-grid label { display: grid; gap: 7px; color: #777e8a; font-size: 12px; font-weight: 700; }
.rank-grid select,
.feedback-field input,
.feedback-field textarea,
.wishes-toolbar input,
.wishes-toolbar select,
.survey-text textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dfe2e8;
  border-radius: 12px;
  background: #fff;
  color: #24272d;
  font: inherit;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.rank-grid select,
.feedback-field input,
.wishes-toolbar input,
.wishes-toolbar select { min-height: 44px; padding: 0 12px; }
.feedback-field textarea,
.survey-text textarea { padding: 12px 14px; line-height: 1.65; resize: vertical; }
.rank-grid select:focus,
.feedback-field input:focus,
.feedback-field textarea:focus,
.wishes-toolbar input:focus,
.wishes-toolbar select:focus,
.survey-text textarea:focus { border-color: #786bf7; box-shadow: 0 0 0 3px rgba(109,94,252,.11); }
.survey-error,
.feedback-error {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff0f2;
  color: #b1364b;
  font-size: 13px;
}
.survey-nav { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; }
.completion-card {
  margin: 28px 0;
  padding: 20px;
  border-radius: 16px;
  background: #f6f5ff;
  border: 1px solid #e1defe;
}
.completion-card p { color: #626876; line-height: 1.7; margin: 8px 0 0; }
.completion-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Wish Pool */
.wishes-main { background: #f5f6f8; }
.wishes-hero { padding: 58px 0 34px; }
.wishes-hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .75fr); gap: 42px; align-items: end; }
.wishes-hero h1 { font-size: clamp(38px, 7vw, 68px); }
.wishes-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.wishes-note {
  padding: 24px;
  border: 1px solid #e1e3e9;
  border-radius: 18px;
  background: rgba(255,255,255,.75);
}
.wishes-note strong { font-size: 17px; }
.wishes-note p { margin: 8px 0 0; font-size: 14px; line-height: 1.75; }
.wishes-board { padding: 20px 0 72px; }
.wishes-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 160px;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}
.wishes-toolbar label { display: grid; gap: 6px; color: #777e8a; font-size: 12px; font-weight: 700; }
.wish-board-meta { display: flex; justify-content: space-between; gap: 16px; margin: 16px 0; color: #757c87; font-size: 13px; }
.text-button { background: transparent; color: #5144d8; padding: 0; }
.wish-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.wish-card {
  background: #fff;
  border: 1px solid #e1e4e9;
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  box-shadow: 0 8px 30px rgba(28,31,38,.045);
}
.wish-card-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.wish-type { font-size: 12px; color: #7165dd; font-weight: 800; }
.wish-status {
  font-size: 12px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f0f1f4;
  color: #656b75;
  white-space: nowrap;
}
.wish-status.status-published { background: #eaf8ef; color: #2d7b48; }
.wish-status.status-in_production { background: #fff4df; color: #93621a; }
.wish-status.status-planned { background: #edf3ff; color: #3d63a8; }
.wish-card h2 { margin: 14px 0 10px; font-size: 21px; line-height: 1.35; letter-spacing: -.015em; }
.wish-card p { margin: 0 0 14px; color: #656c78; line-height: 1.65; font-size: 14px; }
.wish-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.wish-tag { font-size: 11px; padding: 5px 8px; border-radius: 999px; background: #f3f4f6; color: #5f6570; }
.wish-reason-stats { display: flex; flex-wrap: wrap; gap: 8px 12px; color: #777e89; font-size: 12px; margin-top: auto; }
.wish-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 18px; margin-top: 14px; border-top: 1px solid #eef0f3; }
.wish-count { font-weight: 800; font-size: 13px; }
.wish-support {
  border: 1px solid #d8dce3;
  background: #fff;
  color: #32363d;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}
.wish-support.is-supported { border-color: #7b6cf7; color: #5144d8; background: #f4f2ff; }
.wish-link { color: #5144d8; font-size: 13px; font-weight: 700; text-decoration: none; }
.wish-link:hover { text-decoration: underline; }
.feedback-loading,
.feedback-empty { grid-column: 1 / -1; padding: 48px 22px; text-align: center; color: #808792; background: #fff; border: 1px dashed #d9dde4; border-radius: 16px; }

/* Modals */
.feedback-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 18px; }
.feedback-modal[hidden] { display: none; }
.feedback-modal-backdrop { position: absolute; inset: 0; background: rgba(15,17,22,.56); backdrop-filter: blur(5px); }
.feedback-modal-card {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: clamp(22px, 5vw, 36px);
}
.feedback-modal-card.compact { width: min(560px, 100%); }
.feedback-modal-card h2 { margin: 0 0 8px; font-size: 29px; }
.modal-lead { margin: 0 0 24px; color: #707782; line-height: 1.65; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f0f1f4; font-size: 22px; cursor: pointer; }
.feedback-field { display: grid; gap: 8px; margin-bottom: 20px; }
.feedback-field > span,
.feedback-field legend { font-weight: 800; font-size: 14px; }
.feedback-field fieldset { border: 0; }
.reason-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.reason-grid label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid #e0e3e8;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
}
.reason-grid input { margin-top: 2px; }
.private-resource-box { margin: 8px 0 22px; padding: 18px; border-radius: 14px; background: #f7f8fa; border: 1px solid #e5e8ed; }
.private-resource-box > p { margin: 5px 0 18px; color: #777e89; font-size: 12px; line-height: 1.6; }
.private-resource-box .feedback-field:last-child { margin-bottom: 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
body.modal-open { overflow: hidden; }

@media (max-width: 760px) {
  .feedback-shell { width: min(100% - 20px, 760px); margin: 22px auto 48px; }
  .survey-intro, .survey-complete { padding: 28px 20px; }
  .survey-workspace { padding: 22px 16px 24px; border-radius: 16px; }
  .choice-grid, .reason-grid { grid-template-columns: 1fr; }
  .rank-grid { grid-template-columns: 1fr; }
  .survey-nav { position: sticky; bottom: 0; background: rgba(255,255,255,.96); padding: 12px 0 0; }
  .survey-nav button { flex: 1; }
  .wishes-hero { padding: 34px 0 24px; }
  .wishes-hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .wishes-toolbar { grid-template-columns: 1fr 1fr; }
  .wish-search { grid-column: 1 / -1; }
  .wish-list { grid-template-columns: 1fr; }
  .feedback-modal { padding: 0; align-items: end; }
  .feedback-modal-card, .feedback-modal-card.compact { width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; padding: 24px 16px 28px; }
}

/* V12.96 · Feedback UX Correction */
.feedback-page [hidden] { display: none !important; }

.wishes-hero-copy { max-width: 760px; }
.wish-entry-button {
  display: grid;
  gap: 3px;
  min-width: 230px;
  text-align: left;
  padding: 14px 17px;
}
.wish-entry-button span { font-size: 15px; font-weight: 800; }
.wish-entry-button small { font-size: 11px; font-weight: 600; opacity: .66; line-height: 1.4; }
.feedback-primary.wish-entry-button small { color: rgba(255,255,255,.72); }
.survey-inline-link {
  display: inline-flex;
  margin-top: 16px;
  color: #5144d8;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.55;
  text-decoration: none;
}
.survey-inline-link:hover { text-decoration: underline; }

.wish-board-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 8px;
  border-top: 1px solid #e3e5ea;
}
.wish-board-heading h2 { margin: 0; font-size: 28px; letter-spacing: -.025em; }
.wish-sort-control { display: grid; grid-template-columns: auto 150px; gap: 9px; align-items: center; color: #777e8a; font-size: 12px; font-weight: 700; }
.wish-sort-control select {
  min-height: 40px;
  padding: 0 34px 0 12px;
  border: 1px solid #dfe2e8;
  border-radius: 10px;
  background: #fff;
  color: #31353c;
  font: inherit;
  outline: none;
}
.wish-sort-control select:focus { border-color: #786bf7; box-shadow: 0 0 0 3px rgba(109,94,252,.11); }

.feedback-modal-card.wish-form-card {
  width: min(760px, 100%);
  padding: 34px 38px 36px;
}
.wish-form-heading {
  padding: 0 48px 22px 0;
  margin-bottom: 24px;
  border-bottom: 1px solid #eceef2;
}
.wish-form-heading h2 { margin: 0 0 9px; font-size: 30px; line-height: 1.2; letter-spacing: -.025em; }
.wish-form-heading p { margin: 0; color: #6f7681; font-size: 14px; line-height: 1.7; }
.wish-form-section {
  display: grid;
  grid-template-columns: 1fr 1.18fr;
  gap: 14px;
  margin-bottom: 2px;
}
.wish-form-section .feedback-field { min-width: 0; }
.feedback-field > small { display: block; margin-top: -2px; color: #9298a3; line-height: 1.55; }
.reason-fieldset { border: 0; padding: 0; margin: 2px 0 22px; }
.reason-fieldset legend { margin-bottom: 10px; }
.reason-grid { gap: 8px; }
.reason-grid label {
  min-height: 46px;
  align-items: center;
  padding: 10px 12px;
  background: #fff;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.reason-grid label:hover { border-color: #c6cad2; }
.reason-grid label:has(input:checked) {
  border-color: #8175f4;
  background: #f5f3ff;
  box-shadow: 0 0 0 2px rgba(109,94,252,.07);
}
.reason-grid input[type="checkbox"],
.reason-grid input[type="radio"] {
  appearance: auto;
  -webkit-appearance: auto;
  width: 17px !important;
  height: 17px !important;
  min-width: 17px !important;
  min-height: 17px !important;
  max-width: 17px !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: 0 0 17px;
  accent-color: #6d5efc;
  box-shadow: none !important;
}
.reason-grid label > span { min-width: 0; line-height: 1.45; }
.need-reason-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.private-resource-box {
  margin: 4px 0 22px;
  padding: 0;
  overflow: hidden;
  background: #f8f9fb;
}
.private-resource-box summary {
  cursor: pointer;
  list-style-position: inside;
  padding: 15px 17px;
  font-size: 13px;
  font-weight: 800;
  color: #424750;
}
.private-resource-box[open] { padding-bottom: 16px; }
.private-resource-box[open] summary { border-bottom: 1px solid #e8eaee; margin-bottom: 14px; }
.private-resource-box > p,
.private-resource-box > .feedback-field { margin-left: 17px; margin-right: 17px; }
.private-resource-box > p { margin-top: 0; }
.need-form-note {
  display: grid;
  gap: 4px;
  margin: 2px 0 22px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f6f5ff;
  color: #5144d8;
  font-size: 13px;
}
.need-form-note span { color: #666d78; line-height: 1.55; }

@media (max-width: 760px) {
  .wish-entry-button { width: 100%; min-width: 0; }
  .wish-board-heading { align-items: flex-start; flex-direction: column; }
  .wish-sort-control { width: 100%; grid-template-columns: auto 1fr; }
  .feedback-modal-card.wish-form-card { width: 100%; padding: 25px 17px 28px; }
  .wish-form-heading { padding-right: 40px; margin-bottom: 20px; }
  .wish-form-heading h2 { font-size: 25px; }
  .wish-form-section { grid-template-columns: 1fr; gap: 0; }
  .reason-grid, .need-reason-grid { grid-template-columns: 1fr 1fr; }
  .reason-grid label { min-height: 44px; }
}

@media (max-width: 460px) {
  .reason-grid, .need-reason-grid { grid-template-columns: 1fr; }
}


/* V13.03 RC1 · Old Friends survey */
.survey-question[hidden], .survey-branch[hidden] { display:none !important; }
.survey-note { margin:-20px 0 30px; color:#8a909b; font-size:12px; line-height:1.65; }
.survey-soft-note { margin:8px 0 0; color:#8a909b; font-size:12px; line-height:1.6; }
.survey-intro .old-friend-note { margin:16px 0 0 !important; font-size:13px !important; color:#777e8a !important; }

/* V13.03 RC5 — Wish Pool hero uses clean solid surfaces; no decorative gradients. */
.wishes-hero {
  padding: 46px 0 42px;
}
.wishes-hero-grid {
  position: relative;
  overflow: hidden;
  align-items: stretch;
  gap: 34px;
  padding: clamp(34px, 4.5vw, 54px);
  border: 1px solid #e5ded5;
  border-radius: 30px;
  background: #f7f3ed;
  box-shadow: 0 22px 58px rgba(46, 40, 33, .07);
}
.wishes-hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: 8px 0;
}
.wishes-hero h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(46px, 6.6vw, 74px);
}
.wishes-hero-copy > p {
  max-width: 800px;
  margin: 0;
  color: #555963;
  font-size: 17px;
  line-height: 1.85;
}
.wishes-actions {
  margin-top: 30px;
}
.wishes-note {
  position: relative;
  z-index: 1;
  align-self: stretch;
  padding: 30px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  background: #181a24;
  color: #fff;
  box-shadow: 0 18px 42px rgba(22, 24, 34, .16);
}
.wishes-note > strong {
  display: block;
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 19px;
  line-height: 1.45;
}
.wishes-note > p {
  position: relative;
  z-index: 1;
  color: #bcc2cf;
  font-size: 14px;
  line-height: 1.78;
}
.wishes-board {
  padding-top: 10px;
}
.wish-board-heading {
  border-top: 0;
  padding-top: 26px;
}
@media (max-width: 760px) {
  .wishes-hero { padding: 22px 0 30px; }
  .wishes-hero-grid {
    padding: 28px 20px 20px;
    border-radius: 24px;
    gap: 24px;
  }
  .wishes-hero h1 { font-size: clamp(42px, 14vw, 58px); }
  .wishes-note { padding: 24px 20px; border-radius: 20px; }
}
