.feedback_body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.input_wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.input_wrap input, .input_wrap textarea {
    max-width: -webkit-fill-available;
}
.upload-progress {
    position: relative;
    height: 8px;
    background: #00064b;
    border-radius: 3px;
    margin-top: 20px;
}

.progress-bar {
    position: relative;
    height: 100%;
    width: 0%;
    background-color: #007bff;
    transition: width 0.5s ease;
}

.progress-percent {
    position: absolute;
    top: -20px;
    right: 0;
    font-size: 12px;
    color: #fff;
}
.feedback-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 10px;
}

.feedback_body label {
    display: block;
    color: #EFEFEF;
}

.preview-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}

.preview-item {
    position: relative;
    width: 100%;
    max-width: 70px;
    max-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
}

.preview-item img,
.preview-item video {
    max-width: 100%;
    max-height: 100%;
    border-radius: 5px;
    object-fit: cover;
}

.preview-item .remove {
    position: absolute;
    top: -4px;
    right: -4px;
    background: rgba(255, 5, 5, 0.6);
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    margin: 0;
    transition: all 0.4s ease;
}
.preview-item .remove:hover {background: rgba(255, 5, 5, 1);}

.drop-zone {
    border: 2px dashed rgb(35 120 220 / 30%);
    padding: 10px 25px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}
@media (max-width: 585px) {
    .drop-zone {
        padding: 10px;
    }
}

.drop-zone.drag-over, .drop-zone:hover {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
    transform: scale(1.10);
}
.drop-zone:hover {
    transform: scale(1.03);
}
.drop-zone__title {
    font-size: 12px;
    color: green;
    user-select:none;
    transition: all 0.5s ease;
}
.drop-zone:hover .drop-zone__title {
    color: #aaa;
    transform: scale(0.90);
}

.feedback_body--app {
    width: 100%;
    max-width: 400px;
    margin-inline: auto;
}
.feedback_body--app label .required { color: red; }
.feedback_body--app .input_wrap :is(input, textarea) {
    width: -webkit-fill-available;
    max-width: -webkit-fill-available;
    min-width: 0;
    min-height: 26px;
    margin: 0;
    background: rgb(20 30 50);
    box-shadow: 0 0 0 1px rgb(35 120 220 / 10%);
    border: none;
    outline: none;
    color: #b1b1b1;
    padding: 0 8px;
    border-radius: 5px;
}
.feedback_body .input_wrap textarea {
    box-sizing: border-box;
    padding: 8px;
    resize: none;
    overflow-y: hidden;
}
.feedback_body .reCAPTCHA {
    display: flex;
    justify-content: center;
}
.feedback_body .feedback-recaptcha { flex: none; }
@media (max-width: 350px) {
    .feedback_body .feedback-recaptcha { zoom: .88; }
}
.feedback_body--app .drop-zone {
    display: grid;
    place-items: center;
    min-height: 34px;
    box-sizing: border-box;
    margin-top: 8px;
    padding: 4px 10px;
    border-style: solid;
}
.feedback_body--app .drop-zone__title { margin: 0; }
.feedback_body--app .feedback-actions .foward-btn {
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 5px;
    box-shadow: 0 0 3px rgb(0 0 0 / 50%);
    padding: 4px 12px;
    cursor: pointer;
    background: radial-gradient(circle at 50% 50%, green 0%, #003b00 100%);
    transition: background-position .5s ease;
    background-size: 300% 300%;
    background-position: 100% 100%;
    color: #fff;
}
.feedback_body--app .feedback-actions .foward-btn:hover { background-position: 0% 0%; }
.feedback_body .input_wrap [data-feedback-valid="true"] { box-shadow: 0 0 0 1px rgb(0 255 0 / 20%); }
.feedback_body .input_wrap [data-feedback-valid="false"] { box-shadow: 0 0 0 1px rgb(255 0 0 / 20%); }
.feedback_body [hidden] { display: none !important; }
.feedback_body [aria-disabled="true"], .feedback_body button:disabled { cursor: default; }
.feedback-mobile-hint { display: none; }
@media (max-width: 768px) {
    .feedback-desktop-hint { display: none; }
    .feedback-mobile-hint { display: inline; }
}

.feedback-thumbnail {
    display: block;
    position: relative;
    max-width: 100%;
    max-height: 70px;
    background: transparent;
    border: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    cursor: zoom-in;
}
.feedback-thumbnail :is(img, video) { display: block; max-height: 70px; }
.feedback-file-name {
    display: block;
    padding-block-end: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
}
.feedback-file-size {
    position: absolute;
    inset: auto 0 0;
    color: #fff;
    background: rgb(0 0 0 / 50%);
    font-size: 9px;
    line-height: 15px;
    text-align: center;
}
.apnc-feedback-status { margin: 0; text-align: center; color: #28a745; }
.apnc-feedback-status:empty { display: none; }
.apnc-feedback-status[data-error="true"] { color: #ff9c9c; }

.apnc-feedback-preview {
    width: max-content;
    max-width: calc(90vw - 32px);
    max-height: 84dvh;
    overflow: visible;
    border: 0;
    padding: 0;
    background: transparent;
    color: #eee;
}
.apnc-feedback-preview::backdrop { background: rgb(0 0 0 / 85%); }
.apnc-feedback-preview button {
    position: absolute;
    inset-block-start: -16px;
    inset-inline-end: -16px;
    width: 32px;
    height: 32px;
    background: #fff;
    color: #000;
    font-size: 26px;
    line-height: 32px;
    border: 0;
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 0 10px #000;
    cursor: pointer;
}
.apnc-feedback-preview :is(img, video) {
    display: block;
    max-width: 100%;
    max-height: 78dvh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 0 10px rgb(255 255 255 / 20%);
}
.apnc-feedback-preview :is(pre, a) {
    display: block;
    margin: 0;
    padding: 12px;
    background: #111;
    color: inherit;
}
.apnc-feedback-preview pre {
    max-height: 72dvh;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
