/* ============================================
   Multi-Step Landing Page Design System
   Conversion-optimized, form-first layout
   ============================================ */

/* ---- Reset & Base ---- */
.ms-body {
  background: #ffffff;
  color: #0f172a;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---- Top Bar ---- */
.ms-topbar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 900px) {
  .ms-topbar {
    height: 52px;
  }
}

.ms-topbar-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
}

@media (min-width: 900px) {
  .ms-topbar-inner {
    gap: 0.75rem;
  }
}

.ms-logo {
  font-size: 1rem;
  font-weight: 800;
  color: #1e3a8a;
  letter-spacing: -0.02em;
}

@media (min-width: 900px) {
  .ms-logo {
    font-size: 1.15rem;
  }
}

.ms-logo-product {
  font-weight: 500;
}

.ms-topbar-divider {
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 300;
}

.ms-partner-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #475569;
}

@media (min-width: 900px) {
  .ms-topbar-divider {
    font-size: 0.9rem;
  }

  .ms-partner-name {
    font-size: 1rem;
  }
}

/* ---- Hero Section ---- */
.ms-hero {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding: 2rem 1.25rem 2.5rem;
  display: flex;
  align-items: flex-start;
}

.ms-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

@media (min-width: 900px) {
  .ms-hero {
    padding: 3rem 2rem 4rem;
    min-height: calc(100vh - 52px); /* topbar height on desktop */
    align-items: center;
  }

  .ms-hero-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 3.5rem;
  }
}

/* ---- Hero Text Column ---- */
.ms-hero-text {
  flex: 1;
  min-width: 0;
  text-align: center;
}

@media (min-width: 900px) {
  .ms-hero-text {
    text-align: left;
  }
}

/* Exclusive Badge (above headline) */
.ms-exclusive-badge {
  display: inline-block;
  padding: 0.35rem 0.875rem;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 100px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}

@media (min-width: 900px) {
  .ms-exclusive-badge {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }
}

.ms-headline {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
}

@media (min-width: 480px) {
  .ms-headline {
    font-size: 1.75rem;
  }
}

@media (min-width: 900px) {
  .ms-headline {
    font-size: 2.75rem;
    margin-bottom: 1rem;
  }
}

@media (min-width: 1100px) {
  .ms-headline {
    font-size: 3.25rem;
  }
}

.ms-subline {
  font-size: 1rem;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

.ms-subline strong {
  color: #0f172a;
  font-weight: 700;
}

@media (min-width: 900px) {
  .ms-subline {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    max-width: 480px;
  }
}

/* Trust Badges */
.ms-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: center;
}

@media (min-width: 900px) {
  .ms-trust-badges {
    justify-content: flex-start;
  }
}

.ms-badge {
  font-size: 0.85rem;
  font-weight: 600;
  color: #059669;
  white-space: nowrap;
}

@media (min-width: 900px) {
  .ms-badge {
    font-size: 0.9rem;
  }
}

/* Authority line below badges */
.ms-authority {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 400;
}

@media (min-width: 900px) {
  .ms-authority {
    margin-top: 1.5rem;
    font-size: 0.85rem;
  }
}

/* ---- Form Card ---- */
.ms-form-wrapper {
  width: 100%;
  max-width: 460px;
  flex-shrink: 0;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .ms-form-wrapper {
    width: 460px;
    margin: 0;
  }
}

.ms-form-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

@media (min-width: 900px) {
  .ms-form-card {
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
  }
}

/* ---- Progress Bar ---- */
.ms-progress-track {
  height: 4px;
  background: #e2e8f0;
  width: 100%;
}

.ms-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 0 2px 2px 0;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 25%;
}

/* ---- Step Info ---- */
.ms-step-info {
  padding: 0.875rem 1.25rem 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (min-width: 900px) {
  .ms-step-info {
    padding: 1rem 1.5rem 0;
    font-size: 0.8rem;
  }
}

/* ---- Form ---- */
.ms-form {
  margin: 0;
  overflow: hidden;
  width: 100%;
}

/* ---- Slides ---- */
.ms-slides-viewport {
  overflow: hidden;
  position: relative;
  width: 100%;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ms-slides {
  display: flex;
  width: 100%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ms-slide {
  flex: 0 0 100%;
  min-width: 0;
  width: 100%;
  padding: 1rem 1.25rem 1.25rem;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .ms-slide {
    padding: 1.25rem 1.5rem 1.5rem;
  }
}

/* ---- Question ---- */
.ms-question {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 1rem;
  line-height: 1.35;
}

@media (min-width: 900px) {
  .ms-question {
    font-size: 1.15rem;
    margin: 0 0 1.25rem;
  }
}

/* ---- Option Buttons ---- */
.ms-options {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.ms-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 0.875rem;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font-family: inherit;
  font-size: 0.9rem;
  color: #1e293b;
  font-weight: 500;
  outline: none;
  position: relative;
}

@media (min-width: 900px) {
  .ms-option {
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
  }
}

.ms-option:hover {
  border-color: #10b981;
  background: #f0fdf4;
}

.ms-option:active {
  transform: scale(0.98);
}

.ms-option.selected {
  border-color: #10b981;
  background: #f0fdf4;
}

/* Radio circle indicator */
.ms-option-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.ms-option:hover .ms-option-radio {
  border-color: #10b981;
}

.ms-option.selected .ms-option-radio {
  border-color: #10b981;
  background: #10b981;
}

.ms-option.selected .ms-option-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
}

.ms-option-text {
  flex: 1;
}

/* Chevron on the right */
.ms-option-chevron {
  color: #cbd5e1;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.ms-option:hover .ms-option-chevron {
  color: #10b981;
  transform: translateX(2px);
}

/* ---- Back Button ---- */
.ms-back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1rem;
  padding: 0.5rem 0;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
  font-family: inherit;
}

.ms-back:hover {
  color: #475569;
}

.ms-back-arrow {
  font-size: 1rem;
  line-height: 1;
}

.ms-back.hidden {
  display: none;
}

/* ---- Contact Form Fields (Final Step) ---- */
.ms-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ms-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.ms-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
}

.ms-field input {
  width: 100%;
  padding: 0.7rem 0.875rem;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  color: #0f172a;
  background: #ffffff;
  transition: all 0.2s ease;
  outline: none;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .ms-field input {
    padding: 0.8rem 1rem;
  }
}

.ms-field input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.ms-field input::placeholder {
  color: #94a3b8;
}

.ms-field-hint {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.4;
}

/* ---- Submit Button ---- */
.ms-submit {
  width: 100%;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
  margin-top: 0.25rem;
  position: relative;
  overflow: hidden;
}

.ms-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.35);
}

.ms-submit:active {
  transform: translateY(0);
}

.ms-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* ---- Privacy Text ---- */
.ms-privacy {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: #94a3b8;
  text-align: center;
  line-height: 1.5;
}

.ms-privacy a {
  color: #64748b;
  text-decoration: underline;
}

/* ============================================
   Social Proof Section (below fold)
   ============================================ */
.ms-social-proof {
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  padding: 2.5rem 1.25rem;
}

@media (min-width: 900px) {
  .ms-social-proof {
    padding: 3rem 2rem;
  }
}

.ms-container {
  max-width: 900px;
  margin: 0 auto;
}

.ms-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.ms-proof-item {
  padding: 1rem;
}

.ms-proof-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1e3a8a;
  margin-bottom: 0.25rem;
}

.ms-proof-label {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}

@media (max-width: 480px) {
  .ms-proof-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .ms-proof-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    text-align: left;
  }

  .ms-proof-number {
    font-size: 1.1rem;
    min-width: 90px;
    margin-bottom: 0;
  }
}

/* ---- Testimonials ---- */
.ms-testimonials {
  margin-top: 2.5rem;
}

.ms-testimonials-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
  margin: 0 0 1.5rem;
}

.ms-testimonial-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .ms-testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ms-testimonial {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
}

.ms-testimonial-text {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 0.75rem;
  font-style: italic;
}

.ms-testimonial-author {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1e293b;
}

.ms-testimonial-role {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 400;
}

/* ============================================
   Footer (minimal)
   ============================================ */
.ms-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 1.5rem 1rem;
  text-align: center;
}

.ms-footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.ms-footer-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}

.ms-footer-link:hover {
  color: #e2e8f0;
}

.ms-footer-copy {
  font-size: 0.75rem;
  margin: 0;
}

/* ============================================
   Animations
   ============================================ */

/* Slide-in for option buttons (staggered) */
.ms-slide.active .ms-option {
  animation: slideUp 0.3s ease both;
}

.ms-slide.active .ms-option:nth-child(1) { animation-delay: 0.05s; }
.ms-slide.active .ms-option:nth-child(2) { animation-delay: 0.1s; }
.ms-slide.active .ms-option:nth-child(3) { animation-delay: 0.15s; }
.ms-slide.active .ms-option:nth-child(4) { animation-delay: 0.2s; }

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide-in for fields on last step */
.ms-slide.active .ms-field {
  animation: slideUp 0.3s ease both;
}

.ms-slide.active .ms-field:nth-child(1) { animation-delay: 0.05s; }
.ms-slide.active .ms-field:nth-child(2) { animation-delay: 0.1s; }
.ms-slide.active .ms-field:nth-child(3) { animation-delay: 0.15s; }

/* ============================================
   Tankreinigung Extensions
   ============================================ */

/* ---- Option with Icon (for tank type selection) ---- */
.ms-option-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: color 0.2s ease;
}

.ms-option.selected .ms-option-icon {
  color: #10b981;
}

.ms-option:hover .ms-option-icon {
  color: #10b981;
}

.ms-option-icon svg {
  width: 32px;
  height: 32px;
}

/* Option with icon layout: icon | text | chevron */
.ms-option--with-icon {
  gap: 0.75rem;
}

.ms-option--with-icon .ms-option-radio {
  display: none;
}

/* ---- Field Row (2-column layout for Vorname/Nachname) ---- */
.ms-field-row {
  display: flex;
  gap: 1rem;
}

.ms-field-row .ms-field {
  flex: 1;
}

@media (max-width: 480px) {
  .ms-field-row {
    flex-direction: column;
  }
}

/* ---- Textarea (matches input styling) ---- */
.ms-field textarea {
  width: 100%;
  padding: 0.7rem 0.875rem;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  color: #0f172a;
  background: #ffffff;
  transition: all 0.2s ease;
  outline: none;
  box-sizing: border-box;
  resize: vertical;
  min-height: 60px;
}

.ms-field textarea:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* ---- Field Validation Error ---- */
.ms-field-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

/* ---- Calculated Volume Display ---- */
.ms-calc-display {
  background: #f0fdf4;
  border: 2px solid #bbf7d0;
  border-radius: 10px;
  padding: 0.875rem 1rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: #065f46;
  margin-top: 0.5rem;
  transition: all 0.3s ease;
}

.ms-calc-display span {
  font-weight: 800;
  font-size: 1.125rem;
}

/* ---- "Weiter" (Next) Button in intermediate steps ---- */
.ms-next-btn {
  display: block;
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  color: #ffffff;
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 1rem;
}

.ms-next-btn:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.ms-next-btn:active {
  transform: translateY(0);
}

/* ---- Hidden utility ---- */
.hidden {
  display: none !important;
}

/* ---- Badge green variant ---- */
.ms-exclusive-badge--green {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
}

/* ---- Option 5th child animation delay ---- */
.ms-slide.active .ms-option:nth-child(5) { animation-delay: 0.25s; }
