/* Shared public form typography. Keep this after each form's local styles. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --public-form-font: 'Inter', sans-serif;
    --public-form-heading-size: 14px;
    --public-form-body-size: 12px;
    --public-form-note-size: 10px;
}

body {
    font-family: var(--public-form-font) !important;
    font-size: var(--public-form-body-size) !important;
    line-height: 1.6;
}

/* Explicit sizes also cover controls, nested text and form-specific overrides. */
body * {
    font-size: var(--public-form-body-size) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

body *:not(i):not(.fa):not(.glyphicon):not([class*="icon-"]) {
    font-family: var(--public-form-font) !important;
}

body :is(h1, h2, h3, h4, h5, h6, legend, .step-title, .subheading,
    .decl-title, .family-declaration-heading, .consultation-info-heading,
    .enquiry-modal-title, .enquiry-modal-section-title, .sv-row-head,
    .sv-submitted-title, .sv-success-title, .travel-title, .repeat-head,
    [role="heading"]),
body :is(h1, h2, h3, h4, h5, h6, legend, .step-title, .subheading,
    .decl-title, .family-declaration-heading, .enquiry-modal-title,
    .enquiry-modal-section-title, .sv-row-head, .repeat-head) * {
    font-size: var(--public-form-heading-size) !important;
    line-height: 1.4;
}

body :is(small, .field-hint, .field-error, .invalid-feedback, .file-upload-hint,
    .file-list-size, .step-eyebrow, .eyebrow, .step-label, .progress-text,
    .sv-progress-title, .sv-progress-kicker, .sv-success-eyebrow,
    .sv-submitted-eyebrow, .enquiry-modal-eyebrow, .wizard-version, .footer,
    .form-note, .field-note, .text-muted small),
body :is(small, .field-hint, .field-error, .file-upload-hint,
    .step-eyebrow, .eyebrow, .footer, .form-note, .field-note) * {
    font-size: var(--public-form-note-size) !important;
    line-height: 1.5;
}

/* Completed steps replace their number with a check mark. */
body .sv-progress button.done { font-size: 0 !important; }
body .sv-progress button.done::after { font-size: var(--public-form-body-size); }
