/* styles.css */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #090d16;
  color: #f8fafc;
  padding: 20px;
}

.card {
  background: #1e293b;
  padding: 2.5rem;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 500px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

h1 {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.75rem;
  color: #f1f5f9;
  letter-spacing: -0.02em;
}

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 0.6rem;
}

/* Custom Dropdown Styling */
.custom-select-wrapper {
  position: relative;
  margin-bottom: 0.85rem;
}

.custom-select-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 500;
  color: #38bdf8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.custom-select-trigger:hover {
  border-color: rgba(56, 189, 248, 0.3);
  background: #141e33;
}

.arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  margin-left: 10px;
}

.custom-select-wrapper.open .arrow {
  transform: rotate(-135deg);
}

.custom-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 10;
  max-height: 280px;
  overflow-y: auto;
}

.custom-select-wrapper.open .custom-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-option {
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #cbd5e1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.custom-option:last-child {
  border-bottom: none;
}

.custom-option:hover {
  background: #1e293b;
  color: #38bdf8;
}

.custom-option.selected {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
}

/* Problem Skeptic Description Box */
.problem-description-box {
  margin-bottom: 1.5rem;
  padding: 0 0.25rem;
}

#problemDescription {
  font-size: 0.85rem;
  line-height: 1.45;
  color: #94a3b8;
}

/* Subtitle Container */
.subtitle-box {
  background: rgba(15, 23, 42, 0.5);
  border-left: 3px solid #38bdf8;
  padding: 1.1rem 1.25rem;
  border-radius: 0 14px 14px 0;
  margin-bottom: 1.75rem;
  min-height: 80px;
  display: flex;
  align-items: center;
}

.subtitle-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.subtitle {
  font-size: 0.925rem;
  line-height: 1.5;
  color: #cbd5e1;
  font-style: italic;
}

/* Loading Spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(56, 189, 248, 0.2);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  align-self: center;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Toggle Row Styling */
.toggle-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  transition: background 0.3s ease;
}

.label {
  font-size: 1.05rem;
  font-weight: 500;
  color: #e2e8f0;
}

/* Slider Styling */
.switch {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 30px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #334155;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 30px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input[data-id="powerful"]:checked + .slider {
  background-color: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

input[data-id="knowing"]:checked + .slider {
  background-color: #06b6d4;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
}

input[data-id="loving"]:checked + .slider {
  background-color: #f43f5e;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.4);
}

input:checked + .slider:before {
  transform: translateX(26px);
}
