.fpmodal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none; 
    align-items: center;
    justify-content: center;
}

.fpmodal[aria-hidden="false"] {
    display: flex;
}

.fpmodal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
}

.fpmodal-dialog {
    position: relative;
    max-width: 700px;
    width: 100%;
    margin: 6vh auto;
    background: #fff;
    border-radius: 1px;
    padding: 30px 20px;
    border: 1px solid #D4D7E5;
    font-family: inherit;
    border-radius: 10px;
    max-height: 90vh;
    overflow-y: auto;
}

.fpmodal-close {
    position: absolute;
    right: 30px;
    top: 40px;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0;
}

.fpmodal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.fp-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.fp-name {
    font-family: var(--global-font-family-1);
    font-weight: 700;
    font-size: 24px;
    line-height: 130%;
    color: #000000;
    margin: 0;
}

.fp-field textarea {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    background: #32329314;
    outline: none;
    resize: vertical;
    font-family: var(--global-font-family-1);
    font-family: var(--global-font-family-1);
}

.fp-field textarea::placeholder {
    color: #B4B7C9;
    font-family: var(--global-font-family-1);
    font-weight: 400;
    font-size: 16px;
    line-height: 160%;
    margin: 0;
    margin-bottom: 20px;
}

.fp-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 0;
    border-bottom: 1px solid #D4D7E5;
}

.fp-media-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #EFF2FC;
    padding: 9px;
    border-radius: 10px;
    cursor: pointer;
    font-family: var(--global-font-family-1);
}

.fp-file-chip {
    display: inline-block;
    background: #32329314;
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 13px;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--global-font-family-1);
}

.fp-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.fp-submit {
    background-color: #EE1D23;
    border: 0;
    border-radius: 6px;
    color: #fff;
    padding: 8px 60px;
    cursor: pointer;
    font-family: var(--global-font-family-1);
    font-weight: 600;
    font-size: 16px;
    line-height: 160%;
}

.fp-message {
    margin-top: 10px;
    text-align: right;
    margin-bottom: 0;
    font-family: var(--global-font-family-1);
}

@media screen and (max-width: 767px) {
    .fpmodal-dialog {
        max-width: 90%;
    }

    .fpmodal-header {
        gap: 10px;
        width: 80%;
    }

    .fp-name {
        font-size: 20px;
    }
    
    .fp-avatar {
        width: 35px;
        height: 35px;
    }
}