/* Europa brand font, extracted from the report template into wwwroot/fonts. */
@font-face {
    font-family: 'Europa';
    src: url('fonts/Europa-300.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Europa';
    src: url('fonts/Europa-400.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Europa';
    src: url('fonts/Europa-700.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Europa';
    src: url('fonts/Europa-300-italic.otf') format('opentype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Europa';
    src: url('fonts/Europa-400-italic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Europa';
    src: url('fonts/Europa-700-italic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

html, body {
    font-family: 'Europa', 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    /* The app is embedded cross-origin in an iframe and never sets a page background,
       so <body> is transparent and the parent site's grey shows through — visible
       outside the MudPaper's rounded corners. Force a white page background. */
    background-color: #fff;
}

/* Embedded cross-origin in an iframe: establish a block formatting context on <body> so child
   margins (the MudContainer's top margin, the last element's bottom margin) do NOT collapse out
   of the body box onto <html>. Without this, the resize script's body.getBoundingClientRect()
   omits that spacing and reports a height that is too short, clipping content at the bottom and
   misaligning with the surrounding WordPress content. flow-root keeps the content flush to the
   edges (per the embedder's design guidance) while still measuring all inner spacing. */
body {
    display: flow-root;
}

a, .btn-link {
    color: #006bb7;
}

:root {
    --mud-palette-primary: rgb(0,55,130) !important;
    --mud-palette-primary-darken: rgb(0,55,130) !important;
    --mud-palette-primary-lighten: rgb(89,173,255) !important;
    --mud-palette-secondary: rgb(120,178,43) !important;
    --mud-palette-secondary-darken: rgb(120,178,43) !important;
    --mud-palette-secondary-lighten: rgb(120,178,43) !important;
    /* Make every MudBlazor typography variant (used by forms, text fields, buttons, etc.)
       render in Europa. MudBlazor applies these per-variant, so all are overridden. */
    --mud-typography-default-family: 'Europa', sans-serif !important;
    --mud-typography-body1-family: 'Europa', sans-serif !important;
    --mud-typography-body2-family: 'Europa', sans-serif !important;
    --mud-typography-button-family: 'Europa', sans-serif !important;
    --mud-typography-caption-family: 'Europa', sans-serif !important;
    --mud-typography-subtitle1-family: 'Europa', sans-serif !important;
    --mud-typography-subtitle2-family: 'Europa', sans-serif !important;
    --mud-typography-overline-family: 'Europa', sans-serif !important;
    --mud-typography-h1-family: 'Europa', sans-serif !important;
    --mud-typography-h2-family: 'Europa', sans-serif !important;
    --mud-typography-h3-family: 'Europa', sans-serif !important;
    --mud-typography-h4-family: 'Europa', sans-serif !important;
    --mud-typography-h5-family: 'Europa', sans-serif !important;
    --mud-typography-h6-family: 'Europa', sans-serif !important;
}

.btn-primary {
    color: #fff;
    background-color: rgb(0,55,130);
    border-color: rgb(24,97,172);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.mud-divider {
    border-color: black; 
}

.mud-nav-link {
    font-size: 20px;
    font-weight: 700;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50460;
}

.mud-appbar {
    background-color: rgb(243, 243, 243) !important;
}

.validation-message {
    color: #e50460;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9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Tg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Replace the MudStepper's horizontal circle header (numbered circles + connectors, one per
   question) with the compact "Frage X von Y" + MudProgressLinear rendered in InquiryForm.
   The header overflows on small screens, so it is hidden on every size. !important overrides
   MudBlazor's own display rule on .mud-stepper-nav. */
.inquiry-container .mud-stepper-nav {
    display: none !important;
}

/* Remove the default padding from the MudStepper content area to allow the InquiryForm to use the full width, alligmed with progressbar */
.mud-stepper-content {
    padding: 0 !important;
}

@media (max-width: 599.98px) {
    .inquiry-container {
        margin: 1rem auto;
    }
}

.option-group {
    background-color: var(--mud-palette-background-grey);
    border-radius: 8px;
}

.h4, h4 {
    font-weight: 700 !important;
    color: #003782 !important;
}
.mud-typography-h5 {
    font-size: 18px !important;
    color: #003782 !important;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0;
}
/* Logo iSource */
.bg-decoration-circle {
    position: fixed;
    top: -100px;
    width: 180px;
    height: 180px;
    background-color: rgb(0,55,130);
    border-radius: 50%;
    /* Use a very low opacity for a subtle decorative effect */
    opacity: 1;
    z-index: 0;
    /* Ensures the circle doesn't interfere with clicking buttons */
    pointer-events: none;
    user-select: none;
}

.master-logo-pos {
    position: fixed;
    padding: 0 0 0 40px;
    margin: -10px 0 0 0;
}

.master-logo {
    height: 18px;
    width: auto;
    display: block;
    z-index: 1;
}

