.tm-wrap { --tm-accent: #d62828; --tm-border: #cfd4da; --tm-err: #b00020; max-width: 760px; margin: 0 auto; }
.tm-wrap { padding-top: 24px; }
.tm-title { margin: 0 0 6px; }
.tm-intro { margin: 0 0 24px; opacity: .85; }
.tm-form .tm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-bottom: 16px; }
@media (max-width: 600px) { .tm-form .tm-grid { grid-template-columns: 1fr; } }
.tm-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 0; }
.tm-field--message { margin-bottom: 16px; }
.tm-field label { font-weight: 600; font-size: .95em; }
.tm-field input, .tm-field textarea, .tm-field select { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--tm-border); border-radius: 6px; font: inherit; background: #fff; }
.tm-field input:focus, .tm-field textarea:focus, .tm-field select:focus { outline: 2px solid var(--tm-accent); outline-offset: 1px; border-color: var(--tm-accent); }
.tm-field.has-error input, .tm-field.has-error select, .tm-check.has-error { border-color: var(--tm-err); }
.tm-req { color: var(--tm-err); }
.tm-error { color: var(--tm-err); font-size: .9em; margin: 2px 0 0; }
.tm-alert { background: #fdecea; border-left: 4px solid var(--tm-err); padding: 12px 16px; margin-bottom: 20px; border-radius: 4px; }
.tm-note { font-size: .9em; opacity: .8; margin: 0 0 12px; }
.tm-check { margin-bottom: 12px; }
.tm-check label { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.tm-check input { margin-top: .3em; }
.tm-guardian { border: 1px dashed var(--tm-border); border-radius: 8px; padding: 14px 16px 2px; margin-bottom: 16px; }
.tm-guardian[hidden] { display: none; }
.tm-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tm-submit { background: var(--tm-accent); color: #fff; border: 0; border-radius: 6px; padding: 12px 28px; font: inherit; font-weight: 700; cursor: pointer; }
.tm-submit:hover, .tm-submit:focus { filter: brightness(.9); }
.tm-success { border-left: 4px solid #2e7d32; background: #edf7ee; padding: 18px 22px; border-radius: 4px; }
.tm-success h3 { margin-top: 0; }
.tm-payment { margin-top: 14px; padding-top: 12px; border-top: 1px solid #c8e0ca; }
.tm-rules { margin: 16px 0 0; font-size: .95em; } .tm-modal { display: none; position: fixed; inset: 0; z-index: 100000; align-items: center; justify-content: center; padding: 16px; }
.tm-modal:target, .tm-modal.is-open { display: flex; }
.tm-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); cursor: default; }
.tm-modal__box { position: relative; background: #fff; color: #1d2327; width: 100%; max-width: 720px; max-height: 88vh; display: flex; flex-direction: column; border-radius: 10px; box-shadow: 0 10px 40px rgba(0, 0, 0, .35); }
.tm-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid #e3e5e8; }
.tm-modal__head h2 { margin: 0; font-size: 1.2em; }
.tm-modal__close { font-size: 28px; line-height: 1; text-decoration: none; color: inherit; padding: 0 6px; }
.tm-modal__body { padding: 16px 20px; overflow: auto; flex: 1; }
.tm-modal__body h3 { margin: 0 0 8px; }
.tm-modal__body h4 { margin: 18px 0 6px; }
.tm-modal__body p, .tm-modal__body ul { margin: 0 0 10px; }
.tm-modal__body iframe { width: 100%; height: 60vh; border: 0; }
.tm-modal__foot { padding: 12px 20px; border-top: 1px solid #e3e5e8; text-align: right; }
.tm-modal__ok { display: inline-block; text-decoration: none; }
html.tm-lock { overflow: hidden; }
.tm-modal .tm-submit { background: var(--tm-accent, #d62828); color: #fff; }
.tm-check a.tm-rules-link { text-decoration: underline; } .tm-success, .tm-success h3, .tm-success h4, .tm-success p, .tm-success li, .tm-success strong { color: #14301a !important; }
.tm-success h3 { margin: 0 0 8px; font-size: 1.4em; line-height: 1.25; text-transform: none !important; letter-spacing: 0; }
.tm-success h4 { margin: 0 0 6px; font-size: 1.05em; text-transform: none !important; }
.tm-success p { margin: 0 0 8px; text-transform: none !important; }
.tm-success { background: #e7f5ea; }
.tm-alert, .tm-alert * { color: #5c1008 !important; }
.tm-modal__box, .tm-modal__box h2, .tm-modal__box h3, .tm-modal__box h4, .tm-modal__box p, .tm-modal__box li, .tm-modal__box strong { color: #1d2327 !important; text-transform: none; letter-spacing: 0; }
.tm-modal__box .tm-modal__ok { color: #fff !important; }
.tm-modal__head h2 { font-size: 1.2em; }
.tm-modal__body h3 { font-size: 1.15em; }
.tm-modal__body h4 { font-size: 1em; }