/* Main panel */
.feedback-form-shell {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e9ef;
    border-radius: 22px;
    box-shadow: 0 12px 38px rgba(28, 54, 82, 0.08);
    color: #303b49;
}

.feedback-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 30px;
    background: #9d0b0f;
    color: #fff;
}

.feedback-form-header__title {
    display: block;
    margin: 0;
    color: #fff;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.25;
}

.feedback-form-header__note {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
}

.feedback-form-header__icon {
    flex: 0 0 auto;
    font-size: 32px;
    line-height: 1;
    opacity: 0.9;
    color: #fff;
}

.feedback-form-content {
    padding: 34px 30px 38px;
}

/* Section headings */
.feedback-section {
    margin: 0 0 34px;
}

.feedback-section:last-of-type {
    margin-bottom: 20px;
}

.feedback-section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0 0 28px;
    text-align: center;
}

.feedback-section-title::before,
.feedback-section-title::after {
    display: block;
    flex: 1 1 auto;
    height: 1px;
    background: #e3e7eb;
    content: "";
}

.feedback-section-title span {
    display: inline-block;
    max-width: 100%;
    padding: 9px 24px;
    border-radius: 30px;
    background: #9d0b0f;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.035em;
    line-height: 1.3;
    text-transform: uppercase;
}

.feedback-field {
    margin: 0 0 24px;
}

.feedback-field > label,
.feedback-field__label {
    display: block;
    margin: 0 0 10px;
    color: #303b49;
    font-size: 16px;
    font-weight: 600;
}

.feedback-required {
    color: #c84f5b;
}

.feedback-optional {
    color: #737d88;
    font-weight: 400;
}

.feedback-form-shell input[type="text"],
.feedback-form-shell input[type="email"],
.feedback-form-shell input[type="tel"],
.feedback-form-shell select,
.feedback-form-shell textarea {
    display: block;
    width: 100%;
    min-height: 54px;
    padding: 14px 16px;
    border: 1px solid #d4d9df;
    border-radius: 9px;
    background: #fff;
    box-shadow: none;
    color: #303b49;
    font-size: 16px;
    line-height: 1.45;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feedback-form-shell textarea {
    min-height: 190px;
    resize: vertical;
}

.feedback-form-shell input:focus,
.feedback-form-shell select:focus,
.feedback-form-shell textarea:focus {
    border-color: #9d0b0f;
    box-shadow: 0 0 0 3px rgba(69, 143, 200, 0.13);
}

.feedback-form-shell input::placeholder,
.feedback-form-shell textarea::placeholder {
    color: #929aa3;
    opacity: 1;
}

/* Report type cards */
.feedback-category-options {
    display: grid !important;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
}

.feedback-category-options .wpcf7-list-item {
    position: relative;
    display: block;
    margin: 0 !important;
}

.feedback-category-options .wpcf7-list-item label {
    display: block;
    min-height: 90px;
    padding: 20px 18px 18px 22px;
    border: 1px solid #dfe3e8;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.feedback-category-options .wpcf7-list-item input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

.feedback-category-options .wpcf7-list-item-label {
    display: block;
    color: #303b49;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

.feedback-category-options .wpcf7-list-item-label::before {
    float: left;
    width: 54px;
    margin: 5px 14px 28px 0;
    font-size: 31px;
    line-height: 1.3;
    text-align: center;
}

.feedback-category-options .wpcf7-list-item-label::after {
    display: block;
    margin: 5px 0 0 68px;
    color: #78818c;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
}

.feedback-category-options .wpcf7-list-item:nth-child(1) .wpcf7-list-item-label::before { content: "😤"; }
.feedback-category-options .wpcf7-list-item:nth-child(1) .wpcf7-list-item-label::after { content: "Unfair treatment or workplace dissatisfaction"; }
.feedback-category-options .wpcf7-list-item:nth-child(2) .wpcf7-list-item-label::before { content: "💡"; }
.feedback-category-options .wpcf7-list-item:nth-child(2) .wpcf7-list-item-label::after { content: "Ideas to improve the workplace or processes"; }
.feedback-category-options .wpcf7-list-item:nth-child(3) .wpcf7-list-item-label::before { content: "📋"; }
.feedback-category-options .wpcf7-list-item:nth-child(3) .wpcf7-list-item-label::after { content: "Formal complaint about a policy or person"; }
.feedback-category-options .wpcf7-list-item:nth-child(4) .wpcf7-list-item-label::before { content: "🔔"; }
.feedback-category-options .wpcf7-list-item:nth-child(4) .wpcf7-list-item-label::after { content: "Report misconduct, fraud or illegal activity"; }

.feedback-category-options .wpcf7-list-item:has(input:checked) label,
.feedback-category-options .wpcf7-list-item:focus-within label {
    border-color: #9d0b0f;
    background: #f2f8fd;
    box-shadow: 0 0 0 2px rgba(69, 143, 200, 0.12);
}

/* Description character count */
.feedback-character-count {
    margin-top: 7px;
    color: #8a929b;
    font-size: 13px;
    text-align: right;
}

/* Supporting documents – CodeDropz uploader */
.feedback-upload-note {
    margin: -12px 0 14px;
    color: #737d88;
    font-size: 14px;
    line-height: 1.5;
}

.feedback-form-shell .codedropz-upload-wrapper {
    margin: 0;
}

.feedback-form-shell .codedropz-upload-handler {
    min-height: 145px;
    border: 2px dashed #d5dbe2;
    border-radius: 12px;
    background: #fbfcfd;
}

.feedback-form-shell .codedropz-upload-inner {
    padding: 30px 16px;
    color: #485564;
    text-align: center;
}

.feedback-form-shell .codedropz-upload-inner h3 {
    margin: 8px 0;
    color: #303b49;
    font-size: 16px;
}

.feedback-form-shell .codedropz-upload-inner span {
    color: #8a929b;
    font-size: 13px;
}

/* Identity/privacy callouts */
.feedback-info-note,
.feedback-privacy-note {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin: 0 0 18px;
    padding: 18px 20px;
    border: 1px solid #c6dceb;
    border-radius: 12px;
    background: #eef6fc;
    color: #315c7d;
    font-size: 15px;
    line-height: 1.6;
}

.feedback-info-note__icon,
.feedback-privacy-note__icon {
    flex: 0 0 auto;
    font-size: 20px;
}

.feedback-anonymous-toggle {
    display: block;
    margin: 0 0 24px;
    padding: 18px 20px;
    border: 1px solid #f0d982;
    border-radius: 12px;
    background: #fff9e4;
    color: #303b49;
    cursor: pointer;
}

.feedback-anonymous-toggle .wpcf7-list-item {
    margin: 0;
}

.feedback-anonymous-toggle label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

.feedback-anonymous-toggle input[type="checkbox"] {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 3px 0 0;
    accent-color: #9d0b0f;
}

.feedback-identity-fields.is-hidden,
.feedback-identity-fields[hidden] {
    display: none !important;
}

.feedback-privacy-note {
    margin-top: 20px;
    border-color: #d5d9de;
    background: #f0f2f4;
    color: #48515b;
}

.feedback-privacy-note a {
    color: #286c9f;
    text-decoration: underline;
}

/* CAPTCHA and submit */
.feedback-captcha {
    margin: 0 0 22px;
}

.feedback-submit-wrap {
    margin-top: 22px;
    text-align: center;
}

.feedback-form-shell input[type="submit"].feedback-submit {
    display: inline-flex;
    min-width: 220px;
    min-height: 55px;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: 0;
    border-radius: 9px;
    background: #9d0b0f;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.feedback-form-shell input[type="submit"].feedback-submit:hover {
    background: #222226;
}

.feedback-form-shell input[type="submit"].feedback-submit:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.feedback-submit-help {
    margin: 10px 0 0;
    color: #8a929b;
    font-size: 13px;
}

/* Contact Form 7 validation/response messages */
.feedback-form-shell .wpcf7-not-valid-tip {
    display: block;
    margin-top: 6px;
    color: #c33d4b;
    font-size: 13px;
}

.feedback-form-shell .wpcf7-response-output {
    margin: 20px 0 0 !important;
    padding: 13px 16px !important;
    border-radius: 8px;
    font-size: 14px;
}

.feedback-form-shell .wpcf7 form .wpcf7-spinner {
    display: block;
    margin: 12px auto 0;
}

@media (max-width: 767px) {
    .feedback-form-header {
        padding: 20px;
    }

    .feedback-form-content {
        padding: 26px 18px 30px;
    }

    .feedback-form-header__title {
        font-size: 21px;
    }

    .feedback-section-title {
        gap: 8px;
        margin-bottom: 22px;
    }

    .feedback-section-title span {
        padding: 8px 13px;
        font-size: 13px;
    }

    .feedback-category-options {
        grid-template-columns: 1fr;
    }

    .feedback-category-options .wpcf7-list-item label {
        min-height: 100px;
    }

    .feedback-form-shell input[type="text"],
    .feedback-form-shell input[type="email"],
    .feedback-form-shell input[type="tel"],
    .feedback-form-shell select,
    .feedback-form-shell textarea {
        font-size: 16px;
    }

    .feedback-info-note,
    .feedback-privacy-note {
        padding: 15px;
        font-size: 14px;
    }
}

/* Honour the native hidden attribute when anonymous submission is selected. */
.feedback-form-shell .feedback-identity-fields[hidden] {
    display: none !important;
}
.feedback-info-note p, .feedback-privacy-note p{
    font-size: 12px;
    line-height: 1.4;
}
.feedback-submit-wrap .wpcf7-spinner{
    display: block;
    margin: 10px auto 0;
}
.feedback-pass input[type="submit"]{
    background: #9d0b0f;
    padding: 4px 26px 4px;
    color: #fff;
    border-radius: 5px;
    margin-top: 10px;
}