/**
 * General Feedback form only – all overrides scoped to #generalFeedback.
 * Loaded on GeneralFeedback/Index.cshtml after style.css so other forms are unaffected.
 */

#generalFeedback {
    /* WCAG 1.4.11: border vs adjacent fill min 3:1 (#E8ECFE on #FFFFFF fails 1.2:1) */
    --gf-control-border: #6b7280;
}

/* -------------------------------------------------------------------------- */
/* Text inputs & textarea (placeholders: #A9A9A9 on #FFFFFF fails 2.4:1)      */
/* -------------------------------------------------------------------------- */
#generalFeedback .input_field input,
#generalFeedback .input_field textarea {
    width: 100%;
    border: solid 2px var(--gf-control-border);
    border-radius: 30px;
    background-color: #ffffff;
    height: 45px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #767676;
    padding-left: 30px;
    transition: 0.5s;
}

#generalFeedback .input_field textarea {
    resize: none;
    height: 100px;
}

#generalFeedback .input_field input::placeholder,
#generalFeedback .input_field textarea::placeholder {
    color: #767676;
    opacity: 1;
}

#generalFeedback .input_field input::-webkit-input-placeholder,
#generalFeedback .input_field textarea::-webkit-input-placeholder {
    color: #767676;
}

#generalFeedback .input_field input::-moz-placeholder,
#generalFeedback .input_field textarea::-moz-placeholder {
    color: #767676;
    opacity: 1;
}

#generalFeedback .input_field input:focus,
#generalFeedback .input_field textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* -------------------------------------------------------------------------- */
/* Selects (Select City, Mission, etc.: #969696 on #EEEEEE fails 2.5:1)       */
/* -------------------------------------------------------------------------- */
#generalFeedback .input_field .select-toggle,
#generalFeedback .input_field .select_no_drop {
    width: 100%;
    border: solid 2px var(--gf-control-border);
    border-radius: 30px;
    background-color: #eeeeee;
    height: 45px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #6b6b6b;
    padding-left: 30px;
    transition: 0.5s;
}

#generalFeedback .input_field .select-toggle:focus {
    border-color: var(--primary-color);
    outline: none;
}

#generalFeedback .select-toggle,
#generalFeedback .select_no_drop {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px !important;
    height: 45px !important;
}

/* -------------------------------------------------------------------------- */
/* Form labels (accessibility)                                                 */
/* -------------------------------------------------------------------------- */
#generalFeedback .input_field > label:not(.gf-choose-btn) {
    font-family: Arial;
    font-size: 15px;
    color: rgb(41, 41, 41);
    font-weight: 100;
    display: block;
    margin-bottom: 5px;
}

/* -------------------------------------------------------------------------- */
/* File upload                                                                 */
/* -------------------------------------------------------------------------- */
#generalFeedback .gf-upload-field {
    margin-bottom: 20px;
}

#generalFeedback .gf-upload-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Custom file picker: single outer border, Choose Files flush on the left */
#generalFeedback .gf-file-picker {
    flex: 1 1 280px;
    min-width: 0;
    display: flex;
    align-items: stretch;
    height: 45px;
    box-sizing: border-box;
    border: solid 2px var(--gf-control-border);
    border-radius: 30px;
    background-color: #ffffff;
    overflow: hidden;
}

#generalFeedback .gf-file-picker:focus-within {
    border-color: var(--primary-color);
}

#generalFeedback .gf-file-input-native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#generalFeedback label.gf-choose-btn {
    flex: 0 0 auto;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 0;
    padding: 0 22px;
    min-height: 100%;
    height: auto;
    border: none;
    border-right: solid 1px var(--gf-control-border);
    border-radius: 0;
    background-color: #eeeeee;
    color: #595959;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
}

#generalFeedback label.gf-choose-btn:hover {
    background-color: #e2e2e2;
}

#generalFeedback .gf-file-name {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    padding: 0 18px;
    font-size: 14px;
    color: #767676;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Upload button: #FFFFFF on #DC780A fails 3.11:1 — use #9e5a08 */
#generalFeedback .gf-upload-btn {
    flex: 0 0 auto;
    min-width: 110px;
    height: 45px;
    margin: 0;
    padding: 0 28px;
    border: none;
    border-radius: 30px;
    background-color: #9e5a08;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#generalFeedback .gf-upload-btn:hover {
    background-color: #874d07;
}

#generalFeedback .gf-upload-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

#generalFeedback .gf-upload-status {
    margin: 8px 0 0 0;
    padding: 0 10px;
    font-size: 13px;
    color: #595959;
    min-height: 1.25em;
}

#generalFeedback .gf-upload-status:empty {
    display: none;
}

/* -------------------------------------------------------------------------- */
/* Consent copy                                                                */
/* -------------------------------------------------------------------------- */
#generalFeedback .gf-consent-text {
    text-align: justify;
    text-wrap: pretty;
}

/* Application Ref. No field hint (aria-describedby target) */
#generalFeedback .gf-field-hint {
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 14px;
    color: rgb(41, 41, 41);
    margin: 0 0 10px 0;
    padding-right: 10px;
}
