/* ─── Trademark Mini Form — v1.0.0 ─────────────────────────────────────
   Compact 4-field card for hero sections / landing pages.
   Brand colors: navy #1a2e5a · gold #c8a951
   ──────────────────────────────────────────────────────────────────── */

.tsf-mini-wrapper {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(26,46,90,.18), 0 4px 16px rgba(26,46,90,.10);
    overflow: hidden;
    width: 100%;
    max-width: 420px;
    font-family: inherit;
    box-sizing: border-box;
}

/* Gold top accent bar */
.tsf-mini-head {
    background: linear-gradient(135deg, #1a2e5a 0%, #243d78 100%);
    padding: 20px 24px 16px;
    border-top: 4px solid #c8a951;
}
.tsf-mini-head h3 {
    color: #c8a951;
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 3px;
    letter-spacing: -.2px;
}
.tsf-mini-head p {
    color: rgba(255,255,255,.65);
    font-size: 12px;
    margin: 0;
    line-height: 1.4;
}

.tsf-mini-body {
    padding: 20px 24px 24px;
}

/* 2-column grid */
.tsf-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
.tsf-mini-grid .tsf-mf {
    margin: 0;
}

.tsf-mf {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}
.tsf-mf label {
    font-size: 11px;
    font-weight: 700;
    color: #1a2e5a;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.tsf-mf .tsf-r { color: #e53e3e; }

.tsf-mf input {
    padding: 10px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #1a2e5a;
    background: #f8fafc;
    outline: none;
    transition: border .18s, box-shadow .18s, background .18s;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}
.tsf-mf input:focus {
    border-color: #c8a951;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(200,169,81,.15);
}
.tsf-mf input::placeholder { color: #a0aec0; }

/* Phone row */
.tsf-mini-phone-row {
    display: flex;
    gap: 0;
}
.tsf-mini-dial-static {
    display: flex;
    align-items: center;
    padding: 10px 10px;
    border: 1.5px solid #e2e8f0;
    border-right: none;
    border-radius: 8px 0 0 8px;
    background: #f0f4f9;
    font-size: 13px;
    font-weight: 700;
    color: #1a2e5a;
    white-space: nowrap;
    user-select: none;
    flex-shrink: 0;
}
.tsf-mini-phone-row input {
    border-radius: 0 8px 8px 0 !important;
}

/* Error spans */
.tsf-me {
    font-size: 11px;
    color: #e53e3e;
    min-height: 14px;
    display: none;
}
.tsf-me.tsf-me-vis { display: block; }

/* CTA button */
.tsf-mini-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #c8a951 0%, #d4b864 100%);
    color: #1a2e5a;
    font-weight: 800;
    font-size: 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, background .15s;
    letter-spacing: .2px;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.tsf-mini-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(200,169,81,.4);
    background: linear-gradient(135deg, #d4b864 0%, #c8a951 100%);
}
.tsf-mini-btn:active { transform: translateY(0); }
.tsf-mini-btn:disabled {
    opacity: .7;
    cursor: not-allowed;
    transform: none;
}
.tsf-mini-btn-arrow { font-size: 18px; transition: transform .15s; }
.tsf-mini-btn:hover .tsf-mini-btn-arrow { transform: translateX(3px); }

/* Trust badges */
.tsf-mini-trust {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f0f4f9;
}
.tsf-mini-trust span {
    font-size: 11px;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Spinner state */
.tsf-mini-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(26,46,90,.3);
    border-top-color: #1a2e5a;
    border-radius: 50%;
    animation: tsf-spin .6s linear infinite;
    display: none;
}
.tsf-mini-btn.loading .tsf-mini-spinner { display: block; }
.tsf-mini-btn.loading .tsf-mini-btn-text,
.tsf-mini-btn.loading .tsf-mini-btn-arrow { display: none; }

@keyframes tsf-spin { to { transform: rotate(360deg); } }

/* Mobile: stack to single column */
@media (max-width: 480px) {
    .tsf-mini-grid { grid-template-columns: 1fr; }
    .tsf-mini-wrapper { max-width: 100%; border-radius: 10px; }
}
