/* ============================================
   Riders Mansion Questionnaire - Stylesheet
   Design: BP Blue x 16Personalities UI Fusion
   ============================================ */

/* --- Design Tokens --- */
:root {
  /* Primary */
  --bp-blue: #0097CE;
  --bp-blue-dark: #005DC5;
  --bp-teal: #027C96;
  --bp-orange: #DD6800;
  --bp-orange-dark: #B85500;

  /* Surface */
  --ice-blue: #DCF0FF;
  --pale-sky: rgba(175, 235, 255, 0.5);
  --frost: #AFEBFF;
  --light-gray: #EDEDED;
  --white: #FFFFFF;

  /* Text */
  --text-dark: #212529;
  --text-medium: #424242;
  --text-muted: #757575;
  --text-on-blue: #CCF0FF;

  /* Likert Scale */
  --scale-1: #005DC5;
  --scale-2: #0097CE;
  --scale-3: #69BDDC;
  --scale-4: #EDEDED;
  --scale-5: #E8A84D;
  --scale-6: #DD6800;
  --scale-7: #B85500;

  /* Spacing */
  --radius-sm: 5px;
  --radius-md: 10px;
  --radius-pill: 25px;
  --radius-lg: 40px;
  --radius-circle: 50%;

  /* Shadow */
  --shadow-light: 0 0 10px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.15);

  /* Typography */
  --font-family: "Nunito", "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-size-hero: 42px;
  --font-size-h2: 28px;
  --font-size-q: 20px;
  --font-size-body: 16px;
  --font-size-sm: 14px;
  --font-size-xs: 12px;

  /* Animation */
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 0.2s;
  --duration-mid: 0.3s;
  --duration-slow: 0.5s;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* --- Sticky Progress Bar --- */
.progress-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transform: translateY(-100%);
  transition: transform var(--duration-mid) var(--ease-default);
}

.progress-container.visible {
  transform: translateY(0);
}

.progress-bar {
  height: 6px;
  background: var(--light-gray);
  width: 100%;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--bp-blue), var(--bp-blue-dark));
  border-radius: 0 3px 3px 0;
  transition: width 0.4s var(--ease-default);
  width: 0%;
}

.progress-fill.complete {
  animation: pulse-progress 1.5s ease infinite;
}

@keyframes pulse-progress {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.progress-text {
  display: block;
  text-align: center;
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  font-weight: 600;
  padding: 4px 20px;
}

/* --- Header --- */
.q-header {
  background: linear-gradient(135deg, var(--bp-blue), var(--bp-blue-dark));
  padding: 14px 24px;
}

.q-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.q-logo {
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 2px;
}

.q-logo:hover {
  color: var(--text-on-blue);
}

.q-header-label {
  color: var(--text-on-blue);
  font-size: var(--font-size-sm);
  font-weight: 600;
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(180deg, var(--ice-blue) 0%, #E8F6FF 100%);
  padding: 80px 24px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 120%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(0, 151, 206, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(175, 235, 255, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(0, 151, 206, 0.12);
  color: var(--bp-teal);
  font-size: var(--font-size-xs);
  font-weight: 700;
  padding: 6px 20px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: var(--font-size-hero);
  font-weight: 700;
  color: var(--bp-blue);
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--bp-teal);
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-description {
  font-size: var(--font-size-body);
  color: var(--text-medium);
  max-width: 600px;
  margin: 0 auto 20px;
  line-height: 1.9;
}

/* Concept Visual */
.concept-visual {
  margin: 32px auto 40px;
  max-width: 700px;
  position: relative;
}

.concept-illustration {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  padding: 24px 16px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-light);
  position: relative;
  overflow: hidden;
}

.concept-floor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.concept-room {
  width: 100%;
  border: 1.5px solid var(--bp-blue);
  border-radius: var(--radius-md);
  background: rgba(220, 240, 255, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
}

.concept-room-living {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-bottom: 1.5px dashed rgba(0, 151, 206, 0.3);
  padding: 8px 6px;
}

.concept-room-garage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 6px;
  background: rgba(0, 151, 206, 0.06);
}

.concept-room-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--bp-blue);
  text-align: center;
  line-height: 1.2;
}

.concept-floor-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
}

.concept-elevator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  padding: 0 4px;
}

.concept-elevator-shaft {
  width: 2px;
  height: 56px;
  background: var(--bp-blue);
  position: relative;
}

.concept-elevator-car {
  width: 16px;
  height: 16px;
  border: 2px solid var(--bp-blue);
  border-radius: 3px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: var(--frost);
  animation: elevator-move 3s ease-in-out infinite;
}

@keyframes elevator-move {
  0%, 100% { top: 0; }
  50% { top: 38px; }
}

.concept-elevator-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--bp-blue);
  margin-top: 5px;
  white-space: nowrap;
}

/* Features highlight */
.concept-features {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.concept-feature {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--bp-teal);
}

.concept-feature-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bp-blue);
  flex-shrink: 0;
}

/* Step Cards */
.step-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px auto 60px;
  max-width: 700px;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-light);
  padding: 28px 20px 24px;
  border-top: 4px solid var(--bp-blue);
  position: relative;
  transition: transform var(--duration-fast) var(--ease-default),
              box-shadow var(--duration-fast) var(--ease-default);
}

.step-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.step-badge {
  display: inline-block;
  background: var(--frost);
  color: var(--bp-teal);
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  font-weight: 700;
  padding: 3px 14px;
  margin-bottom: 14px;
}

.step-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--bp-blue);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-card-body {
  text-align: center;
}

.step-card h3 {
  font-size: var(--font-size-body);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.step-card p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- Wave Divider --- */
.wave-divider {
  position: relative;
  width: 100%;
  line-height: 0;
  margin-top: -1px;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 80px;
}

.wave-divider-up svg {
  transform: rotate(180deg);
}

/* --- Question Sections --- */
.q-section {
  position: relative;
  padding: 60px 24px 40px;
  overflow: hidden;
}

.q-section:nth-child(odd) {
  background: var(--white);
}

.q-section:nth-child(even) {
  background: var(--ice-blue);
}

.section-watermark {
  font-size: 200px;
  font-weight: 700;
  color: rgba(0, 151, 206, 0.05);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

.section-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-header {
  margin-bottom: 48px;
  text-align: center;
}

.section-header h2 {
  font-size: var(--font-size-h2);
  font-weight: 700;
  color: var(--bp-blue);
  display: inline-block;
  position: relative;
  padding-left: 16px;
}

.section-header h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: var(--bp-blue);
  border-radius: 2px;
}

/* --- Question Card --- */
.question-card {
  background: var(--white);
  padding: 40px 36px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-light);
  margin-bottom: 28px;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-mid) var(--ease-default),
              transform var(--duration-mid) var(--ease-default);
}

.question-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.question-card.highlight-unanswered {
  box-shadow: 0 0 0 3px var(--bp-orange), var(--shadow-card);
}

.question-number {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--bp-blue);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.question-text {
  font-size: var(--font-size-q);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.6;
}

.question-hint {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Even-section question cards */
.q-section:nth-child(even) .question-card {
  background: var(--white);
}

/* --- Option Cards (Radio) --- */
.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.options-grid.single-col {
  grid-template-columns: 1fr;
}

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

.option-card {
  cursor: pointer;
  display: block;
}

.option-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.option-content {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-default);
  background: var(--white);
}

.option-card:hover .option-content {
  border-color: var(--bp-blue);
  background: rgba(0, 151, 206, 0.03);
}

.option-card input:checked + .option-content {
  border-color: var(--bp-blue);
  background: rgba(0, 151, 206, 0.08);
  box-shadow: 0 0 0 1px var(--bp-blue);
}

.option-card input:focus-visible + .option-content {
  outline: 3px solid rgba(0, 151, 206, 0.4);
  outline-offset: 2px;
}

.option-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-circle);
  background: var(--ice-blue);
  flex-shrink: 0;
}

.option-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--bp-blue);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.option-label {
  font-size: var(--font-size-body);
  font-weight: 600;
  color: var(--text-dark);
  display: block;
  line-height: 1.4;
}

.option-desc {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  display: block;
  line-height: 1.3;
}

.option-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Selected state check indicator */
.option-check {
  width: 22px;
  height: 22px;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-circle);
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease-default);
}

.option-card input:checked + .option-content .option-check {
  background: var(--bp-blue);
  border-color: var(--bp-blue);
}

.option-check svg {
  width: 12px;
  height: 12px;
  stroke: var(--white);
  stroke-width: 3;
  fill: none;
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-default);
}

.option-card input:checked + .option-content .option-check svg {
  opacity: 1;
}

/* --- Radio Button Style --- */
.option-radio {
  width: 20px;
  height: 20px;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-circle);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease-default);
}

.option-radio::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: var(--radius-circle);
  background: var(--bp-blue);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-default);
}

.option-card input:checked + .option-content .option-radio {
  border-color: var(--bp-blue);
}

.option-card input:checked + .option-content .option-radio::after {
  opacity: 1;
}

/* --- Checkbox Options --- */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.checkbox-card {
  cursor: pointer;
  display: block;
}

.checkbox-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-content {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-default);
  background: var(--white);
}

.checkbox-card:hover .checkbox-content {
  border-color: var(--bp-blue);
  background: rgba(0, 151, 206, 0.03);
}

.checkbox-card input:checked + .checkbox-content {
  border-color: var(--bp-blue);
  background: rgba(0, 151, 206, 0.08);
  box-shadow: 0 0 0 1px var(--bp-blue);
}

.checkbox-indicator {
  width: 22px;
  height: 22px;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease-default);
}

.checkbox-card input:checked + .checkbox-content .checkbox-indicator {
  background: var(--bp-blue);
  border-color: var(--bp-blue);
}

.checkbox-indicator svg {
  width: 12px;
  height: 12px;
  stroke: var(--white);
  stroke-width: 3;
  fill: none;
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-default);
}

.checkbox-card input:checked + .checkbox-content .checkbox-indicator svg {
  opacity: 1;
}

.checkbox-label {
  font-size: var(--font-size-body);
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.4;
}

/* --- Space Ratio Visual --- */
.ratio-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  margin-top: 24px;
}

.ratio-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-medium);
}

.ratio-legend-color {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}

.ratio-legend-living {
  background: var(--bp-blue);
}

.ratio-legend-bike {
  background: var(--frost);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.ratio-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 0;
}

.ratio-card {
  cursor: pointer;
  display: block;
}

.ratio-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.ratio-content {
  display: block;
  padding: 20px;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-default);
  background: var(--white);
  text-align: center;
}

.ratio-card:hover .ratio-content {
  border-color: var(--bp-blue);
}

.ratio-card input:checked + .ratio-content {
  border-color: var(--bp-blue);
  background: rgba(0, 151, 206, 0.08);
  box-shadow: 0 0 0 1px var(--bp-blue);
}

.ratio-bar {
  display: flex;
  height: 32px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.ratio-living {
  background: var(--bp-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.ratio-bike {
  background: var(--frost);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bp-teal);
  font-size: 12px;
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.ratio-text-wrap {
  flex: 1;
  min-width: 0;
}

.ratio-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-dark);
  display: block;
}

.ratio-desc {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

.ratio-check {
  width: 22px;
  height: 22px;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-circle);
  flex-shrink: 0;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease-default);
}

.ratio-card input:checked + .ratio-content .ratio-check {
  background: var(--bp-blue);
  border-color: var(--bp-blue);
}

.ratio-check svg {
  width: 12px;
  height: 12px;
  stroke: var(--white);
  stroke-width: 3;
  fill: none;
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-default);
}

.ratio-card input:checked + .ratio-content .ratio-check svg {
  opacity: 1;
}

/* --- Textarea --- */
.free-text-area {
  margin-top: 24px;
}

.free-text-area textarea {
  width: 100%;
  min-height: 140px;
  padding: 16px 20px;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: var(--font-size-body);
  color: var(--text-dark);
  resize: vertical;
  transition: border-color var(--duration-fast) var(--ease-default);
  outline: none;
  line-height: 1.7;
}

.free-text-area textarea:focus {
  border-color: var(--bp-blue);
  box-shadow: 0 0 0 3px rgba(0, 151, 206, 0.15);
}

.free-text-area textarea::placeholder {
  color: #B0B0B0;
}

.char-count {
  text-align: right;
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-top: 6px;
}

/* --- Submit Section --- */
.submit-section {
  background: var(--ice-blue);
  padding: 0 24px 80px;
  text-align: center;
  position: relative;
}

.submit-content {
  max-width: 600px;
  margin: 0 auto;
  padding-top: 60px;
}

.submit-content h2 {
  font-size: var(--font-size-h2);
  font-weight: 700;
  color: var(--bp-blue);
  margin-bottom: 12px;
}

.submit-content p {
  font-size: var(--font-size-body);
  color: var(--text-medium);
  margin-bottom: 36px;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bp-orange);
  color: var(--white);
  border: none;
  padding: 16px 48px;
  font-size: 18px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: var(--font-family);
  transition: all var(--duration-fast) var(--ease-default);
  box-shadow: 0 4px 16px rgba(221, 104, 0, 0.3);
}

.btn-submit:hover {
  background: var(--bp-orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(221, 104, 0, 0.4);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-submit .btn-arrow {
  font-size: 20px;
  transition: transform var(--duration-fast) var(--ease-default);
}

.btn-submit:hover .btn-arrow {
  transform: translateX(4px);
}

/* Loading state */
.btn-submit.loading {
  pointer-events: none;
  position: relative;
}

.btn-submit.loading .btn-text,
.btn-submit.loading .btn-arrow {
  opacity: 0;
}

.btn-submit.loading::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Thanks Section --- */
.thanks-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  background: linear-gradient(180deg, var(--ice-blue) 0%, var(--white) 100%);
}

.thanks-content {
  max-width: 560px;
}

.thanks-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 28px;
  background: var(--frost);
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: thanks-pop 0.5s var(--ease-default);
}

@keyframes thanks-pop {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.thanks-icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--bp-blue);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.thanks-content h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--bp-blue);
  margin-bottom: 16px;
}

.thanks-content p {
  font-size: var(--font-size-body);
  color: var(--text-medium);
  line-height: 1.8;
  margin-bottom: 12px;
}

.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bp-blue);
  color: var(--white);
  border: none;
  padding: 14px 36px;
  font-size: var(--font-size-body);
  font-weight: 700;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: var(--font-family);
  text-decoration: none;
  margin-top: 24px;
  transition: all var(--duration-fast) var(--ease-default);
}

.btn-back-home:hover {
  background: var(--bp-blue-dark);
  transform: translateY(-1px);
}

/* --- Footer --- */
.q-footer {
  background: linear-gradient(135deg, var(--bp-blue), var(--bp-blue-dark));
  color: var(--text-on-blue);
  text-align: center;
  padding: 28px 24px;
  font-size: var(--font-size-sm);
}

.q-footer-wave {
  line-height: 0;
  background: var(--ice-blue);
}

.q-footer-wave svg {
  display: block;
  width: 100%;
  height: 60px;
}

/* --- Wave between sections --- */
.section-wave {
  line-height: 0;
  margin: 0;
  position: relative;
  z-index: 1;
}

.section-wave svg {
  display: block;
  width: 100%;
  height: 60px;
}

.section-wave-from-blue {
  background: var(--ice-blue);
}

/* --- Responsive --- */
@media (max-width: 1023px) {
  .hero h1 {
    font-size: 34px;
  }
}

@media (max-width: 767px) {
  .hero {
    padding: 60px 20px 0;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .step-cards {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 32px auto 48px;
  }

  .step-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
  }

  .step-card-body {
    text-align: left;
  }

  .step-icon {
    margin: 0;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  .step-icon svg {
    width: 28px;
    height: 28px;
  }

  .step-badge {
    margin-bottom: 4px;
    font-size: 10px;
    padding: 2px 10px;
  }

  .step-card h3 {
    font-size: var(--font-size-sm);
  }

  .step-card p {
    font-size: var(--font-size-xs);
  }

  .section-watermark {
    font-size: 100px;
  }

  .q-section {
    padding: 48px 16px 32px;
  }

  .section-header h2 {
    font-size: 22px;
  }

  .question-card {
    padding: 28px 20px;
    margin-bottom: 20px;
  }

  .question-text {
    font-size: 17px;
  }

  .options-grid,
  .options-grid.cols-3 {
    grid-template-columns: 1fr;
  }

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

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

  .ratio-content {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    text-align: left;
  }

  .ratio-bar {
    width: 80px;
    min-width: 80px;
    height: 24px;
    margin-bottom: 0;
    border-radius: 4px;
  }

  .ratio-text-wrap {
    flex: 1;
    min-width: 0;
  }

  .ratio-label {
    font-size: var(--font-size-sm);
  }

  .ratio-desc {
    font-size: var(--font-size-xs);
    margin-top: 2px;
  }

  .ratio-living,
  .ratio-bike {
    font-size: 0;
  }

  .ratio-legend {
    gap: 16px;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  .ratio-check {
    display: flex;
  }

  .option-content {
    padding: 14px 16px;
  }

  .concept-illustration {
    padding: 16px 10px;
  }

  .concept-room-living,
  .concept-room-garage {
    padding: 6px 4px;
  }

  .concept-room-living svg,
  .concept-room-garage svg,
  .concept-room svg {
    width: 20px !important;
    height: 20px !important;
  }

  .concept-room-label {
    font-size: 9px;
  }

  .concept-floor-label {
    font-size: 10px;
  }

  .concept-elevator {
    width: 36px;
    min-width: 36px;
  }

  .hero-description br {
    display: none;
  }

  .concept-features {
    gap: 12px;
    font-size: var(--font-size-xs);
  }

  .submit-content h2 {
    font-size: 22px;
  }

  .btn-submit {
    padding: 14px 36px;
    font-size: var(--font-size-body);
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 479px) {
  .hero h1 {
    font-size: 24px;
  }

  .concept-illustration {
    padding: 12px 6px;
  }

  .concept-features {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .concept-room-living svg,
  .concept-room-garage svg,
  .concept-room svg {
    width: 16px !important;
    height: 16px !important;
  }

  .concept-room-label {
    font-size: 8px;
  }

  .concept-floor-label {
    font-size: 9px;
  }

  .concept-elevator {
    width: 28px;
    min-width: 28px;
  }

  .concept-elevator-label {
    font-size: 8px;
  }

  .section-watermark {
    font-size: 70px;
  }
}
