﻿
.custom-model-main {
    text-align: center;
    overflow: hidden;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    -webkit-overflow-scrolling: touch;
    outline: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: -1;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

    /* Active State */
    .custom-model-main.model-open {
        opacity: 1;
        visibility: visible;
        z-index: 99999;
    }

.bg-overlay {
    background: rgba(11, 44, 90, 0.6); /* Brand Deep Blue with Opacity */
    backdrop-filter: blur(4px); /* Modern blur effect */
    height: 100vh;
    width: 100%;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    transition: background 0.3s ease;
}

.custom-model-main.active {
    opacity: 1;
    visibility: visible;
    z-index: 999;
}

/* Modal Inner Container */
.custom-model-inner {
    position: relative;
    z-index: 99999;
    display: inline-block;
    vertical-align: middle;
    width: 500px; /* Reduced for a cleaner card look */
    margin: 30px auto;
    max-width: 90%;
    transform: scale(0.85) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Scale Up Animation on Open */
.model-open .custom-model-inner {
    transform: scale(1) translateY(0);
}

/* Card Box Styling */
.custom-model-wrap {
    display: block;
    width: 100%;
    position: relative;
    background-color: #ffffff;
    border-radius: 16px; /* Smooth rounded corners */
    box-shadow: 0 15px 35px rgba(11, 44, 90, 0.15), 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 40px 30px;
    box-sizing: border-box;
    /*max-height: calc(100vh - 70px);*/
    overflow-y: auto;
}

/* Content Customizer */
.pop-up-content-wrap {
    text-align: center;
}

/* Modern Animated-like Success Icon */
.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(245, 180, 0, 0.15); /* Light Tint of Yellow */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
}

    .success-icon svg {
        width: 50px;
        height: 50px;
    }

/* Typography */
.pop-up-content-wrap h2 {
    color: #0b2c5a; /* Brand Deep Blue */
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.pop-up-content-wrap p {
    color: #556880; /* Subtle grayish blue for readability */
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 28px 0;
}

/* Premium Button styling */
.popup-btn {
    background-color: #0b2c5a;
    color: #ffffff;
    border: none;
    padding: 12px 35px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 4px 12px rgba(11, 44, 90, 0.2);
    transition: all 0.2s ease;
}

    .popup-btn:hover {
        background-color: #f5b400; /* Changes to Brand Yellow on hover */
        color: #0b2c5a;
        box-shadow: 0 4px 15px rgba(245, 180, 0, 0.4);
    }

/* Floating Close Button */
.dhbaba-ami-new {
    position: absolute;
    right: 12px;
    top: 12px;
    cursor: pointer;
    z-index: 1002;
    font-size: 28px;
    color: #a0aec0;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

    .dhbaba-ami-new:hover {
        background-color: #f7fafc;
        color: #0b2c5a;
    }

/* Center Align Helper for Screen */
@media screen and (min-width: 800px) {
    .custom-model-main:before {
        content: "";
        display: inline-block;
        height: 100%;
        vertical-align: middle;
        margin-right: -4px;
    }
}

:not(.btn-check) + .btn:active {
    background: #f5b400;
}

@media screen and (max-width: 799px) {
    .custom-model-inner {
        margin-top: 60px;
    }

    .custom-model-wrap {
        padding: 35px 20px;
    }
}

.popup-btn {
    cursor: pointer;
}

