@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600&family=Inter:wght@400;500&display=swap');

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #FFFDF7;
  color: #1a1a1a;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 80px;
}

.form-container {
  width: 100%;
  max-width: 640px;
  padding: 1.5rem 2rem 3rem;
  position: relative;
}

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(180deg, #e8f4f8 0%, #d4eaf1 100%);
  z-index: 100;
  overflow: hidden;
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  transition: width 0.5s ease;
  overflow: hidden;
}

.progress-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  animation: progressWaveSlide 3s linear infinite;
}

.progress-wave .wave-1 {
  fill: #2d7d9a;
  opacity: 1;
}

.progress-wave .wave-2 {
  fill: #3d9cb8;
  opacity: 0.8;
  animation: waveFloat 2s ease-in-out infinite;
}

.progress-wave .wave-3 {
  fill: #5bb5cc;
  opacity: 0.6;
  animation: waveFloat 2.5s ease-in-out infinite reverse;
}

@keyframes progressWaveSlide {
  0% {
    transform: translateX(-25%);
  }
  100% {
    transform: translateX(0%);
  }
}

@keyframes waveFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.progress-foam {
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0.8) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.progress-fill:not([style*="width: 0"]) ~ .progress-foam,
.progress-bar:has(.progress-fill[style*="width:"]:not([style*="width: 0"])) .progress-foam {
  opacity: 1;
}

.screen {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.screen.active {
  display: block;
  opacity: 1;
}

/* ============================================
   MINIMAL WAVE ACCENT
   ============================================ */

.wave-accent {
  position: absolute;
  bottom: -100px;
  left: -50%;
  width: 200%;
  height: 200px;
  background: linear-gradient(180deg, transparent 0%, rgba(26, 26, 26, 0.03) 100%);
  border-radius: 50% 50% 0 0;
  pointer-events: none;
}

/* Button wave effect */
.wave-btn {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, transparent 0%, rgba(26, 26, 26, 0.08) 100%);
  transition: height 0.3s ease;
  pointer-events: none;
}

.options button:hover .wave-btn {
  height: 100%;
}

.options button.selected .wave-btn {
  height: 100%;
  background: transparent;
}

/* ============================================
   INTRO SCREEN
   ============================================ */

.screen[data-screen="intro"] {
  position: relative;
  min-height: auto;
}

.intro-content {
  position: relative;
  z-index: 2;
}

.screen[data-screen="intro"] p {
  font-size: 1.05rem;
  color: #444;
  max-width: 520px;
  margin-bottom: 1rem;
}

.screen[data-screen="intro"] .sublabel {
  font-size: 0.9rem;
  color: #888;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.screen[data-screen="intro"] .start-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 1rem 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  background: #1a1a1a;
  color: #FFFDF7;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
}

.screen[data-screen="intro"] .start-btn:hover {
  background: #333;
  transform: translateY(-2px);
}

/* ============================================
   BACK BUTTON
   ============================================ */

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  padding: 0.5rem 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #888;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-btn:hover {
  color: #1a1a1a;
  transform: translateX(-3px);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

label {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.sublabel {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

/* ============================================
   FORM INPUTS
   ============================================ */

input, textarea {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  padding: 0.875rem 0;
  border: none;
  border-bottom: 1px solid rgba(26, 26, 26, 0.15);
  background: transparent;
  outline: none;
  margin-bottom: 0.5rem;
  transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
  border-bottom-color: #1a1a1a;
}

input::placeholder, textarea::placeholder {
  color: rgba(26, 26, 26, 0.35);
}

textarea {
  resize: vertical;
  border: 1px solid rgba(26, 26, 26, 0.15);
  border-radius: 4px;
  padding: 0.875rem;
  min-height: 100px;
}

textarea:focus {
  border-color: #1a1a1a;
}

/* Validation messages */
.validation-msg {
  font-size: 0.85rem;
  color: #c44;
  min-height: 1.25rem;
  margin-bottom: 0.5rem;
}

.validation-msg.encourage {
  color: #996600;
}

/* ============================================
   OPTIONS BUTTONS
   ============================================ */

.options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.options button {
  position: relative;
  padding: 1rem 1.25rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  text-align: left;
  background: white;
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  overflow: hidden;
}

.options button:hover {
  border-color: rgba(26, 26, 26, 0.3);
}

.options button.selected {
  background: #1a1a1a;
  color: #FFFDF7;
  border-color: #1a1a1a;
}

/* ============================================
   SUBMIT / CONTINUE BUTTONS
   ============================================ */

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.875rem 1.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  background: #1a1a1a;
  color: #FFFDF7;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
}

.submit-btn:hover {
  background: #333;
  transform: translateY(-1px);
}

.submit-btn .arrow {
  transition: transform 0.3s ease;
}

.submit-btn:hover .arrow {
  transform: translateX(3px);
}

.submit-btn:disabled {
  background: #1a1a1a;
  cursor: default;
  transform: none;
}

/* ============================================
   OTHER INPUT SECTIONS
   ============================================ */

.other-input-wrapper {
  display: none;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(26, 26, 26, 0.08);
}

.other-input-wrapper.visible {
  display: block;
}

.other-input-wrapper input {
  margin-bottom: 0;
}

.other-input-inline {
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}

.other-input-inline input {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: 6px;
  font-size: 0.9rem;
}

.other-input-inline input:focus {
  border-color: #1a1a1a;
}

.other-input-inline input::placeholder {
  color: rgba(26, 26, 26, 0.4);
  font-style: italic;
}

/* ============================================
   THANK YOU SCREEN
   ============================================ */

.screen[data-screen="thanks"] {
  position: relative;
  z-index: 1;
}

.thanks-wave-bg {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40vh;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(26, 26, 26, 0.02) 20%,
    rgba(26, 26, 26, 0.05) 40%,
    rgba(26, 26, 26, 0.85) 70%,
    #1a1a1a 100%
  );
  pointer-events: none;
  z-index: 0;
}

.thanks-content {
  position: relative;
  z-index: 1;
  padding-bottom: 12rem;
}

.screen[data-screen="thanks"] h1 {
  margin-bottom: 1rem;
}

.screen[data-screen="thanks"] p {
  font-size: 1rem;
  color: #444;
}

.contact-info {
  background: white;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border: 1px solid rgba(26, 26, 26, 0.08);
}

.contact-info p {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.contact-info p:first-child {
  color: #666;
  margin-bottom: 0.75rem;
}

.contact-info p:last-child {
  margin-bottom: 0;
}

.contact-info a {
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 26, 26, 0.2);
  transition: border-color 0.2s ease;
}

.contact-info a:hover {
  border-bottom-color: #1a1a1a;
}

.referral-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(26, 26, 26, 0.08);
}

.referral-section label {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.referral-section .sublabel {
  margin-bottom: 0.75rem;
}

.referral-section textarea {
  min-height: 60px;
}

.closing {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  font-size: 1.2rem;
  font-style: italic;
  text-align: center;
  z-index: 10;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ============================================
   MISC
   ============================================ */

.hint {
  color: rgba(26, 26, 26, 0.4);
  font-size: 0.8rem;
  margin-top: 2rem;
  letter-spacing: 0.02em;
}

p {
  line-height: 1.65;
  margin-bottom: 1rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 600px) {
  body {
    padding-top: 70px;
  }

  .progress-bar {
    height: 50px;
  }

  .form-container {
    padding: 1rem 1.5rem 2rem;
  }

  h1 {
    font-size: 2rem;
  }

  label {
    font-size: 1.4rem;
  }

  .thanks-wave-bg {
    height: 35vh;
  }

  .closing {
    bottom: 1.5rem;
    font-size: 1.1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.4);
  }
}
