/* --------------------------------------------
        FEEDBACK DIALOG — on every page, opened by links to #feedback
        (site footer, dashboard menus). Same look as the signup dialog (css/register.css).
        Markup: includes/feedback.php
-------------------------------------------- */

.wi-feedback {
    --wf-ink: #14213d;
    --wf-text: #2a3550;
    --wf-muted: #5b6475;
    --wf-line: #e3e8ef;
    --wf-field: #cfd6e0;
    --wf-soft: #f4f7fa;
    --wf-accent: #0b6ea3;
    --wf-accent-dark: #084f75;
    --wf-error: #b42318;
    --wf-error-soft: #fef3f2;

    position: fixed;
    inset: 0;
    width: min(520px, calc(100vw - 32px));
    height: fit-content;
    max-height: calc(100vh - 32px);
    margin: auto;
    overflow: auto;
    padding: 24px;
    border: 0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 64px rgba(20, 33, 61, .24);
    color: var(--wf-text);
    font-size: 14px;
    line-height: 1.5;
}

.wi-feedback::backdrop {
    background: rgba(20, 33, 61, .45);
}

.wi-feedback *,
.wi-feedback *::before,
.wi-feedback *::after {
    box-sizing: border-box;
}

.wi-feedback form {
    margin: 0;
}

.wi-feedback .wi-feedback-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--wf-line);
}

.wi-feedback h2 {
    margin: 0;
    color: var(--wf-ink);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
}

.wi-feedback .wi-feedback-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--wf-muted);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.wi-feedback .wi-feedback-close:hover {
    background: var(--wf-soft);
    color: var(--wf-ink);
}

.wi-feedback .wi-feedback-label {
    display: block;
    margin: 14px 0 6px;
    color: var(--wf-ink);
    font-size: 13px;
    font-weight: 700;
}

.wi-feedback .wi-feedback-label span {
    color: var(--wf-muted);
    font-weight: 400;
}

.wi-feedback .wi-feedback-types {
    display: flex;
    gap: 8px;
}

.wi-feedback .wi-feedback-types label {
    flex: 1;
    margin: 0;
    cursor: pointer;
}

.wi-feedback .wi-feedback-types input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wi-feedback .wi-feedback-types span {
    display: block;
    padding: 10px 8px;
    border: 1px solid var(--wf-line);
    border-radius: 12px;
    color: var(--wf-text);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.wi-feedback .wi-feedback-types label:hover span {
    background: var(--wf-soft);
}

.wi-feedback .wi-feedback-types input:checked + span {
    background: var(--wf-accent);
    border-color: var(--wf-accent);
    color: #fff;
}

.wi-feedback .wi-feedback-types input:focus-visible + span {
    outline: 2px solid var(--wf-accent-dark);
    outline-offset: 2px;
}

.wi-feedback textarea,
.wi-feedback input[type="email"] {
    display: block;
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--wf-field);
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
    color: var(--wf-ink);
    font: inherit;
}

.wi-feedback textarea {
    min-height: 120px;
    resize: vertical;
}

.wi-feedback input[type="email"] {
    height: 44px;
}

.wi-feedback textarea:focus,
.wi-feedback input[type="email"]:focus {
    border-color: var(--wf-accent);
    box-shadow: 0 0 0 3px rgba(11, 110, 163, .15);
    outline: none;
}

.wi-feedback .wi-feedback-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.wi-feedback .wi-feedback-error {
    margin: 14px 0 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--wf-error-soft);
    color: var(--wf-error);
    font-size: 13px;
}

.wi-feedback .wi-feedback-submit {
    width: 100%;
    min-height: 48px;
    margin-top: 18px;
    border: 1px solid var(--wf-accent);
    border-radius: 12px;
    background: var(--wf-accent);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.wi-feedback .wi-feedback-submit:hover {
    background: var(--wf-accent-dark);
    border-color: var(--wf-accent-dark);
}

.wi-feedback .wi-feedback-submit:disabled {
    opacity: .6;
    cursor: wait;
}

@media (max-width: 480px) {
    .wi-feedback {
        padding: 18px 16px 22px;
    }
}
