@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-primary: #eef2f7;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --accent-blue: #007aff;
  --accent-green: #34c759;
  --font-family-title: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-family-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  
  /* Neomorphic parameters */
  --clay-shadow-out: 10px 10px 20px rgba(163, 177, 198, 0.3), -10px -10px 20px rgba(255, 255, 255, 0.95);
  --clay-shadow-in: inset 3px 3px 7px rgba(163, 177, 198, 0.35), inset -3px -3px 7px rgba(255, 255, 255, 0.85);
  --glass-shadow: 0 15px 35px rgba(0, 52, 104, 0.06);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #528ee3;
  font-family: var(--font-family-body);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

/* Background image setup */
.bg-backdrop {
  position: fixed;
  inset: 0;
  z-index: -50;
  background-image: url('background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* Main intake container card */
.intake-card {
  max-width: 440px;
  width: 100%;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(25px) saturate(140%);
  -webkit-backdrop-filter: blur(25px) saturate(140%);
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  border-radius: 36px;
  box-shadow: var(--glass-shadow), var(--clay-shadow-out);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  min-height: 520px;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: card-entrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

/* Top Progress Bar & Header */
.intake-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.biz-logo-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-family-title);
  font-weight: 800;
  font-size: clamp(0.92rem, 4.5vw, 1.15rem);
  flex-shrink: 1;
  min-width: 0;
}

.biz-logo-icon {
  font-size: 1.25rem;
}

.step-tracker-label {
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Progress bar track */
.progress-track {
  height: 6px;
  width: 100%;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 2rem;
  position: relative;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #007aff, #34c759);
  border-radius: 3px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Typeform slide content container */
.slides-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 2rem;
}

/* Custom question animation logic (vertical slide + fade) */
.slide {
  position: absolute;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.slide.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Question elements styling */
.question-title {
  font-family: var(--font-family-title);
  font-weight: 800;
  font-size: 1.65rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.question-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 1.75rem;
}

/* Neomorphic Inputs */
.clay-input {
  width: 100%;
  padding: 1.15rem 1.35rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.35);
  box-shadow: inset 3px 3px 6px rgba(163, 177, 198, 0.25), inset -3px -3px 6px rgba(255, 255, 255, 0.8);
  font-family: var(--font-family-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  outline: none;
  transition: all 0.3s ease;
}

.clay-input:focus {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(0, 122, 255, 0.4);
  box-shadow: inset 3px 3px 6px rgba(163, 177, 198, 0.15), inset -3px -3px 6px rgba(255, 255, 255, 0.8), 0 0 12px rgba(0, 122, 255, 0.05);
}

/* Service Options Grid */
.tags-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.tag-option {
  padding: 0.9rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.3);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.01);
}

.tag-option:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(255, 255, 255, 0.9);
}

.tag-option.selected {
  background: var(--accent-blue);
  color: white;
  border-color: var(--accent-blue);
  box-shadow: 0 8px 20px rgba(0, 122, 255, 0.25);
  transform: translateY(-1px);
}

.tag-icon {
  font-size: 1.35rem;
}

/* Deposit details layout */
.deposit-box {
  background: rgba(230, 236, 244, 0.4);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: inset 2px 2px 5px rgba(163, 177, 198, 0.2), inset -2px -2px 5px rgba(255, 255, 255, 0.8);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.deposit-val {
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-top: 0.15rem;
}

/* Bottom Navigation Controls */
.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-btn {
  padding: 1rem 1.5rem;
  border-radius: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  font-family: var(--font-family-body);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  outline: none;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-btn-primary {
  background: linear-gradient(135deg, #007aff, #005bc5);
  color: white;
  box-shadow: 0 8px 20px rgba(0, 122, 255, 0.25), 5px 5px 12px rgba(163, 177, 198, 0.2);
}

.nav-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 122, 255, 0.35), 5px 5px 12px rgba(163, 177, 198, 0.2);
}

.nav-btn-primary:active {
  transform: translateY(1px);
}

.nav-btn-secondary {
  background: rgba(255, 255, 255, 0.4);
  color: var(--text-primary);
  visibility: hidden; /* Programmatically set in JS */
}

.nav-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.75);
}

.keyboard-hint {
  font-size: 0.65rem;
  color: var(--text-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Timeline Layout for Final Slide */
.timeline-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  margin-top: 1rem;
}

.timeline-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.timeline-step.active {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(0, 122, 255, 0.15);
  box-shadow: var(--glass-shadow);
}

.timeline-step.completed {
  opacity: 0.65;
}

.timeline-bullet {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 2px 2px 5px rgba(163, 177, 198, 0.1);
}

.timeline-step.active .timeline-bullet {
  background: var(--accent-blue);
  color: white;
  border-color: var(--accent-blue);
  box-shadow: 0 0 10px rgba(0, 122, 255, 0.3);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(0, 122, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 122, 255, 0); }
}

.timeline-step.completed .timeline-bullet {
  background: var(--accent-green);
  color: white;
  border-color: var(--accent-green);
}

.timeline-info {
  flex: 1;
  font-size: 0.8rem;
}

.timeline-info h5 {
  font-family: var(--font-family-title);
  font-weight: 800;
  font-size: 0.85rem;
}

.timeline-info p {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 0.1rem;
}

.timeline-badge {
  font-size: 0.6rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  text-transform: uppercase;
  background: rgba(163, 177, 198, 0.15);
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

.timeline-step.active .timeline-badge {
  background: rgba(0, 122, 255, 0.08);
  color: var(--accent-blue);
}

.timeline-step.completed .timeline-badge {
  background: rgba(52, 199, 89, 0.08);
  color: var(--accent-green);
}

/* Claymorphic Success Animations */
.success-check-ring {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-green), #2db04e);
  border: 3px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 25px rgba(52, 199, 89, 0.25), inset 3px 3px 6px rgba(255,255,255,0.4), var(--clay-shadow-out);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  opacity: 0;
  transform: scale(0.3);
}

.slide.active .success-check-ring {
  animation: bounce-in 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.success-check-icon {
  font-size: 2.75rem;
  color: white;
  font-weight: 900;
  line-height: 1;
}

@keyframes bounce-in {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.1); }
  75% { transform: scale(0.95); }
  100% { transform: scale(1); opacity: 1; }
}

/* Stripe-like TapPixel Footer Button - HIGH QUALITY LIQUID GLASS */
.tappixel-footer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.35rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.15));
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.06), inset 1px 1px 1px rgba(255, 255, 255, 0.9), var(--clay-shadow-out);
  text-decoration: none;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(71, 85, 105, 0.65);
  margin-top: 1.75rem;
  font-family: var(--font-family-body);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tappixel-footer:hover {
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.25));
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 36px rgba(31, 38, 135, 0.1), inset 1px 1px 1px rgba(255, 255, 255, 0.95), var(--clay-shadow-out);
}

.tappixel-footer:active {
  transform: translateY(1px) scale(0.98);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.1));
  box-shadow: 0 4px 12px rgba(31, 38, 135, 0.04), inset 1px 1px 1px rgba(255, 255, 255, 0.8), var(--clay-shadow-out);
}

.tappixel-footer span {
  font-weight: 800;
  color: rgba(15, 23, 42, 0.7);
}

.tappixel-footer .monster-icon {
  font-size: 0.8rem;
  opacity: 0.85;
  display: inline-block;
  transform: translateY(-0.5px);
}


@media (max-width: 600px) {
  .keyboard-hint {
    display: none !important;
  }
}


/* Responsive adjustments for small mobile screens & accessibility zoom */
@media (max-width: 480px) {
  body {
    padding: 0.75rem;
  }
  .intake-card {
    padding: 1.25rem;
    min-height: auto;
    border-radius: 24px;
  }
  .question-title {
    font-size: 1.35rem;
  }
  .clay-input {
    padding: 0.95rem 1.15rem;
    font-size: 0.95rem;
  }
  .nav-btn {
    padding: 0.85rem 1.15rem;
    font-size: 0.8rem;
  }
  .tags-grid {
    gap: 0.5rem;
  }
  .tag-option {
    padding: 0.75rem 0.85rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 320px) {
  body {
    padding: 0.5rem;
  }
  .intake-card {
    padding: 0.85rem;
    border-radius: 18px;
  }
  .biz-logo-group {
    font-size: 0.95rem;
  }
  .step-tracker-label {
    font-size: 0.6rem;
  }
  .question-title {
    font-size: clamp(0.92rem, 4.5vw, 1.15rem);
  flex-shrink: 1;
  min-width: 0;
  }
  .clay-input {
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
  }
  .nav-btn {
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
  }
  .tappixel-footer {
    padding: 0.5rem 1rem;
    font-size: 0.55rem;
    margin-top: 1rem;
  }
}


@keyframes card-entrance {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
