/* Modal Animations */
@keyframes modal-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modal-zoom-in {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Modal Overlay */
#demo-modal-overlay {
    animation: modal-fade-in 0.3s ease-out;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Modal Container */
#demo-modal-container {
    animation: modal-zoom-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
}

/* Custom Scrollbar for Modal content */
#demo-modal-container::-webkit-scrollbar {
    width: 6px;
}

#demo-modal-container::-webkit-scrollbar-track {
    background: transparent;
}

#demo-modal-container::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

#demo-modal-container::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

/* Input Focus States */
.modal-input:focus {
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    #demo-modal-container {
        width: 95%;
        margin: 10px;
        padding: 20px;
    }
}

/* intl-tel-input overrides */
.iti {
    width: 100% !important;
}

.iti__country-list {
    border-radius: 20px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    margin-top: 10px !important;
    padding: 10px !important;
    background: #ffffff !important;
    z-index: 10000 !important;
    backdrop-filter: none !important;
}

.iti__country {
    padding: 10px 15px !important;
    border-radius: 10px !important;
    transition: all 0.2s !important;
}

.iti__country.iti__highlight {
    background: #0066FF !important;
    color: white !important;
}

.iti__flag-container {
    padding: 4px !important;
}

.iti__selected-flag {
    background: transparent !important;
    padding-left: 20px !important;
}