.dialog-layer {
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.dialog-child{
    width: 500px;
    max-width: 80%;
}

.dialog {
    background: #fff;
    /* padding: 2rem; */
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    /* Hide scrollbar for Chrome, Safari and Opera */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.dialog::-webkit-scrollbar {
    display: none;
}

.success-dialog {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 3rem;
    gap: 1rem;
}

.success {
    border-radius: 200px;
    height: 150px;
    width: 150px;
    background: #308307;
    display: flex;
    justify-content: center;
    align-items: center;
}

.success-check {
    color: white;
    font-size: 5rem;
    font-weight: 700;
}

.success-dialog-title {
    color: black;
    font-size: 2rem;
    font-weight: 600;
}

.success-dialog-subtitle {
    color: black;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6rem;
    text-align: center;
}

.dialog-close-btn {
    background-color: #FFFFFF;
    cursor: pointer;
    border: 1px solid #FFFFFF;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.dialog-close-btn img {
    height: 20px;
    width: 20px;
}

.dialog-close-btn:hover {
    background-color: #F4F6F7;
    border: 1px solid #E0E0E0;
}

/* Dialog Callback Specific Styles */
.dialog-callback {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.dialog-callback-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.dialog-callback-header-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dialog-callback-header-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0F0F0F;
    margin: 0;
}

.dialog-callback-header-subtitle {
    font-size: 0.95rem;
    font-weight: 400;
    color: #737373;
    margin: 0;
    line-height: 1.5;
}

.dialog-callback-inputs {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.dialog-callback-button {
    margin-top: 0.5rem;
}

/* Desktop - 768px and above */
@media (min-width: 768px) {
    .center-dialog {
        justify-content: center;
    }

    .bottom-dialog {
        justify-content: center;
    }
    
    .dialog {
        max-height: 85vh;
    }
}

/* Mobile Large - 576px to 767px */
@media (max-width: 767px) {
    .dialog {
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
        border-bottom-left-radius: 0px;
        border-bottom-right-radius: 0px;
        /* padding: 1.5rem; */
        max-height: 90vh;
    }

    .center-dialog {
        justify-content: center;
    }

    .bottom-dialog {
        justify-content: end;
    }

    .rounded-border {
        border-radius: 16px;
    }
    
    .dialog-callback-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .dialog-callback-header-title {
        font-size: 1.25rem;
    }

    .dialog-child{
    
        max-width: 90%;
    }
}

/* Mobile Small - Below 576px */
@media (max-width: 575px) {
    .dialog {
        /* padding: 1.25rem; */
        max-width: 90%;
    }
    
    .dialog-callback-header-title {
        font-size: 1.125rem;
    }
    
    .dialog-callback-header-subtitle {
        font-size: 0.875rem;
    }
}
