/* COMMON */

.medlem-label {
    display: block;

    margin-bottom: 10px;

    font-size: 0.8rem;
    font-weight: 700;

    letter-spacing: 0.12em;
    text-transform: uppercase;

    opacity: 0.6;
}


/* HERO */

.medlem-hero {
    padding: 70px 0;

    background: #f5f3ef;
}

.medlem-hero-grid {
    display: grid;

    grid-template-columns: 1.15fr 0.85fr;

    min-height: 480px;

    overflow: hidden;

    background: #fff;

    border-radius: 20px;
}

.medlem-hero-image {
    min-height: 480px;

    overflow: hidden;
}

.medlem-hero-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.medlem-hero-content {
    display: flex;
    flex-direction: column;

    justify-content: center;

    padding: 60px;
}

.medlem-hero-content h1 {
    margin: 0 0 25px;

    font-size: clamp(2.4rem, 4vw, 4rem);

    line-height: 1.05;
}

.medlem-hero-content p {
    margin: 0;

    max-width: 480px;

    font-size: 1.15rem;

    line-height: 1.7;
}

.hero-price {
    display: flex;

    align-items: baseline;

    gap: 10px;

    margin-top: 30px;
}

.hero-price strong {
    font-size: 2.6rem;

    line-height: 1;
}

.hero-price span {
    font-size: 1rem;

    opacity: 0.65;
}

.hero-button {
    display: inline-block;

    align-self: flex-start;

    margin-top: 30px;

    padding: 14px 28px;

    color: #fff;
    background: #111;

    font-weight: 700;

    text-decoration: none;

    border-radius: 10px;
}

.hero-button:hover {
    opacity: 0.85;
}


/* BENEFITS */

.medlem-fordele {
    padding: 90px 0;

    background: #fff;
}

.fordele-heading {
    max-width: 720px;

    margin-bottom: 55px;
}

.fordele-heading h2 {
    margin-bottom: 15px;
}

.fordele-heading p {
    font-size: 1.1rem;

    line-height: 1.7;
}

.fordele-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 45px 40px;
}

.fordel {
    display: grid;

    grid-template-columns: 35px 1fr;

    gap: 15px;

    align-items: start;
}

.fordel-check {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    font-size: 1.1rem;
    font-weight: 700;

    background: #f5f3ef;

    border-radius: 50%;
}

.fordel h3 {
    margin: 2px 0 8px;

    font-size: 1.2rem;
}

.fordel p {
    margin: 0;

    line-height: 1.6;
}


/* REGISTRATION */

.indmeldelse-section {
    padding: 90px 0;

    background: #f5f3ef;

    scroll-margin-top: 100px;
}

.indmeldelse-box {
    max-width: 1000px;

    margin: 0 auto;

    padding: 45px 50px;

    background: #fff;

    border-radius: 20px;
}

.indmeldelse-heading {
    max-width: 650px;

    margin-bottom: 35px;
}

.indmeldelse-heading h2 {
    margin-bottom: 12px;
}

.indmeldelse-heading p {
    margin: 0;

    line-height: 1.6;
}


/* FORM */

.medlem-form {
    width: 100%;
}

.form-grid {
    display: grid;

    grid-template-columns: 2fr 1fr;

    gap: 18px 20px;
}

.form-field {
    display: flex;

    flex-direction: column;

    gap: 7px;
}

.form-field label {
    font-size: 0.9rem;

    font-weight: 700;
}

.form-field input {
    width: 100%;

    box-sizing: border-box;

    padding: 12px 14px;

    font: inherit;

    background: #f8f7f5;

    border: 1px solid #d8d6d2;
    border-radius: 8px;
}

.form-field input:focus {
    outline: 2px solid #333;

    outline-offset: 1px;

    background: #fff;
}


/* FORM BOTTOM */

.form-bottom {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    margin-top: 25px;
}

.samtykke {
    display: grid;

    grid-template-columns: 20px 1fr;

    gap: 10px;

    align-items: start;

    max-width: 620px;

    font-size: 0.85rem;

    line-height: 1.45;

    cursor: pointer;
}

.samtykke input {
    width: 17px;
    height: 17px;

    margin-top: 2px;
}

.medlem-button {
    flex-shrink: 0;

    padding: 14px 30px;

    font: inherit;
    font-weight: 700;

    color: #fff;
    background: #111;

    border: 0;
    border-radius: 9px;

    cursor: pointer;
}

.medlem-button:hover {
    opacity: 0.85;
}


/* ERRORS */

.form-errors {
    margin-bottom: 30px;

    padding: 18px 22px;

    background: #f5f3ef;

    border-radius: 10px;
}

.form-errors strong {
    display: block;

    margin-bottom: 8px;
}

.form-errors ul {
    margin: 0;

    padding-left: 20px;
}

.form-errors li {
    margin: 4px 0;
}


/* SUCCESS */

.medlem-success {
    display: grid;

    grid-template-columns: 1fr 360px;

    gap: 60px;

    align-items: center;

    max-width: 1000px;

    margin: 0 auto;

    padding: 50px;

    background: #fff;

    border-radius: 20px;
}

.success-text h2 {
    margin-bottom: 20px;
}

.success-text p {
    max-width: 520px;

    line-height: 1.7;
}

.mobilepay-box {
    padding: 30px;

    text-align: center;

    background: #f5f3ef;

    border-radius: 16px;
}

.mobilepay-box h3 {
    margin: 0 0 10px;
}

.mobilepay-box p {
    margin: 0 0 20px;

    line-height: 1.5;
}

.mobilepay-box img {
    display: block;

    width: 100%;
    max-width: 250px;
    height: auto;

    margin: 0 auto;
}


/* TABLET */

@media (max-width: 900px) {

    .medlem-hero-grid {
        grid-template-columns: 1fr 1fr;
    }

    .medlem-hero-content {
        padding: 40px;
    }

    .fordele-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .medlem-success {
        grid-template-columns: 1fr;
    }

}


/* MOBILE */

@media (max-width: 650px) {

    .medlem-hero {
        padding: 30px 0 50px;
    }

    .medlem-hero-grid {
        grid-template-columns: 1fr;
    }

    .medlem-hero-image {
        min-height: 300px;
    }

    .medlem-hero-content {
        padding: 35px 25px;
    }

    .medlem-hero-content h1 {
        font-size: 2.4rem;
    }

    .medlem-fordele {
        padding: 65px 0;
    }

    .fordele-heading {
        margin-bottom: 40px;
    }

    .fordele-grid {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .indmeldelse-section {
        padding: 65px 0;
    }

    .indmeldelse-box {
        padding: 30px 22px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-bottom {
        flex-direction: column;

        align-items: stretch;
    }

    .medlem-button {
        width: 100%;
    }

    .medlem-success {
        padding: 30px 22px;

        gap: 35px;
    }

}