/* modal */
.togms-open, .togms-open body { overflow: hidden; }
.togms { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; font-family: var(--f-ui, system-ui, sans-serif); }
.togms[hidden] { display: none; }
.togms__backdrop { position: absolute; inset: 0; background: rgba(5, 8, 30, .62); backdrop-filter: blur(3px); animation: togms-fade .18s ease-out; }
.togms__dialog { position: relative; width: 100%; max-width: 640px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; color: #1f2430; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: togms-rise .22s ease-out; overscroll-behavior: contain; }
.togms__dialog::before { content: ""; display: block; height: 6px; background: var(--ct-btn-primary-fill, var(--c-accent, #E30F28)); border-radius: 10px 10px 0 0; }
.togms__body { padding: 28px 32px 32px; }
.togms__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f1f2f5; color: #222; font-size: 26px; line-height: 1; cursor: pointer; }
.togms__close:hover { background: #e3e5ea; }
/* form */
.togms__title { margin: 0 44px 6px 0; font-family: var(--f-display, inherit); font-size: clamp(26px, 4vw, 34px); font-weight: 400; line-height: 1.1; letter-spacing: .01em; text-transform: uppercase; color: var(--ct-heading, #0B0B0C); }
.togms__intro { margin: 0 0 18px; color: #4b5060; }
.togms__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-top: 18px; }
.togms__full { grid-column: 1 / -1; }
.togms__field label, .togms__label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: #262a35; }
.togms__field input[type=text], .togms__field input[type=email], .togms__field input[type=tel], .togms__field select {
	width: 100%; box-sizing: border-box; height: 46px; padding: 0 12px; border: 1.5px solid #d4d7de; border-radius: 6px; background: #fff; color: #111; font: inherit; font-size: 16px; }
.togms__field input:focus, .togms__field select:focus, .togms__drop:focus-within { outline: none; border-color: var(--ct-btn-primary-fill, #E30F28); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ct-btn-primary-fill, #E30F28) 22%, transparent); }
.togms__field [aria-invalid=true] { border-color: #c0262d; }
.togms__field .togms__drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 16px; border: 2px dashed #c9ccd4; border-radius: 8px; background: #f8f9fb; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.togms__drop.is-over, .togms__drop:hover { border-color: var(--ct-btn-primary-fill, #E30F28); background: #fff; }
.togms__drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.togms__drop-main { font-weight: 600; }
.togms__drop-hint { font-size: 13px; color: #5d6271; }
.togms__files { list-style: none; margin: 10px 0 0; padding: 0; }
.togms__files li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; margin-top: 6px; border-radius: 6px; background: #eef7ef; font-size: 14px; }
.togms__files small { color: #5d6271; }
.togms__files button { border: 0; background: none; color: #a31d23; text-decoration: underline; cursor: pointer; font: inherit; font-size: 13px; }
.togms__field.togms__consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; line-height: 1.45; }
.togms__consent input { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--ct-btn-primary-fill, #E30F28); }
.togms__consent a { color: inherit; text-decoration: underline; }
.togms__error { min-height: 0; margin: 4px 0 0; font-size: 13px; color: #b3242b; }
.togms__error:empty { display: none; }
.togms__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.togms__captcha:empty { display: none; }
.togms__status { margin: 14px 0 0; font-size: 14px; color: #b3242b; }
.togms__status:empty { display: none; }
/* buttons and messages */
.togms__submit { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin-top: 18px; padding: 0 24px; border: var(--ct-btn-primary-border-w, 0) solid var(--ct-btn-primary-border, transparent); border-radius: var(--ct-btn-primary-radius, 4px); background: var(--ct-btn-primary-fill, #E30F28); color: var(--ct-btn-primary-text, #fff); font: inherit; font-size: 16px; font-weight: 700; letter-spacing: .04em; text-transform: var(--ct-btn-primary-case, uppercase); cursor: pointer; transition: background .15s; }
.togms__submit:hover { background: var(--ct-btn-primary-hover-fill, #B80C20); color: var(--ct-btn-primary-hover-text, #fff); }
.togms__submit:disabled { opacity: .7; cursor: wait; }
.togms__submit.is-busy::before { content: ""; width: 16px; height: 16px; margin-right: 10px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: togms-spin .7s linear infinite; }
.togms__done { text-align: center; padding: 12px 0 0; }
.togms__done .togms__title { margin: 12px 0 8px; }
.togms__tick { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: #1f8a4c; color: #fff; font-size: 34px; line-height: 64px; }
.togms__done-msg { color: #3f4350; }
/* coming soon tabs */
.role-soon { padding: 8px 0 4px; }
.role-soon .role-soon__text { margin: 0 0 20px; }
/* animation and mobile */
@keyframes togms-fade { from { opacity: 0; } }
@keyframes togms-rise { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes togms-spin { to { transform: rotate(360deg); } }
@media (max-width: 560px) {
	.togms { padding: 0; align-items: flex-end; }
	.togms__dialog { max-height: 94vh; border-radius: 14px 14px 0 0; }
	.togms__body { padding: 22px 18px 26px; }
	.togms__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .togms__backdrop, .togms__dialog { animation: none; } }
