:root {
    --font-montserrat: "Montserrat", sans-serif;
    --color-base: #000;
    --primary: #004D7F;
    --white: #fff;
    --warning: #F4B900;
    --danger: #a00;
}

* {
    box-sizing: border-box;
}

html, body {
    min-height: 100vh;
    padding: 0;
    margin: 0;
    height: 100%;
    width: 100%;
}

html {
    font-size: 16px;
    height: 100%;
    scroll-behavior: smooth;

    @media all and (max-width: 768px) {
        font-size: 14px;
    }
}

body {
    font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-base);
    -webkit-font-smoothing: antialiased;
    overflow-anchor: none;
    overflow-x: hidden;
    min-width: 320px;
}

.container {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.wrap-md {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;

    @media (max-width: 767px) {
        .form-group {
            width: 100%;
        }
    }

    @media (min-width: 768px) {
        margin-top: 3rem;
        margin-bottom: 1rem;

        .form-group {
            width: 49%;
        }
    }
}

p {
    margin-block-start: 0;
    margin-block-end: .9rem;
}

h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.d-flex {
    display: flex;
}

.f-wrap {
    flex-wrap: wrap;
}

.content-space-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.justify-end {
    justify-content: flex-end;
}

.gap-5 {
    gap: 5px;
}

.f-grow-1 {
    flex-grow: 1;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.text-center {
    text-align: center;
}

.text-nowrap {
    white-space: nowrap;
}

.alert-danger {
    color: var(--danger);
    text-transform: uppercase;
    font-size: .9rem;
}

.form {
    padding: 3rem 1rem;
    text-align: center;
    border-top: 1px solid var(--primary);

    @media (max-width: 768px) {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .title {
        font-weight: 700;
        font-size: 2rem;
        line-height: 1.1;
        text-transform: capitalize;
        margin-block-start: 0;
        margin-block-end: 1.25rem;

        @media (min-width: 768px) {
            font-size: 2.5rem;
        }
    }

    .btn {
        width: 100%;
        max-width: 20rem;
        border-radius: 5px;
        font-size: 1.1rem;
        text-transform: uppercase;
        min-height: 3.68rem;
        margin: 0 auto;
    }
}

.form-group,
.form-action {
    margin-bottom: 1.25rem;
}

.btn {
    color: var(--white);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    border: 2px solid transparent;
    padding: .6rem 1.2rem;

    svg {
        fill: currentColor;
        margin-left: 5px;
    }
}

.btn-primary {
    background-color: var(--primary);

    &:hover, &:focus, &:active {
        background-color: var(--warning);
        color: var(--color-base);
    }
}

.btn-border-primary {
    color: var(--primary);
    border-color: currentColor;

    &:hover, &:focus, &:active {
        color: var(--warning);
    }
}

.btn-warning {
    background-color: var(--warning);
    color: var(--color-base);

    &:hover, &:focus, &:active {
        background-color: var(--primary);
        color: var(--warning);
    }
}

.form-control {
    border: 2px solid rgba(0,0,0, .1);
    font-size: 16px;
    font-weight: 500;
    text-transform: capitalize;
    min-height: 3.6rem;
    padding: .4rem 1.25rem;
    width: 100%;
    vertical-align: middle;
    caret-color: var(--primary);
    accent-color: var(--primary);
    field-sizing: content;

    &:focus {
        border-color: var(--primary);
    }
}

.help-block {
    font-size: .8rem;
    font-weight: 300;
    text-align: left;
    margin: .1rem 0 0 .3rem;
    color: rgba(0,0,0, .6);
}

.form-control::-webkit-input-placeholder {
    font-weight: 400;
}

.form-control::-moz-placeholder {
    font-weight: 400;
}

.form-control:-moz-placeholder {
    font-weight: 400;
}

.form-control:-ms-input-placeholder {
    font-weight: 400;
}

.form-control:focus::-webkit-input-placeholder {
    color: transparent !important;
}

.form-control:focus::-moz-placeholder {
    color: transparent !important;
}

.form-control:focus:-moz-placeholder {
    color: transparent !important;
}

.form-control:focus:-ms-input-placeholder {
    color: transparent !important;
}

.form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control, select[disabled] {
    background-color: #eee !important;
    cursor: not-allowed;
    color: rgba(0,0,0,.7);
}

button {
    overflow: visible;
}

button, html input[type="button"], input[type="reset"], input[type="submit"] {
    -webkit-appearance: button;
    cursor: pointer;
    background: none;
    border: 0;
}

button[disabled], html input[disabled] {
    cursor: default;
}

button::-moz-focus-inner, input::-moz-focus-inner {
    padding: 0;
    border: 0;
}

input[type=text]::-ms-clear {  display: none; width : 0; height: 0; }
input[type=text]::-ms-reveal {  display: none; width : 0; height: 0; }
input[type=password]::-ms-clear {  display: none; width : 0; height: 0; }
input[type=password]::-ms-reveal {  display: none; width : 0; height: 0; }
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration { display: none; }

a:focus, button:focus, input[type="submit"]:focus, input[type="button"]:focus {
    &:not(:focus-visible) {
        outline: none;
    }
}

a, button, input[type="submit"], input[type="button"] {
    &:focus-visible {
        outline: 3px dashed var(--warning);
        outline-offset: 2px;
    }
}

a {
    text-decoration: none;
    transition: color 0.15s ease-in-out,background-color 0.15s ease-in-out,border-color 0.15s ease-in-out;

    &:hover, &:focus, &:active {
        color: var(--warning);
    }
}

img {
    display: inline-block;
    max-width: 100%;
}

.header {
    .wrapper {
        justify-content: space-between;
        border-bottom: 1px solid #D4D4D4;
        margin-bottom: 5px;
        padding-bottom: 5px;
    }

    .logo {
        display: block;
        text-align: center;
    }

    .item {
        flex-grow: 1;
        padding: 0.7rem;
        flex-basis: 100%;
    }
}

.footer {
    background-color: var(--primary);
    color: var(--white);

    a {
        color: currentColor;
    }

    .item {
        flex-grow: 1;
        padding: 0.625rem;
        flex-basis: 100%;
    }

    .link {
        font-size: 1.25rem;
        font-weight: 500;
        line-height: 1.5;
        display: flex;
        align-items: center;

        @media (min-width: 768px) {
            margin-bottom: 1.25rem;
        }

        img {
            width: 2.625rem;
            height: 2.625rem;
            object-fit: contain;
            margin-right: 1rem;
        }
    }

    .desc {
        padding-top: 0.75rem;

        .title {
            margin-bottom: 0.625rem;
            text-transform: capitalize;
            font-weight: 600;
            font-size: 1.1rem;
            color: var(--white);
        }

        p {
            font-size: .9rem;
        }
    }

    .wrapper {
        border-bottom: 1px solid #D1DBE385;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }

    .block-middle {
        @media (min-width: 768px) {
            padding-top: 2rem;

            .item:first-child {
                flex-basis: 37%;
            }

            .item:nth-child(2) {
                flex-basis: 37%;
            }

            .item:last-child {
                flex-basis: 26%;
            }
        }
    }

    .block-bottom {
        text-align: center;
        padding: 1rem;
    }
}


