* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #0a0a0a, #1c1c1c);
  color: white;
}

.container {
  max-width: 480px;
  margin: auto;
  padding: 20px;
}

.header {
  text-align: center;
}

.header h1 {
  color: #ffc107;
  margin: 0 0 6px;
}

.subtitle {
  font-size: 13px;
  color: #aaa;
}

.pet-photo {
  text-align: center;
  margin: 20px 0;
}

.pet-photo img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffc107;
}

.pet-photo span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #aaa;
}

.progress {
  height: 4px;
  background: #333;
  border-radius: 10px;
  margin: 15px 0;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: #ffc107;
  border-radius: 10px;
  transition: 0.3s;
}

.step { display: none; }
.step.active { display: block; }

input, textarea {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  margin-top: 10px;
  background: #1f1f1f;
  color: white;
}

input:focus, textarea:focus {
  outline: 2px solid #ffc107;
}

.card-group {
  display: block;
}

.card {
  display: block;
  background: #1f1f1f;
  padding: 14px;
  border-radius: 14px;
  margin-top: 10px;
  cursor: pointer;
  border: 1px solid transparent;
}

.card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.card:has(input:checked) {
  border-color: #ffc107;
  background: #2a2a2a;
}

.buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

button {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

.next { background: #ffc107; color: black; }
.back { background: #333; color: white; }

.back:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

#submit-button {
  display: none;
}

.form-status {
  min-height: 20px;
  font-size: 13px;
  color: #aaa;
  margin: 10px 0 0;
}

.form-status.success {
  color: #67d5a1;
}

.form-status.error {
  color: #ff7f8d;
}

@media (max-width: 560px) {
  .container {
    padding: 16px;
  }

  .header h1 {
    font-size: 1.7rem;
    line-height: 1.15;
  }

  .subtitle {
    font-size: 12px;
  }

  .pet-photo {
    margin: 16px 0 18px;
  }

  .pet-photo img {
    width: 92px;
    height: 92px;
  }

  .pet-photo span {
    font-size: 11px;
  }

  h3 {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  p {
    margin: 14px 0 6px;
    font-size: 0.95rem;
  }

  input,
  textarea {
    padding: 13px;
    font-size: 16px;
  }

  .card {
    padding: 13px;
    border-radius: 13px;
  }

  .buttons {
    gap: 8px;
    margin-top: 18px;
  }

  button {
    min-height: 48px;
    padding: 13px 14px;
    font-size: 0.96rem;
  }

  .form-status {
    font-size: 12px;
  }
}
