/* ============================================================
   GLOBAL FORM BORDER COLOR OVERRIDE (Astra / Dokan / Woo / etc.)
   ============================================================
   Why this exists:
   - After an Astra theme update, many form fields started inheriting
     border colors from theme variables and/or plugin CSS that sometimes
     ended up as transparent/white (e.g. rgba(0,0,0,0)) or changed on
     hover/focus, causing “invisible” borders and inconsistent states.
   - This rule forces ALL standard form controls to use the same
     border color (#e4e4e4) in default, hover, and focus states.
   - Use a more specific selector (and likely !important) if you need
     a specific field to have a different border color.
*/

/* 1) Base state: force consistent border color on all form controls */
input[type="email"],
input[type="number"],
input[type="password"],
input[type="reset"],
input[type="search"],
input[type="tel"],
input[type="text"],
input[type="url"],
select,
textarea {
  border-color: #e4e4e4 !important;
}

/* 2) Hover + focus states: prevent theme/plugin overrides (dark/transparent) */
input[type="email"]:hover,
input[type="number"]:hover,
input[type="password"]:hover,
input[type="reset"]:hover,
input[type="search"]:hover,
input[type="tel"]:hover,
input[type="text"]:hover,
input[type="url"]:hover,
select:hover,
textarea:hover,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="reset"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="text"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus,
input[type="email"]:focus-visible,
input[type="number"]:focus-visible,
input[type="password"]:focus-visible,
input[type="reset"]:focus-visible,
input[type="search"]:focus-visible,
input[type="tel"]:focus-visible,
input[type="text"]:focus-visible,
input[type="url"]:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: #e4e4e4 !important;
}

/* 3) focus-within: covers wrappers/components that apply focus to parents */
input[type="email"]:focus-within,
input[type="number"]:focus-within,
input[type="password"]:focus-within,
input[type="reset"]:focus-within,
input[type="search"]:focus-within,
input[type="tel"]:focus-within,
input[type="text"]:focus-within,
input[type="url"]:focus-within,
select:focus-within,
textarea:focus-within {
  border-color: #e4e4e4 !important;
}
