/* ============================================
   VISORIA FREE MAP LP - MOBILE STYLES
   URL: visoria.app/free-map
   All classes use fm- prefix.
   ============================================ */

@media (max-width: 968px) {
    /* ============================================
       HERO - MOBILE
       ============================================ */
    .fm-hero {
        min-height: 86vh;
        align-items: flex-start;
        position: relative;
        overflow: hidden;
    }

    .fm-hero-picture {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
    }

    .fm-hero-picture .fm-hero-image {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .fm-hero-content {
        text-align: center;
        padding: 100px 1rem 1rem;
        margin: 0;
        position: relative;
        height: 100%;
        min-height: 86vh;
        display: flex;
        flex-direction: column;
        z-index: 1;
    }

    .fm-hero-text {
        max-width: 100%;
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .fm-hero-headline {
        font-size: 2.2rem;
    }

    .fm-hero-subtext {
        font-size: 1.2rem;
        font-weight: 600 !important;
        line-height: 1.5 !important;
    }

    .fm-hero-visual {
        margin-bottom: 1.5rem;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .fm-hero-visual-placeholder {
        max-width: 100%;
        height: 220px;
        width: 100%;
    }

    .fm-hero-cta-wrapper {
        position: absolute;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 2rem);
        max-width: 400px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }

    .fm-hero-cta {
        width: 100%;
    }

    /* ============================================
       HOW IT WORKS - MOBILE
       ============================================ */

    .fm-container-form {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .fm-how-it-works-desktop-wrapper {
        display: none !important;
    }

    .fm-how-it-works {
        margin-top: -2rem;
        background: none;

    }
    .fm-how-it-works-mascot {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: -3rem;
    }

    .fm-how-it-works-mascot-img {
        width: 100%;
        height: auto;
        animation: fm-mascot-magic 6s ease-in-out infinite;
        transform-origin: center;
    }

    .fm-steps-grid {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: -5rem;
    }

    .fm-steps-grid-desktop {
        display: none !important;
    }

    .fm-step-card {
        display: flex;
        align-items: center;
        gap: 1.5rem;
        padding: 1.5rem;
        text-align: left;
        background: linear-gradient(90deg, rgba(226, 209, 249, 0.9) 0%, rgba(224, 247, 250, 0.9) 100%);
        border-radius: 16px;
        box-shadow: 0 4px 15px rgba(142, 112, 255, 0.15);
        border: none;
    }

    .fm-step-number {
        display: none;
    }

    .fm-step-icon {
        font-size: 2rem;
        margin: 0;
        width: 60px;
        height: 60px;
        min-width: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--fm-primary-purple);
        border-radius: 50%;
        flex-shrink: 0;
        border: 3px solid transparent;
        background-clip: padding-box;
        position: relative;
        box-shadow: 0 2px 8px rgba(142, 112, 255, 0.2);
    }

    .fm-step-icon::before {
        content: '';
        position: absolute;
        inset: -3px;
        border-radius: 50%;
        background: linear-gradient(135deg, rgba(226, 209, 249, 1) 0%, rgba(224, 247, 250, 1) 100%);
        z-index: -1;
    }

    .fm-step-icon svg {
        width: 28px;
        height: 28px;
        color: white;
    }

    .fm-step-content {
        flex: 1;
    }

    .fm-step-title {
        font-size: 1.3rem;
        font-weight: 700;
        color: var(--fm-text-dark);
        margin-bottom: 0.25rem;
        line-height: 1.2;
    }

    .fm-step-description {
        color: var(--fm-text-dark);
        font-size: 1rem;
        font-weight: 400;
        margin: 0;
    }

    /* ============================================
       FORM - MOBILE
       ============================================ */

       .fm-section-title.free-map {
        margin-top: -2rem;
        text-align: center;
       }

    .fm-section-subtitle {
        font-size: 1.2rem;
        font-weight: 600;
        color: var(--fm-text-dark);
        margin-bottom: 0.25rem;
        line-height: 1.2;
    }

    .fm-form-section {
        padding: 2rem 0;
    }

    .fm-form {
        padding: 2rem 1.5rem;

    }

    .fm-form-input {
        padding: 14px 18px;
    }

    .fm-form-submit {
        padding: 16px 28px;
    }

    /* ============================================
       FOOTER - MOBILE
       ============================================ */
    .fm-final-cta-footer-desktop {
        display: none !important;
    }

    .fm-final-cta-footer-mobile {
        background: transparent;
        padding-bottom: 0;
        padding-top: 0;
        position: relative;
        display: block !important;
    }

    .fm-cta-footer-card-mobile {
        background: rgba(255, 255, 255, 0.6);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        box-shadow: 0 8px 32px 0 rgba(142, 112, 255, 0.15);
        padding: 2rem 1.5rem;
        max-width: 100%;
        position: relative;
    }

    .fm-cta-footer-card-mobile.fm-glass-card:hover {
        transform: none;
    }

    .fm-footer-section-mobile {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        text-align: center;
    }

    .fm-footer-links-row-mobile {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem 1.25rem;
        align-items: center;
        justify-content: center;
    }

    .fm-footer-links-row-mobile a {
        color: var(--fm-text-dark);
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 500;
        transition: color 0.3s ease;
        white-space: nowrap;
    }

    .fm-footer-links-row-mobile a:hover {
        color: var(--fm-primary-purple);
    }

    .fm-footer-bottom-row-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .fm-footercopyright-mobile {
        color: var(--fm-text-light);
        font-size: 0.75rem;
        margin: 0;
        text-align: center;
    }

    .fm-footer-social-mobile {
        display: flex;
        gap: 0.75rem;
        align-items: center;
        justify-content: center;
    }

    .fm-footer-social-mobile a {
        font-size: 1.4rem;
        text-decoration: none;
        transition: transform 0.3s ease;
        display: inline-block;
        color: var(--fm-primary-purple);
    }

    .fm-footer-social-mobile a:hover {
        transform: scale(1.2);
    }

    .fm-footer-social-mobile a svg {
        display: block;
    }
}
