/* ============================================================
 * SOF Feedback Workspace
 * ============================================================
 */

.sof-feedback-workspace {
    max-width: 1100px;
    margin: 0 auto;
    color: #111827;
}

/*
 * ============================================================
 * Feedback Readability
 * ============================================================
 */

.sof-feedback-workspace {
    font-size: 19px;
    line-height: 1.65;
}

.sof-feedback-card p,
.sof-feedback-card label,
.sof-feedback-card select,
.sof-feedback-card input,
.sof-feedback-card textarea {
    font-size: 19px;
}

.sof-feedback-card h2 {
    font-size: 2rem;
    line-height: 1.25;
}

.sof-feedback-card h3 {
    font-size: 1.75rem;
    line-height: 1.3;
}

.sof-feedback-card .button {
    font-size: 18px;
}


/* ============================================================
 * Cards
 * ============================================================
 */

.sof-feedback-card {
    margin: 0 0 1.5rem;
    padding: 1.75rem;
    background: #ffffff;
    border: 1px solid #d8dee8;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    color: #111827;
}

.sof-feedback-card h2 {
    margin: 0 0 1.25rem;
    color: #111827;
    font-size: 2rem;
    line-height: 1.2;
}

.sof-feedback-card h3 {
    margin-top: 0;
    color: #111827;
}

.sof-feedback-card p {
    color: #1f2937;
    line-height: 1.7;
}

.sof-feedback-card p:last-child {
    margin-bottom: 0;
}


/* ============================================================
 * Fields
 * ============================================================
 */

.sof-feedback-field {
    margin-bottom: 1.4rem;
}

.sof-feedback-field label {
    display: block;
    margin-bottom: 0.5rem;
    color: #111827;
    font-weight: 700;
    line-height: 1.4;
}


/* ============================================================
 * Inputs
 * ============================================================
 */

.sof-feedback-field input,
.sof-feedback-field select,
.sof-feedback-field textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid #9ca3af;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
}

.sof-feedback-field input {
    min-height: 48px;
    padding: 0.75rem 0.9rem;
}

.sof-feedback-field select {
    min-height: 52px;
    padding: 0.75rem 2.5rem 0.75rem 0.9rem;
    color: #111827;
    cursor: pointer;
}

.sof-feedback-field textarea {
    min-height: 180px;
    padding: 0.9rem;
    resize: vertical;
}


/* ============================================================
 * Placeholder Text
 * ============================================================
 */

.sof-feedback-field input::placeholder,
.sof-feedback-field textarea::placeholder {
    color: #6b7280;
    opacity: 1;
}


/* ============================================================
 * Focus
 * ============================================================
 */

.sof-feedback-field input:focus,
.sof-feedback-field select:focus,
.sof-feedback-field textarea:focus {
    border-color: #2563eb;
    outline: 2px solid rgba(37, 99, 235, 0.18);
    outline-offset: 1px;
}


/* ============================================================
 * Help Text
 * ============================================================
 */

.sof-feedback-help {
    margin: 0.5rem 0 0;
    color: #374151 !important;
    font-size: 0.95rem;
    line-height: 1.5;
}


/* ============================================================
 * Actions
 * ============================================================
 */

.sof-feedback-actions {
    margin-top: 1.5rem;
}

.sof-feedback-actions .button,
.sof-feedback-actions .button.button-primary {
    display: inline-block;
    min-height: 48px;
    padding: 0.75rem 1.25rem;
    border: 1px solid #1d4ed8;
    border-radius: 8px;
    background: #1d4ed8;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
}

.sof-feedback-actions .button:hover,
.sof-feedback-actions .button:focus,
.sof-feedback-actions .button.button-primary:hover,
.sof-feedback-actions .button.button-primary:focus {
    border-color: #1e40af;
    background: #1e40af;
    color: #ffffff;
}


/* ============================================================
 * Mobile
 * ============================================================
 */

@media (max-width: 600px) {

    .sof-feedback-card {
        padding: 1.25rem;
    }

    .sof-feedback-card h2 {
        font-size: 1.65rem;
    }

    .sof-feedback-actions .button,
    .sof-feedback-actions .button.button-primary {
        width: 100%;
    }
}

/* ============================================================
 * Force readable entered field text
 * ============================================================
 */

.sof-feedback-workspace
.sof-feedback-field input,

.sof-feedback-workspace
.sof-feedback-field select,

.sof-feedback-workspace
.sof-feedback-field textarea {
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    opacity: 1 !important;
    caret-color: #111827;
}

.sof-feedback-workspace
.sof-feedback-field option {
    color: #111827 !important;
    background: #ffffff;
}

.sof-feedback-workspace
.sof-feedback-field input:-webkit-autofill,

.sof-feedback-workspace
.sof-feedback-field input:-webkit-autofill:hover,

.sof-feedback-workspace
.sof-feedback-field input:-webkit-autofill:focus {
    -webkit-text-fill-color: #111827 !important;
    caret-color: #111827;
}

/* ============================================================
 * SOF Feedback Readability Override
 * ============================================================
 */

.sof-feedback-workspace .sof-feedback-card,
.sof-feedback-workspace .sof-feedback-card p,
.sof-feedback-workspace .sof-feedback-card div,
.sof-feedback-workspace .sof-feedback-card span,
.sof-feedback-workspace .sof-feedback-card label {
    font-size: 20px !important;
    line-height: 1.65 !important;
}

.sof-feedback-workspace .sof-feedback-card strong {
    font-size: 20px !important;
}

.sof-feedback-workspace .sof-feedback-card h2 {
    font-size: 32px !important;
    line-height: 1.25 !important;
}

.sof-feedback-workspace .sof-feedback-card h3 {
    font-size: 28px !important;
    line-height: 1.3 !important;
}

.sof-feedback-workspace .sof-feedback-card input,
.sof-feedback-workspace .sof-feedback-card select,
.sof-feedback-workspace .sof-feedback-card textarea {
    font-size: 20px !important;
}

.sof-feedback-workspace .sof-feedback-actions .button,
.sof-feedback-workspace .sof-feedback-card .button {
    font-size: 19px !important;
}