@font-face {
    font-family: 'Tuffy';
    src: url('/fonts/Tuffy.ttf') format('truetype'),
         url('/fonts/Tuffy.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Tuffy';
    src: url('/fonts/Tuffy_Bold.ttf') format('truetype'),
         url('/fonts/Tuffy_Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Tuffy';
    src: url('/fonts/Tuffy_Italic.ttf') format('truetype'),
         url('/fonts/Tuffy_Italic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Tuffy';
    src: url('/fonts/Tuffy_Bold_Italic.ttf') format('truetype'),
         url('/fonts/Tuffy_Bold_Italic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

* { box-sizing: border-box; }
body {
    font-family: 'Tuffy', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #ffffff;
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    color: #1a3a5c;
}
.form-wrap {
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
    background: #fff;
    border: 4px solid #1a5fa8;
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
}
.form-wrap .logo-wrap {
    background: #f0f6ff;
    text-align: center;
    padding: 1.25rem 1.5rem 0;
}
.form-wrap .logo-wrap img {
    max-height: 56px;
    width: auto;
    display: inline-block;
}
.form-wrap h1 {
    background: #f0f6ff;
    margin: 0;
    padding: 0.5rem 1.5rem 0.25rem;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #1a5fa8;
}
.form-wrap .step-indicator {
    background: #f0f6ff;
    border-bottom: 4px solid #1a5fa8;
    margin: 0;
    padding: 0 1.5rem 1.25rem;
    text-align: center;
    font-size: 13px;
    color: #5a7fa8;
}
.form-wrap .notice,
.form-wrap .error-box {
    margin: 1.5rem 1.5rem 0;
}
.form-wrap form {
    padding: 1.5rem;
}
.notice {
    background: #fff8e6;
    border: 1px solid #f5d78e;
    color: #7a5500;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}
label {
    display: block;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #444444;
    margin: 18px 0 6px;
}
.hint {
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    color: #888888;
    font-size: 12.5px;
    display: block;
    margin-top: 2px;
}
input[type=text],
input[type=email],
input[type=tel],
input[type=number],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #b8cfe8;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #1a3a5c;
    background: #ffffff;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
}
input:focus, select:focus, textarea:focus {
    border-color: #1a5fa8;
    background: #f7fbff;
}
textarea { min-height: 90px; resize: vertical; }
.error {
    color: #8b1a1a;
    font-size: 13px;
    margin-top: 4px;
}
.error-box {
    background: #fde8e8;
    border: 1px solid #f5b8b8;
    color: #8b1a1a;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
}
.captcha-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 18px 0 6px;
}
.captcha-number {
    font-family: 'Tuffy', monospace;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 8px;
    background: #0d1b2a;
    padding: 10px 20px;
    border-radius: 8px;
    color: #7fd6ff;
    user-select: none;
}
.actions {
    background: #f0f6ff;
    border-top: 4px solid #1a5fa8;
    margin: 28px -1.5rem -1.5rem;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
button, .btn {
    background: linear-gradient(135deg, #1a5fa8 0%, #0e3d72 100%);
    color: #fff;
    border: none;
    padding: 11px 22px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 3px 0 #0a2d54;
    position: relative;
    top: 0;
    transition: top 0.08s, box-shadow 0.08s, background 0.15s;
}
button:hover, .btn:hover { background: linear-gradient(135deg, #1e6bbf 0%, #11448a 100%); }
button:active, .btn:active { top: 3px; box-shadow: 0 0 0 #0a2d54; }
.btn-secondary {
    background: #f0f6ff;
    color: #1a5fa8;
    border: 2px solid #b8cfe8;
    box-shadow: 0 3px 0 #b8cfe8;
}
.btn-secondary:hover { background: #ddeeff; }
.btn-secondary:active { top: 3px; box-shadow: 0 0 0 #b8cfe8; }
