* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  background: #ffffff;
  border-radius: 24px;
  padding: 48px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.logo {
  text-align: center;
  margin-bottom: 20px;
}

.logo h1 {
  font-size: 42px;
  font-weight: 800;
  color: #1a1a2e;
  letter-spacing: 2px;
}

.tagline {
  text-align: center;
  color: #666;
  font-size: 15px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #f0f0f0;
  border-radius: 10px;
  margin-bottom: 36px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6b6b 0%, #ee5a6f 100%);
  transition: width 0.4s ease;
  border-radius: 10px;
}

.form-container,
.question-container {
  display: none;
  animation: fadeIn 0.5s ease;
}

.form-container.active,
.question-container.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-header {
  text-align: center;
  margin-bottom: 36px;
}

.form-header h2 {
  color: #1a1a2e;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-header p {
  color: #666;
  font-size: 15px;
}

.form-group {
  margin-bottom: 24px;
}

label {
  display: block;
  color: #1a1a2e;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 14px;
}

label .required {
  color: #ff6b6b;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.3s ease;
  font-family: inherit;
  color: #1a1a2e;
  background: #fafafa;
}

input:focus,
select:focus {
  outline: none;
  border-color: #ff6b6b;
  background: #fff;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-option {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #fafafa;
}

.radio-option:hover {
  background: #fff;
  border-color: #ff6b6b;
  transform: translateX(4px);
}

.radio-option input[type="radio"] {
  margin-right: 12px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #ff6b6b;
}

.radio-option.selected {
  background: #ff6b6b;
  border-color: #ff6b6b;
  color: white;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

.submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.error-message {
  color: #ff6b6b;
  font-size: 13px;
  margin-top: 6px;
  display: none;
}

.question-number {
  color: #ff6b6b;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

h2 {
  color: #1a1a2e;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 32px;
  line-height: 1.4;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.option {
  background: #fafafa;
  border: 2px solid #e8e8e8;
  border-radius: 14px;
  padding: 18px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  color: #1a1a2e;
  font-weight: 500;
}

.option:hover {
  background: #fff;
  border-color: #ff6b6b;
  transform: translateX(6px);
}

.option.selected {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  border-color: #ff6b6b;
  color: white;
  font-weight: 600;
}

.completion-screen {
  display: none;
  text-align: center;
}

.completion-screen.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.completion-icon {
  font-size: 80px;
  margin-bottom: 24px;
}

.completion-screen h2 {
  color: #ff6b6b;
  margin-bottom: 12px;
}

.completion-screen > p {
  color: #666;
  margin-bottom: 32px;
}

.summary {
  background: #fafafa;
  border-radius: 16px;
  padding: 32px;
  margin-top: 32px;
  text-align: left;
}

.summary-section {
  margin-bottom: 28px;
}

.summary-section:last-child {
  margin-bottom: 0;
}

.summary-section h3 {
  color: #ff6b6b;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  border-bottom: 2px solid #e8e8e8;
  padding-bottom: 10px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #e8e8e8;
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-label {
  color: #666;
  font-weight: 500;
}

.summary-value {
  color: #1a1a2e;
  font-weight: 600;
  text-align: right;
}

.restart-btn {
  margin-top: 32px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: white;
  border: none;
  padding: 16px 48px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.restart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

.loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.loading-overlay.active {
  display: flex;
}

.loading-content {
  background: white;
  padding: 40px;
  border-radius: 16px;
  text-align: center;
}

.spinner {
  border: 4px solid #f0f0f0;
  border-top: 4px solid #ff6b6b;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.status-message {
  margin-top: 20px;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
}

.status-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

@media (max-width: 640px) {
  .container {
    padding: 32px 24px;
  }

  .logo h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 22px;
  }
}
