/* Styling for the MailerLite embedded form (Webinar Waitlist Form).
   Written to match the Akrapex brand; the form markup and behaviour come from MailerLite. */
#mlb2-48677902.ml-form-embedContainer { width: 100%; font-family: var(--font); }
#mlb2-48677902 *, #mlb2-48677902 *::before, #mlb2-48677902 *::after { box-sizing: border-box; }
#mlb2-48677902 .ml-form-embedWrapper { width: 100%; max-width: none; background: transparent; }
#mlb2-48677902 .ml-form-embedBody::after, #mlb2-48677902 form::after { content: ""; display: table; clear: both; }
#mlb2-48677902 h4, #mlb2-48677902 p, #mlb2-48677902 label, #mlb2-48677902 input, #mlb2-48677902 button { font-family: var(--font); }

/* Heading and lead text */
#mlb2-48677902 .ml-form-embedContent, #mlb2-48677902 .ml-form-successContent { text-align: center; margin-bottom: 28px; }
#mlb2-48677902 .ml-form-embedContent h4, #mlb2-48677902 .ml-form-successContent h4 { margin: 0 0 12px; color: var(--forest); font-size: clamp(28px, 6vw, 36px); line-height: 1.15; font-weight: 800; letter-spacing: -.025em; }
#mlb2-48677902 .ml-form-embedContent p, #mlb2-48677902 .ml-form-successContent p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
/* Lead text under the form heading is hidden (it repeats the line on the webinar page) */
#mlb2-48677902 .ml-form-embedContent p { display: none; }
#mlb2-48677902 .ml-form-embedContent { margin-bottom: 24px; }
#mlb2-48677902 .ml-form-embedContent h4 { margin-bottom: 0; }
#mlb2-48677902 .ml-form-successBody { padding: 12px 0 8px; }

/* Fields */
#mlb2-48677902 .ml-form-fieldRow { margin: 0 0 20px; }
#mlb2-48677902 .ml-form-fieldRow.ml-last-item { margin-bottom: 22px; }
#mlb2-48677902 .ml-field-group { text-align: left; }
#mlb2-48677902 .ml-field-group > label { display: block; margin: 0 0 8px; color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.4; }
#mlb2-48677902 input.form-control { display: block; width: 100%; height: 54px; padding: 0 16px; border: 1.5px solid #D5DBD6; border-radius: 14px; background: #fff; color: var(--ink); font-size: 16px; line-height: 1.4; outline: 0; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
#mlb2-48677902 input.form-control:hover { border-color: #AEB9B2; }
#mlb2-48677902 input.form-control:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(42, 107, 83, .16); }

/* Radio options */
#mlb2-48677902 .custom-checkbox-radio-list { display: grid; gap: 10px; }
#mlb2-48677902 .custom-control { position: relative; min-height: 30px; padding-left: 34px; }
#mlb2-48677902 .custom-control-input { position: absolute; left: 0; top: 0; width: 22px; height: 22px; margin: 0; opacity: 0; z-index: 2; cursor: pointer; }
#mlb2-48677902 .custom-control-label { position: relative; display: block; margin: 0; padding-top: 2px; color: var(--ink); font-size: 16px; font-weight: 600; line-height: 26px; cursor: pointer; }
#mlb2-48677902 .custom-control-label::before { content: ""; position: absolute; left: -34px; top: 3px; width: 22px; height: 22px; border: 1.5px solid #AEB9B2; border-radius: 50%; background: #fff; transition: border-color .2s, background .2s, box-shadow .2s; }
#mlb2-48677902 .custom-control-label::after { content: ""; position: absolute; left: -28px; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .25s var(--ease); }
#mlb2-48677902 .custom-control-input:checked ~ .custom-control-label::before { border-color: var(--green); background: var(--green); }
#mlb2-48677902 .custom-control-input:checked ~ .custom-control-label::after { transform: scale(1); }
#mlb2-48677902 .custom-control-input:focus-visible ~ .custom-control-label::before { box-shadow: 0 0 0 4px rgba(42, 107, 83, .22); }

/* Consent checkbox */
#mlb2-48677902 .ml-form-checkboxRow { float: none; clear: both; margin: 0 0 22px; width: 100%; }
#mlb2-48677902 .ml-form-checkboxRow label.checkbox { position: relative; display: block; margin: 0; padding: 0 0 0 36px; cursor: pointer; }
#mlb2-48677902 .ml-form-checkboxRow input[type="checkbox"] { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: 0; opacity: 0; z-index: 2; cursor: pointer; }
#mlb2-48677902 .ml-form-checkboxRow .label-description { position: relative; display: block; color: var(--muted); }
#mlb2-48677902 .ml-form-checkboxRow .label-description p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
#mlb2-48677902 .ml-form-checkboxRow .label-description::before { content: ""; position: absolute; left: -36px; top: 1px; width: 24px; height: 24px; border: 1.5px solid #AEB9B2; border-radius: 7px; background: #fff; transition: border-color .2s, background .2s, box-shadow .2s; }
#mlb2-48677902 .ml-form-checkboxRow .label-description::after { content: ""; position: absolute; left: -29px; top: 6px; width: 10px; height: 6px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) scale(0); transition: transform .2s var(--ease); }
#mlb2-48677902 .ml-form-checkboxRow input:checked ~ .label-description::before { border-color: var(--green); background: var(--green); }
#mlb2-48677902 .ml-form-checkboxRow input:checked ~ .label-description::after { transform: rotate(-45deg) scale(1); }
#mlb2-48677902 .ml-form-checkboxRow input:focus-visible ~ .label-description::before { box-shadow: 0 0 0 4px rgba(42, 107, 83, .22); }

/* reCAPTCHA */
#mlb2-48677902 .ml-form-recaptcha { float: none !important; clear: both; width: 100%; max-width: 100%; margin: 0 0 22px; overflow: hidden; }
#mlb2-48677902 .g-recaptcha { transform-origin: 0 0; }
@media (max-width: 400px) { #mlb2-48677902 .g-recaptcha { transform: scale(.88); } }

/* Submit */
#mlb2-48677902 .ml-form-embedSubmit { clear: both; margin: 0; width: 100%; }
#mlb2-48677902 .ml-form-embedSubmit button { display: block; width: 100%; height: 58px; border: 0; border-radius: 999px; background: var(--green); color: #fff; font-size: 17px; font-weight: 700; cursor: pointer; box-shadow: 0 14px 34px -14px rgba(42, 107, 83, .8); transition: background .25s, transform .3s var(--ease), box-shadow .3s; }
#mlb2-48677902 .ml-form-embedSubmit button.primary:hover { background: #24604a; transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(42, 107, 83, .9); }
#mlb2-48677902 .ml-form-embedSubmit button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
#mlb2-48677902 .ml-form-embedSubmit button.loading { display: none; }
#mlb2-48677902 .ml-form-embedSubmit button.loading[style*="display: block"], #mlb2-48677902 .ml-form-embedSubmit button.loading[style*="display:block"] { display: flex !important; align-items: center; justify-content: center; gap: 10px; background: var(--green); opacity: .85; cursor: wait; }
.ml-form-embedSubmitLoad { display: inline-block; width: 20px; height: 20px; }
.ml-form-embedSubmitLoad::after { content: " "; display: block; width: 11px; height: 11px; margin: 1px; border-radius: 50%; border: 4px solid #fff; border-color: #fff #fff #fff transparent; animation: ml-form-embedSubmitLoad 1.2s linear infinite; }
@keyframes ml-form-embedSubmitLoad { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* Validation errors (classes added by MailerLite's script) */
#mlb2-48677902 .ml-error input.form-control { border-color: #D93025 !important; }
#mlb2-48677902 .ml-error input.form-control:focus { box-shadow: 0 0 0 4px rgba(217, 48, 37, .14); }
#mlb2-48677902 .ml-error > label, #mlb2-48677902 .ml-error label:first-child { color: #D93025; }
#mlb2-48677902 .ml-error .custom-checkbox-radio-list { border: 1.5px solid #D93025; border-radius: 14px; padding: 12px; }
#mlb2-48677902 .ml-form-checkboxRow.ml-error .label-description p, #mlb2-48677902 .ml-form-checkboxRow.ml-error .label-description { color: #D93025 !important; }
#mlb2-48677902 .ml-form-checkboxRow.ml-error .label-description::before { border-color: #D93025; }
#mlb2-48677902 .ml-form-recaptcha.ml-error { outline: 1.5px solid #D93025; border-radius: 6px; outline-offset: 2px; }

/* Layout in the approved design: eyebrow, softer fields, role dropdown, notice, wider button */
#mlb2-48677902 .custom-checkbox-radio-list[hidden] { display: none !important; }
#mlb2-48677902 .ml-form-embedContent { margin-bottom: 22px; }
#mlb2-48677902 .ml-form-embedContent h4 { font-size: clamp(26px, 6vw, 34px); }
#mlb2-48677902 .ml-form-fieldRow { margin-bottom: 16px; }
#mlb2-48677902 .ml-form-fieldRow.ml-last-item { margin-bottom: 18px; }
#mlb2-48677902 .ml-field-group > label { margin-bottom: 7px; font-size: 14px; font-weight: 600; }
#mlb2-48677902 .req { margin-left: 2px; color: #D93025; }
#mlb2-48677902 input.form-control, #mlb2-48677902 .role-select { height: 48px; border: 1px solid #E5E2D6; border-radius: 14px; background-color: #F8F7F1; color: var(--ink); font-size: 15px; }
#mlb2-48677902 input.form-control::placeholder { color: #A9AFAB; opacity: 1; }
#mlb2-48677902 input.form-control:focus, #mlb2-48677902 .role-select:focus { border-color: var(--green); background-color: #fff; box-shadow: 0 0 0 4px rgba(42, 107, 83, .14); outline: 0; }
#mlb2-48677902 .role-select-wrap { position: relative; }
#mlb2-48677902 .role-select { display: block; width: 100%; padding: 0 44px 0 16px; font-family: var(--font); cursor: pointer; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; transition: border-color .2s, box-shadow .2s, background-color .2s; }
#mlb2-48677902 .role-select:invalid, #mlb2-48677902 .role-select:has(option[value=""]:checked) { color: #7D857F; }
#mlb2-48677902 .role-select option { color: var(--ink); }
#mlb2-48677902 .ml-error .role-select { border-color: #D93025; }
#mlb2-48677902 .ml-error .custom-checkbox-radio-list { border: 0; padding: 0; }

#mlb2-48677902 .reg__notice { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 18px; padding: 14px 16px; border: 1px solid #F1E2A2; border-radius: 14px; background: #FFF8DB; color: #6A5710; }
#mlb2-48677902 .reg__notice svg { width: 18px; height: 18px; margin-top: 2px; color: #8A6D00; }
#mlb2-48677902 .reg__notice p { margin: 0; color: #6A5710; font-size: 13.5px; line-height: 1.6; }

#mlb2-48677902 .ml-form-checkboxRow { margin-bottom: 18px; }
#mlb2-48677902 .ml-form-checkboxRow .label-description p { font-size: 13.5px; }
#mlb2-48677902 .ml-form-embedSubmit button { height: 50px; border-radius: 12px; font-size: 15.5px; box-shadow: none; }
#mlb2-48677902 .ml-form-embedSubmit button.primary:hover { box-shadow: 0 14px 30px -14px rgba(42, 107, 83, .8); }

/* Very small phones: shrink the reCAPTCHA box so the card never gets wider than the screen */
@media (max-width: 340px) { #mlb2-48677902 .g-recaptcha { transform: scale(.78); } }
