/* ==========================================================
   Contact form: boxes clearly visible, typed text always white,
   orange glow while typing, orange edge + tick once filled
   ========================================================== */
.card .cf{position:relative}
.cf input,.cf select,.cf textarea{
  color:#fff!important;-webkit-text-fill-color:#fff!important;caret-color:#FF7900;color-scheme:dark;
  background:#262626!important;border:1.5px solid rgba(255,255,255,.28)!important;
  font-weight:600;letter-spacing:.01em;opacity:1!important;visibility:visible!important;
  transition:border-color .25s,box-shadow .25s,background-color .25s,transform .25s}
.cf input::placeholder,.cf textarea::placeholder{
  color:rgba(255,255,255,.5)!important;-webkit-text-fill-color:rgba(255,255,255,.5)!important;opacity:1!important;font-weight:400}
.cf select option{background:#1B1B1B;color:#fff}
.cf input:hover,.cf select:hover,.cf textarea:hover{border-color:rgba(255,255,255,.5)!important}

/* while typing: orange border and a soft pulsing glow */
.cf input:focus,.cf select:focus,.cf textarea:focus{
  background:#2F2F2F!important;border-color:#FF7900!important;transform:translateY(-2px);outline:none;
  box-shadow:0 0 0 3px rgba(255,121,0,.3),0 12px 28px -10px rgba(255,121,0,.7);
  animation:cfPulse 1.6s ease-in-out infinite}
@keyframes cfPulse{
  0%,100%{box-shadow:0 0 0 3px rgba(255,121,0,.3),0 12px 28px -10px rgba(255,121,0,.7)}
  50%{box-shadow:0 0 0 6px rgba(255,121,0,.12),0 14px 30px -8px rgba(255,121,0,.85)}}
.cf:focus-within label{color:#FF7900;transform:translateX(3px)}

/* after typing: orange edge on the left, warm tint, and a tick */
.cf input:not(:placeholder-shown):not(:focus),.cf textarea:not(:placeholder-shown):not(:focus){
  border-color:#FF7900!important;background:#2B2218!important;box-shadow:inset 4px 0 0 #FF7900}
.cf:has(input:not(:placeholder-shown)) input{padding-right:2.8rem}
.cf:has(input:not(:placeholder-shown))::after{
  content:"\2713";position:absolute;right:12px;bottom:12px;width:22px;height:22px;border-radius:50%;
  background:#FF7900;color:#000;font-size:13px;font-weight:900;line-height:22px;text-align:center;
  pointer-events:none;animation:cfPop .35s cubic-bezier(.3,1.6,.5,1)}
@keyframes cfPop{from{transform:scale(0)}to{transform:scale(1)}}

/* browser autofill (Chrome/Edge) keeps the dark box and white text */
.cf input:-webkit-autofill,.cf input:-webkit-autofill:hover,.cf input:-webkit-autofill:focus,
.cf textarea:-webkit-autofill,.cf select:-webkit-autofill{
  -webkit-text-fill-color:#fff!important;caret-color:#FF7900;
  -webkit-box-shadow:0 0 0 1000px #2B2218 inset!important;box-shadow:0 0 0 1000px #2B2218 inset!important;
  transition:background-color 99999s ease-in-out 0s}
