/* ===== FORM PAGE MOBILE OPTIMIZATIONS ===== */
/* Consolidated mobile styles for the gamified form */

/* === MOBILE PORTRAIT MODE === */
@media (max-width: 768px) {
    /* Hide AI assistant on mobile */
    .ai-assistant {
        display: none !important;
    }

    /* Main content layout */
    .main-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    /* Form step mobile centering */
    .form-step {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
        padding: 1rem !important;
    }

    /* Achievement badge sizing */
    .achievement-badge {
        width: 38px !important;
        height: 38px !important;
        font-size: 1.2rem !important;
    }

    /* Progress container mobile */
    .progress-container {
        padding: 0.5rem !important;
    }

    .achievement-container {
        gap: 0.5rem !important;
        min-height: 50px !important;
    }
}

/* === NARROW SCREENS (< 430px) === */
@media (max-width: 430px) {
    .achievement-badge {
        width: 32px !important;
        height: 32px !important;
        font-size: 1rem !important;
    }

    .achievement-container {
        gap: 0.25rem !important;
        padding: 0 !important;
    }

    .progress-container {
        padding: 0.25rem !important;
    }
}

/* === VERY NARROW SCREENS (Galaxy Z Flip, etc.) === */
@media (max-width: 280px) {
    .achievement-badge {
        width: 26px !important;
        height: 26px !important;
        font-size: 0.8rem !important;
    }

    .progress-line-container {
        display: none !important;
    }
}

/* === MOBILE LANDSCAPE MODE === */
/* Blur page and show rotation prompt when in landscape on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .container {
        filter: blur(8px) !important;
        pointer-events: none !important;
        transition: filter 0.5s ease !important;
    }

    .landscape-rotation-prompt {
        display: flex !important;
    }
}

/* === LANDSCAPE ROTATION PROMPT === */
.landscape-rotation-prompt {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.rotation-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: rotatePhone 2s ease-in-out infinite;
    transform-origin: center;
}

@keyframes rotatePhone {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg) scale(1.1); }
    75% { transform: rotate(90deg) scale(1.2); }
    100% { transform: rotate(90deg) scale(1.1); }
}

.rotation-message {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.rotation-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 300px;
    line-height: 1.4;
}

.rotation-arrow {
    font-size: 2rem;
    margin: 1rem 0;
    animation: pulseArrow 1.5s ease-in-out infinite;
}

@keyframes pulseArrow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}
