/* =====================================================
   Safari / macOS ONLY FIXES
   Safe to include after main CSS
   ===================================================== */

/* ---------- RADIO BUTTON FIX (Safari) ---------- */
@supports (-webkit-appearance: none) {

  /* Prevent transform bugs on native radios */
  input[type="radio"] {
    transform: scale(1);
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
  }

  /* Fix flex + label click area issue */
  .radio-option input[type="radio"] {
    flex-shrink: 0;
  }
}

/* ---------- SELECT DROPDOWN FIX (Safari) ---------- */
@supports (-webkit-appearance: none) {

  select.ba-vo-form-control {
    -webkit-appearance: none;
    appearance: none;

    /* Stable sizing */
    height: 48px;
    line-height: 1.2;

    /* Typography */
    font-size: 16px;
    font-weight: 500;
    color: var(--dark-blue-color);

    /* Padding & visuals */
    padding: 12px 40px 12px 16px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;

    /* Custom arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;

    /* Smooth focus without Safari flicker */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  select.ba-vo-form-control:focus {
    outline: none;
    border-color: #adb5bd;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
  }
}
