:root {
    --tr-navy: #071a33;
    --tr-blue: #155eef;
    --tr-blue-dark: #0f4ac7;
    --tr-page: #f4f7fb;
    --tr-card: #ffffff;
    --tr-text: #172033;
    --tr-muted: #667085;
    --tr-border: #d9e1ec;
    --tr-soft: #eef4ff;
    --tr-danger: #b42318;
    --tr-success: #067647;
    --tr-radius: 18px;
    --tr-shadow: 0 18px 50px rgba(16, 24, 40, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--tr-page); color: var(--tr-text); }
a { color: inherit; }
button, input, textarea { font: inherit; }

.tr-page { min-height: 100vh; padding: 32px 18px 20px; }
.tr-shell { width: min(1120px, 100%); margin: 0 auto; }
.tr-hero { position: relative; overflow: hidden; padding: 34px; border-radius: 24px; color: #fff; background: linear-gradient(135deg, #071a33 0%, #0b2d5c 62%, #155eef 100%); box-shadow: var(--tr-shadow); }
.tr-hero::after { content: ""; position: absolute; width: 260px; height: 260px; right: -100px; top: -100px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; box-shadow: 0 0 0 35px rgba(255,255,255,.035), 0 0 0 70px rgba(255,255,255,.025); }
.tr-back { position: relative; z-index: 2; display: inline-flex; margin-bottom: 26px; color: rgba(255,255,255,.86); text-decoration: none; font-size: 14px; font-weight: 600; }
.tr-back:hover { color: #fff; }
.tr-brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 16px; }
.tr-brand img { width: 72px; height: 72px; object-fit: contain; border-radius: 50%; background: #fff; padding: 4px; }
.tr-eyebrow, .tr-section-kicker { display: block; letter-spacing: .12em; font-size: 11px; font-weight: 800; }
.tr-eyebrow { color: rgba(255,255,255,.72); margin-bottom: 5px; }
.tr-brand h1 { margin: 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.1; }
.tr-brand p { margin: 6px 0 0; color: rgba(255,255,255,.72); font-size: 13px; }
.tr-hero-copy { position: relative; z-index: 2; max-width: 720px; margin-top: 34px; }
.tr-badge { display: inline-flex; padding: 7px 11px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.08); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.tr-hero-copy h2 { margin: 14px 0 8px; font-size: clamp(24px, 3.4vw, 38px); line-height: 1.12; }
.tr-hero-copy p { margin: 0; max-width: 680px; color: rgba(255,255,255,.78); line-height: 1.65; }

.tr-card { margin-top: 24px; padding: 30px; border: 1px solid var(--tr-border); border-radius: var(--tr-radius); background: var(--tr-card); box-shadow: var(--tr-shadow); }
.tr-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--tr-border); }
.tr-card-head h2 { margin: 5px 0 5px; font-size: 25px; }
.tr-card-head p { margin: 0; color: var(--tr-muted); font-size: 13px; }
.tr-section-kicker { color: var(--tr-blue); }
.tr-step { color: var(--tr-blue); font-size: 18px; font-weight: 800; white-space: nowrap; }
.tr-step span { color: var(--tr-muted); font-size: 10px; letter-spacing: .08em; }

.tr-group { min-width: 0; margin: 28px 0 0; padding: 0; border: 0; }
.tr-group legend { margin-bottom: 15px; padding: 0; font-size: 17px; font-weight: 800; }
.tr-grid { display: grid; gap: 18px; }
.tr-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tr-field { min-width: 0; }
.tr-field--full { grid-column: 1 / -1; }
.tr-field label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 700; }
.tr-field label span, .tr-consent strong { color: var(--tr-danger); }
.tr-field input, .tr-field textarea { width: 100%; border: 1px solid var(--tr-border); border-radius: 11px; background: #fff; color: var(--tr-text); padding: 12px 13px; outline: 0; transition: border-color .15s ease, box-shadow .15s ease; }
.tr-field textarea { min-height: 110px; resize: vertical; }
.tr-field input:focus, .tr-field textarea:focus { border-color: var(--tr-blue); box-shadow: 0 0 0 3px rgba(21,94,239,.12); }
.tr-field small, .tr-consent small { display: block; min-height: 17px; margin-top: 5px; color: var(--tr-danger); font-size: 11px; }
.tr-field.is-invalid input, .tr-field.is-invalid textarea { border-color: var(--tr-danger); }

.tr-consent { margin-top: 26px; padding: 15px; border: 1px solid var(--tr-border); border-radius: 12px; background: #f8fafc; }
.tr-consent label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; color: var(--tr-muted); font-size: 13px; line-height: 1.55; }
.tr-consent input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--tr-blue); }

.tr-alert { margin-top: 20px; padding: 12px 14px; border-radius: 10px; color: var(--tr-danger); background: #fff1f0; border: 1px solid #f7c5c0; font-size: 13px; line-height: 1.5; }
.tr-alert.is-success { color: var(--tr-success); background: #ecfdf3; border-color: #abefc6; }
.tr-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

.tr-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--tr-border); }
.tr-secondary, .tr-submit { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 11px; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; }
.tr-secondary { border: 1px solid var(--tr-border); background: #fff; color: var(--tr-text); }
.tr-secondary:hover { background: #f8fafc; }
.tr-submit { border: 1px solid var(--tr-blue); background: var(--tr-blue); color: #fff; box-shadow: 0 8px 20px rgba(21,94,239,.18); }
.tr-submit:hover { background: var(--tr-blue-dark); }
.tr-submit:disabled { opacity: .65; cursor: not-allowed; }
.tr-submit-loading { display: none; }
.tr-submit.is-loading .tr-submit-label { display: none; }
.tr-submit.is-loading .tr-submit-loading { display: inline; }

.tr-success { padding: 34px 10px 10px; text-align: center; }
.tr-success-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; color: #fff; background: var(--tr-success); font-size: 30px; font-weight: 800; }
.tr-success h2 { margin: 8px 0; font-size: 27px; }
.tr-success p { max-width: 650px; margin: 0 auto 10px; color: var(--tr-muted); line-height: 1.65; }
.tr-reference { margin-top: 18px !important; padding: 12px; border-radius: 10px; background: var(--tr-soft); color: var(--tr-text) !important; }
.tr-success-actions { display: flex; justify-content: center; gap: 12px; margin-top: 22px; }
.tr-submit--link { min-width: 150px; }
.tr-footer { padding: 18px 0 0; text-align: center; color: var(--tr-muted); font-size: 11px; }

@media (max-width: 720px) {
    .tr-page { padding: 14px 10px; }
    .tr-hero, .tr-card { border-radius: 16px; }
    .tr-hero, .tr-card { padding: 22px; }
    .tr-grid--two { grid-template-columns: 1fr; }
    .tr-field--full { grid-column: auto; }
    .tr-actions { align-items: stretch; flex-direction: column-reverse; }
    .tr-secondary, .tr-submit { width: 100%; }
    .tr-success-actions { flex-direction: column; }
    .tr-success-actions .tr-secondary, .tr-success-actions .tr-submit { width: 100%; }
}

@media (max-width: 430px) {
    .tr-brand { align-items: flex-start; }
    .tr-brand img { width: 58px; height: 58px; }
    .tr-brand h1 { font-size: 21px; }
    .tr-hero-copy { margin-top: 26px; }
    .tr-card { padding: 18px; }
    .tr-card-head { flex-direction: column; }
}
