.bscm-form-shell,
.bscm-form-shell *,
.bscm-modal,
.bscm-modal * { box-sizing: border-box; }

.bscm-form-shell { width: 100%; margin: 0 auto; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.bscm-form { display: flex; flex-wrap: wrap; gap: 15px; width: 100%; position: relative; }
.bscm-field { display: flex; flex-direction: column; width: 100%; }
.bscm-field input { width: 100%; height: 45px; padding: 11px 15px; color: #1f2937; background: var(--bscm-field-bg); border: 1px solid var(--bscm-border); border-radius: var(--bscm-field-radius); font: inherit; font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.bscm-field input:focus { border-color: var(--bscm-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bscm-primary) 18%, transparent); outline: none; }
.bscm-submit button,
.bscm-modal__button { width: 100%; height: 45px; padding: 0 20px; color: #fff; background: var(--bscm-primary); border: 0; border-radius: var(--bscm-button-radius); cursor: pointer; font: inherit; font-size: 16px; font-weight: 700; transition: filter .2s, transform .2s, opacity .2s; }
.bscm-submit button:hover:not(:disabled), .bscm-modal__button:hover { filter: brightness(.9); transform: translateY(-1px); }
.bscm-submit button:disabled { cursor: wait; opacity: .65; }
.bscm-layout1 { align-items: flex-start; }
.bscm-layout1 .bscm-name { flex: 0 0 calc(35% - 10px); }
.bscm-layout1 .bscm-email { flex: 0 0 calc(45% - 10px); }
.bscm-layout1 .bscm-submit { flex: 0 0 calc(20% - 10px); }
.bscm-layout2 .bscm-email { flex: 0 0 100%; order: 1; }
.bscm-layout2 .bscm-name { flex: 0 0 calc(75% - 7.5px); order: 2; }
.bscm-layout2 .bscm-submit { flex: 0 0 calc(25% - 7.5px); order: 3; }
.bscm-layout3 { flex-direction: column; }
.bscm-help { margin: 0 0 15px; color: #4b5563; line-height: 1.6; }
.bscm-unsubscribe-shell { max-width: 400px; }
.bscm-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.bscm-form-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bscm-modal-open { overflow: hidden; }
.bscm-modal[hidden], .bscm-modal__privacy[hidden] { display: none !important; }
.bscm-modal { position: fixed; inset: 0; z-index: 999999; display: grid; place-items: center; padding: 20px; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.bscm-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .68); backdrop-filter: blur(5px); }
.bscm-modal__dialog { position: relative; width: min(100%, 460px); padding: 34px; text-align: center; background: #fff; border-radius: 18px; box-shadow: 0 24px 70px rgba(15, 23, 42, .3); animation: bscm-modal-in .25s ease-out; outline: none; }
.bscm-modal__icon { width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 50%; background: color-mix(in srgb, var(--bscm-primary) 14%, #fff); position: relative; }
.bscm-modal__icon::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--bscm-primary); font-size: 27px; font-weight: 800; }
.bscm-modal--error .bscm-modal__icon { background: #fee2e2; }
.bscm-modal--error .bscm-modal__icon::after { content: "!"; color: #b91c1c; }
.bscm-modal__dialog h2 { margin: 0 0 12px; color: #111827; font-size: clamp(22px, 4vw, 27px); line-height: 1.2; }
.bscm-modal__dialog > p { margin: 0 0 22px; color: #4b5563; font-size: 15px; line-height: 1.65; }
.bscm-modal__privacy { padding: 13px 14px; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 10px; font-size: 13px !important; }
.bscm-modal__privacy a { color: var(--bscm-primary); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.bscm-modal__button { height: auto; min-height: 46px; }
@keyframes bscm-modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

@media (max-width: 600px) {
  .bscm-layout1, .bscm-layout2, .bscm-layout3 { flex-direction: column; }
  .bscm-layout1 > .bscm-field, .bscm-layout2 > .bscm-field, .bscm-layout3 > .bscm-field { flex: 0 0 100%; width: 100%; }
  .bscm-modal__dialog { padding: 28px 22px; border-radius: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .bscm-modal__dialog { animation: none; }
  .bscm-submit button, .bscm-modal__button { transition: none; }
}

