/* ============================================================
   PUBLIC FEEDBACK / INFORMATION REQUEST PAGE
============================================================ */


/* ============================================================
   1. Page Card
============================================================ */

.public-dashboard-page.feedback-dashboard-page .feedback-card {
    width: 100% !important;
    max-width: 860px !important;

    margin: 32px auto 0 !important;
    padding: 28px !important;

    border-radius: 20px !important;

    box-sizing: border-box !important;
}


/* ============================================================
   2. Header
============================================================ */

.feedback-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 26px;
}


.feedback-header h2 {
    margin: 0 0 8px;

    font-size: clamp(1.1rem, 2vw, 1.6rem);
    font-weight: 850;

    line-height: 1.2;

    color: var(--public-text-heading);
}


.feedback-header p {
    margin: 0;

    max-width: 680px;

    font-size: 0.92rem;
    line-height: 1.55;

    color: var(--public-text-muted);
}


.feedback-header .feedback-email-note {
    margin-top: 8px;

    font-size: 0.80rem;

    opacity: 0.88;
}


/* ============================================================
   3. Form Layout
============================================================ */

.feedback-form {
    display: grid;

    gap: 20px;

    width: 100%;
}


.feedback-field {
    display: flex;
    flex-direction: column;

    gap: 7px;
}


/* ============================================================
   4. Labels
============================================================ */

.feedback-field label {
    display: flex;
    align-items: center;

    gap: 6px;

    margin: 0;

    font-size: 0.84rem;
    font-weight: 800;

    line-height: 1.2;

    color: #565658 !important;
}

[data-theme="dark"] .feedback-field label {
    color: #565658 !important;
}


.required-marker {
    color: #dc2626 !important;
    font-weight: 900 !important;
}

[data-theme="dark"] .required-marker {
    color: #f87171 !important;
}

.optional-label {
    display: inline-flex;
    align-items: center;

    min-height: 20px;

    padding: 2px 7px;

    border-radius: 999px;

    font-size: 0.66rem;
    font-weight: 750;

    line-height: 1;

    color: var(--public-text-muted);

    border: 1px solid rgba(148, 163, 184, 0.22);

    background: rgba(148, 163, 184, 0.08);
}


/* ============================================================
   5. Inputs
============================================================ */

.feedback-field input[type="text"],
.feedback-field input[type="email"],
.feedback-field textarea {
    width: 100% !important;

    border-radius: 13px !important;

    border: 1px solid rgba(148, 163, 184, 0.32) !important;

    padding: 11px 13px !important;

    font: inherit !important;

    font-size: 0.90rem !important;

    line-height: 1.45 !important;

    color: var(--public-text-main) !important;

    background: var(--public-bg-card) !important;

    outline: none !important;

    box-sizing: border-box !important;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease !important;
}


.feedback-field input[type="text"],
.feedback-field input[type="email"] {
    min-height: 44px !important;
}


.feedback-field textarea {
    min-height: 180px !important;

    resize: vertical !important;
}


/* Placeholder */

.feedback-field input::placeholder,
.feedback-field textarea::placeholder {
    color: var(--public-text-muted);

    opacity: 0.72;
}


/* Focus */

.feedback-field input[type="text"]:focus,
.feedback-field input[type="email"]:focus,
.feedback-field textarea:focus {
    border-color: #0081c6 !important;

    box-shadow:
        0 0 0 3px rgba(0, 129, 198, 0.12) !important;
}


/* ============================================================
   6. Help Text
============================================================ */

.feedback-field-help {
    margin-top: -1px;

    font-size: 0.72rem;
    font-weight: 550;

    line-height: 1.35;

    color: var(--public-text-muted);
}


/* ============================================================
   7. Validation Errors
============================================================ */

.feedback-field-error {
    display: flex;
    flex-direction: column;

    gap: 3px;

    margin-top: 2px;

    color: #dc2626 !important;

    font-size: 0.74rem;
    font-weight: 700;

    line-height: 1.35;
}

.feedback-field-error span,
.feedback-field-error p,
.feedback-field-error li {
    color: #dc2626 !important;
}


[data-theme="dark"] .feedback-field-error,
[data-theme="dark"] .feedback-field-error span,
[data-theme="dark"] .feedback-field-error p,
[data-theme="dark"] .feedback-field-error li {
    color: #f87171 !important;
}

.feedback-form-errors {
    padding: 11px 13px;

    border-radius: 12px;

    border: 1px solid rgba(180, 35, 24, 0.25);

    background: rgba(180, 35, 24, 0.08);

    color: #b42318;

    font-size: 0.78rem;

    line-height: 1.4;
}


.feedback-form-errors p {
    margin: 0;
}


/* ============================================================
   8. Success Message
============================================================ */

.feedback-messages {
    margin-bottom: 20px;
}


.feedback-message {
    padding: 12px 14px;

    border-radius: 13px;

    font-size: 0.82rem;
    font-weight: 700;

    line-height: 1.4;
}


.feedback-message-success {
    border: 1px solid rgba(22, 163, 74, 0.24);

    background: rgba(22, 163, 74, 0.09);

    color: #15803d;
}


/* ============================================================
   9. Submit Area
============================================================ */

.feedback-form-actions {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    margin-top: 2px;
}


.feedback-submit-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 120px;
    min-height: 42px;

    padding: 9px 20px;

    border: 1px solid #006fa8;

    border-radius: 999px;

    background: #0081c6;

    color: #f8fafc !important;

    font-size: 0.84rem;
    font-weight: 800;

    line-height: 1;

    cursor: pointer;

    box-shadow:
        0 8px 18px rgba(0, 129, 198, 0.16);

    transition:
        transform 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}


.feedback-submit-btn:hover {
    background: #006fa8;

    border-color: #00618f;

    transform: translateY(-1px);

    box-shadow:
        0 11px 24px rgba(0, 129, 198, 0.22);
}

.feedback-submit-btn:hover,
.feedback-submit-btn:focus {
    color: #f8fafc !important;
}

.feedback-submit-btn:focus-visible {
    outline: 2px solid #0081c6;

    outline-offset: 3px;
}


/* ============================================================
   10. LIGHT THEME
============================================================ */

[data-theme="light"]
.public-dashboard-page.feedback-dashboard-page
.feedback-card {
    background: #ffffff !important;

    border: 1px solid rgba(15, 39, 71, 0.10) !important;

    box-shadow:
        0 14px 34px rgba(15, 23, 42, 0.06) !important;
}


[data-theme="light"]
.feedback-field input[type="text"],

[data-theme="light"]
.feedback-field input[type="email"],

[data-theme="light"]
.feedback-field textarea {
    background: #ffffff !important;

    color: #0f2747 !important;

    border-color: rgba(15, 39, 71, 0.18) !important;
}


[data-theme="light"]
.feedback-field input[type="text"]:focus,

[data-theme="light"]
.feedback-field input[type="email"]:focus,

[data-theme="light"]
.feedback-field textarea:focus {
    background: #ffffff !important;

    border-color: #0081c6 !important;
}


/* ============================================================
   11. DARK THEME
============================================================ */

[data-theme="dark"]
.public-dashboard-page.feedback-dashboard-page
.feedback-card {
    background:
        linear-gradient(
            180deg,
            rgba(11, 20, 44, 0.98),
            rgba(7, 15, 32, 0.98)
        ) !important;

    border:
        1px solid
        rgba(148, 163, 184, 0.14) !important;

    box-shadow:
        0 18px 42px
        rgba(0, 0, 0, 0.26) !important;
}


[data-theme="dark"]
.feedback-field input[type="text"],

[data-theme="dark"]
.feedback-field input[type="email"],

[data-theme="dark"]
.feedback-field textarea {
    background:
        rgba(255, 255, 255, 0.045) !important;

    color: #e8eef8 !important;

    border-color:
        rgba(148, 163, 184, 0.22) !important;
}


[data-theme="dark"]
.feedback-field input::placeholder,

[data-theme="dark"]
.feedback-field textarea::placeholder {
    color: #8fa0bb;
}


[data-theme="dark"]
.feedback-message-success {
    color: #86efac;

    background:
        rgba(22, 163, 74, 0.12);

    border-color:
        rgba(74, 222, 128, 0.22);
}


[data-theme="dark"]
.feedback-field-error,

[data-theme="dark"]
.feedback-form-errors {
    color: #fca5a5;
}


/* ============================================================
   12. RESPONSIVE
============================================================ */

@media (max-width: 980px) {

    .public-dashboard-page.feedback-dashboard-page
    .feedback-card {
        max-width: 100% !important;

        margin-top: 24px !important;
    }
}


@media (max-width: 720px) {

    .public-dashboard-page.feedback-dashboard-page
    .feedback-card {
        margin-top: 18px !important;

        padding: 20px 16px !important;

        border-radius: 16px !important;
    }


    .feedback-header {
        margin-bottom: 22px;
    }


    .feedback-header h2 {
        font-size: 1.1rem;
    }


    .feedback-form {
        gap: 17px;
    }


    .feedback-field textarea {
        min-height: 160px !important;
    }


    .feedback-form-actions {
        justify-content: stretch;
    }


    .feedback-submit-btn {
        width: 100%;

        min-height: 44px;
    }
}


/* ============================================================
   13. REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {

    .feedback-field input,
    .feedback-field textarea,
    .feedback-submit-btn {
        transition: none !important;
    }


    .feedback-submit-btn:hover {
        transform: none !important;
    }
}


/* ============================================================
   Character Counter
============================================================ */

.feedback-character-counter {
    margin-top: -1px;

    font-size: 0.72rem;
    font-weight: 600;

    line-height: 1.35;

    color: #64748b !important;

    text-align: right;

    transition:
        color 0.18s ease,
        font-weight 0.18s ease;
}


.feedback-character-counter.is-near-limit {
    color: #b7791f !important;
    font-weight: 700;
}


.feedback-character-counter.is-critical {
    color: #dc2626 !important;
    font-weight: 800;
}


[data-theme="dark"]
.feedback-character-counter {
    color: #aab8c7 !important;
}


[data-theme="dark"]
.feedback-character-counter.is-near-limit {
    color: #fbbf24 !important;
}


[data-theme="dark"]
.feedback-character-counter.is-critical {
    color: #f87171 !important;
}


/* ============================================================
   CONTACT & UPDATES
============================================================ */

.public-dashboard-page.feedback-dashboard-page
.feedback-contact-card {
    display: flex;
    align-items: center;

    gap: 14px;

    width: 100% !important;
    max-width: 860px !important;

    margin: 16px auto 0 !important;
    padding: 16px 20px !important;

    border-radius: 16px !important;

    box-sizing: border-box !important;
}


.feedback-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    border-radius: 11px;

    color: #0081c6;

    background: rgba(0, 129, 198, 0.09);
}


.feedback-contact-icon svg {
    width: 20px;
    height: 20px;
}


.feedback-contact-text {
    min-width: 0;
}


.feedback-contact-text > strong {
    display: block;

    margin-bottom: 3px;

    font-size: 0.84rem;
    font-weight: 850;

    line-height: 1.25;

    color: var(--public-text-heading);
}


.feedback-contact-text p {
    margin: 0;

    font-size: 0.78rem;
    line-height: 1.5;

    color: var(--public-text-muted);
}


.feedback-contact-text p span {
    font-weight: 750;

    color: var(--public-text-main);
}


.feedback-contact-text a {
    color: #0081c6 !important;

    font-weight: 750;

    text-decoration: none;
}


.feedback-contact-text a:hover {
    text-decoration: underline;

    text-underline-offset: 3px;
}


/* Light */

[data-theme="light"]
.public-dashboard-page.feedback-dashboard-page
.feedback-contact-card {
    background: #ffffff !important;

    border:
        1px solid
        rgba(15, 39, 71, 0.10) !important;

    box-shadow:
        0 8px 22px
        rgba(15, 23, 42, 0.04) !important;
}


/* Dark */

[data-theme="dark"]
.public-dashboard-page.feedback-dashboard-page
.feedback-contact-card {
    background:
        rgba(11, 20, 44, 0.82) !important;

    border:
        1px solid
        rgba(148, 163, 184, 0.14) !important;

    box-shadow:
        0 10px 26px
        rgba(0, 0, 0, 0.16) !important;
}


[data-theme="dark"]
.feedback-contact-icon {
    color: #38bdf8;

    background:
        rgba(56, 189, 248, 0.09);
}


[data-theme="dark"]
.feedback-contact-text a {
    color: #38bdf8 !important;
}


/* Mobile */

@media (max-width: 720px) {

    .public-dashboard-page.feedback-dashboard-page
    .feedback-contact-card {
        align-items: flex-start;

        margin-top: 14px !important;
        padding: 15px 16px !important;
    }


    .feedback-contact-icon {
        width: 38px;
        height: 38px;

        flex-basis: 38px;
    }
}