/* ===== Multi-Step Slider Form ===== */

.msf-wrapper {
    max-width: 680px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
}

/* ── Screen transitions ── */
.msf-screen { display: none; }
.msf-screen-active { display: block; animation: msfFadeIn 0.4s ease; }

@keyframes msfFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════
   INTRO SCREEN
══════════════════════════ */
.msf-intro-screen {
    text-align: center;
    padding: 56px 32px;
    background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 100%);
    border-radius: 20px;
    border: 1px solid #e8e4f8;
}
.msf-intro-icon {
    font-size: 48px;
    margin-bottom: 18px;
    display: block;
}
.msf-intro-header {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 14px;
    line-height: 1.25;
}
.msf-intro-subheader {
    font-size: 16px;
    color: #6b7280;
    margin: 0 0 36px;
    line-height: 1.6;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}
.msf-btn-start {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 24px rgba(79,70,229,0.3);
}
.msf-btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(79,70,229,0.4);
}

/* ══════════════════════════
   FORM SCREEN
══════════════════════════ */
.msf-form-screen { padding: 4px 0; }

/* Progress bar */
.msf-progress-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 99px;
    margin-bottom: 10px;
    overflow: hidden;
}
.msf-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    border-radius: 99px;
    transition: width 0.4s cubic-bezier(.4,0,.2,1);
}
.msf-step-counter {
    text-align: right;
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 28px;
}

/* Slides */
.msf-slide { display: none; animation: msfSlideIn 0.35s ease forwards; }
.msf-slide.msf-active { display: block; }
.msf-slide.msf-going-back { animation: msfSlideInBack 0.35s ease forwards; }

@keyframes msfSlideIn {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes msfSlideInBack {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

.msf-question-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
    line-height: 1.3;
}
.msf-question-desc {
    font-size: 15px;
    color: #6b7280;
    margin: 0 0 24px;
}

/* Inputs */
.msf-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    color: #111827;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.msf-input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79,70,229,0.12);
}
.msf-input.msf-error { border-color: #ef4444; }

/* Date / Time */
.msf-datetime-field {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr;
    gap: 10px;
    align-items: center;
}
.msf-dt-label { font-size: 13px; font-weight: 600; color: #374151; }
@media (max-width: 500px) {
    .msf-datetime-field { grid-template-columns: 1fr; }
}

/* Multiple choice */
.msf-choices { display: flex; flex-direction: column; gap: 10px; }
.msf-choice-label {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    font-size: 15px; color: #374151;
}
.msf-choice-label:hover { border-color: #4f46e5; background: #f5f3ff; }
.msf-choice-input { width: 18px; height: 18px; accent-color: #4f46e5; cursor: pointer; flex-shrink: 0; }
.msf-choice-label:has(.msf-choice-input:checked) { border-color: #4f46e5; background: #eef2ff; }

/* Nav buttons */
.msf-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; gap: 12px; }
.msf-btn {
    padding: 13px 28px; border-radius: 50px;
    font-size: 15px; font-weight: 700; border: none; cursor: pointer; transition: all 0.2s;
}
.msf-btn-next, .msf-btn-submit {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff; margin-left: auto;
    box-shadow: 0 4px 14px rgba(79,70,229,0.25);
}
.msf-btn-next:hover, .msf-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79,70,229,0.35);
}
.msf-btn-prev { background: #f3f4f6; color: #374151; }
.msf-btn-prev:hover { background: #e5e7eb; }

/* Error */
.msf-error-msg { color: #ef4444; font-size: 13px; margin-top: 6px; }

/* ══════════════════════════
   THANK YOU SCREEN
══════════════════════════ */
.msf-thankyou-screen {
    text-align: center;
    padding: 52px 32px;
    background: linear-gradient(135deg, #f0fdf4 0%, #f0f4ff 100%);
    border-radius: 20px;
    border: 1px solid #d1fae5;
}
.msf-thankyou-inner { max-width: 480px; margin: 0 auto; }

.msf-success-icon {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff; font-size: 34px; line-height: 72px;
    border-radius: 50%; margin: 0 auto 22px;
    box-shadow: 0 8px 28px rgba(16,185,129,0.3);
    animation: msfPop 0.5s cubic-bezier(.175,.885,.32,1.275);
}
@keyframes msfPop {
    0%   { transform: scale(0); }
    100% { transform: scale(1); }
}
.msf-success-title {
    font-size: 26px; font-weight: 800; color: #111827;
    margin: 0 0 12px; line-height: 1.25;
}
.msf-success-message {
    font-size: 16px; color: #374151; margin: 0 0 10px; line-height: 1.6;
}
.msf-success-subheading {
    font-size: 14px; color: #6b7280; margin: 0 0 32px; line-height: 1.6;
    padding: 12px 16px;
    background: rgba(255,255,255,0.7);
    border-radius: 10px;
    border: 1px solid #d1fae5;
    display: inline-block;
}

/* Action Buttons */
.msf-action-buttons {
    display: flex; flex-wrap: wrap; gap: 12px;
    justify-content: center; margin-top: 28px;
}
.msf-action-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 24px;
    border-radius: 50px;
    color: #fff;
    font-size: 15px; font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    cursor: pointer;
}
.msf-action-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    color: #fff;
    text-decoration: none;
}
.msf-action-icon { font-size: 18px; line-height: 1; }
