#ModalTogglefive.custom-modal .modal-dialog {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#ModalTogglefive.custom-modal.show .modal-dialog {
    transform: translateY(0) scale(1);
}

/* Modal content - only for this specific modal */
#ModalTogglefive.custom-modal .custom-modal-content {
    border: none;
    border-radius: 24px;
    background: linear-gradient(145deg, #ffffff, #f0f4ff);
    box-shadow: 0 20px 60px rgba(0, 107, 255, 0.25);
    overflow: hidden;
    position: relative;
}

#ModalTogglefive.custom-modal .custom-modal-content:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #0066ff, #00ccff, #0066ff);
    background-size: 200% 100%;
    animation: custom-shimmer 3s infinite linear;
}

@keyframes custom-shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Modal body - only for this modal */
#ModalTogglefive.custom-modal .custom-modal-body {
    padding: 30px 20px;
}

/* Contact numbers - only for this modal */
#ModalTogglefive.custom-modal .custom-contact-numbers {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 10px 0;
}

/* Phone number items - only for this modal */
#ModalTogglefive.custom-modal .custom-ph-no {
    display: flex;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 18px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 60, 255, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 5px solid transparent;
}

#ModalTogglefive.custom-modal .custom-ph-no:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 60, 255, 0.15);
    border-left: 5px solid #0066ff;
}

/* Flag and icon styling - only for this modal */
#ModalTogglefive.custom-modal .custom-flag-icon,
#ModalTogglefive.custom-modal .custom-whatsapp-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#ModalTogglefive.custom-modal .custom-ph-no:hover .custom-flag-icon,
#ModalTogglefive.custom-modal .custom-ph-no:hover .custom-whatsapp-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

#ModalTogglefive.custom-modal .custom-flag-icon img,
#ModalTogglefive.custom-modal .custom-whatsapp-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* WhatsApp icon specific - only for this modal */
#ModalTogglefive.custom-modal .custom-whatsapp-icon {
    background: linear-gradient(145deg, #25D366, #128C7E);
}

/* Number styling - only for this modal */
#ModalTogglefive.custom-modal .custom-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
    padding-right: 10px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

#ModalTogglefive.custom-modal .custom-ph-no:hover .custom-number {
    color: #0066ff;
    transform: translateX(5px);
}

/* Shine effect - only for this modal */
#ModalTogglefive.custom-modal .custom-shine-effect {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: rotate(30deg);
    transition: all 0.6s ease;
    opacity: 0;
}

#ModalTogglefive.custom-modal .custom-ph-no:hover .custom-shine-effect {
    opacity: 1;
    left: 100%;
}

/* Animation for modal entrance - only for this modal */
@keyframes custom-modal-entry {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#ModalTogglefive.custom-modal.show .custom-modal-content {
    animation: custom-modal-entry 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Pulse animation for phone numbers - only for this modal */
@keyframes custom-pulse-glow {
    0% {
        box-shadow: 0 8px 20px rgba(0, 60, 255, 0.08);
    }

    50% {
        box-shadow: 0 8px 20px rgba(0, 60, 255, 0.2);
    }

    100% {
        box-shadow: 0 8px 20px rgba(0, 60, 255, 0.08);
    }
}

#ModalTogglefive.custom-modal .custom-ph-no {
    animation: custom-pulse-glow 4s infinite ease-in-out;
}

#ModalTogglefive.custom-modal .custom-ph-no:nth-child(2) {
    animation-delay: 0.5s;
}

#ModalTogglefive.custom-modal .custom-ph-no:nth-child(3) {
    animation-delay: 1s;
}

/* Responsive adjustments - only for this modal */
@media (max-width: 768px) {
    #ModalTogglefive.custom-modal .modal-dialog {
        margin: 20px;
    }

    #ModalTogglefive.custom-modal .custom-modal-content {
        border-radius: 20px;
    }

    #ModalTogglefive.custom-modal .custom-ph-no {
        padding: 18px 15px;
    }

    #ModalTogglefive.custom-modal .custom-flag-icon,
    #ModalTogglefive.custom-modal .custom-whatsapp-icon {
        width: 55px;
        height: 55px;
        margin-right: 15px;
    }

    #ModalTogglefive.custom-modal .custom-number {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    #ModalTogglefive.custom-modal .modal-dialog {
        margin: 10px;
    }

    #ModalTogglefive.custom-modal .custom-ph-no {
        padding: 16px 12px;
    }

    #ModalTogglefive.custom-modal .custom-flag-icon,
    #ModalTogglefive.custom-modal .custom-whatsapp-icon {
        width: 50px;
        height: 50px;
        margin-right: 12px;
    }

    #ModalTogglefive.custom-modal .custom-flag-icon img,
    #ModalTogglefive.custom-modal .custom-whatsapp-icon img {
        width: 50px;
        height: 50px;
    }

    #ModalTogglefive.custom-modal .custom-number {
        font-size: 1.1rem;
    }
}


/* Ensure Bootstrap modal header is removed if not needed */
#ModalTogglefive.custom-modal .modal-header {
    display: none;
}

/* form */
#ModalTogglesix.custom-form-modal .custom-form-modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 82, 204, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    position: relative;
}

/* Animated Gradient Border Effect */
#ModalTogglesix.custom-form-modal .custom-form-modal-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
            #0066ff,
            #00ccff,
            #0066ff,
            #00ccff);
    background-size: 400% 400%;
    border-radius: 22px;
    z-index: -1;
    animation: gradient-border 6s ease infinite;
}

@keyframes gradient-border {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Modal Header */
#ModalTogglesix.custom-form-modal .custom-form-modal-header {
    border-bottom: 1px solid rgba(0, 102, 255, 0.1);
    padding: 20px 30px 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

#ModalTogglesix.custom-form-modal .custom-form-close-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ff6b6b, #ff8e8e);
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
}

#ModalTogglesix.custom-form-modal .custom-form-close-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

#ModalTogglesix.custom-form-modal .custom-form-close-btn:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

#ModalTogglesix.custom-form-modal .custom-form-close-btn:hover::before {
    left: 100%;
}

/* Modal Box Layout */
#ModalTogglesix.custom-form-modal .custom-form-modal-box {
    display: flex;
    min-height: 500px;
}

/* Left Side - Illustration */
#ModalTogglesix.custom-form-modal .custom-form-modal-left {
    flex: 1;
    background: linear-gradient(135deg, #0066ff 0%, #00ccff 100%);
    padding: 40px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#ModalTogglesix.custom-form-modal .custom-form-modal-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
    background-size: 50px;
    animation: float-pattern 20s linear infinite;
}

@keyframes float-pattern {
    0% {
        transform: translateY(0) translateX(0);
    }

    100% {
        transform: translateY(-50px) translateX(-50px);
    }
}

.form-illustration-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 300px;
}

.form-illustration-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.form-illustration-text {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.6;
}

.form-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.form-benefits li {
    padding: 10px 0;
    font-size: 1.1rem;
    display: flex;
    align-items: flex-start; /* important */
    gap: 15px;               /* cleaner spacing */
    opacity: 0.9;
    transition: opacity 0.3s ease;
}


.form-benefits li:hover {
    opacity: 1;
}

.benefit-icon {
    flex-shrink: 0;          /* key fix */
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}


/* Right Side - Form */
#ModalTogglesix.custom-form-modal .custom-form-modal-right {
    flex: 1.2;
    padding: 40px 40px;
    background: white;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-title {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(45deg, #0066ff, #00ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

/* .form-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 25%;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #0066ff, transparent);
} */

.form-subtitle {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

/* Form Elements */
#ModalTogglesix.custom-form-modal .custom-form-group {
    position: relative;
    margin-bottom: 30px;
}

#ModalTogglesix.custom-form-modal .custom-form-label {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1rem;
}

.label-icon {
    margin-right: 10px;
    font-size: 1.2rem;
}

#ModalTogglesix.custom-form-modal .custom-form-input {
    border: 2px solid #e0e6ff;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8faff;
    height: 56px;
}

#ModalTogglesix.custom-form-modal .custom-form-input:focus {
    outline: none;
    border-color: #0066ff;
    background: white;
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.15);
    transform: translateY(-2px);
}

.input-focus-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0066ff, #00ccff);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

#ModalTogglesix.custom-form-modal .custom-form-input:focus~.input-focus-line {
    width: 100%;
}

/* Submit Button */
#ModalTogglesix.custom-form-modal .custom-submit-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    background: linear-gradient(45deg, #0066ff, #00ccff);
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 30px;
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.3);
}

#ModalTogglesix.custom-form-modal .custom-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 102, 255, 0.4);
}

#ModalTogglesix.custom-form-modal .custom-submit-btn:active {
    transform: translateY(-1px);
}

.btn-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: rotate(30deg);
    transition: left 0.6s ease;
    opacity: 0;
}

#ModalTogglesix.custom-form-modal .custom-submit-btn:hover .btn-shine {
    opacity: 1;
    left: 100%;
}

.btn-icon {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

#ModalTogglesix.custom-form-modal .custom-submit-btn:hover .btn-icon {
    transform: translateX(5px);
}

/* Form Footer */
.form-footer {
    margin-top: 25px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 102, 255, 0.1);
    width: 100%;
}

.form-footer-text {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    display: inline;
    text-align: center;
}

.form-footer-link {
    color: #0066ff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    display: inline-block;
}

.form-footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #0066ff;
    transition: width 0.3s ease;
}

.form-footer-link:hover {
    color: #00ccff;
}

.form-footer-link:hover::after {
    width: 100%;
}

/* Modal Entry Animation */
#ModalTogglesix.custom-form-modal.show .custom-form-modal-content {
    animation: form-modal-entry 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes form-modal-entry {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Design for Tablet */
@media (max-width: 991px) {
    #ModalTogglesix.custom-form-modal .custom-form-modal-box {
        flex-direction: column;
        min-height: auto;
    }

    #ModalTogglesix.custom-form-modal .custom-form-modal-left {
        padding: 30px 20px;
    }

    #ModalTogglesix.custom-form-modal .custom-form-modal-right {
        padding: 30px 25px;
    }

    .form-illustration-title {
        font-size: 1.8rem;
    }

    .form-title {
        font-size: 2rem;
    }
}

/* Hover Effects for Form Groups */
#ModalTogglesix.custom-form-modal .custom-form-group:hover .custom-form-input {
    border-color: #b3d1ff;
    background: white;
}

/* Floating Particles Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.floating-particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}


/* Mobile adjustments for ModalTogglesix */
@media (max-width: 767px) {
    #ModalTogglesix.custom-form-modal .custom-form-modal-left {
        display: none;
    }

    /* Adjust right side padding for mobile */
    #ModalTogglesix.custom-form-modal .custom-form-modal-right {
        padding: 25px 20px;
        position: relative;
        /* Ensure relative positioning for absolute child */
    }

    /* Close button for mobile */
    .mobile-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 10px;
        right: 15px;
        width: 30px;
        height: 30px;
        border: none;
        background: transparent;
        color: #666;
        /* Or any color that fits the design */
        font-size: 20px;
        cursor: pointer;
        z-index: 10;
        transition: color 0.3s ease;
    }

    .mobile-close-btn:hover {
        color: #ff6b6b;
    }
}

/* Hide mobile close button on desktop */
@media (min-width: 768px) {
    .mobile-close-btn {
        display: none;
    }
}