/* CRT Post Contact Forms (v1.2.0) — compact, modern, animated */
:root{
  --crt-bg: #ffffff;
  --crt-card: rgba(255,255,255,.92);
  --crt-border: rgba(15,23,42,.12);
  --crt-text: #0f172a;
  --crt-muted: rgba(15,23,42,.62);
  --crt-accent: #f97316; /* orange */
  --crt-accent2: #ea580c;
  --crt-ring: rgba(249,115,22,.18);
  --crt-shadow: 0 10px 34px rgba(15,23,42,.08);
  --crt-radius: 16px;
  --crt-radius-sm: 12px;
  --crt-font: ui-sans-serif, system-ui, -apple-system, "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}

.crtpost-cf{ font-family: var(--crt-font); }
.crtpost-cf *{ box-sizing:border-box; }

.crtpost-cf__card{
  max-width: 560px;
  margin: 40px auto;
  border-radius: var(--crt-radius);
  background: var(--crt-card);
  border: 1px solid var(--crt-border);
  box-shadow: var(--crt-shadow);
  overflow: hidden;
  transform-origin: 50% 30%;
  backdrop-filter: blur(10px);
}

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

.crtpost-cf__header{
  padding: 20px 20px 0;
}
.crtpost-cf__title{
  margin:0;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--crt-text);
  line-height:1.1;
}
.crtpost-cf__subtitle{
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--crt-muted);
  line-height: 1.45;
}

.crtpost-cf__form{
  padding: 16px 20px 18px;
}

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

.crtpost-cf__field--full{ grid-column: 1 / -1; }

.crtpost-cf__field label{
  display:block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(15,23,42,.78);
  margin-bottom: 6px;
  letter-spacing: .02em;
}

.crtpost-cf__field input,
.crtpost-cf__field textarea{
  width:100%;
  border-radius: var(--crt-radius-sm);
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(248,250,252,.9);
  color: var(--crt-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;
}

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

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

.crtpost-cf__field input:hover,
.crtpost-cf__field textarea:hover{
  border-color: rgba(15,23,42,.18);
  background: rgba(255,255,255,.92);
}

.crtpost-cf__field input:focus,
.crtpost-cf__field textarea:focus{
  outline:none;
  background: #fff;
  border-color: rgba(249,115,22,.7);
  box-shadow: 0 0 0 4px var(--crt-ring);
  transform: translateY(-1px);
}

.crtpost-cf__btn{
  margin-top: 14px;
  width:100%;
  border:0;
  border-radius: 999px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor:pointer;
  color:#fff;
  background: linear-gradient(135deg, var(--crt-accent), var(--crt-accent2));
  position: relative;
  overflow:hidden;
  transition: transform .12s ease, filter .18s ease;
}

.crtpost-cf__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;
}
.crtpost-cf__btn:hover{
  filter: brightness(1.02);
}
.crtpost-cf__btn:hover::after{
  opacity: 1;
  animation: crtShine 1.25s ease forwards;
}
@keyframes crtShine{
  from{ transform: rotate(18deg) translateX(-45%); }
  to{ transform: rotate(18deg) translateX(45%); }
}
.crtpost-cf__btn:active{ transform: translateY(1px) scale(.995); }
.crtpost-cf__btn[disabled]{ cursor:not-allowed; opacity:.92; }

.crtpost-cf__btnText{ position:relative; z-index:2; }
.crtpost-cf__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;
}
.crtpost-cf__btn.is-loading .crtpost-cf__spinner{
  opacity: 1;
  transform: scale(1);
  animation: crtSpin .8s linear infinite;
}
@keyframes crtSpin{ to{ transform: rotate(360deg); } }

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

.crtpost-cf__note{
  margin-top: 10px;
  font-size: 12px;
  color: rgba(15,23,42,.5);
  line-height: 1.45;
}

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

/* Toast */
#crtpost-cf-toast{
  position: fixed;
  right: 16px;
  top: 16px;
  z-index: 99999;
  display:flex;
  flex-direction:column;
  gap:10px;
  pointer-events:none;
}
.crtpost-cf__toast{
  pointer-events:auto;
  min-width: 260px;
  max-width: 360px;
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.12);
  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: crtToastIn .32s cubic-bezier(.2,.9,.2,1) forwards;
  backdrop-filter: blur(10px);
}
@keyframes crtToastIn{
  to{ transform: translateY(0); opacity: 1; }
}
.crtpost-cf__toast.out{
  animation: crtToastOut .22s ease forwards;
}
@keyframes crtToastOut{
  to{ transform: translateY(-8px); opacity: 0; }
}

.crtpost-cf__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:800;
  font-size: 12px;
}
.crtpost-cf__toastIcon.ok{ background: rgba(16,185,129,1); }
.crtpost-cf__toastIcon.err{ background: rgba(239,68,68,1); }

.crtpost-cf__toastTitle{
  font-size: 13px;
  font-weight: 700;
  color: var(--crt-text);
  margin:0;
}
.crtpost-cf__toastMsg{
  font-size: 12px;
  color: rgba(15,23,42,.65);
  margin: 2px 0 0;
  line-height: 1.35;
}
.crtpost-cf__toastClose{
  margin-left:auto;
  border:0;
  background: transparent;
  cursor:pointer;
  color: rgba(15,23,42,.45);
  padding: 2px 6px;
  border-radius: 10px;
}
.crtpost-cf__toastClose:hover{ background: rgba(15,23,42,.06); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .crtpost-cf[data-animate="in"] .crtpost-cf__card,
  .crtpost-cf__btn:hover::after,
  .crtpost-cf__btn.is-loading .crtpost-cf__spinner,
  .crtpost-cf__toast{ animation:none !important; }
}
@media (max-width: 600px){
  .crtpost-cf__card{ margin: 24px 12px; }
  .crtpost-cf__grid{ grid-template-columns: 1fr; }
}

/* Force button text to stay white & bold (avoid theme overrides) */
.crtpost-cf__btn, .crtpost-cf__btnText{ color:#fff !important; font-weight:700 !important; }
