*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #e6f0f0;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ── Background Shapes ── */
.bg-shape {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

/* Desktop: full viewport decorative rings (tr_desktop_shape) */
.bg-shape--desktop {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile: bottom-positioned wave shape (tr_mobile_shape (2)) */
.bg-shape--mobile {
  display: none;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  height: auto;
}

/* ── Container ── */
.container {
  position: relative;
  z-index: 1;
  max-width: 759px;
  margin: 0 auto;
  padding: 50px 0 60px;
}

/* ── Logo Bar ── */
.logo-bar {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
  padding: 0;
}

.logo {
  display: flex;
  align-items: baseline;
}

.logo-main {
  font-size: 24px;
  font-weight: 700;
  color: #000;
  letter-spacing: -0.5px;
  line-height: 1;
}

.logo-dot {
  font-size: 14px;
  font-weight: 600;
  color: #000;
  line-height: 1;
}

/* ── Progress Section ── */
.progress-section {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  padding: 16px 28px;
  border-radius: 20px;
  margin-bottom: 15px;
}

.back-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-ring-container {
  position: relative;
  width: 119px;
  height: 119px;
  flex-shrink: 0;
}

.progress-ring {
  width: 119px;
  height: 119px;
}

.progress-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: #000;
  line-height: 27px;
}

.progress-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.step-title {
  font-size: 24px;
  font-weight: 600;
  color: #000;
  line-height: 36px;
}

.step-next {
  font-size: 16px;
  font-weight: 600;
  color: #747474;
  line-height: 24px;
}

/* ── Form Card ── */
.form-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px 28px 30px;
  margin-bottom: 15px;
}

/* ── Steps ── */
.step[hidden] {
  display: none;
}

.step {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.progress-arc {
  transition: stroke-dashoffset 0.5s ease;
}

/* ── Topic Icon ── */
.topic-icon {
  width: 33px;
  height: 32px;
  background: #e8f5f5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.question-title {
  font-size: 20px;
  font-weight: 600;
  color: #000;
  line-height: 30px;
  margin-bottom: 10px;
}

.question-desc {
  font-size: 16px;
  font-weight: 400;
  color: #40505b;
  line-height: 24px;
  margin-bottom: 28px;
}

/* ── Options Grid ── */
.options-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.option-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  background: #fff;
  border: 0.5px solid #d9d9d9;
  border-radius: 19px;
  padding: 14px 16px;
  height: 97px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Poppins', sans-serif;
  color: #40505b;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
}

.option-card:hover {
  border-color: #b0ccc6;
  background: #f5fafa;
}

.option-card.selected {
  background: #e6f0f0;
  border: 1px solid #83a59d;
  color: #000;
  box-shadow: none;
}

.option-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.option-label {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

/* ── Options List (Step 5: grid on desktop, vertical on mobile) ── */
.options-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.option-card--list {
  height: 97px;
}

/* ── Checkmark ── */
.checkmark {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 19px;
  height: 19px;
  background: #00995c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

.option-card.selected .checkmark {
  opacity: 1;
  transform: scale(1);
}

/* ── Number Selector (Step 2) ── */
.number-selector {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.number-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 0.5px solid #d9d9d9;
  background: #fff;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #40505b;
  transition: all 0.2s ease;
}

.number-btn:hover {
  border-color: #b0ccc6;
  background: #f5fafa;
}

.number-btn.selected {
  background: #e6f0f0;
  border: 1px solid #83a59d;
  color: #000;
  box-shadow: none;
}

/* ── Input Field (Step 4) ── */
.input-field {
  display: flex;
  align-items: center;
  margin-top: 20px;
  gap: 14px;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-field.filled {
  border-color: #83a59d;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.08);
}

.input-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.input-content {
  flex: 1;
  min-width: 0;
}

.input-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #40505b;
  line-height: 18px;
}

.input-wrapper {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.input-value {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #000;
  line-height: 24px;
  border: none;
  outline: none;
  background: transparent;
  width: 10%;
  padding: 0;
}

.input-value::placeholder {
  color: #40505b;
}

.input-suffix {
  font-size: 16px;
  font-weight: 600;
  color: #40505b;
  line-height: 24px;
  flex-shrink: 0;
}

.input-check {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.input-check svg[hidden] {
  display: none;
}

/* ── Continue Button ── */
.bottom-bar {
  margin-top: 16px;
  background: #fff;
  border-radius: 20px;
  padding:20px;
}

.bottom-bar[hidden] {
  display: none;
}

.continue-btn {
  width: 100%;
  height: 61px;
  background: #fda995;
  border: none;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #000;
  line-height: 27px;
  transition: background 0.2s ease, opacity 0.2s ease;
  position: relative;
}

.continue-btn svg {
  position: absolute;
  right: 20px;
}

.continue-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.continue-btn:not(:disabled):hover {
  background: #fc957d;
}

.continue-btn:not(:disabled):active {
  transform: scale(0.99);
}

/* ── Motivational Banner (Step 3) ── */
.motivational-banner {
  background: #9fc1b9;
  border-radius: 20px;
  padding: 24px 28px;
  text-align: center;
  margin-bottom: 15px;
}

.motivational-banner[hidden] {
  display: none;
}

.banner-title {
  font-size: 20px;
  font-weight: 600;
  color: #000;
  line-height: 30px;
}

.banner-subtitle {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  line-height: 24px;
}

/* ── Trust Badges ── */
.trust-badges {
  background: #fff;
  border-radius: 20px;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 15px;
}

.badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
  color: #40505b;
  line-height: 28px;
}

.badge-row svg {
  flex-shrink: 0;
}

/* ── Legal Warning ── */
.legal-warning {
  background: #fff;
  border-radius: 20px;
  padding: 18px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.warning-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.legal-text {
  font-size: 9px;
  font-weight: 400;
  color: #000;
  line-height: 13.5px;
}

.legal-text strong {
  font-weight: 600;
}

.legal-text a {
  color: #006ea5;
  text-decoration: underline;
}

.legal-text a:hover {
  text-decoration: none;
}

/* ── Date Picker (Step 7) ── */
.date-picker-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.date-picker-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.date-label {
  font-size: 14px;
  font-weight: 600;
  color: #40505b;
  line-height: 21px;
}

.date-selects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.date-select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 0.5px solid #d9d9d9;
  border-radius: 10px;
  padding: 0 16px;
  height: 61px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
}

.date-icon {
  flex-shrink: 0;
  margin-right: 10px;
}

.date-select {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #000;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 20px;
}

.date-chevron {
  position: absolute;
  right: 16px;
  pointer-events: none;
}

/* ── Cosigner Cards (Step 10) ── */
.cosigner-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cosigner-card {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 0.5px solid #d9d9d9;
  border-radius: 14px;
  padding: 16px 20px;
  height: 98px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
}

.cosigner-card:hover {
  border-color: #b0ccc6;
  background: #f5fafa;
}

.cosigner-card.selected {
  background: #e6f0f0;
  border: 1px solid #83a59d;
  box-shadow: none;
}

.cosigner-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  margin-left: 16px;
}

.cosigner-title {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  line-height: 24px;
}

.cosigner-desc {
  font-size: 12px;
  font-weight: 400;
  color: #40505b;
  line-height: 18px;
}

.cosigner-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cosigner-card .checkmark {
  top: 12px;
  right: 12px;
}

/* ── Wide Input (Steps 6, 9, 10) ── */
.input-value--wide {
  width: 100%;
}

/* ── Cosigner form card spacing ── */
.form-card--cosigner {
  margin-top: 15px;
}

/* ══════════════════════════════════════════
   RESPONSIVE: Mobile (≤ 480px)
   ══════════════════════════════════════════ */
@media (max-width: 480px) {
  body {
    background: #e6f0f0;
  }

  /* Swap background shapes */
  .bg-shape--desktop {
    display: none;
  }

  .bg-shape--mobile {
    display: block;
  }

  .container {
    max-width: 100%;
    padding: 0 0 0;
  }

  /* Logo bar: left-aligned with bottom border */
  .logo-bar {
    padding: 0 19px;
    height: 48px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 0;
  }

  .logo-main {
    font-size: 22px;
  }

  .logo-dot {
    font-size: 13px;
  }

  /* Progress: rounded bottom corners, full width */
  .progress-section {
    border-radius: 0 0 40px 40px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.08);
    padding: 18px 19px 24px;
    gap: 16px;
    margin-bottom: 16px;
  }

  .back-btn svg {
    width: 10px;
    height: 16px;
  }

  .progress-ring-container {
    width: 85px;
    height: 85px;
  }

  .progress-ring {
    width: 85px;
    height: 85px;
  }

  .progress-text {
    font-size: 17px;
    line-height: 25.5px;
  }

  .step-title {
    font-size: 20px;
    line-height: 30px;
  }

  .step-next {
    font-size: 12px;
    line-height: 18px;
  }

  /* Form card: larger radius, full-width margins */
  .form-card {
    border-radius: 40px;
    margin: 0 19px 12px;
    padding: 23px 19px 28px;
  }

  .question-title {
    font-size: 18px;
    line-height: 27px;
  }

  .question-desc {
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    margin-bottom: 24px;
  }

  /* Options: 2x2 grid on mobile */
  .options-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .option-card {
    height: 94px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.08);
  }

  /* Options list: single column on mobile */
  .options-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .option-card--list {
    height: 90px;
  }

  /* Motivational banner */
  .motivational-banner {
    margin: 0 19px 12px;
    border-radius: 40px;
    padding: 20px;
  }

  /* Trust badges */
  .trust-badges {
    margin: 0 19px 12px;
    padding: 18px 20px;
  }

  .badge-row {
    font-size: 12px;
    font-weight: 600;
    line-height: 24px;
  }

  /* Number selector on mobile */
  .number-selector {
    gap: 10px;
  }

  .number-btn {
    width: 48px;
    height: 48px;
    font-size: 16px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.08);
  }

  /* Input field on mobile */
  .input-field {
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.08);
  }

  /* Continue button on mobile */
  .bottom-bar {
    margin: 16px 20px;
    border-radius: 20px;
    padding: 20px;
  }

  /* Legal warning */
  .legal-warning {
    margin: 0 19px 16px;
    padding: 18px 20px;
  }

  /* Date picker on mobile */
  .date-select-wrapper {
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.08);
  }

  .date-select {
    font-size: 14px;
  }

  /* Cosigner cards on mobile */
  .cosigner-card {
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.08);
  }

  /* Cosigner form card on mobile */
  .form-card--cosigner {
    margin-top: 12px;
  }
}
