﻿@font-face {
    font-family: Inter;
    src: local("Inter"), url('/fonts/Inter-Regular.woff2') format("woff2"), sans-serif;
}

html {
    font-family: Inter, system, sans-serif;
    font-size: 15px;
    box-sizing: border-box;
    color: #0f0865;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: 100%;
    margin: 0;
    padding: 0;
}

header {
    max-width: 1260px;
    width: 100%;
    margin: 0 auto;
    flex-grow: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

main {
    width: 90%;
    max-width: 960px;
    margin: 2.4em auto;
    flex-grow: 1;
}

footer {
    width: 100%;
    border-top: 1px solid #0f0865;
    flex-shrink: 0;
}

#header-top {
    padding: 0.62em 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin: 0em 0;
    padding: 0 1em;
}

#header-top a {
    display: flex;
    align-items: center;
    font-weight: 600;
    gap: 1em;
    color: #0B0544;
}

#header-top hr {
    width: 100%;
    margin: 0.5rem 0 0 0;
    border: none;
    border-top: 1px solid #ccc;
}

#header-top a:focus, #header-top a:hover {
    text-decoration: underline;
}

header a {
    text-decoration: none;
    color: #0B0544;
}

a {
    text-underline-offset: .1578em;
}

a:visited {
    color: #2600bb;
}

h1 {
    font-size: 2em;
    font-weight: 700;
    line-height: 1.25;
    margin: 0.5em 0;
}

h2 {
    font-size: 1.25em;
}

p {
    max-width: 68ch;
}

.lang-switch {
    margin-left: auto;
    font-weight: bold;
}

.lang-switch a,
.lang-switch a:visited,
.lang-switch a:active,
.lang-switch a:hover {
    color: inherit;
    text-decoration: none;
}

.inverted {
    text-align: center;
    padding: 20px;
    color: white;
    background-color: #0f0865;
}

.container {
    flex: 1 0 auto;
}

.button {
    display: inline-block;
    padding: 1em 2em;
    background: #1d00bd;
    color: white !important;
    border: 1px solid #777;
    border-radius: 2em;
    font-size: 1em;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}
.button:hover, .button:focus, .button:active, .button:visited {
    background: #0f0865;
    color: white !important;
    text-decoration: underline;
}
.button:disabled,
.button:disabled:hover,
.button:disabled:focus,
.button:disabled:active,
.button:disabled:visited {
    background: #ccc !important;
    color: #888 !important;
    border-color: #bbb !important;
    cursor: not-allowed !important;
    opacity: 0.7;
    text-decoration: none !important;
}

label {
    font-size: 1.2em;
    font-weight: 600;
}

.terms-textarea {
    width: 100%;
    overflow: auto;
    resize: none;
}

.terms-checkbox-label {
    font-size: 0.95em;
    color: #222;
}
.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    padding: .5rem 1rem;
    background: #ffffff;
    color: #000;
    border: 2px solid #005ea5;
    text-decoration: none;
    z-index: 1000;
    /* Göm visuellt tills fokus */
    clip: rect(0 0 0 0);
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
}

    .skip-link:focus,
    .skip-link:active {
        clip: auto;
        width: auto;
        height: auto;
    }

.form-group {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

    /* Mindre mellanrum i grupper med statiska värden */
    .form-group.compact {
        gap: .15rem;
    }

/* Ta bort ev. default-marginaler på statisk text för ännu tightare layout */
.form-control-static {
    margin: 0;
}