/* 2FA.HK homepage fault feedback entry + modal */
.twofa-hero-main.twofa-hero-with-feedback{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:18px;
}
.twofa-hero-copy{min-width:0;}
.twofa-fault-entry{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-width:126px;
  padding-left:16px;
  border-left:1px solid #e5e7eb;
}
.twofa-fault-btn{
  min-height:38px;
  padding:0 15px;
  border:1px solid #fdba74;
  border-radius:9px;
  background:#fff7ed;
  color:#c2410c;
  font-weight:800;
  font-size:14px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  white-space:nowrap;
  box-shadow:0 4px 12px rgba(194,65,12,.08);
  transition:background .15s ease,border-color .15s ease,transform .15s ease,box-shadow .15s ease;
}
.twofa-fault-btn:hover{
  background:#ffedd5;
  border-color:#fb923c;
  box-shadow:0 7px 18px rgba(194,65,12,.13);
  transform:translateY(-1px);
}
.twofa-fault-btn:focus-visible{
  outline:3px solid rgba(251,146,60,.28);
  outline-offset:2px;
}
.twofa-fault-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#f97316;
  box-shadow:0 0 0 4px rgba(249,115,22,.12);
}
.twofa-fault-hint{
  color:#94a3b8;
  font-size:11px;
  white-space:nowrap;
}

.twofa-feedback-modal[hidden]{display:none!important;}
.twofa-feedback-modal{
  position:fixed;
  inset:0;
  z-index:10050;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  box-sizing:border-box;
}
.twofa-feedback-backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.50);
  backdrop-filter:blur(2px);
}
.twofa-feedback-dialog{
  position:relative;
  z-index:1;
  width:min(560px,100%);
  max-height:calc(100vh - 36px);
  overflow:auto;
  box-sizing:border-box;
  border-radius:16px;
  border:1px solid rgba(15,23,42,.10);
  background:#fff;
  box-shadow:0 24px 70px rgba(15,23,42,.24);
  padding:22px;
}
.twofa-feedback-close{
  position:absolute;
  top:11px;
  right:12px;
  width:32px;
  height:32px;
  border:0;
  border-radius:8px;
  background:#f8fafc;
  color:#64748b;
  font-size:24px;
  line-height:1;
  cursor:pointer;
}
.twofa-feedback-head{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding-right:34px;
  margin-bottom:18px;
}
.twofa-feedback-icon{
  flex:0 0 34px;
  width:34px;
  height:34px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff7ed;
  color:#ea580c;
  font-weight:900;
  font-size:20px;
}
.twofa-feedback-head h2{
  margin:0 0 4px;
  color:#0f172a;
  font-size:20px;
}
.twofa-feedback-head p{
  margin:0;
  color:#64748b;
  font-size:13px;
  line-height:1.6;
}
.twofa-feedback-form{
  display:grid;
  gap:14px;
}
.twofa-feedback-form label{
  display:grid;
  gap:6px;
}
.twofa-feedback-form label>span{
  color:#334155;
  font-size:13px;
  font-weight:800;
}
.twofa-feedback-form select,
.twofa-feedback-form input[type="text"],
.twofa-feedback-form textarea{
  width:100%;
  box-sizing:border-box;
  border:1px solid #dbe2ea;
  border-radius:9px;
  background:#fff;
  color:#0f172a;
  font:inherit;
  font-size:14px;
  padding:10px 11px;
  outline:none;
}
.twofa-feedback-form select,
.twofa-feedback-form input[type="text"]{min-height:40px;}
.twofa-feedback-form textarea{resize:vertical;min-height:120px;line-height:1.6;}
.twofa-feedback-form select:focus,
.twofa-feedback-form input[type="text"]:focus,
.twofa-feedback-form textarea:focus{
  border-color:#60a5fa;
  box-shadow:0 0 0 3px rgba(59,130,246,.10);
}
.twofa-feedback-warning{
  padding:9px 11px;
  border-radius:8px;
  background:#fff7ed;
  color:#9a3412;
  font-size:12px;
  line-height:1.55;
}
.twofa-feedback-status{
  min-height:0;
  font-size:13px;
  line-height:1.5;
}
.twofa-feedback-status.ok{color:#15803d;}
.twofa-feedback-status.error{color:#b91c1c;}
.twofa-feedback-actions{
  display:flex;
  justify-content:flex-end;
  gap:9px;
  padding-top:2px;
}
.twofa-feedback-cancel,
.twofa-feedback-submit{
  min-height:38px;
  padding:0 15px;
  border-radius:9px;
  font-weight:800;
  cursor:pointer;
}
.twofa-feedback-cancel{
  border:1px solid #dbe2ea;
  background:#fff;
  color:#475569;
}
.twofa-feedback-submit{
  border:1px solid #1677ff;
  background:#1677ff;
  color:#fff;
}
.twofa-feedback-submit:disabled{opacity:.6;cursor:not-allowed;}
.twofa-feedback-honeypot{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  overflow:hidden!important;
  clip:rect(0 0 0 0)!important;
  clip-path:inset(50%)!important;
  white-space:nowrap!important;
}
body.twofa-feedback-open{overflow:hidden;}

@media (max-width:760px){
  .twofa-hero-main.twofa-hero-with-feedback{
    grid-template-columns:1fr;
    gap:10px;
  }
  .twofa-fault-entry{
    min-width:0;
    padding:10px 0 0;
    border-left:0;
    border-top:1px solid #eef2f7;
    align-items:flex-start;
  }
  .twofa-fault-btn{min-height:36px;}
  .twofa-fault-hint{display:none;}
}
@media (max-width:560px){
  .twofa-feedback-modal{padding:10px;align-items:flex-end;}
  .twofa-feedback-dialog{
    width:100%;
    max-height:90vh;
    border-radius:16px 16px 12px 12px;
    padding:18px;
  }
}
