:root{
  --mlcf-primary: #FF751F;
  --mlcf-secondary: #111827;

  --mlcf-bg: #ffffff;
  --mlcf-text: var(--mlcf-secondary);
  --mlcf-muted: rgba(17,24,39,.62);
  --mlcf-border: rgba(17,24,39,.14);
  --mlcf-ring: rgba(255,117,31,.18);
  --mlcf-shadow: 0 12px 40px rgba(17,24,39,.10);
  --mlcf-radius: 16px;
  --mlcf-radius-sm: 12px;
  --mlcf-font: ui-sans-serif, system-ui, -apple-system, "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}

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

.mlcf__card{
  max-width: 620px;
  margin: 40px auto;
  background: var(--mlcf-bg);
  border: 1px solid var(--mlcf-border);
  border-radius: var(--mlcf-radius);
  box-shadow: var(--mlcf-shadow);
  overflow:hidden;
}

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

.mlcf__card::before{
  content:"";
  display:block;
  height:4px;
  background: var(--mlcf-secondary);
}

.mlcf__header{ padding: 20px 20px 0; }
.mlcf__title{
  margin:0;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--mlcf-text);
  line-height:1.1;
  position:relative;
  padding-bottom: 6px;
}
.mlcf__title::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width: 44px;
  height: 3px;
  border-radius: 999px;
  background: var(--mlcf-secondary);
  opacity: .95;
}
.mlcf__subtitle{
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--mlcf-muted);
  line-height: 1.45;
}

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

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

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

.mlcf__field label{
  display:block;
  font-size: 12px;
  font-weight: 800;
  color: rgba(17,24,39,.90);
  margin-bottom: 6px;
  letter-spacing: .02em;
}

.mlcf__field input,
.mlcf__field textarea{
  width:100%;
  border-radius: var(--mlcf-radius-sm);
  border: 1px solid var(--mlcf-border);
  background: #fff;
  color: var(--mlcf-text);
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.25;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

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

.mlcf__field input::placeholder,
.mlcf__field textarea::placeholder{ color: rgba(17,24,39,.38); }

.mlcf__field input:hover,
.mlcf__field textarea:hover{
  border-color: rgba(17,24,39,.30);
}

.mlcf__field input:focus,
.mlcf__field textarea:focus{
  outline:none;
  border-color: var(--mlcf-primary);
  box-shadow: 0 0 0 4px var(--mlcf-ring);
  transform: translateY(-1px);
}

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

.mlcf__btnText{ color:#fff !important; -webkit-text-fill-color:#fff !important; font-weight:900 !important; position:relative; z-index:2; }

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

.mlcf__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;
}
.mlcf__btn.is-loading .mlcf__spinner{
  opacity: 1;
  transform: scale(1);
  animation: mlcfSpin .8s linear infinite;
}
@keyframes mlcfSpin{ to{ transform: rotate(360deg); } }

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

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

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

.mlcf__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;
}
.mlcf__toastIcon.ok{ background: rgba(16,185,129,1); }
.mlcf__toastIcon.err{ background: rgba(239,68,68,1); }

.mlcf__toastTitle{
  font-size: 13px;
  font-weight: 900;
  color: var(--mlcf-text);
  margin:0;
}
.mlcf__toastMsg{
  font-size: 12px;
  color: rgba(17,24,39,.70);
  margin: 2px 0 0;
  line-height: 1.35;
}
.mlcf__toastClose{
  margin-left:auto;
  border:0;
  background: transparent;
  cursor:pointer;
  color: rgba(17,24,39,.50);
  padding: 2px 6px;
  border-radius: 10px;
}
.mlcf__toastClose:hover{ background: rgba(17,24,39,.06); }

@media (prefers-reduced-motion: reduce){
  .mlcf[data-animate="in"] .mlcf__card,
  .mlcf__btn:hover::after,
  .mlcf__btn.is-loading .mlcf__spinner,
  .mlcf__toast{ animation:none !important; }
}
@media (max-width: 650px){
  .mlcf__card{ margin: 24px 12px; }
  .mlcf__grid{ grid-template-columns: 1fr; }
}


/* HARD override (theme-safe): submit button must be orange */
.mlcf .mlcf__btn{
  background: #FF751F !important;
  background-color: #FF751F !important;
  background-image: none !important;
  border-color: transparent !important;
  filter: none !important;
  opacity: 1 !important;
}
.mlcf .mlcf__btn,
.mlcf .mlcf__btn *{
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}
