.plan-modal {
    position: fixed;
    background-color: #fff;
    pointer-events: none;
    left: 0;
    bottom: 0;
    transform: translate(0, 100%);
    opacity: 0;
    padding: 20px;
    transition: all 300ms ease-in-out;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    z-index: 9999;
}

.plan-modal.open {
    transform: translate(0, 0);
    opacity: 1;
    pointer-events: all;
}

.back-drop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    opacity: 0;
    z-index: 9998;
    pointer-events: none;
    transition: all 300ms ease-in-out;
    background-color: rgba(0, 0, 0, 70%);

}

.back-drop.open {
    opacity: 1;
    pointer-events: all;
}

@media (max-width: 768px) {
    .plan-modal {
        width: 100% !important;
        height: 90vh !important;
        overflow-y: auto !important;
        padding: 15px !important;
        border-radius: 20px 20px 0 0 !important;
    }
    
    .plan-modal form {
        padding: 10px !important;
    }
    
    .plan-modal .input-container {
        margin-bottom: 15px !important;
    }
    
    .plan-modal input, 
    .plan-modal select {
        font-size: 16px !important; /* prevent zoom on iOS */
        padding: 12px !important;
        height: auto !important;
        min-height: 48px !important;
    }
    
    .plan-modal button {
        padding: 15px !important;
        font-size: 16px !important;
        min-height: 48px !important;
    }
    
    .plan-modal h3 {
        font-size: 1.4rem !important;
        margin-bottom: 20px !important;
    }
}

@media (min-width: 768px) {
    .plan-modal {
        max-width: 50vw;
        border-radius: 12px;
        bottom: 50%;
        left: 50%;
        transform: translate(-50%, 100%);
        width: 25%;
    }

    .plan-modal.open {
        transform: translate(-50%, 50%);
    }
}

.max-w-\[37rem\] {
    max-width: 40rem;
}

.md\:max-h-16 {
    max-height: 6rem;
}

.md\:max-w-40 {
    max-width: 12rem;
}

.md\:max-w-\[25rem\] {
    max-width: 33rem;
}

.md\:px-8 {
    padding-left: 0rem;
    padding-right: 0rem;
}

.md\:pl-8 {
    width: 19rem;
}

.md\:text-3xl {
    font-size: 1.5rem;
    line-height: 2.25rem;
    font-weight: 600;
    color: #2a2e78;
}

.md\:text-6xl {
    font-size: 2.3rem;
}

.md\:leading-\[1\.3\] {
    line-height: 1.8;
}

.md\:leading-\[99px\] {
    line-height: 70px;
}


.toggle-row.w-full:hover {
    cursor: pointer;
}

.md\:w-48 {
    width: 25rem;
}

/* Additional mobile responsive rules */
@media (max-width: 480px) {
    .splide__slide {
        padding: 0 5px !important;
    }
    
    .splide__slide .shadow-plan {
        margin: 5px 0 !important;
    }
    
    .w-\[16\.75rem\] {
        width: calc(100vw - 20px) !important;
        max-width: 300px !important;
    }
    
    .text-xl {
        font-size: 1.1rem !important;
    }
    
    .text-lg {
        font-size: 1rem !important;
    }
    
    .px-5 {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .py-4 {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }
    
    .h-12 {
        height: 48px !important;
    }
    
    .min-w-36 {
        min-width: 120px !important;
    }
}

@media (max-width: 360px) {
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .px-6 {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .text-2xl {
        font-size: 1.3rem !important;
    }
    
    .text-5xl {
        font-size: 2rem !important;
    }
}