@import url("/css/fonts/libre-baskerville.css");
@import url("/css/fonts/roboto.css");
@import url("_admin_icons-YACh-15.css");

:root {
    --bg-color: #fefefe;
    --primary-color: #06653e;
    --heading-font-family: "Libre Baskerville";
    --text-font-family: "Roboto";
}

html {
    font-family: var(--text-font-family);
    font-size: var(--root-font-size);
    overflow-wrap: break-word;

    @media (min-width: 768px) {
        font-size: calc(var(--root-font-size) + 1px);
    }
}

body,
html {
    background-color: var(--bg-color);
    color: var(--text-color);
}

blockquote {
    font-family: var(--quote-font-family);
    border-left: 2px solid var(--primary-color);
    padding-left: var(--spacer-default);
}

/* -------------------------------------
   Title use primary-color
   h1 & h2 use heading font.
------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-color);
}

h1,
h2 {
    font-family: var(--heading-font-family);
    font-weight: 700;
    word-break: normal;
}

.content-wrapper {
    padding: var(--spacer-default);
    width: 100%;
    max-width: var(--layout-security);
    margin-left: auto;
    margin-right: auto;
}

form {
    display: flex;
    flex-direction: column;
    gap: var(--spacer-default);
}

fieldset {
    border: 0;
    padding: 0;

    > div {
        margin-bottom: var(--spacer-default);
    }
    #registration_form_plan {
        display: flex;
        flex-direction: column;
        align-items: start;
        gap: var(--spacer-default);
        input[type="radio"] {
            width: 1.5rem;
            height: 1.5rem;
        }
    }

    #registration_form_plan label {
        display: flex;
        border: 1px solid var(--text-color);
        border-radius: var(--default-radius);
        padding: var(--spacer-default);
        align-items: center;
    }
    #registration_form_plan input:checked + label {
        background-color: var(--primary-color);
        color: white;
    }
}

div.help-text {
    margin-top: var(--spacer-sm);
}

.btn::before {
    width: 1rem;
    height: 1rem;
    display: inline-block;
    margin-right: var(--spacer-sm);
    content: "";
    mask-size: 1rem;
    background-color: currentColor;
    vertical-align: sub;
}

/* -------------------------------------
   Header style
------------------------------------- */
body > header {
    /* Wee need 100% so first it stretch, then it narrowed following other rules. */
    width: 100%;
    grid-area: header;
    .content-wrapper {
        display: flex;
        flex-direction: column;
        align-items: start;
        gap: var(--spacer-default);
    }

    margin-top: var(--spacer-xxl);
    .content-wrapper {
        display: flex;
        box-sizing: border-box;
        align-items: start;
        p {
            margin: 0;
        }
    }

    /* Logo */

    img.logo {
        width: auto; /* to avoid the logo to be streched */
        max-height: 40px;
    }
}
