* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
  background: linear-gradient(180deg, #e8e4de 0%, #dfdad3 100%);
  color: #4f4338;
}

.tablet-frame {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  background: #f7f5f1;
  border-radius: 0;
  box-shadow: none;
  padding: 24px 26px 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  position: relative;
  min-width: 320px;
}

.tablet-frame::after {
  content: "";
  position: absolute;
  right: -170px;
  bottom: -170px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 35%,
    rgba(255,255,255,0.65),
    rgba(196,156,86,0.12) 58%,
    rgba(196,156,86,0.04) 100%
  );
  border: 2px solid rgba(196,156,86,0.28);
  transform: rotate(-14deg);
  pointer-events: none;
}

.header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
  flex-wrap: nowrap;
  position: relative;
  z-index: 2;
}

.line {
  flex: 1;
  max-width: 160px;
  height: 1px;
  background: rgba(196,156,86,0.45);
  margin: 0 12px;
}

.center-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.subtitle {
  text-align: center;
  width: 100%;
  margin: 0;
  font-size: clamp(14px, 1.2vw, 18px);
  color: #6b5a4a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo {
  font-size: clamp(22px, 5vw, 48px);
  line-height: 1;
  letter-spacing: 2px;
  color: #c9a87c;
  font-weight: 600;
}

.step-top {
  font-size: 28px;
  color: #5e5144;
  white-space: nowrap;
  margin-left: 18px;
  display: none;
}

.content-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  flex: 1;
  min-height: 0;
  overflow: visible;
  width: 100%;
  padding: 0 8px;
  position: relative;
  z-index: 2;
}

.survey-card {
  width: 100%;
  min-height: 300px;
  max-width: 900px;
  max-height: calc(100vh - 220px);
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(196,156,86,0.18);
  border-radius: 30px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(108, 86, 59, 0.05);
  backdrop-filter: blur(2px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1 1 auto;
}

.question {
  font-size: 26px;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #000;
  text-align: center;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
  padding-right: 0;
  padding-top: 4px;
}

.options::-webkit-scrollbar {
  display: none;
}

.options::-webkit-scrollbar-track {
  background: #ece7df;
  border-radius: 999px;
}

.options::-webkit-scrollbar-thumb {
  background: #a89c8d;
  border-radius: 999px;
}

.option {
  position: relative;
}

.option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #dbcdb9;
  border-radius: 20px;
  background: #fbfaf8;
  cursor: pointer;
  transition: all 0.18s ease;
  font-size: 16px;
  color: #5d5146;
}

.option label:hover {
  border-color: #c79d56;
  background: #fffdf9;
  box-shadow: 0 6px 16px rgba(199, 157, 86, 0.10);
  transform: translateY(-1px);
}

.radio {
  width: 28px;
  height: 28px;
  border: 2px solid #9d9388;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  background: #fff;
  transition: all 0.2s ease;
}

.radio::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #c79d56;
  transform: scale(0);
  transition: transform 0.18s ease;
}

.option input:checked + label {
  border-color: #c79d56;
  background: linear-gradient(180deg, #fffdfa 0%, #f9f3ea 100%);
  box-shadow: 0 8px 18px rgba(199, 157, 86, 0.14);
}

.option input:checked + label .radio {
  border-color: #c79d56;
}

.option input:checked + label .radio::after {
  transform: scale(1);
}

.bottom-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin-top: 42px;
  flex-shrink: 0;
  width: 100%;
  position: relative;
  z-index: 2;
}

.bottom-bar.welcome-mode,
.bottom-bar.final-mode {
  display: flex;
  justify-content: center;
  align-items: center;
}

.bottom-bar.welcome-mode .btn-wrap-left,
.bottom-bar.welcome-mode .progress-center,
.bottom-bar.final-mode .btn-wrap-left,
.bottom-bar.final-mode .progress-center {
  display: none !important;
}

.bottom-bar.welcome-mode .btn-wrap-right,
.bottom-bar.final-mode .btn-wrap-right {
  display: flex;
  justify-content: center;
  width: 100%;
}

.btn-wrap-left {
  display: flex;
  justify-content: flex-start;
}

.btn-wrap-right {
  display: flex;
  justify-content: flex-end;
}

.btn {
  min-width: 210px;
  height: 60px;
  border-radius: 16px;
  border: none;
  font-size: 22px;
  font-family: Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-back {
  background: rgba(255, 255, 255, 0.72);
  color: #6d5a46;
  border: 1px solid rgba(201, 168, 124, 0.45);
  box-shadow: 0 6px 16px rgba(109, 90, 70, 0.08);
  backdrop-filter: blur(4px);
}

.btn-back:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.92);
  border-color: #c9a87c;
  color: #4f4338;
  box-shadow: 0 10px 22px rgba(109, 90, 70, 0.14);
  transform: translateY(-2px);
}

.btn-next {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #d6b486 0%, #c9a87c 45%, #b9915f 100%);
  color: #fff;
  border: 1px solid rgba(185, 145, 95, 0.85);
  box-shadow:
    0 10px 24px rgba(185, 145, 95, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.28);
}

.btn-next::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.18) 50%,
    transparent 100%
  );
  transition: left 0.6s ease;
}

.btn-next:hover:not(:disabled) {
  background: linear-gradient(135deg, #ddbc90 0%, #d0af84 45%, #bb9462 100%);
  box-shadow:
    0 14px 30px rgba(185, 145, 95, 0.34),
    inset 0 1px 0 rgba(255,255,255,0.32);
  transform: translateY(-2px);
}

.btn-next:hover:not(:disabled)::before {
  left: 140%;
}

.btn-next:active:not(:disabled),
.btn-back:active:not(:disabled) {
  transform: translateY(0);
}

.progress-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #9c7331;
  font-size: 26px;
}

.progress-track {
  width: 330px;
  height: 10px;
  background: #e5ddd1;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  width: 45.45%;
  height: 100%;
  background: linear-gradient(90deg, #9c7331 0%, #b98a43 100%);
  border-radius: 999px;
}

@media (max-width: 1100px) {
  .tablet-frame {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    padding: 24px 18px 20px;
  }

  .header {
    justify-content: center;
  }

  .step-top {
    grid-column: 1 / -1;
    justify-self: end;
    margin-left: 0;
  }

  .logo {
    font-size: 58px;
  }

  .question {
    font-size: 22px;
  }

  .option label {
    font-size: 20px;
    min-height: 56px;
  }

  .bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 1100px) and (orientation: landscape) {
  .tablet-frame {
    padding: 35px 16px 35px;
  }

  .header {
    margin-bottom: 14px;
  }

  .content-wrap {
    margin-top: 6px;
  }

  .bottom-bar {
    margin-top: 10px;
  }

  .logo {
    font-size: 48px;
  }

  .question {
    font-size: 18px;
  }

  .btn {
    min-width: 150px;
    height: 52px;
    font-size: 18px;
    border-radius: 14px;
  }
}

@media (max-width: 768px) {
  .tablet-frame {
    width: 100vw;
    height: 100vh;
    padding: 18px;
    border-radius: 0;
    box-shadow: none;
  }

  .tablet-frame::after {
    right: -180px;
    bottom: -180px;
    width: 420px;
    height: 420px;
  }

  .header {
    justify-content: center;
    gap: 14px;
    margin-bottom: 22px;
  }

  .logo {
    font-size: 42px;
  }

  .step-top {
    display: none;
  }

  .question {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .option label {
    font-size: 16px;
    min-height: 50px;
    padding: 8px;
  }

  .bottom-bar {
    gap: 12px;
    margin-top: 12px;
  }

  .btn {
    min-width: 150px;
    height: 52px;
    font-size: 18px;
    border-radius: 14px;
  }

  .progress-center {
    font-size: 20px;
  }

  .progress-track {
    width: 240px;
  }
}

@media (max-width: 480px) {
  .tablet-frame {
    width: 100vw;
    height: 100vh;
    padding: 14px;
  }

  .tablet-frame::after {
    right: -170px;
    bottom: -170px;
    width: 360px;
    height: 360px;
  }

  .logo {
    font-size: 32px;
  }

  .question {
    font-size: 16px;
  }

  .option label {
    font-size: 14px;
    min-height: 44px;
  }

  .btn {
    min-width: 125px;
    height: 46px;
    font-size: 16px;
    border-radius: 12px;
  }

  .progress-track {
    width: 170px;
  }
}