/* GuardPro Home Forms — compact, modern, animated */
:root{
  --gph-primary: #a32436;
  --gph-secondary: #22223D;

  --gph-text: var(--gph-secondary);
  --gph-muted: rgba(34,34,61,.62);
  --gph-border: rgba(34,34,61,.14);
  --gph-label: rgba(34,34,61,.86);
  --gph-ring: rgba(163,36,54,.18);
  --gph-shadow: 0 10px 34px rgba(15,23,42,.08);
  --gph-radius: 16px;
  --gph-radius-sm: 12px;
  --gph-font: ui-sans-serif, system-ui, -apple-system, "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}

.gphf{ font-family: var(--gph-font); }
.gphf *{ box-sizing:border-box; }

.gphf__card{
  max-width: 600px;
  margin: 40px auto;
  border-radius: var(--gph-radius);
  background: rgba(255,255,255,.92);
  border: 1px solid var(--gph-border);
  box-shadow: var(--gph-shadow);
  overflow: hidden;
  transform-origin: 50% 30%;
  backdrop-filter: blur(10px);
}

.gphf[data-animate="in"] .gphf__card{
  animation: gphIn .52s cubic-bezier(.2,.9,.2,1) both;
}
@keyframes gphIn{
  from{ opacity:0; transform: translateY(14px) scale(.985); }
  to{ opacity:1; transform: translateY(0) scale(1); }
}

.gphf__header{ padding: 20px 20px 0; }
.gphf__title{
  margin:0;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--gph-text);
  line-height:1.1;
}
.gphf__subtitle{
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--gph-muted);
  line-height: 1.45;
}

.gphf__form{ padding: 16px 20px 18px; }

.gphf__grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.gphf__field--full{ grid-column: 1 / -1; }

.gphf__field label{
  display:block;
  font-size: 12px;
  font-weight: 700;
  color: var(--gph-label);
  margin-bottom: 6px;
  letter-spacing: .02em;
}

.gphf__field input,
.gphf__field textarea{
  width:100%;
  border-radius: var(--gph-radius-sm);
  border: 1px solid var(--gph-border);
  background: rgba(248,250,252,.9);
  color: var(--gph-text);
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.25;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.gphf__field textarea{
  min-height: 110px;
  resize: vertical;
}

.gphf__field input::placeholder,
.gphf__field textarea::placeholder{ color: rgba(15,23,42,.42); }

.gphf__field input:hover,
.gphf__field textarea:hover{
  border-color: var(--gph-label);
  background: rgba(255,255,255,.92);
}

.gphf__field input:focus,
.gphf__field textarea:focus{
  outline:none;
  background: #fff;
  border-color: var(--gph-primary);
  box-shadow: 0 0 0 4px var(--gph-ring);
  transform: translateY(-1px);
}

.gphf__btn{
  margin-top: 14px;
  width:100%;
  border:0;
  border-radius: 999px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 800;
  cursor:pointer;
  color:#fff !important;
  background: var(--gph-primary);
  position: relative;
  overflow:hidden;
  transition: transform .12s ease, filter .18s ease;
}

.gphf__btnText{ color:#fff !important; font-weight:800 !important; position:relative; z-index:2; }

.gphf__btn::after{
  content:"";
  position:absolute;
  inset:-40% -60%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  transform: rotate(18deg) translateX(-30%);
  opacity: .0;
}
.gphf__btn:hover{ filter: brightness(1.02); }
.gphf__btn:hover::after{
  opacity: 1;
  animation: gphShine 1.25s ease forwards;
}
@keyframes gphShine{
  from{ transform: rotate(18deg) translateX(-45%); }
  to{ transform: rotate(18deg) translateX(45%); }
}
.gphf__btn:active{ transform: translateY(1px) scale(.995); }
.gphf__btn[disabled]{ cursor:not-allowed; opacity:.92; }

.gphf__spinner{
  position:absolute;
  right: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.38);
  border-top-color: rgba(255,255,255,.95);
  opacity: 0;
  transform: scale(.9);
  transition: opacity .18s ease, transform .18s ease;
}
.gphf__btn.is-loading .gphf__spinner{
  opacity: 1;
  transform: scale(1);
  animation: gphSpin .8s linear infinite;
}
@keyframes gphSpin{ to{ transform: rotate(360deg); } }

.gphf__inline{
  margin-top: 10px;
  font-size: 13px;
  color: var(--gph-muted);
  min-height: 18px;
}

.gphf__note{
  margin-top: 10px;
  font-size: 12px;
  color: rgba(34,34,61,.52);
  line-height: 1.45;
}

.gphf__hp{
  position:absolute !important;
  left:-9999px !important;
  top:auto !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
}

/* Toast */
#gphf-toast{
  position: fixed;
  right: 16px;
  top: 16px;
  z-index: 99999;
  display:flex;
  flex-direction:column;
  gap:10px;
  pointer-events:none;
}
.gphf__toast{
  pointer-events:auto;
  min-width: 260px;
  max-width: 360px;
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--gph-border);
  box-shadow: 0 18px 50px rgba(15,23,42,.16);
  padding: 10px 12px;
  display:flex;
  gap:10px;
  align-items:flex-start;
  transform: translateY(-10px);
  opacity: 0;
  animation: gphToastIn .32s cubic-bezier(.2,.9,.2,1) forwards;
  backdrop-filter: blur(10px);
}
@keyframes gphToastIn{ to{ transform: translateY(0); opacity: 1; } }
.gphf__toast.out{ animation: gphToastOut .22s ease forwards; }
@keyframes gphToastOut{ to{ transform: translateY(-8px); opacity: 0; } }

.gphf__toastIcon{
  width: 18px; height: 18px;
  border-radius: 6px;
  display:flex; align-items:center; justify-content:center;
  margin-top: 2px;
  flex: 0 0 auto;
  color:#fff;
  font-weight:900;
  font-size: 12px;
}
.gphf__toastIcon.ok{ background: rgba(16,185,129,1); }
.gphf__toastIcon.err{ background: rgba(239,68,68,1); }

.gphf__toastTitle{
  font-size: 13px;
  font-weight: 800;
  color: var(--gph-text);
  margin:0;
}
.gphf__toastMsg{
  font-size: 12px;
  color: rgba(15,23,42,.65);
  margin: 2px 0 0;
  line-height: 1.35;
}
.gphf__toastClose{
  margin-left:auto;
  border:0;
  background: transparent;
  cursor:pointer;
  color: rgba(15,23,42,.45);
  padding: 2px 6px;
  border-radius: 10px;
}
.gphf__toastClose:hover{ background: rgba(15,23,42,.06); }

@media (prefers-reduced-motion: reduce){
  .gphf[data-animate="in"] .gphf__card,
  .gphf__btn:hover::after,
  .gphf__btn.is-loading .gphf__spinner,
  .gphf__toast{ animation:none !important; }
}
@media (max-width: 650px){
  .gphf__card{ margin: 24px 12px; }
  .gphf__grid{ grid-template-columns: 1fr; }
}


/* Palette details */
.gphf__card::before{
  content:"";
  display:block;
  height:4px;
  background: var(--gph-secondary);
}
.gphf__title{
  position:relative;
  padding-bottom: 6px;
}
.gphf__title::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width: 44px;
  height: 3px;
  border-radius: 999px;
  background: var(--gph-secondary);
  opacity: .9;
}


/* Strong override: keep button text white even if theme applies text-fill or opacity */
.gphf__btn,
.gphf__btn *{
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  opacity: 1 !important;
}
.gphf__btnText{
  font-weight: 800 !important;
}


/* Strong override: enforce Send button background + text */
.gphf__btn{
  background: #a32436 !important;
  background-color: #a32436 !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
  -webkit-appearance: none;
  appearance: none;
}
.gphf__btn,
.gphf__btn *{
  color: #fff !important;
  -webkit-text-fill-color:#fff !important;
}


/* Final enforce: button background must be #a32436 */
.gphf__btn{
  background: #a32436 !important;
  background-color: #a32436 !important;
}
