/* START FLOW */

.start-page,
.question-page {
  min-height: calc(100vh - 88px);
}

/* WELCOME PAGE */

.start-welcome {
  padding: 95px 0;
}

.start-welcome-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 70px;
  align-items: center;
}

.start-welcome-content h2 {
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
  margin-bottom: 24px;
}

.start-welcome-content p {
  color: var(--medium-gray);
  font-size: 1.15rem;
  max-width: 620px;
  margin-bottom: 34px;
}

.welcome-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.start-preview-card {
  background: var(--white);
  border: 3px solid var(--charcoal);
  border-radius: 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(1deg);
}

.preview-top {
  height: 48px;
  border-bottom: 3px solid var(--charcoal);
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 22px;
}

.preview-top span {
  width: 11px;
  height: 11px;
  background: var(--sage);
  border-radius: 50%;
}

.preview-content {
  padding: 34px;
}

.preview-line {
  height: 14px;
  background: var(--light-gray);
  border-radius: 999px;
  margin-bottom: 16px;
}

.preview-line.short {
  width: 42%;
}

.preview-line.medium {
  width: 65%;
}

.preview-line.long {
  width: 88%;
}

.preview-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 30px 0;
}

.preview-steps div {
  background: var(--soft-white);
  border: 1px solid var(--light-gray);
  border-radius: 20px;
  padding: 18px;
}

.preview-steps strong {
  color: var(--sage);
  font-size: 0.85rem;
}

.preview-steps p {
  color: var(--charcoal);
  font-weight: 800;
  margin: 6px 0 0;
  font-size: 0.95rem;
}

/* QUESTION PAGES */

.question-section {
  padding: 85px 0;
}

.question-container {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  align-items: start;
}

.step-sidebar {
  position: sticky;
  top: 125px;
}

.step-sidebar h2 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
  margin-bottom: 18px;
}

.step-sidebar p {
  color: var(--medium-gray);
  font-size: 1.05rem;
  max-width: 430px;
}

.mini-progress {
  display: flex;
  gap: 8px;
  margin-top: 34px;
}

.mini-progress span {
  height: 10px;
  width: 38px;
  background: var(--light-gray);
  border-radius: 999px;
}

.mini-progress span.done,
.mini-progress span.active {
  background: var(--sage);
}

.mini-progress span.active {
  width: 60px;
}

.question-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 34px;
  padding: 42px;
  box-shadow: var(--shadow);
}

.question-card label {
  display: block;
  font-weight: 800;
  margin-bottom: 24px;
}

.question-card input,
.question-card textarea {
  width: 100%;
  margin-top: 8px;
  padding: 15px 16px;
  border: 1px solid var(--light-gray);
  border-radius: 16px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--soft-white);
  color: var(--charcoal);
  outline: none;
}

.question-card input:focus,
.question-card textarea:focus {
  border-color: var(--sage);
  background: var(--white);
}

.question-card textarea {
  min-height: 130px;
  resize: vertical;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.choice-card {
  margin: 0 !important;
  cursor: pointer;
}

.choice-card input {
  display: none;
}

.choice-card span {
  display: block;
  background: var(--soft-white);
  border: 1px solid var(--light-gray);
  border-radius: 18px;
  padding: 18px;
  font-weight: 800;
  transition: all 0.2s ease;
}

.choice-card input:checked + span {
  background: var(--deep-sage);
  border-color: var(--deep-sage);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(63, 95, 74, 0.28);
  transform: translateY(-2px);
}

.choice-card input:checked + span::after {
  content: "✓";
  float: right;
  font-weight: 900;
}

.choice-card span:hover {
  border-color: var(--sage);
  transform: translateY(-2px);
}

.page-buttons {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
}

.page-buttons .btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

.review-box {
  background: var(--soft-white);
  border: 1px solid var(--light-gray);
  border-radius: 24px;
  padding: 26px;
  color: var(--medium-gray);
  white-space: pre-wrap;
  line-height: 1.7;
}


/* FILE UPLOAD BOX */

.upload-box {
  position: relative;
  background: var(--soft-white);
  border: 2px dashed var(--sage);
  border-radius: 24px;
  padding: 34px;
  text-align: center;
  margin-bottom: 28px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.upload-box:hover,
.upload-box.drag-over {
  background: rgba(127, 159, 139, 0.16);
  border-color: var(--deep-sage);
  box-shadow: 0 14px 30px rgba(63, 95, 74, 0.16);
}

.upload-box input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-content {
  pointer-events: none;
}

.upload-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--deep-sage);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.upload-content h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.upload-content p {
  color: var(--medium-gray);
}

.file-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  text-align: left;
}

.file-list li {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--deep-sage);
  font-weight: 700;
  margin-bottom: 8px;
}

/* POLISHED REVIEW PAGE */

.review-card {
  padding: 0;
  overflow: hidden;
}

.review-header {
  background: var(--charcoal);
  color: var(--white);
  padding: 34px;
}

.review-header span {
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 900;
}

.review-header h3 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.06em;
  margin: 12px 0;
}

.review-header p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 620px;
}

.review-sections {
  padding: 34px;
  display: grid;
  gap: 18px;
}

.review-section-card {
  background: var(--soft-white);
  border: 1px solid var(--light-gray);
  border-radius: 22px;
  padding: 24px;
}

.review-section-card h4 {
  font-size: 1rem;
  margin-bottom: 14px;
  color: var(--deep-sage);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.review-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(217, 217, 212, 0.8);
}

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

.review-label {
  font-weight: 900;
  color: var(--charcoal);
}

.review-value {
  color: var(--medium-gray);
  white-space: pre-wrap;
}

.review-card .page-buttons {
  padding: 0 34px 34px;
}

/* THANK YOU PAGE */

.thank-you-page {
  min-height: calc(100vh - 88px);
}

.thank-you-section {
  padding: 95px 0;
}

.thank-you-container {
  max-width: 850px;
}

.thank-you-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 36px;
  padding: 56px;
  text-align: center;
  box-shadow: var(--shadow);
}

.success-icon {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--deep-sage);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 24px;
  box-shadow: 0 16px 34px rgba(63, 95, 74, 0.28);
}

.thank-you-card h2 {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
  margin-bottom: 22px;
}

.thank-you-card > p {
  color: var(--medium-gray);
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto 28px;
}

.thank-you-note {
  background: var(--soft-white);
  border: 1px solid var(--light-gray);
  border-radius: 22px;
  padding: 20px;
  color: var(--medium-gray);
  max-width: 620px;
  margin: 0 auto 30px;
}

.thank-you-note strong {
  color: var(--deep-sage);
}

.thank-you-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* REVIEW + THANK YOU RESPONSIVE */

@media (max-width: 650px) {
  .review-header,
  .review-sections {
    padding: 26px;
  }

  .review-card .page-buttons {
    padding: 0 26px 26px;
  }

  .review-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .thank-you-section {
    padding: 60px 0;
  }

  .thank-you-card {
    padding: 34px 24px;
  }

  .thank-you-buttons {
    flex-direction: column;
  }

  .thank-you-buttons .btn {
    width: 100%;
  }
}

/* RESPONSIVE */

@media (max-width: 950px) {
  .start-welcome-grid,
  .question-container {
    grid-template-columns: 1fr;
  }

  .step-sidebar {
    position: static;
  }
}

@media (max-width: 650px) {
  .start-welcome,
  .question-section {
    padding: 60px 0;
  }

  .question-card {
    padding: 28px;
  }

  .choice-grid,
  .preview-steps {
    grid-template-columns: 1fr;
  }

  .page-buttons {
    flex-direction: column;
  }

  .page-buttons .btn {
    width: 100%;
  }

  .start-preview-card {
    transform: none;
  }
}

.upload-note {
  color: var(--medium-gray);
  font-size: 0.9rem;
  margin-top: 12px;
}