/*!
 *  Theme Name:     FP
 *  Description:    A floating-point theme.
 *  Author:         floating-point
 *  Author URI:     http://www.floating-point.com
*/
/* Baseline: Direct attribute target */
input[name="post_password"] {
    border: 1px solid black;
}

/* Pedantic & Robust: Scoped and specific */
.post-password-form input[name="post_password"][type="password"] {
    border: 1px solid black;
}
/* 1. Global Input Reset: Force readability across all forms */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
input[type="url"],
select,
textarea {
    background-color: #ffffff !important; /* Force explicit background */
    color: #000000 !important;            /* Force explicit text */
    border: 1px solid #767676 !important; /* Explicit border for contrast */
    padding: 0.5rem;
}

/* 2. Gravity Forms Specific Override */
.gform_wrapper input:not([type=radio]):not([type=checkbox]):not([type=submit]),
.gform_wrapper select,
.gform_wrapper textarea {
    background-color: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #767676 !important;
}

/* 3. Focus States: Essential for accessibility */
.gform_wrapper input:focus,
.gform_wrapper select:focus,
.gform_wrapper textarea:focus {
    outline: 2px solid #000000;
    border-color: #000000 !important;
}

/* Scope: Gravity Forms Submit Buttons */
.gform_wrapper input[type="submit"].gform_button {
    border: 1px solid #000 !important; /* Adjust color as needed */
    background-color: #f7f7f7 !important;
    color: #000 !important;
    padding: 0.75rem 1.5rem !important;
    appearance: none; /* Strip OS-native styling */
    cursor: pointer;
}

/* Hover state is usually lost when overriding defaults */
.gform_wrapper input[type="submit"].gform_button:hover {
    background-color: #e2e2e2 !important;
    border-color: #333 !important;
}