    /* Modal Styles */
    .modal {
        display: none;
        position: fixed;
        z-index: 1050;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

        .modal.fade {
            transition: opacity 0.15s linear;
            opacity: 0;
        }

        .modal.show {
            opacity: 1;
        }

    .modal-dialog {
        position: relative;
        width: auto;
        margin: 1.75rem auto;
        max-width: 500px;
        max-height: 90vh;
    }

    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
        scroll-behavior: smooth;
        /* Hide scrollbar – Chrome / Edge / Safari */
    }

        .modal-content::-webkit-scrollbar {
            width: 0px;
            display: none;
        }

    /* Hide scrollbar – Firefox */
    .modal-content {
        scrollbar-width: none;
    }

    /* Hide scrollbar – IE / old Edge */
    .modal-content {
        -ms-overflow-style: none;
    }


    .modal-dialog-centered {
        display: flex;
        align-items: center;
        min-height: calc(100% - 3.5rem);
    }

    .modal-content {
        position: relative;
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.5);
        padding: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0px;
        padding-bottom: 15px;
        border-bottom: 1px solid #dee2e6;
    }

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

    .modal-close {
        font-size: 2rem;
        font-weight: 300;
        line-height: 1;
        cursor: pointer;
        background: transparent;
        border: 0;
    }

        .modal-close:hover {
            opacity: 0.7;
        }

    .modal-body {
        position: relative;
        flex: 1 1 auto;
    }

    .modal-footer {
        margin-top: 20px;
        padding-top: 15px;
        border-top: 1px solid #dee2e6;
    }

    .modal-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1040;
        width: 100vw;
        height: 100vh;
        background-color: #000;
        opacity: 0;
        transition: opacity 0.15s linear;
    }

        .modal-backdrop.show {
            opacity: 0.5;
        }

    body.modal-open {
        overflow: hidden; /* prevent background scroll */
        position: fixed; /* prevent scroll on iOS */
        width: 100%;
    }

        body.modal-open::-webkit-scrollbar {
            display: none; /* Chrome / Edge */
        }



    /* Form Styles */
    .form-row {
        display: flex;
        gap: 15px;
        margin-bottom: 15px;
    }

    .form-field {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .form-label {
        font-size: 0.875rem;
        margin-bottom: 5px;
        font-weight: 500;
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 10px;
        border: 1px solid #ced4da;
        border-radius: 4px;
        font-size: 1rem;
    }

    .form-textarea {
        min-height: 100px;
        resize: vertical;
    }

    .input-error {
        color: #dc3545;
        font-size: 0.875rem;
        margin-top: 5px;
        display: none;
    }

    .form-field.error .input-error {
        display: block;
    }

    .form-field.error .form-input,
    .form-field.error .form-select {
        border-color: #dc3545;
    }

    .modal-submit {
        background-color: #000;
        color: #fff;
        padding: 12px 30px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 1rem;
        font-weight: 500;
    }

        .modal-submit:hover {
            background-color: #333;
        }
