* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ecf3f4;
}
#iframe-webinar-avanza {
    height: 930px;
}
#gtw-register,
#thank-you-message {
    padding: 0 1.25rem;
    font-family: Barlow, ui-sans-serif, system-ui, sans-serif,
        "Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol,
        "Noto Color Emoji";
    color: #5a5e5f;
    font-size: 16px;
    letter-spacing: -0.3px;
}

.heading {
    line-height: 1.25rem;
    text-align: center;
    user-select: none;

    h2 {
        color: rgb(56 128 151);
        letter-spacing: -0.025rem;
        font-weight: 700;
        font-size: 1.5rem;
        line-height: 2rem;
    }

    p {
        margin-top: 0.75rem;
    }
}

#gtw-register-form {
    max-width: 36rem;
    margin: 2.5rem auto 0 auto;

    button {
        border: none;

        margin-top: 2.5rem;
        margin-bottom: 1rem;

        background: transparent;
        width: 100%;
        white-space: nowrap;
        border-radius: 0.75rem;
        border-width: 1px;
        border-color: rgb(0 130 155);
        background-color: rgb(56 128 151);
        padding: 0.5rem 0.625rem 0.625rem;
        text-align: center;
        font-weight: 500;
        line-height: 1;
        letter-spacing: -0.025em;
        color: rgb(255 255 255);
        transition-property: all;
        transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
        transition-duration: 0.15s;
        font-size: 0.875rem;
        background-image: none;
        cursor: pointer;

        div {
            padding: 0.25rem 2.5rem;
        }

        &:hover {
            background-color: rgb(153 190 200 / 0.8);
            color: rgb(0 130 155);
        }
    }
}

.field-container {
    margin-top: 1.75rem;
}

.field-label {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    color: rgb(0 130 155);
}

.field-input {
    appearance: none;
    border-width: 0px;
    font-size: 1rem;
    box-shadow: 0 0 0 100px #fff inset;
    margin-top: 0.5rem;
    width: 100%;
    border-radius: 0.5rem;
    padding: 0.625rem 1rem;
    line-height: 1;
    color: #5a5e5f;

    &:focus {
        outline: 1px solid rgb(56, 128, 151);
    }
}

.radio-buttons {
    display: grid;

    input {
        display: none;
    }

    div {
        height: auto;
        padding: 0.5rem 0.625rem 0.625rem;
        margin-top: 0;
    }

    div label {
        display: inline-block;
        width: 100%;
        border: 1px solid rgb(0 130 155);
        color: rgb(0 130 155);
        border-radius: 0.75rem;
        padding: 0.5rem 0.625rem 0.625rem;
        text-align: center;
        transition-property: all;
        transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
        transition-duration: 0.15s;
        font-size: 0.875rem;
        cursor: pointer;

        &:hover {
            color: #fff;
            background-color: rgb(0 130 155);
        }
    }

    input:checked + label {
        background-color: rgb(0 130 155);
        color: #fff;
    }
}

.check-label {
    display: flex;
    align-items: flex-start;

    span {
        color: rgb(75 85 99);
        font-size: 0.875rem;
        line-height: 1.25rem;
        cursor: pointer;
        margin-left: 0.5rem;
    }

    &:hover {
        .replacement {
            background-color: #6b7280;
        }
    }
}

.replacement {
    display: flex;
    height: 1.25rem;
    width: 1.25rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-width: 3px;
    border-color: rgb(56 128 151);
    border-style: solid;
    transition: 0.4s;
}

.checkbox {
    input {
        display: none;
    }
}

.checkbox-svg {
    display: none;
    width: 1.25rem;
    height: 1.25rem;
}

.checkbox > input:checked + div {
    background-color: #6b7280;
    border-color: #6b7280;
}

.checkbox > input:checked + div svg {
    display: block;
}

.required {
    display: none;
    margin-top: 0.5rem;
    color: rgb(220 38 38);
    font-size: 0.875rem;
    line-height: 1.25;
}

#thank-you-message {
    max-width: 80%;
    min-width: 40%;
    margin: auto;
    background-color: #f5f5f5;
    padding: 3rem;
    text-align: center;
    border-radius: 30px 30px 0 0;
    box-shadow: 0px 10px 12.2px 3px rgba(91, 91, 91, 0.13);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
}

.message {
    color: rgb(56 128 151);
    letter-spacing: -0.025rem;
    font-size: 1.25rem;
    line-height: 1.5rem;

    p:first-of-type {
        font-weight: 700;
    }
}

.text-data {
    color: rgb(75 85 99);
    font-size: 12px;
    line-height: 1.0rem;
    padding-bottom: 1rem;
    text-align: left;

    a {
        color: rgb(56 128 151);
    }
}

@media (min-width: 480px) {
    .message {
        font-size: 1.5rem;
        line-height: 2rem;
    }
}

@media (min-width: 640px) {
    button {
        width: auto;
    }

    #thank-you-message {
        max-width: 36rem;
    }
}

@media (min-width: 768px) {
    .radio-buttons {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 1.25rem;
    }
  #iframe-webinar-avanza {
        height: 800px;
    }
}
