/* =========================================================================
   MSF Multi-Step CF7 Form — Pixel-perfect UI
   Original design + smooth transitions + progress line fix
   ========================================================================= */

.msf-form {
    --msf-purple: #6D28D9;
    --msf-purple-light: rgb(109 40 217 / 30%);
    --msf-purple-dash: rgb(109 40 217 / 30%);
    --msf-text: #150D07;
    --msf-muted: #777777;
    --msf-error: #dc2626;
    --msf-gray-line: #E5E7EB;
    --msf-bordor: #6D28D9;

    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--msf-text);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.msf-form *,
.msf-form *::before,
.msf-form *::after { box-sizing: border-box; }

/* CF7 wrapper reset */
.msf-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* ============================================================
   CONTAINER — form content centered
   ============================================================ */
.msf-step {
    display: none;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    opacity: 0;
    transform: translateY(12px);
    /* ⚡ SMOOTH transition — no jerk */
    transition: opacity .4s cubic-bezier(.22, 1, .36, 1),
                transform .4s cubic-bezier(.22, 1, .36, 1);
    will-change: opacity, transform;
}
.msf-step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: msfStepIn .4s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes msfStepIn {
    0%   { opacity: 0; transform: translateY(14px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.msf-progress {
    position: relative;
    width: 100%;
    max-width: 525px;
    margin: 0 auto 0px;
    display: grid;
    grid-template-columns: 60px 60px;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.msf-progress::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0px;
    right: 0px;
    width: 100%;
    height: 4px;
    transform: translateY(-50%);
    z-index: 1;
    transition: background-color .4s ease;
    margin: 0;
    padding: 0;
    background-image: repeating-linear-gradient(
        to right,
        rgba(109, 40, 217, 0.5) 0px,
        rgba(109, 40, 217, 0.5) 10px,
        transparent 10px,
        transparent 20px
    );
    background-size: 100% 3px;
    background-repeat: repeat-x;
    background-position: center;
    background-color: transparent;
    border: 0;
    border-image: none;
}

.msf-form.is-step-2 .msf-progress::before {
    background-image: none !important;
    background-color: var(--msf-purple) !important;
}
.msf-progress-step {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.msf-progress-step > p {
    margin-bottom: 0px;
}

.msf-step-circle {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--msf-purple-light);
    border-radius: 50%;
    background-color: #fff;
    color: rgb(109 40 217 / 30%);
    font-size: 22px;
    line-height: 22px;
    font-weight: 700;
    transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}

.msf-progress-step.active .msf-step-circle {
    border-color: var(--msf-purple);
    color: var(--msf-purple);
}

/* Completed — filled purple with white check */
.msf-progress-step.completed .msf-step-circle {
    background: var(--msf-purple);
    border-color: var(--msf-purple);
    color: transparent;
}

.msf-progress-step.completed .msf-step-circle::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 11px;
    left: 50%;
    top: 45%;
    border-left: 3.5px solid #fff;
    border-bottom: 3.5px solid #fff;
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* ============================================================
   STEP HEADING
   ============================================================ */
.msf-step-heading {
    width: 100%;
    margin: 44px 0 50px;
    text-align: center;
}

.msf-step-heading h2 {
    width: 100%;
    margin: 0 0 2px;
    padding: 0;
    color: var(--msf-text);
    font-family: inherit;
    font-size: 38px;
    line-height: 48px;
    font-weight: 700;
    color: #150D07;
}
.msf-step-heading p {
    width: 100%;
    margin: 0;
    padding: 0;
    color: var(--msf-text);
    font-family: inherit;
    font-size: 38px;
    line-height: 48px;
    font-weight: 700;
    color: #150D07;
}

/* ============================================================
   FIELDS
   ============================================================ */
.msf-field {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
}
.msf-field p { margin-bottom: 0; }
.msf-field p br { display: none; }

.msf-field label {
    display: block;
    width: 100%;
    margin: 0 0 22px;
    padding: 0;
    color: #150D07;
    font-family: inherit;
    font-size: 20px;
    line-height: 25px;
    font-weight: 600;
}

.msf-required-star {
    color: #FF0000;
    margin-left: 2px;
    font-weight: 700;
}

/* Textarea */
.msf-message-field textarea {
    display: block;
    width: 100%;
    height: 166px;
    margin: 0;
    padding: 24px 24px;
    border: 2px solid #6D28D9;
    border-radius: 8px;
    outline: none;
    resize: none;
    background: rgb(255 255 255 / 0%);
    color: #150D07;
    font-family: inherit;
    font-size: 18px;
    line-height: 23px;
    font-weight: 400;
    box-shadow: none;
    transition: border-color .2s ease;
}

.msf-message-field textarea::placeholder {
    color: #c1c1c1;
    opacity: 1;
}
.msf-message-field textarea:focus,
.msf-message-field textarea:focus-visible {
    outline: none;
    border-color: var(--msf-purple);
    box-shadow: none;
}

/* Line inputs */
.msf-line-field { margin-bottom: 28px; }
.msf-line-field label { margin-bottom: 30px; }
.msf-line-field.email-field { margin-top: 72px; }

.msf-line-field input {
    display: block;
    width: 100% !important;
    height: 55px;
    margin: 0px 0px;
    padding: 5px 5px 8px 5px !important;
    border: 0px !important;
    border-bottom: 2px solid var(--msf-bordor) !important;
    border-radius: 0 !important;
    outline: none;
    background: rgb(255 255 255 / 0%);
    color: #150D07;
    font-family: inherit;
    font-size: 22px;
    line-height: 28px;
    font-weight: 400;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color .2s ease, box-shadow .2s ease !important;
}

.msf-line-field input::placeholder {
    color: #c1c1c1;
    opacity: 1;
}

.msf-line-field input:focus,
.msf-line-field input:focus-visible {
    outline: none !important;
    border-bottom-color: var(--msf-purple) !important;
    box-shadow: none !important;
}

/* =========================================================
   ⚡ Character Counter (below textarea)
   ========================================================= */
.msf-char-counter {
    position: absolute;
    display: block;
    width: 100%;
    margin: 2px 0 0;
    padding: 0;
    color: #2c2c2c;
    opacity: 0.75;
    font-family: inherit;
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    letter-spacing: 0.15px;
    text-transform: capitalize;
    text-align: right;
    user-select: none;
    z-index: 0;
}

.msf-char-counter .msf-char-count {
    font-weight: 500;
    color: #6B7280;
}

.msf-char-counter.msf-char-warn .msf-char-count {
    color: #D97706;
}

.msf-char-counter.msf-char-limit .msf-char-count {
    color: #DC2626;
    font-weight: 700;
}

/* Mobile adjustments 
@media (max-width: 767px) {
    .msf-char-counter {
        font-size: 10px;
        line-height: 14px;
    }
}
*/

/* ============================================================
   ERRORS
   ============================================================ */
.msf-error {
    display: none;
    width: 100%;
    margin: 2px 0 0;
    padding: 0;
    color: var(--msf-error);
    font-size: 12px;
    line-height: 18px;
    font-weight: 500;
    letter-spacing: 0.2px;
    text-align: left;
    position: absolute;
}

.msf-field.msf-has-error .msf-error { display: block; }
.msf-field.msf-has-error textarea { border-color: var(--msf-error) !important; }
.msf-field.msf-has-error input {
    border-bottom-color: var(--msf-error) !important;
    box-shadow: none !important;
}

.msf-field:has(.wpcf7-not-valid) .msf-error { display: block !important; }
.msf-field:has(.wpcf7-not-valid) textarea { border-color: var(--msf-error) !important; }
.msf-field:has(.wpcf7-not-valid) input { border-bottom-color: var(--msf-error) !important; }

/* ============================================================
   UPLOAD WIDGET
   ============================================================ */
.mn-attched-box {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
    overflow: visible;
}
.msf-previews-list {
    display: flex;
    min-height: 0;
    gap: 8px;
}

.msf-previews-list:empty { margin-bottom: 0; }

.msf-drop-zone {
    position: relative;
    width: 100%;
    min-height: 123px;
    height: 123px;
    padding: 15px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #6D28D9;
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

.msf-drop-zone:hover,
.msf-drop-zone.msf-dragover {
    background: #faf5ff;
    border-color: #5B21B6;
}
.msf-drop-zone:focus-visible {
    outline: 2px solid rgba(109, 40, 217, .35);
    outline-offset: 2px;
}

.msf-drop-zone__message {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    pointer-events: none;
}

.msf-upload-icon {
    width: 35px;
    height: 35px;
    min-width: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 3px solid var(--msf-purple);
    border-radius: 8px;
    color: var(--msf-purple);
    font-size: 30px;
    line-height: 30px;
    font-weight: 700;
    padding: 0;
    margin: 0;
    position: relative;
}

.msf-upload-icon p {
    margin: 0px;
    padding: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.msf-upload-icon::before {
    content: "+";
    display: none;
    transform: translateY(-4px);
}

.msf-upload-text {
    color: #150D07;
    font-size: 22px;
    line-height: 28px;
    font-weight: 600;
    font-family: inherit;
}

.msf-drop-zone .msf-upload-text p {
    margin-bottom: 0px;
}

.msf-upload-helper {
    display: block;
    width: 100%;
    margin: 10px 0 0;
    padding: 0;
    color: #150D07;
    font-size: 12px;
    line-height: 15px;
    font-weight: 600;
}

.msf-drop-zone.msf-is-uploading { 
    opacity: 1;      
	cursor: pointer;
}


.msf-drop-zone.msf-is-uploading .msf-upload-text::after {
    content: " " attr(data-uploading-text);
    color: #6D28D9;
    font-size: 12px;
}

.msf-drop-zone.msf-upload-disabled {
    opacity: 1;
    cursor: not-allowed;
    background: #FAFAFA;
    pointer-events: bounding-box;
    border-color: #C4B5FD;
}

.msf-drop-zone.msf-upload-disabled .msf-upload-icon,
.msf-drop-zone.msf-upload-disabled .msf-upload-text {
    opacity: 1;
} 

/* 
.msf-drop-zone.msf-upload-disabled::after {
    content: attr(data-limit-text);
    white-space: nowrap;
    position: absolute;
    left: 50%;
    bottom: 0px;
    transform: translateX(-50%);
    font-size: 12px;
    line-height: 20px;
    font-weight: 500;
    color: #6B7280;
} */

/* ============================================================
   FILE PREVIEW CARDS
   ============================================================ */
.msf-file-preview-card {
    position: relative;
    width: 120px;
    height: 123px;
    border: 2px dashed #6D28D9;
    border-radius: 8px;
    background: rgb(245 243 255 / 0%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.msf-file-preview-card:last-child {
    margin-right: 8px;
}

.msf-file-preview-card img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
    opacity: 1;
    background: #F5F3FF;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
}

.msf-preview-uploading {
    opacity: 0.85;
}
.msf-preview-uploading img {
    filter: brightness(0.95);
}

.msf-file-fallback-name {
    padding: 4px;
    font-size: 10px;
    line-height: 12px;
    font-weight: 400;
    color: #150D07;
    text-align: center;
    word-break: break-all;
    display: block;
}

.msf-file-delete-btn {
    position: absolute;
    bottom: 5px;
    left: 5px;
    width: 28px !important;
    height: 28px !important;
    background: #ffffff !important;
    border: 2px solid #6d28d9 !important;
    border-radius: 5px !important;
    color: #150D07 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0;
    z-index: 5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
    transition: background-color .15s ease, color .15s ease !important;
}

.msf-file-delete-btn:hover {
    border-color: #FF0000 !important;
    color: #FF0000 !important;
}

.msf-file-delete-btn:focus-visible {
    outline: 2px solid #6D28D9;
    outline-offset: 1px;
}

.msf-file-delete-btn svg {
    width: 18px;
    height: 18px;
    fill: rgb(109 40 217);
    display: block;
    pointer-events: none;
}

.msf-file-delete-btn:hover svg {
    fill: #FF0000;
}


/* =========================================================
   ⚡ Error Message — Uploader (visible by default, JS controls show/hide)
   ========================================================= */

.msf-error-msg {
    display: none;
    color: #dc2626;
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
    margin-top: 10px;
    width: 100%;
    word-wrap: break-word;
    letter-spacing: 0.2px;
/*     background: #fdecea; */
    border-left: 3px solid #dc2626;
    border-radius: 4px;
    padding: 8px 10px;
    box-sizing: border-box;
}

.msf-error-msg[style*="display: block"],
.msf-error-msg[style*="display:block"] {
    display: block;
}

/* ⚡ Drop zone error border */
.msf-drop-zone.msf-has-error,
.mn-attched-box .msf-drop-zone.msf-has-error {
    border-color: #dc2626 !important;
    background: #fff5f5 !important;
}

@media (max-width: 767px) {
    .msf-error-msg {
        font-size: 12px;
        line-height: 16px;
        padding: 8px 10px;
        margin-top: 8px;
    }
}

@media (max-width: 360px) {
    .msf-error-msg {
        font-size: 11px;
        line-height: 15px;
        padding: 6px 8px;
    }
}

/* ============================================================
   ACTIONS
   ============================================================ */
.msf-step-actions {
    width: 100%;
    display: flex;
    align-items: center;
}

.msf-step-1-actions {
    justify-content: flex-end;
    margin-top: 40px;
}

.msf-step-2-actions p {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
}

.msf-step-2-actions p br {
    display: none;
}

.msf-step-actions button {
    position: relative;
    height: 60px;
    min-width: 192px;
    margin: 0px 0px;
    padding: 18px 30px;
    border: 0;
    border-radius: 50px;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0px;
    font-family: inherit !important;
    font-size: 16px !important;
    line-height: 22px;
    font-weight: 700 !important;
    text-align: center;
    cursor: pointer !important;
    background: linear-gradient(135deg, #7131e8 0%, #9748f0 100%);
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(109, 40, 217, .28);
    transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.msf-step-actions button:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 13px rgba(113, 49, 232, .34);
}
.msf-step-actions button:active { transform: translateY(0); }
.msf-step-actions button:focus-visible {
    outline: 2px solid rgba(109, 40, 217, .35);
    outline-offset: 2px;
}

.msf-step-actions button br {
    display: none;
}


.msf-step-actions button span {
    display: flex;
    align-items: center;
    justify-content: center;
}

.msf-step-actions button svg {
    transform: translateY(0.8px);
    position: absolute;
    right: 32px;
}

.msf-step-2 .msf-step-2-actions button.msf-prev svg {
    left: 30px;
    right: auto;
}

/* .msf-button-arrow {
    font-size: 35px;
    line-height: 35px;
    font-weight: 500;
    position: absolute;
    right: 32px;
    margin: 0;
    padding: 0;
    transform: translateY(-5px);
} */


/* ============================================================
   SUBMIT LOADER — Fast animation
   ============================================================ */
.msf-submit {
    position: relative;
    min-width: 110px;
    overflow: hidden;
}
.msf-submit-label,
.msf-step-actions button svg {
    transition: opacity .2s ease, transform .2s ease;
}

.msf-form.is-submitting .msf-submit {
    cursor: wait;
    pointer-events: none;
    opacity: 0.6;
}
.msf-form:not(.is-submitting) .msf-submit {
    opacity: 1;
    cursor: pointer;
    pointer-events: auto;
}

/* Loader overlay — fast fade */
.msf-loader-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* ⚡ Fast: 250ms → 150ms */
    transition: opacity .15s ease, visibility 0s linear .15s;
    border-radius: 16px;
    overflow: hidden;
}
.msf-form.is-submitting .msf-loader-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .15s ease, visibility 0s linear 0s;
}

.msf-loader-box {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 16px;
    background: linear-gradient(135deg, #6d28d9c2, #8d4bfa70) !important;
    box-shadow: inset 0px 0px 160px #7e41df;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    padding: 40px 20px;
}

.msf-loader-message {
    font-size: 22px;
    line-height: 32px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.3px;
    text-align: center;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.msf-loader-submessage {
    font-size: 13px;
    line-height: 20px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    margin: 0;
    letter-spacing: 0.2px;
}

/* Loader animation — fast */
.msf-loader {
    width: 300px;
    max-width: 80%;
    height: 150px;
    aspect-ratio: 2;
    border-bottom: 3px solid #0000;
    background: linear-gradient(90deg, #ffffff 50%, #00000000 0) -25% 100% / 50% 3px repeat-x border-box;
    position: relative;
    /* ⚡ Fast animation: .75s → .55s */
    animation: l3-0 .55s linear infinite;
}
.msf-loader::before {
    content: "";
    position: absolute;
    inset: auto 43.5% 0;
    aspect-ratio: 1;
    border-radius: 50%;
    /* ⚡ Fast bounce: .75s → .55s */
    animation: l3-1 .55s cubic-bezier(0, 900, 1, 900) infinite;
    background: linear-gradient(135deg, #ffffff, #dacdee) !important;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}
@keyframes l3-0 {
    to { background-position: -125% 100%; }
}
@keyframes l3-1 {
    0%, 2% { bottom: 0%; }
    98%, to { bottom: .1%; }
}

/* ============================================================
   SUCCESS MODAL
   ============================================================ */
.msf-success-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility 0s linear .25s;
}
.msf-success-modal.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .25s ease, visibility 0s linear 0s;
}
.msf-success-modal[inert] { pointer-events: none !important; }

.msf-success-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.msf-success-dialog {
    position: relative;
    z-index: 2;
    width: 460px;
    max-width: calc(100vw - 40px);
    margin: 0;
    padding: 50px 40px 40px;
    box-sizing: border-box;
    border-radius: 20px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(20px) scale(.95);
    opacity: 0;
    transition: transform .38s cubic-bezier(.22, 1, .36, 1), opacity .25s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    will-change: transform, opacity;
}
.msf-success-modal.is-visible .msf-success-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Success icon */
.msf-success-icon {
    position: relative;
    width: 120px;
    height: 120px;
    min-width: 120px;
    min-height: 120px;
    margin: 0 0 25px;
    padding: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #6D28D9, #8D4BFA);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    box-shadow: 0 8px 22px rgba(109, 40, 217, .3);
    transform: scale(0);
    transition: transform .42s cubic-bezier(.34, 1.56, .64, 1) .08s;
}
.msf-success-modal.is-visible .msf-success-icon { transform: scale(1); }

.msf-success-icon p {
    display: flex;
    align-items: center;
    justify-content: center;
}

.msf-success-icon span {
    position: relative;
    top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin: 0;
    padding: 0;
    transform: translateY(-2px);
}
.msf-success-icon span::before,
.msf-success-icon span::after {
    content: "";
    position: absolute;
    background: #ffffff;
    border-radius: 5px;
    width: 0;
    transition: width .28s ease;
}
.msf-success-icon span::before {
    left: 6px;
    top: 6px;
    height: 6px;
    width: 0;
    max-width: 22px;
    transform: rotate(45deg);
    transform-origin: left center;
    animation: msfCheckDraw 0.4s ease 0.35s both;
}
.msf-success-icon span::after {
    left: 19px;
    top: 22px;
    height: 6px;
    width: 0;
    max-width: 45px;
    transform: rotate(-45deg);
    transform-origin: left center;
    animation: msfCheckDraw 0.4s ease 0.55s both;
}

@keyframes msfCheckDraw {
    0%   { width: 0; opacity: 0; }
    100% { width: 100%; opacity: 1; }
}

.msf-success-modal.is-visible .msf-success-icon span::before { width: 25px; }
.msf-success-modal.is-visible .msf-success-icon span::after  { width: 45px; }

/* Success dialog typography */
.msf-success-dialog h3 {
    width: 100%;
    margin: 0 0 12px;
    padding: 0;
    color: #150D07;
    font-family: inherit;
    font-size: 34px;
    line-height: 42px;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .32s ease .14s, transform .32s ease .14s;
}
.msf-success-modal.is-visible .msf-success-dialog h3 {
    opacity: 1;
    transform: translateY(0);
}

.msf-success-dialog p {
    width: 100%;
    margin: 0 0 5px;
    padding: 0;
    color: #555555;
    font-family: inherit;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .32s ease .20s, transform .32s ease .20s;
}
.msf-success-modal.is-visible .msf-success-dialog p {
    opacity: 1;
    transform: translateY(0);
}

.msf-success-email {
    display: inline-block;
    width: auto;
    margin: 5px 0 0;
    padding: 8px 18px;
    color: #6D28D9;
    font-family: inherit;
    font-size: 18px;
    line-height: 26px;
    font-weight: 600;
    text-align: center;
    background: #F5EFFF;
    border-radius: 8px;
    word-break: break-word;
    max-width: 100%;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .32s ease .25s, transform .32s ease .25s;
}
.msf-success-modal.is-visible .msf-success-email {
    opacity: 1;
    transform: translateY(0);
}

.msf-done {
    position: relative;
    height: 52px;
    min-width: 160px;
    margin: 30px auto 0px;
    padding: 14px 35px !important;
    border: 0 !important;
    border-radius: 50px !important;
    outline: none !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit !important;
    font-size: 16px !important;
    line-height: 22px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    background: linear-gradient(135deg, #6D28D9, #8D4BFA) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(109, 40, 217, .3);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .32s ease .30s, transform .32s ease .30s, background-color .2s ease, box-shadow .2s ease;
}
.msf-success-modal.is-visible .msf-done {
    opacity: 1;
    transform: translateY(0);
}
.msf-done:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(109, 40, 217, .38);
}
.msf-done:active { transform: translateY(0) scale(.97); }
.msf-done:focus-visible {
    outline: 2px solid rgba(109, 40, 217, .35);
    outline-offset: 3px;
}

/* Hide CF7 native output */
.msf-form .wpcf7-response-output,
.msf-form .wpcf7-not-valid-tip {
    display: none !important;
}


/* ========================================================= DESKTOP RESPONSIVE WIDTH ========================================================= */

@media (min-width: 768px) {
.msf-form { width: 100%; }
}

/* ========================================================= TABLET ========================================================= */

@media (max-width: 1024px) {
	
.msf-step-heading h2 { font-size: 30px; line-height: 36px; } 
.msf-step-heading p { font-size: 30px; line-height: 36px; }
}

/* ========================================================= MOBILE ========================================================= */

@media (max-width: 767px) {
.msf-progress { width: 450px; max-width: 95%; grid-template-columns: 45px 45px; }
.msf-step-circle { width: 45px; height: 45px; font-size: 18px; line-height: 20px; } 
.msf-progress-step { width: 45px; height: 45px; }	
.msf-upload-icon { width: 25px; height: 25px; min-width: 25px; font-size: 25px; line-height: 25px; border: 2px solid var(--msf-purple);border-radius: 5px; }
.msf-upload-icon p svg { width: 11px !important; height: 11px !important; }	
.msf-upload-text { font-size: 18px; line-height: 22px;}	
.msf-step-heading h2 { font-size: 25px; line-height: 33px; } 
.msf-step-heading p { font-size: 25px; line-height: 33px; } 
.msf-success-dialog { width: 100%; max-width: 400px; padding: 35px 25px 30px; } 
.msf-success-dialog h3 { font-size: 28px; line-height: 36px; } 
.msf-success-email { font-size: 16px; padding: 6px 14px; }
.msf-step-heading h2 br { display: none; }	
.mn-attched-box { flex-direction: column-reverse;}
.msf-previews-list { margin-top: 0px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.msf-file-preview-card { width: 100%; margin-top: 15px; }
.msf-file-preview-card:last-child { margin-right: 0px; }
.msf-step-1-actions { margin-top: 30px; }
.msf-step-actions button br { display: none; }	
}

/* ========================================================= SMALL MOBILE ========================================================= */

@media (max-width: 480px) {
.msf-step-actions button { height: 55px; min-width: 140px; margin: 0px 0px; padding: 10px 10px; } 
.msf-success-dialog { padding: 30px 20px 25px; border-radius: 16px; } 
.msf-success-icon { width: 80px; height: 80px; min-width: 80px; min-height: 80px; margin-bottom: 18px; } 
.msf-field label { font-size: 18px; line-height: 22px; } 
.msf-step-heading br { display: none; } 
.msf-success-dialog h3 { font-size: 24px; line-height: 32px; margin-bottom: 8px; } 
.msf-success-dialog p { font-size: 14px; line-height: 20px; } 
.msf-success-email { font-size: 14px; line-height: 20px; padding: 5px 12px; margin-top: 3px; } 
.msf-done { height: 46px; min-width: 140px; padding: 10px 25px; font-size: 14px !important; margin-top: 22px; } 
.msf-line-field input { font-size: 18px; line-height: 24px; } 
.msf-message-field textarea { padding: 15px 12px; }	
.msf-upload-icon::before { transform: translateY(-2px); }	
.msf-step-actions button svg { right: 12px; width: 8px !important; height: 20px !important;}	
.msf-step-2 .msf-step-2-actions button.msf-prev svg { left: 12px;width: 8px !important; height: 20px !important;}	
}

/* ========================================================= VERY SMALL MOBILE ========================================================= */

@media (max-width: 360px) {
.msf-success-dialog { padding: 25px 15px 20px; border-radius: 14px; } 
.msf-success-dialog h3 { font-size: 20px; line-height: 28px; } 
.msf-success-email { font-size: 13px; padding: 4px 10px; } 
.msf-done { height: 42px; min-width: 120px; padding: 8px 20px; font-size: 13px !important; margin-top: 18px; }
}