body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(to bottom, #fff7f9, #fef0f5);
  margin: 0;
  padding: 20px;
  color: #3d2b33;
}

.container {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.97);
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.08);
}

h1,
h2 {
  text-align: center;
  color: #9d0759;
  margin-top: 0;
}

.intro {
  text-align: center;
  margin: 0 0 24px;
  line-height: 1.5;
  color: #5b4650;
}

.progress-wrap {
  margin-bottom: 24px;
}

.progress-meta {
  display: flex;
  justify-content: center;
  font-size: 14px;
  margin-bottom: 8px;
  color: #7a5b67;
}

.progress-bar-bg {
  width: 100%;
  height: 10px;
  background: #f3dbe4;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar-fill {
  width: 20%;
  height: 100%;
  background: #9d0759;
  border-radius: 999px;
  transition: width 0.25s ease;
}

.question {
  font-size: 20px;
  line-height: 1.45;
  margin-bottom: 14px;
  color: #4a343d;
}

textarea {
  width: 100%;
  min-height: 120px;
  margin: 12px 0 18px;
  padding: 14px;
  font-size: 16px;
  line-height: 1.45;
  border-radius: 10px;
  border: 1px solid #e0b1c1;
  background: #fff;
  color: #3d2b33;
  resize: vertical;
  box-sizing: border-box;
}

textarea:focus {
  outline: none;
  border-color: #d890a6;
  box-shadow: 0 0 0 3px rgba(216, 144, 166, 0.15);
}

.button-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

button {
  background: #9d0759;
  color: white;
  border: none;
  padding: 12px 22px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  min-width: 150px;
  transition: background 0.2s ease, transform 0.1s ease;
}

button:hover {
  background: #e08aa6;
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  background: #e8d2da;
  cursor: not-allowed;
}

#loading {
  text-align: center;
  padding: 24px 0;
  color: #5b4650;
}

.resultText {
  background: #fff;
  padding: 16px;
  border-radius: 10px;
  white-space: pre-wrap;
  margin-bottom: 20px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
  font-size: 15px;
  line-height: 1.5;
  color: #3d2b33;
  border: 1px solid #f0d8e1;
}

@media (max-width: 600px) {
  body {
    padding: 12px;
  }

  .container {
    padding: 20px 16px;
    border-radius: 14px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }

  .question {
    font-size: 18px;
  }

  textarea {
    min-height: 110px;
    font-size: 15px;
  }

  .button-row {
    flex-direction: column;
  }

  button {
    width: 100%;
    min-width: unset;
  }
}