/* ========================================
   Finance Survey - Pivato Investing
   ======================================== */

:root {
  --navy: #0b1a2e;
  --navy-light: #122240;
  --teal: #1a3a4a;
  --teal-light: #1e4d5e;
  --gold: #c9a84c;
  --gold-light: #e0c56a;
  --gold-dark: #a88b3a;
  --white: #f4f4f6;
  --gray: #9ca3af;
  --gray-light: #d1d5db;
  --bg: #070e1a;
  --card-bg: #0f1f35;
  --radius: 12px;
  --transition: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--white);
  min-height: 100vh;
  line-height: 1.6;
}

/* Screens */
.screen {
  display: none;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.screen.active {
  display: flex;
}

.container {
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
}

/* ========== Welcome Screen ========== */

#welcome {
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, var(--navy-light) 0%, var(--bg) 70%);
}

.logo {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 24px;
}

#welcome h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--white) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 1.05rem;
  color: var(--gray);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.note {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 16px;
}

/* ========== Welcome - Survey Preview ========== */

#welcome {
  align-items: flex-start;
  padding-top: 64px;
  padding-bottom: 64px;
}

.survey-preview {
  text-align: left;
  margin-top: 48px;
  margin-bottom: 40px;
}

.preview-heading {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.preview-item {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 24px 20px;
}

.preview-icon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 10px;
}

.preview-item h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}

.preview-item p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.5;
}

.survey-covers {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 24px 28px;
}

.survey-covers h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}

.covers-list {
  list-style: none;
  padding: 0;
}

.covers-list li {
  padding: 6px 0 6px 20px;
  position: relative;
  font-size: 0.9rem;
  color: var(--gray-light);
}

.covers-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

@media (max-width: 600px) {
  .preview-grid {
    grid-template-columns: 1fr;
  }

  #welcome {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

/* ========== Buttons ========== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--navy);
  padding: 14px 40px;
  font-size: 1.05rem;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--gray);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 24px;
  font-size: 0.9rem;
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-full {
  width: 100%;
  padding: 14px;
}

.btn-link {
  background: none;
  color: var(--gray);
  font-size: 0.9rem;
  text-decoration: underline;
  padding: 12px;
  margin-top: 16px;
}

.btn-link:hover {
  color: var(--gold);
}

/* ========== Progress Bar ========== */

.progress-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border-radius: 3px;
  transition: width 0.4s ease;
  width: 12.5%;
}

.progress-text {
  font-size: 0.8rem;
  color: var(--gray);
  white-space: nowrap;
  min-width: 44px;
}

/* ========== Question Card ========== */

.question-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 40px 32px;
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.question-card h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.question-label {
  font-size: 0.8rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  font-weight: 500;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.option-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--white);
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}

.option-btn:hover {
  background: rgba(201, 168, 76, 0.08);
  border-color: var(--gold);
  transform: translateX(4px);
}

.option-btn.selected {
  background: rgba(201, 168, 76, 0.12);
  border-color: var(--gold);
  color: var(--gold-light);
  font-weight: 500;
}

/* ========== Nav Buttons ========== */

.nav-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: flex-start;
}

/* ========== Results Screen ========== */

#results {
  background: radial-gradient(ellipse at 50% 0%, var(--navy-light) 0%, var(--bg) 70%);
  padding-top: 48px;
  padding-bottom: 48px;
}

#results .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.results-card {
  background: var(--card-bg);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  width: 100%;
  animation: fadeIn 0.5s ease;
}

.profile-badge {
  display: inline-block;
  font-size: 3rem;
  margin-bottom: 12px;
}

.results-card h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.profile-summary {
  color: var(--gray);
  font-size: 1rem;
  margin-bottom: 24px;
}

.insights-list {
  list-style: none;
  text-align: left;
  padding: 0;
}

.insights-list li {
  padding: 12px 16px;
  border-left: 3px solid var(--gold);
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  color: var(--gray-light);
}

/* ========== Pitfalls Card ========== */

.pitfalls-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 36px 32px;
  width: 100%;
  margin-top: 24px;
  animation: fadeIn 0.5s ease 0.15s both;
}

.pitfalls-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--white);
}

.pitfalls-intro {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.pitfalls-list {
  list-style: none;
  padding: 0;
  margin-bottom: 28px;
}

.pitfalls-list li {
  padding: 12px 16px;
  border-left: 3px solid #e05555;
  margin-bottom: 10px;
  background: rgba(224, 85, 85, 0.04);
  border-radius: 0 8px 8px 0;
  font-size: 0.93rem;
  color: var(--gray-light);
}

.skool-cta {
  background: rgba(201, 168, 76, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 10px;
  padding: 24px;
}

.skool-cta p {
  color: var(--gray-light);
  font-size: 0.95rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

.skool-cta strong {
  color: var(--gold-light);
}

.skool-cta .btn {
  text-decoration: none;
}

@media (max-width: 600px) {
  .pitfalls-card {
    padding: 28px 20px;
  }

  .skool-cta {
    padding: 20px 16px;
  }
}

/* ========== CTA Card ========== */

.cta-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 36px 32px;
  width: 100%;
  margin-top: 24px;
  animation: fadeIn 0.5s ease 0.2s both;
}

.cta-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--white);
}

.cta-card > p {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

/* ========== Form ========== */

.form-group {
  margin-bottom: 12px;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition);
}

.form-group input::placeholder {
  color: var(--gray);
}

.form-group input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.05);
}

.form-success {
  text-align: center;
  padding: 32px 0;
}

.form-success h3 {
  margin-top: 12px;
  font-size: 1.3rem;
  color: var(--gold-light);
}

.form-success p {
  color: var(--gray);
  margin-top: 8px;
}

/* ========== Responsive ========== */

@media (max-width: 600px) {
  .screen {
    padding: 20px 16px;
  }

  .question-card {
    padding: 28px 20px;
  }

  .results-card,
  .cta-card {
    padding: 28px 20px;
  }

  .option-btn {
    padding: 14px 16px;
    font-size: 0.9rem;
  }
}
