/* Callback trigger button styling */
.callback-trigger {
    background-color: #006187;
    position: fixed;
    bottom: 100px;
    right: 6px;
    z-index: 10;
    width: 3em;
    height: 3em;
    border: none;
    border-radius: 8px;
    box-shadow: 0px 10px 10px 0px rgba(77, 77, 85, 0.28);
    transition: all 0.3s ease-in-out;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.callback-trigger:hover {
    background-color: #004e6c;
    transform: scale(1.05);
}

.callback-trigger:focus {
    outline: 2px solid #004965;
    outline-offset: 2px;
}

/* Modal styling */
#callbackModal .modal-dialog {
    max-width: 600px;
    margin-left: auto;
    margin-right: 0;
    margin-top: 0;
    margin-bottom: 0;
    height: 100vh;
    transform: none;
}

#callbackModal .modal-content {
    border-radius: 12px 0 0 12px;
    border: none;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    height: 100vh;
    display: flex;
    flex-direction: column;
}

#callbackModal .modal-header {
    background-color: transparent;
    color: #333;
    border-bottom: none;
    border-radius: 12px 0 0 0;
    padding: 1.5rem;
    flex-shrink: 0;
}

#callbackModal .modal-title {
    font-weight: 600;
    font-size: 1.25rem;
}

#callbackModal .btn-close {
    opacity: 0.8;
}

#callbackModal .btn-close:hover {
    opacity: 1;
}

#callbackModal .modal-body {
    padding: 0 2rem 2rem 2rem;
    flex: 1;
    overflow-y: auto;
}
#callbackModal .modal-body #c14816{
    padding-top: 0;
}
/* Loading spinner */
#ajax-modal-loading {
    padding: 2rem;
}

#ajax-modal-loading img {
    width: 150px;
    height: 150px;
    margin: 25px auto;
    display: block;
}

/* Form content */
.callback-content {
    min-height: 200px;
}

/* Form styling within modal */
#callbackModal .form-control,
#callbackModal .form-select {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.75rem;
    font-size: 1rem;
}

#callbackModal .form-control:focus,
#callbackModal .form-select:focus {
    border-color: #106b7a;
    box-shadow: 0 0 0 0.2rem rgba(16, 107, 122, 0.25);
}

#callbackModal .btn-primary {
    background-color: #106b7a;
    border-color: #106b7a;
}

#callbackModal .btn-primary:hover {
    background-color: #0d5a66;
    border-color: #0d5a66;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .callback-trigger {
        bottom: 80px;
        right: 10px;
        width: 3.5em;
        height: 3.5em;
    }
    
    #callbackModal .modal-dialog {
        margin: 0;
        max-width: 100%;
        height: 100vh;
    }
    
    #callbackModal .modal-content {
        border-radius: 0;
        height: 100vh;
    }
    
    #callbackModal .modal-header {
        border-radius: 0;
    }
    
    #callbackModal .modal-body {
        padding: 1.5rem;
    }
}