/* Standalone registration controls for the supplied Plan design. */
#webinar-form input[type="tel"]{min-height:46px}
#webinar-form .captcha-block{margin:0 0 16px;padding:14px;background:#fff;border:1px solid var(--line,#dbe4ef);border-radius:10px}
#webinar-form .captcha-block>label{font-size:14px;margin:0 0 10px;font-weight:580}
#captcha-question{font-weight:680;white-space:nowrap}
#webinar-form .captcha-row{display:flex;align-items:center;gap:10px}
#webinar-form .captcha-row input{display:block;min-width:0;width:100%;min-height:46px;margin:0;background:var(--paper,#f6f9fd);border:1px solid #9aaec8;border-radius:8px;padding:10px 12px;font-size:16px;color:var(--ink,#0f1c2e)}
#captcha-refresh{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;background:var(--paper,#f6f9fd);color:var(--accent-text,#325390);border:1px solid #9aaec8;border-radius:8px;cursor:pointer}
#captcha-refresh svg{display:block;width:21px;height:21px}
#webinar-form .consent input{width:19px;height:19px;vertical-align:middle;margin:0 7px 2px 0;accent-color:var(--green,#15803d)}
.registration-documents{margin:12px 0;font-size:13px;line-height:1.65;color:var(--muted,#44536a)}
.registration-documents a{text-underline-offset:3px}
.form-error{margin:0 0 16px;padding:12px 14px;border:1px solid #e8bbae;border-radius:9px;background:#fff1eb;color:#8e2e24;font-size:14px;line-height:1.6}
#registration-submit:disabled,#captcha-refresh:disabled{opacity:.65;cursor:wait}
#registration-submit[aria-busy="true"]{cursor:wait}

/* This modal is opened only after the server confirms the registration. */
.channel-dialog{width:min(520px,calc(100% - 32px));max-height:calc(100dvh - 32px);margin:auto;padding:34px;border:1px solid var(--line,#dbe4ef);border-radius:20px;background:#fff;color:var(--ink,#0f1c2e);box-shadow:0 24px 90px #0f1c2e30;overflow-y:auto;overscroll-behavior:contain;line-height:1.55}
.channel-dialog[hidden]{display:none!important}
.channel-dialog::backdrop{background:#0f1c2e9e;backdrop-filter:blur(5px)}
.dialog-close{position:absolute;top:12px;right:12px;display:grid;place-items:center;width:40px;height:40px;border:1px solid var(--line,#dbe4ef);border-radius:50%;background:var(--stone,#eef4fa);color:var(--muted,#44536a);cursor:pointer}
.dialog-close svg{width:18px;height:18px}
.dialog-success{display:block;margin:0 25px 16px 0;color:var(--green,#15803d);font-size:13px;font-weight:640}
.channel-dialog h2{font-size:32px;line-height:1.12;font-weight:740;letter-spacing:-.025em;margin:0 16px 18px 0}
.channel-dialog>p{font-size:15px;color:var(--muted,#44536a);line-height:1.65;margin:0}
.channel-list{display:grid;gap:12px;margin-top:24px}
.channel-choice{display:flex;align-items:center;gap:14px;min-width:0;padding:16px;border:1px solid var(--line,#dbe4ef);border-radius:12px;color:var(--ink,#0f1c2e);text-decoration:none;background:#fff}
.channel-choice[href]:hover{border-color:#92b9a0;background:#f1f8f3}
.channel-choice[aria-disabled="true"]{background:var(--stone,#eef4fa);color:var(--muted,#44536a)}
.channel-icon{display:grid;place-items:center;flex:0 0 43px;width:43px;height:43px;border-radius:12px;color:white}
.channel-icon svg{display:block;width:28px;height:28px}
.channel-telegram{background:#279dd3}.channel-max{background:#1769ea}.channel-vk{background:#0875ef}
.channel-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.channel-copy strong{font-size:17px;font-weight:640}
.channel-copy>[data-channel-status]{font-size:13px;color:var(--muted,#44536a)}
.channel-arrow{display:grid;place-items:center;flex-shrink:0;margin-left:auto;color:var(--green,#15803d)}
.channel-arrow svg{display:block;width:20px;height:20px}
.channel-dialog .channel-dialog-note{font-size:13px;color:var(--muted,#44536a);margin-top:21px}
.channel-dialog[role="dialog"][open]{position:fixed;inset:0;z-index:1000}
.channel-dialog :focus-visible,#captcha-refresh:focus-visible{outline:3px solid var(--accent,#3d68b9);outline-offset:3px}
@media(max-width:560px){#webinar-form input:not([type="checkbox"]){font-size:16px}#webinar-form input::placeholder{font-size:14px}#webinar-form .consent{font-size:14px}#webinar-form .captcha-block>label{font-size:13px}.channel-dialog{width:calc(100% - 26px);max-height:calc(100dvh - 26px);padding:29px 23px;border-radius:16px}.channel-dialog h2{font-size:28px}.channel-dialog>p{font-size:14px}.channel-choice{gap:12px;padding:13px}.channel-copy strong{font-size:16px}.channel-copy>[data-channel-status]{font-size:12px}.dialog-close{width:38px;height:38px}}
@media(prefers-reduced-motion:no-preference){.channel-dialog[open]{animation:plan-dialog-enter 180ms ease-out}.channel-choice{transition:background-color .15s,border-color .15s}}
@keyframes plan-dialog-enter{from{opacity:0}to{opacity:1}}
