.service-summary-card strong { display: block; font-size: 18px; margin-bottom: 8px; }
.service-summary-card p { font-size: 14px; color: rgba(255, 255, 255, 0.8); margin: 0; line-height: 1.5; }

/* --- Start Selection Modal --- */
.start-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  visibility: hidden;
  transition: visibility 0.3s;
}

.start-modal.active {
  visibility: visible;
}

.start-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.start-modal.active .start-modal-overlay {
  opacity: 1;
}

.start-modal-content {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 32px 32px 0 0;
  padding: 12px 24px calc(env(safe-area-inset-bottom) + 24px);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
}

.start-modal.active .start-modal-content {
  transform: translateY(0);
}

.modal-indicator {
  width: 40px;
  height: 5px;
  background: #e5e8eb;
  border-radius: 999px;
  margin: 0 auto 20px;
}

.start-modal-header h2 {
  font-size: 22px;
  font-weight: 900;
  color: #191f28;
  margin-bottom: 6px;
}

.start-modal-header p {
  font-size: 15px;
  color: #6b7684;
  margin-bottom: 24px;
}

.start-modal-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.start-opt-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 20px;
  background: #f9fafb;
  transition: background 0.2s ease;
}

.start-opt-card:active {
  background: #f2f4f6;
}

.start-opt-card.register {
  background: #f0f7ff;
}

.opt-icon {
  font-size: 32px;
}

.opt-text {
  display: flex;
  flex-direction: column;
}

.opt-text strong {
  font-size: 17px;
  font-weight: 800;
  color: #191f28;
}

.opt-text span {
  font-size: 13px;
  color: #6b7684;
  margin-top: 2px;
}

.start-modal-close {
  width: 100%;
  height: 54px;
  border: none;
  background: none;
  color: #8b95a1;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

/* --- Guided Auth Pages (Tutorial-like, Step-by-step) --- */
.auth-modern {
  background: #ffffff !important;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.auth-steps {
  flex: 1;
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.auth-step-slide {
  flex: 0 0 100%;
  width: 100%;
  padding: calc(env(safe-area-inset-top) + 60px) 24px 140px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.step-visual {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  font-size: 64px;
}

.auth-step-slide h1 {
  font-size: 30px;
  font-weight: 900;
  line-height: 1.35;
  color: #191f28;
  margin-bottom: 16px;
  letter-spacing: -0.8px;
}

.auth-step-slide p {
  font-size: 17px;
  color: #4e5968;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 40px;
}

.auth-step-slide .field {
  width: 100%;
}

.auth-step-slide .field label {
  display: none; /* We use the H1 as the question */
}

.auth-step-slide .field input {
  font-size: 24px;
  font-weight: 700;
  border: none;
  border-bottom: 2px solid #f2f4f6;
  background: transparent;
  padding: 16px 0;
  border-radius: 0;
  transition: border-color 0.3s ease;
  color: #191f28;
}

.auth-step-slide .field input::placeholder {
  color: #e5e8eb;
}

.auth-step-slide .field input:focus {
  border-bottom-color: #3182f6;
  box-shadow: none;
}

.auth-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px calc(env(safe-area-inset-bottom) + 24px);
  background: linear-gradient(180deg, transparent, #ffffff 30%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 100;
}

.auth-bottom-nav .btn {
  width: 100%;
  height: 64px;
  border-radius: 20px;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(49, 130, 246, 0.15);
}

.step-progress-bar {
  position: fixed;
  top: env(safe-area-inset-top);
  left: 0;
  right: 0;
  height: 4px;
  background: #f2f4f6;
  z-index: 1000;
}

.step-progress-fill {
  height: 100%;
  background: #3182f6;
  width: 0%;
  transition: width 0.4s ease;
}

.auth-back-btn {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 12px);
  left: 12px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4e5968;
  font-size: 24px;
  z-index: 1001;
  background: transparent;
  border: none;
  cursor: pointer;
}

.auth-secondary-link {
  text-align: center;
  font-size: 15px;
  color: #8b95a1;
  font-weight: 600;
  margin-top: 10px;
}

.onboarding-copy {
  padding-top: 32px;
}

.onboarding-copy h1 {
  font-size: 34px;
  font-weight: 900;
  line-height: 1.3;
  margin: 16px 0 12px;
  color: #191f28;
}

.onboarding-copy p {
  font-size: 17px;
  color: #4e5968;
  line-height: 1.6;
  font-weight: 500;
}

.onboarding-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: min(520px, 100%);
  margin: 0 auto;
  padding: 0 24px calc(env(safe-area-inset-bottom) + 24px);
  background: linear-gradient(180deg, transparent, #ffffff 30%);
  z-index: 100;
}

.onboarding-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.onboarding-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e5e8eb;
  transition: all 0.3s ease;
}

.onboarding-dots span.active {
  width: 24px;
  border-radius: 4px;
  background: #3182f6;
}

.onboarding-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.onboarding-btns .btn {
  width: 100%;
  height: 60px;
  border-radius: 18px;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.primary-btn {
  background: var(--btn-primary-bg);
  color: #ffffff;
  box-shadow: var(--btn-primary-shadow);
}

@keyframes floatUp {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

@keyframes floatCircle {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(5px, -5px); }
  50% { transform: translate(0, -10px); }
  75% { transform: translate(-5px, -5px); }
}

@media (min-width: 520px) and (max-width: 1099px) {
  .onboarding-actions {
    width: 100%;
    left: 0;
    right: 0;
    margin: 0;
    transform: none;
  }
}

@media (min-width: 1100px) {
  .onboarding-landing {
    height: 90vh;
    margin-top: 5vh;
    border-radius: 32px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1);
  }
  .onboarding-slide {
    height: 90vh;
  }
  .onboarding-actions {
    position: absolute;
    bottom: 0;
  }
}
