.complaint-modal.hidden {
    display: none;
}

.complaint-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    font-family: 'Montserrat', sans-serif;
}

.complaint-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    animation: complaint-fade .18s ease-out;
}

.complaint-dialog {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    max-width: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 24px 24px 20px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    max-height: 90vh;
    overflow: auto;
}

@keyframes complaint-fade {
    from {
        opacity: 0
    }
    to {
        opacity: 1
    }
}

.complaint-close {
    all: unset;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 28px;
    height: 28px;
    border-radius: 24px;
    background: #EAECEE;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 22px;
    color: #090F4E;
}

.complaint-close:hover {
    filter: brightness(.96);
}

.complaint-close:active {
    transform: translateY(1px);
}

.complaint-header {
    margin-bottom: 12px;
}

.complaint-header h2 {
    margin: 0 0 8px;
    color: #090F4E;
    font-size: 20px;
    font-weight: 600;
    line-height: 26px;
}

.complaint-sub {
    color: #090F4E;
    font-size: 14px;
    font-weight: 600;
    line-height: 120%;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}

.complaint-sub2 {
    color: #090F4E;
    font-size: 14px;
    font-weight: 400;
    line-height: 120%;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

#complaint-form {
    display: flex;
    flex-direction: column;
    position: relative;
}

.field {
    width: 100%;
    margin-bottom: 12px;
}

.field.floating .inputContainer {
    position: relative;
    display: inline-block;
    width: 100%;
}

.field.floating .input {
    width: 100%;
    background: #EAECEE;
    border-radius: 14px;
    padding: 20px 16px 10px;
    border: none;
    outline: none;
    font-size: 16px;
    line-height: 24px;
    color: #272B2E;
    transition: background-color .15s ease, border-color .15s ease;
}

.field.floating .label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #74808B;
    line-height: 1.2;
    pointer-events: none;
    transition: .18s ease;
}

.field.floating .input:focus + .label,
.field.floating .input:not(:placeholder-shown) + .label {
    top: 6px;
    transform: none;
    font-size: 12px;
    color: #6B7280;
}

.field.floating textarea + .label {
    top: 22px;
    transform: none;
}

.field .input:hover {
    background-color: rgba(209, 213, 216, .50);
}

.field .input:focus {
    border: 1px solid #1DB146;
    background: #FFFFFF;
}

.field.is-error .input {
    background: #FFE7E1;
}

.field.is-error .input:focus {
    border: 1px solid #EC694D;
    background: #FFFFFF;
}

.field.is-error .input:focus + .label {
    color: #EC694D;
}

.field.is-success .input {
    background: #EAECEE;
}

.field .input::placeholder {
    color: transparent;
}

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

.error {
    display: none;
    color: #EC694D;
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
}

.error:not(:empty) {
    display: block;
}

.file-uploader {
    background: #F2FAEF;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-trigger {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
    border-radius: 10px;
}

.file-trigger:hover {
    filter: brightness(.98);
}

.file-trigger:focus {
    outline: 2px solid #293FCC;
    outline-offset: 2px;
}

.file-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1DB146     ;
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
}

.file-text {
    display: flex;
    flex-direction: column;
}

.file-title {
    color: #090F4E;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

.file-sub {
    color: #6B7280;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
}

#complaint-files {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.file-list {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    color: #090F4E;
    font-size: 14px;
}

.file-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    margin: 6px 0;
    background: #F2FAEF;
    border-radius: 8px;
}

.file-list button {
    border: 0;
    background: none;
    color: #EC694D;
    cursor: pointer;
    font-size: 14px;
}

.consent {
    text-align: center;
    font-size: 12px;
    color: #090F4E;
}

.consent a {
    color: #0066cc;
    text-decoration: none;
}

.actions {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
}

.btn {
    color: #FFFFFF;
    background: #1DB146;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 0;
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
}

.btn[disabled] {
    opacity: .5;
    cursor: not-allowed;
}

.status {
    margin-top: 8px;
    max-width: 360px;
    text-align: center;
    color: #6B7280;
    font-size: 12px;
    line-height: 120%;
}

@media (max-width: 480px) {
    .complaint-dialog {
        margin: 0;
        min-height: 100%;
        border-radius: 0;
        padding: 16px 16px 8px;
    }

    .complaint-header h2 {
        font-size: 16px;
        line-height: 120%;
    }

    .complaint-sub {
        font-size: 12px;
    }

    .complaint-sub2 {
        font-size: 10px;
        letter-spacing: -0.1px;
    }

    .actions {
        position: sticky;
        bottom: 0;
        z-index: 10;
        background: #FFFFFF;
        padding-bottom: 15px;
    }
}

.is-loading {
    pointer-events: none;
    opacity: .7;
}

.hidden-visually {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}