/* src/App.css */
body {
  margin: 0;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  background-color: #f4f6f8;
  color: #1f2937;
  -webkit-font-smoothing: antialiased;
}
.survey-container {
  min-height: 100vh;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
}
.survey-wrapper {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  padding: 32px 40px;
}
.header-card {
  border-left: 6px solid #3b82f6;
  padding-top: 36px;
}
.header-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #3b82f6;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.survey-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #111827;
  margin: 0 0 24px 0;
}
.survey-summary-box {
  background-color: #eff6ff;
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1e3a8a;
  font-size: 0.95rem;
}
.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #374151;
  margin: 0 0 24px 0;
}
.basic-info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.input-group {
  flex: 1 1 calc(50% - 10px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.input-group.full-width {
  flex: 1 1 100%;
}
.input-group label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #4b5563;
}
.input-group input,
.input-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #374151;
  background-color: white;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: #3b82f6;
}
.question-item {
  margin-bottom: 40px;
}
.question-item:last-child {
  margin-bottom: 0;
}
.question-text {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 20px;
}
.q-number-circle {
  background-color: #3b82f6;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.options-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 768px) {
  .options-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .options-grid {
    grid-template-columns: 1fr;
  }
}
.option-card {
  display: flex;
  align-items: center;
  padding: 16px;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
  color: #4b5563;
}
.option-card:hover {
  border-color: #d1d5db;
  background: white;
}
.option-card.selected {
  background: white;
  border-color: #3b82f6;
  color: #111827;
  font-weight: 600;
  box-shadow: 0 0 0 1px #3b82f6;
}
.option-card input[type=radio] {
  display: none;
}
.radio-custom {
  width: 16px;
  height: 16px;
  border: 1px solid #9ca3af;
  border-radius: 50%;
  margin-right: 12px;
  position: relative;
  flex-shrink: 0;
}
.option-card.selected .radio-custom {
  border-color: #3b82f6;
}
.option-card.selected .radio-custom::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background-color: #3b82f6;
  border-radius: 50%;
}
.text-input-wrapper textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
  background: #f9fafb;
  box-sizing: border-box;
}
.text-input-wrapper textarea:focus {
  outline: none;
  border-color: #3b82f6;
  background: white;
}
.empty-state {
  text-align: center;
  color: #9ca3af;
  padding: 40px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px dashed #d1d5db;
}
.submit-wrapper {
  margin-top: 30px;
  text-align: right;
}
.submit-btn {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 14px 40px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.submit-btn:hover:not(:disabled) {
  background: #2563eb;
}
.submit-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}
.loading-screen,
.success-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  font-size: 1.5rem;
  color: #4b5563;
}
