:root {
  --ebce-primary: #ec486f;
  --ebce-deep: #58134d;
  --ebce-accent: #e29d21;
  --ebce-surface: #fff3f8;
  --ebce-text: #35143b;
}

.ebce-modal[hidden], .ebce-context-fields[hidden], .ebce-success[hidden] { display: none !important; }
.ebce-modal { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center; justify-content: center; padding: 22px; box-sizing: border-box; }
.ebce-backdrop { position: absolute; inset: 0; background: rgba(28, 13, 29, .70); backdrop-filter: blur(2px); }
.ebce-dialog { position: relative; z-index: 1; width: 100%; max-width: var(--ebce-modal-width, 680px); max-height: min(90vh, 900px); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(88, 19, 77, .28) transparent; scrollbar-gutter: stable; background: #fff; color: var(--ebce-text); border: 1px solid #f3dce8; border-radius: 20px; box-shadow: 0 24px 80px rgba(45, 10, 48, .24); padding: 30px; box-sizing: border-box; font-family: inherit; }
.ebce-dialog::-webkit-scrollbar { width: 6px; height: 6px; }
.ebce-dialog::-webkit-scrollbar-track { background: transparent; margin: 14px 0; }
.ebce-dialog::-webkit-scrollbar-thumb { background: rgba(88, 19, 77, .22); border: 2px solid #fff; border-radius: 999px; }
.ebce-dialog::-webkit-scrollbar-thumb:hover { background: rgba(236, 72, 111, .52); }
.ebce-dialog::-webkit-scrollbar-corner { background: transparent; }
.ebce-close { position: absolute; top: 14px; right: 16px; border: 0; background: transparent; color: #876d82; font-size: 29px; line-height: 1; padding: 4px 8px; cursor: pointer; }
.ebce-close:hover { color: var(--ebce-primary); }
.ebce-dialog-header { padding: 0 28px 18px 0; }
.ebce-eyebrow { display: inline-block; color: var(--ebce-primary); font-size: 10px; font-weight: 800; letter-spacing: 1.45px; margin-bottom: 9px; }
.ebce-dialog-header h2 { color: var(--ebce-deep); font-size: clamp(22px, 4vw, 29px); line-height: 1.18; margin: 0 0 8px; font-weight: 750; }
.ebce-dialog-header p { color: #806c7e; font-size: 14px; line-height: 1.6; margin: 0; }
.ebce-form { margin: 0; }
.ebce-field { margin: 0 0 15px; min-width: 0; }
.ebce-field label { display: block; color: var(--ebce-deep); font-size: 13px; font-weight: 600; line-height: 1.45; margin: 0 0 7px; }
.ebce-field label span, .ebce-consent b { color: var(--ebce-primary); }
.ebce-field label small { color: #9b8798; font-weight: 400; }
.ebce-field input, .ebce-field select, .ebce-field textarea { display: block; width: 100%; min-height: 45px; box-sizing: border-box; border: 1px solid #ead9e4; border-radius: 11px; background: #fff; color: #38223a; padding: 11px 13px; font-family: inherit; font-size: 14px; line-height: 1.4; box-shadow: 0 2px 5px rgba(65, 25, 60, .04); outline: none; }
.ebce-field textarea { min-height: 100px; resize: vertical; }
.ebce-field input::placeholder, .ebce-field textarea::placeholder { color: #a99aa7; }
.ebce-field input:focus, .ebce-field select:focus, .ebce-field textarea:focus { border-color: var(--ebce-primary); box-shadow: 0 0 0 3px rgba(236, 72, 111, .10); }
.ebce-grid { display: grid; gap: 0 14px; }
.ebce-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ebce-context-fields { margin: 4px 0 17px; padding: 17px 17px 2px; border: 1px solid #f5a5c8; border-radius: 17px; background: #fff5f9; }
.ebce-context-heading { color: var(--ebce-primary); font-size: 10px; letter-spacing: 1px; font-weight: 800; margin: 0 0 14px; }
.ebce-consent { display: flex; gap: 9px; align-items: flex-start; color: #624d63; font-size: 12px; line-height: 1.55; margin: 4px 0 16px; cursor: pointer; }
.ebce-consent input { flex: 0 0 auto; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--ebce-primary); }
.ebce-consent a { color: var(--ebce-primary); text-decoration: underline; }
.ebce-submit { width: 100%; min-height: 48px; border: 0; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 20px; background: linear-gradient(110deg, var(--ebce-primary), var(--ebce-deep)); color: #fff; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 7px 18px rgba(174, 35, 111, .18); transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease; }
.ebce-submit:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(174, 35, 111, .24); }
.ebce-submit:disabled { opacity: .65; cursor: wait; transform: none; }
.ebce-spinner { display: none; width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: ebce-spin .7s linear infinite; }
.ebce-is-loading .ebce-spinner { display: inline-block; }
@keyframes ebce-spin { to { transform: rotate(360deg); } }
.ebce-form-message { display: none; padding: 11px 13px; margin: 0 0 14px; border-radius: 10px; font-size: 13px; line-height: 1.5; }
.ebce-form-message.is-error { display: block; color: #8d1e35; background: #fff0f2; border: 1px solid #f5c7d0; }
.ebce-form-footnote { margin: 12px 0 0; text-align: center; color: #9a8796; font-size: 11px; line-height: 1.5; }
.ebce-honeypot { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.ebce-success { text-align: center; padding: 25px 10px 8px; }
.ebce-success-icon { display: inline-flex; width: 58px; height: 58px; align-items: center; justify-content: center; border-radius: 50%; color: #fff; background: var(--ebce-primary); font-size: 29px; font-weight: bold; box-shadow: 0 0 0 9px #fde7f0; }
.ebce-success h3 { color: var(--ebce-deep); font-size: 23px; margin: 20px 0 8px; }
.ebce-success p { color: #776378; font-size: 14px; line-height: 1.7; margin: 0 auto 22px; max-width: 470px; }
.ebce-done { max-width: 220px; margin: 0 auto; }
html.ebce-no-scroll, body.ebce-no-scroll { overflow: hidden !important; }
body.ebce-no-scroll { overscroll-behavior: none; }
@media (max-width: 600px) {
  .ebce-modal { padding: 10px; align-items: center; }
  .ebce-dialog { max-height: 94vh; max-height: min(94vh, 94dvh); padding: 23px 17px 19px; border-radius: 17px; scrollbar-gutter: auto; }
  .ebce-dialog::-webkit-scrollbar { width: 4px; }
  .ebce-dialog-header { padding-right: 24px; }
  .ebce-grid-two { grid-template-columns: 1fr; gap: 0; }
  .ebce-field { margin-bottom: 13px; }
  .ebce-context-fields { padding: 14px 13px 1px; }
}
@media (prefers-reduced-motion: reduce) {
  .ebce-submit, .ebce-field input, .ebce-field select, .ebce-field textarea { transition: none !important; }
  .ebce-spinner { animation-duration: 1.5s; }
}
