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

body {
  font-family: 'Inter', sans-serif;
  background: #0c0c0c;
  color: #f0ebe0;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 64px 40px;
}

.header {
  text-align: center;
  margin-bottom: 0;
  background: #0c0c0c;
  margin: -64px calc(-50vw + 50%) 0 calc(-50vw + 50%);
  padding: 48px calc(50vw - 50% + 40px) 48px calc(50vw - 50% + 40px);
  border-bottom: 1px solid rgba(201, 174, 113, 0.3);
}

.main-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #f0ebe0;
  margin-bottom: 32px;
  letter-spacing: 0.05em;
}

.intro-text {
  font-size: 2.2rem;
  color: #f0ebe0;
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 700;
  text-align: center;
}

.breathing-prompt {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 24px 0;
  margin: 32px auto;
  max-width: 500px;
}

.breathing-prompt p {
  font-style: italic;
  color: #f0ebe0;
  margin-bottom: 8px;
  font-size: 1.1rem;
  font-weight: 700;
}

.breathing-prompt p:last-child {
  margin-bottom: 0;
}

.note-box {
  background: #161616;
  border: 1px solid rgba(201, 174, 113, 0.4);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 32px auto;
  max-width: 700px;
  text-align: left;
}

.note-box p {
  font-size: 1.1rem;
  color: #f0ebe0;
  margin-bottom: 12px;
  font-weight: 700;
}

.note-box p:last-child {
  margin-bottom: 0;
}

.section-intro {
  font-size: 1rem;
  color: rgba(240, 235, 224, 0.6);
  font-weight: 400;
  margin-top: 12px;
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}

.form-section {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(240, 235, 224, 0.08);
}

.form-section.gates-section {
  background: #0c0c0c;
  margin: 0 calc(-50vw + 50%) 32px calc(-50vw + 50%);
  padding: 32px calc(50vw - 50% + 40px) 32px calc(50vw - 50% + 40px);
  border-bottom: none;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #C9AE71;
  margin-bottom: 12px;
  text-align: center;
}

.gates-section .section-title {
  color: #f0ebe0;
}

.section-desc {
  font-size: 1rem;
  color: rgba(240, 235, 224, 0.5);
}

.q-helper {
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(240, 235, 224, 0.45);
  font-style: italic;
  margin-top: 4px;
  margin-bottom: 12px;
}

.micro-transition {
  font-size: 1.05rem;
  font-weight: 500;
  color: #f0ebe0;
  line-height: 1.5;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 45px;
  padding: 0;
}

.progress-track {
  margin-bottom: 48px;
  position: sticky;
  top: 0;
  background: #0c0c0c;
  z-index: 100;
  padding: 12px 0 8px;
  border-bottom: 1px solid rgba(201, 174, 113, 0.1);
}

.progress-bar-container {
  width: 100%;
  height: 2px;
  background: rgba(201, 174, 113, 0.15);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: #C9AE71;
  border-radius: 2px;
  transition: width 0.4s ease;
}

.progress-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(240, 235, 224, 0.7);
  margin-top: 10px;
  text-align: center;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.multi-hint {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: rgba(240, 235, 224, 0.4);
  font-style: italic;
  margin: -6px 0 12px;
  letter-spacing: 0.02em;
}

.progress-encouragement {
  font-size: 0.9rem;
  color: rgba(240, 235, 224, 0.5);
  text-align: center;
  margin-top: 8px;
  font-weight: 500;
}

.gate-image {
  width: 110%;
  max-width: 110%;
  margin: 24px 0 0;
  margin-left: -5%;
  display: block;
  border-radius: 12px;
  border: none;
}

.question-block {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(201, 174, 113, 0.15);
  border-radius: 0;
  padding: 28px 0;
  margin-bottom: 0;
}

.question-block:last-of-type {
  border-bottom: none;
}

.question-block.critical {
  border-color: rgba(201, 174, 113, 0.15);
  background: transparent;
}

.question-label {
  display: block;
  font-size: 1.15rem;
  font-weight: 500;
  color: #f0ebe0;
  margin-bottom: 12px;
  line-height: 1.5;
}

.required {
  color: #C9AE71;
}

.checkbox-group,
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkbox-option,
.radio-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 13px 16px;
  background: transparent;
  border: 1px solid rgba(240, 235, 224, 0.1);
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: 1rem;
  color: rgba(240, 235, 224, 0.8);
}

.checkbox-option:hover,
.radio-option:hover {
  background: rgba(201, 174, 113, 0.05);
  border-color: rgba(201, 174, 113, 0.35);
}

.checkbox-option.selected,
.radio-option.selected {
  background: rgba(201, 174, 113, 0.08);
  border-color: #C9AE71;
  color: #f0ebe0;
}

.checkbox-option input,
.radio-option input {
  margin-top: 3px;
  accent-color: #C9AE71;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.text-input {
  width: 100%;
  background: #161616;
  border: 1px solid rgba(240, 235, 224, 0.12);
  border-radius: 8px;
  padding: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #f0ebe0;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.text-input:focus {
  outline: none;
  border-color: #C9AE71;
}

.text-input::placeholder {
  color: rgba(240, 235, 224, 0.25);
}

.scale-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.scale-label-left,
.scale-label-right {
  font-size: 0.9rem;
  color: rgba(240, 235, 224, 0.45);
  text-align: center;
}

.scale-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.scale-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.scale-option input {
  accent-color: #C9AE71;
  width: 20px;
  height: 20px;
}

.scale-option span {
  font-size: 1rem;
  color: rgba(240, 235, 224, 0.75);
  font-weight: 500;
}

/* Path Assessment Section */
.form-section.path-section {
  background: #0c0c0c;
  margin: 48px calc(-50vw + 50%) 32px calc(-50vw + 50%);
  padding: 32px calc(50vw - 50% + 40px) 32px calc(50vw - 50% + 40px);
  border-bottom: none;
  border-top: 1px solid rgba(201, 174, 113, 0.15);
}

.path-section ~ .question-block {
  border-color: rgba(201, 174, 113, 0.15);
}

.path-section ~ .question-block .likert-option,
.path-section ~ .question-block .radio-option {
  border-color: rgba(240, 235, 224, 0.1);
}

.section-description {
  font-size: 1rem;
  color: rgba(240, 235, 224, 0.5);
  text-align: center;
  margin-bottom: 8px;
  font-style: italic;
}

/* Likert Scale Styling */
.likert-scale {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.likert-option {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 13px 16px;
  background: transparent;
  border: 1px solid rgba(240, 235, 224, 0.1);
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: 1rem;
  color: rgba(240, 235, 224, 0.8);
}

.likert-option:hover {
  background: rgba(201, 174, 113, 0.05);
  border-color: rgba(201, 174, 113, 0.35);
}

.likert-option.selected {
  background: rgba(201, 174, 113, 0.08);
  border-color: #C9AE71;
  color: #f0ebe0;
}

.likert-option input {
  accent-color: #C9AE71;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.likert-option span {
  color: rgba(240, 235, 224, 0.8);
}

/* Readiness numeric 1–10 scale */
.scale-strip {
  display: flex;
  gap: 6px;
  justify-content: space-between;
  flex-wrap: nowrap;
  max-width: 560px;
  margin: 0 auto;
}
.scale-option {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  cursor: pointer;
  user-select: none;
}
.scale-option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
  margin: 0;
}
.scale-option .pip {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border: 1px solid rgba(240, 235, 224, 0.12);
  border-radius: 8px;
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: rgba(240, 235, 224, 0.6);
  background: #161616;
  transition: all .18s ease;
}
.scale-option:hover .pip {
  border-color: rgba(201, 174, 113, 0.4);
  background: rgba(201, 174, 113, 0.06);
  color: #f0ebe0;
}
.scale-option.selected .pip {
  background: #C9AE71;
  border-color: #C9AE71;
  color: #0c0c0c;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(201, 174, 113, 0.28);
}
.scale-option input:focus-visible + .pip {
  outline: 2px solid #C9AE71;
  outline-offset: 2px;
}
.scale-anchors {
  display: flex;
  justify-content: space-between;
  margin: 10px auto 0;
  max-width: 560px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(240, 235, 224, 0.65);
  text-transform: uppercase;
}
.screening-note {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: rgba(240, 235, 224, 0.4);
  font-style: italic;
  margin: -4px 0 14px;
}
@media (max-width: 480px) {
  .scale-strip { gap: 4px; max-width: 100%; }
  .scale-option .pip { height: 38px; font-size: 0.92rem; border-radius: 6px; }
  .scale-anchors { font-size: 0.7rem; }
}

/* Readiness drag-slider */
.slider-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 4px 12px 0;
}
.slider-readout {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  line-height: 1;
  color: #C9AE71;
  margin-bottom: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.readiness-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(to right, rgba(201,174,113,0.5), rgba(201,174,113,0.12));
  outline: none;
  cursor: pointer;
  margin: 0;
  padding: 0;
  border: none;
  -webkit-tap-highlight-color: transparent;
}
.readiness-slider:focus-visible {
  box-shadow: 0 0 0 3px rgba(201,174,113,0.3);
}
.readiness-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #C9AE71;
  border: 2px solid #0c0c0c;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5), 0 0 0 1px rgba(201,174,113,0.2);
  cursor: grab;
  transition: transform .12s ease, box-shadow .12s ease;
}
.readiness-slider:active::-webkit-slider-thumb {
  cursor: grabbing;
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(201,174,113,0.4), 0 0 0 1px rgba(0,0,0,0.1);
}
.readiness-slider::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #C9AE71;
  border: 2px solid #0c0c0c;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  cursor: grab;
}
.readiness-slider:active::-moz-range-thumb {
  cursor: grabbing;
  transform: scale(1.08);
}
.readiness-slider::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(to right, rgba(201,174,113,0.5), rgba(201,174,113,0.12));
}
.slider-ticks {
  display: flex;
  justify-content: space-between;
  margin: 12px 2px 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(240, 235, 224, 0.55);
  letter-spacing: 0.04em;
  user-select: none;
}
@media (max-width: 480px) {
  .slider-wrap { padding: 4px 8px 0; }
  .slider-readout { font-size: 1.6rem; margin-bottom: 10px; }
  .slider-ticks { font-size: 0.68rem; }
  .readiness-slider::-webkit-slider-thumb { width: 28px; height: 28px; }
  .readiness-slider::-moz-range-thumb { width: 28px; height: 28px; }
}

.submit-section {
  text-align: center;
  margin-top: 48px;
  padding-top: 32px;
}

.submit-btn {
  background: #C9AE71;
  color: #0c0c0c;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 16px 48px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.submit-btn:hover {
  background: #dfc27e;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 174, 113, 0.25);
}

.submit-btn:focus {
  outline: 2px solid #C9AE71;
  outline-offset: 3px;
}

.inline-hint {
  font-size: 0.85rem;
  color: rgba(240, 235, 224, 0.4);
  margin-top: 8px;
  padding: 6px 0;
}

.question-block.field-highlight {
  outline: 1px solid rgba(201, 174, 113, 0.6);
  outline-offset: 8px;
  border-radius: 4px;
}

.submit-reassurance {
  font-size: 0.95rem;
  color: #f0ebe0;
  margin-bottom: 20px;
}

.submit-privacy {
  font-size: 0.8rem;
  color: rgba(240, 235, 224, 0.3);
  margin-top: 14px;
}

.submit-error {
  font-size: 0.9rem;
  color: rgba(240, 235, 224, 0.6);
  text-align: center;
  margin-top: 20px;
  padding: 12px;
  background: rgba(240, 235, 224, 0.04);
  border-radius: 8px;
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.submit-btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

.footer {
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid rgba(201, 174, 113, 0.12);
  margin-top: 48px;
}

.footer p {
  color: rgba(240, 235, 224, 0.3);
  font-size: 0.85rem;
}

.result-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.result-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.result-icon {
  font-size: 80px;
  margin-bottom: 32px;
}

.accepted-icon {
  color: #50C878;
}

.notyet-icon {
  color: #C9AE71;
}

.result-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #C9AE71;
  margin-bottom: 32px;
  line-height: 1.3;
}

.result-message {
  margin-bottom: 40px;
}

.result-message p {
  font-size: 1.15rem;
  color: rgba(240, 235, 224, 0.8);
  margin-bottom: 16px;
  line-height: 1.8;
}

.next-steps {
  background: rgba(201, 174, 113, 0.07);
  border: 1px solid rgba(201, 174, 113, 0.25);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 40px;
  width: 100%;
}

.next-steps h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #C9AE71;
  margin-bottom: 16px;
}

.next-steps p {
  font-size: 1rem;
  color: rgba(240, 235, 224, 0.65);
  margin-bottom: 8px;
}

.next-steps p:last-child {
  margin-bottom: 0;
}

.cta-button {
  display: inline-block;
  padding: 18px 48px;
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.accepted-cta {
  background: #50C878;
  color: #000000;
}

.accepted-cta:hover {
  background: #6bd98d;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(80, 200, 120, 0.3);
}

.notyet-cta {
  background: #C9AE71;
  color: #000000;
}

.notyet-cta:hover {
  background: #dfc27e;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 174, 113, 0.3);
}

.secondary-link {
  color: rgba(240, 235, 224, 0.4);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.secondary-link:hover {
  color: #C9AE71;
}

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

  .header {
    margin: -28px calc(-50vw + 50%) 0 calc(-50vw + 50%);
    padding: 32px calc(50vw - 50% + 20px) 32px calc(50vw - 50% + 20px);
  }

  .intro-text {
    font-size: 2rem;
  }

  .main-title {
    font-size: 1.6rem;
  }

  .question-label {
    font-size: 1.05rem;
  }
  
  .result-title {
    font-size: 1.8rem;
  }
  
  .scale-options {
    gap: 4px;
  }
  
  .scale-option span {
    font-size: 0.85rem;
  }
  
  .checkbox-option,
  .radio-option {
    padding: 11px 14px;
    font-size: 0.95rem;
  }

  .likert-option {
    padding: 11px 14px;
    font-size: 0.95rem;
  }
  
  .cta-button {
    padding: 16px 36px;
    font-size: 1rem;
  }

  .form-section.gates-section,
  .form-section.path-section {
    padding-left: calc(50vw - 50% + 20px);
    padding-right: calc(50vw - 50% + 20px);
  }

  .micro-transition {
    font-size: 0.95rem;
  }

  .q-helper {
    font-size: 0.85rem;
  }
}
