* {
    font-family: 'Montserrat', Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box;
}

html, body {
    width: 100%;
}

.main-body {
    background-color: #FCFCFC;
    padding: 60px 0px !important;
}

/* OBS: ersätter gamla .container-regeln */
.consent-page-container {
    padding-top: 24px;
    padding-bottom: 24px;
}

.consent-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.consent-form {
    width: 100%;
}

.logo,
.footer-item-logo {
    margin: 15px;
    max-width: 175px;
    height: auto;
}

/* Responsiv headerbild */
/*.header-image {
    width: 100%;
    max-width: 390px;
    height: auto;
}*/
/* Ny HTML/CSS-header som ersätter bilden */
.consent-header {
    /* Originalbildens proportioner: 390 x 114 */
    width: min(100%, 390px);
    aspect-ratio: 390 / 114;
    background: #D5191B; /* nära färgen i bilden */
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Sned nederkant (vänster lägre, höger högre) */
    clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
}

.consent-header__title {
    margin: 0;
    color: #fff;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    font-size: clamp(1.5rem, 5.2vw, 1.875rem); /* responsiv men nära originalet */
}

/* Din befintliga spacing kan vara kvar */
.padding-header {
    padding-bottom: 30px;
}


.padding-header {
    padding-bottom: 24px;
}

/* Required asterisk */
span.required {
    color: red;
    font-size: 15px;
}

nav {
    background-color: #FFFFFF;
    min-height: 10dvh;
}

footer {
    background-color: #FFFFFF;
    font-size: small;
    min-height: 10dvh;
}

/* Submit button */
.btn-submit,
button[type="submit"] {
    background-color: #E7040B;
    color: white;
    border-radius: 30px;
    border: 2px solid #E7040B;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 800;
    font-family: 'Montserrat' !important;
    min-width: 180px;
}

    .btn-submit:hover,
    button[type="submit"]:hover {
        background-color: #FCFCFC;
        color: #E7040B;
        border: 2px solid #E7040B;
    }

.policy-text a {
    text-decoration: underline;
    color: #212529;
}

.check-consent a {
    color: #E7040B;
}

p {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

#consentForm {
    max-width: 900px;
}

/* Tabell/admin-grejer */
thead {
    background-color: #E7040B;
    color: white;
}

tr:nth-last-child(even) {
    background-color: lightgray;
}

.btn-secondary {
    background-color: #E7040B;
    color: white;
    border-radius: 30px;
    border: 2px solid #E7040B;
    padding: 12px 28px !important;
    font-size: 16px;
    font-weight: 800;
    font-family: 'Montserrat' !important;
    min-width: 180px;
    margin-bottom: 15px;
}

#loginForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    width: 20rem;
}

.pagination,
.csv {
    width: 100%;
    display: flex;
    justify-content: end;
}

/*.form-check {
    padding-left: 0 !important;
}*/

.consent-check .form-check-input {
    margin-right: 0.5rem;
}

.form-label {
    font-size: 15px !important;
    margin-bottom: 0.35rem;
}

/* Fixar felaktig border-style i nuvarande CSS */
.form-control,
.form-select {
    border-radius: 0 !important;
    border: 1px solid #B7B7B7 !important;
    font-size: 16px; /* viktigt på iOS för att undvika auto-zoom */
}

/* Mobil */
@media (max-width: 576px) {
    .consent-page-container {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .logo,
    .footer-item-logo {
        max-width: 140px;
        margin: 10px;
    }

    .padding-header {
        padding-bottom: 16px;
    }

    .form-label {
        font-size: 14px !important;
    }

    .btn-submit,
    button[type="submit"] {
        width: 100%;
        min-width: 0;
        padding: 12px 16px;
    }

    .policy-text p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}
