/* 
	Generic helper classes and patterns.
	Anything that's useful for layout or spacing etc.
*/

/* Colours */
.bg-pale-blue {
    background-color: #e2f2fe !important;
}

/* Buttons */
.btn {
    display: inline-block;
    text-align: center;
    min-width: 18rem;
    padding: 12px;
    text-transform: uppercase;
    border-radius: 5px;
    background-color: #70cbf4;
    font-size: 1.8rem;
    font-family: "TUI-Bold", system, -apple-system, ".SFNSText-Regular", "San Francisco", "Roboto", "Segoe UI", "Helvetica Neue", "Lucida Grande", sans-serif;
    font-weight: normal;
}

.btn--yellow {
    background-color: #fdb711;
}

.btn--navy {
    background-color: #0a2a5e;
    color: #fff;
}

.btn--lowercase {
    text-transform: none;
}
.btn--s {
	padding: 6px;
	min-width: 0;
}

/* Text */
.module-heading {
    padding-top: 25px;
    padding-bottom: 25px;
    text-transform: uppercase;
    font-size: 2.8rem;
}

    .module-heading a {
        text-decoration: underline;
    }

.module-heading--center {
    text-align: center;
    padding-right: 20px;
    padding-left: 20px;
}

.module-heading--split {
    max-width: 25ch;
    margin-right: auto;
    margin-left: auto;
}

.section-heading {
    text-align: center;
    font-size: 2.8rem;
    text-transform: uppercase;
}

.section-intro {
    text-align: center;
    font-size: 2.2rem;
    color: #2f2f2f;
}

.error {
    color: #d40e14;
}

.small {
    font-size: 1.4rem;
}

    .small a {
        text-decoration: underline;
    }

.small--highlight-link a {
    color: #70cbf4;
    text-decoration: none;
}

/* Spacing */
.stack > * + * {
    margin-top: 25px;
}

.module-pad {
    padding: 30px 0 20px 0;
}

/* Images */
.resp-img {
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.resp-img__img {
    z-index: -1;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    font-family: "parent-fit: cover, object-fit: cover";
}

.img-block {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
}

/* Layout/positioning */
[class*="constrain-"] {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 20px;
    padding-left: 20px;
}

.constrain-12 {
    max-width: 1200px;
}

.constrain-10 {
    max-width: 1000px;
}

.constrain-8 {
    max-width: 800px;
}

[class*="grid-"] {
    display: grid;
    gap: 20px;
}

.flush {
    padding-right: 0;
    padding-left: 0;
}

.grid-3 {
    grid-template-columns: 1fr 1fr;
}

.rel {
    position: relative;
    z-index: 2;
}

.m-b {
    margin-bottom: 20px;
}

/* Forms */
.form__groups {
    display: grid;
    gap: 20px;
}

.form__group:not(.form__groups > .form__group) > * {
    display: block;
}


    .form__group > * + * {
        margin-top: 5px;
    }

.form-checkbox {
    position: relative;
    overflow: hidden;
}

.form-checkbox__checkbox {
    position: absolute;
    left: -9999em;
}

.form-checkbox__checkbox-label {
    display: flex;
    align-items: center;
}

    .form-checkbox__checkbox-label::before {
        flex-shrink: 0;
        display: block;
        content: "";
        width: 35px;
        height: 35px;
        border: 1px solid #0a2a5e;
        border-radius: 5px;
        margin-right: 15px;
        cursor: pointer;
    }

.form-checkbox__checkbox:checked + .form-checkbox__checkbox-label::before {
    background: url(/assets/check.svg) no-repeat center;
    background-size: 20px 20px;
}

.form-checkbox__checkbox-label a {
    color: #70cbf4;
    text-decoration: none;
    margin-left:3px;
}

.form__input--text,
.form__input--select {
    width: 100%;
    padding: 15px 25px;
    border: 1px solid #dcdcdc;
    border-radius: 5px;
}

.form__input {
    border-color: #dcdcdc;
    font-size: 2rem;
    -webkit-transition: border-color 150ms ease;
    -moz-transition: border-color 150ms ease;
    -o-transition: border-color 150ms ease;
    transition: border-color 150ms ease;
}

.form__label {
    text-transform: uppercase;
    color: #4c4c4c;
}

.is-invalid .form__input,
.is-invalid .form-checkbox__checkbox-label::before {
    border-color: #d40e14;
}

.server-error {
    color: #d40e14;
    padding: 15px 15px 15px 60px;
    border: 1px solid #d40e14;
    font-size: 1.4rem;
    background: url(/assets/warning.svg) no-repeat 15px center;
    background-size: 25px 25px;
}

.form__heading {
    font-size: 4rem;
}

.form__submit--centre {
    margin-right: auto;
    margin-left: auto;
}

.form__checkbox {
    display: flex;
}

.form__submit-container > * + * {
    margin-left: 15px;
}

.btn.form__childbtn{
    font-size:1.5rem;
    min-width:0px;
}

.terms {
    font-size: 13px;
    border: 1px solid #dcdcdc;
    border-radius: 5px;
    padding: 15px;
}

.terms__content > * + * {
    margin-top: 10px;
}

.terms__content {
    color: #4c4c4c;
}

    .terms__content h3 {
        color: #70cbf4;
        text-transform: uppercase;
    }

.terms__content {
    max-height: 300px;
    padding-right: 20px;
    overflow-y: scroll;
}

    .terms__content::-webkit-scrollbar-track {
        -webkit-box-shadow: inset 0 0 3px rgba(0,0,0,0.1);
        background-color: #f9f9f9;
        border-radius: 4px;
    }

    .terms__content::-webkit-scrollbar {
        width: 8px;
    }

    .terms__content::-webkit-scrollbar-thumb {
        background-color: #dcdcdc;
        border-radius: 4px;
    }

.address-field {
    display: none;
}

.book1-field {
    display: none;
}

.front-cover-div {
    display: none;
}

/* Other */
.faux-link {
    cursor: pointer;
}

.visually-hidden {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

/* sm */
@media (min-width: 576px) {
    .module-heading--split {
        max-width: none;
    }
}

/* md */
@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }

    .grid-3 {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .flush {
        padding-right: 20px;
        padding-left: 20px;
    }

    .module-pad {
        padding-top: 50px;
        padding-bottom: 30px;
    }

    .module-heading {
        padding-top: 50px;
        padding-bottom: 30px;
    }

    .section-intro {
        font-size: 2.5rem;
    }

    .form__groups {
        grid-template-columns: 1fr 1fr;
    }

    .form__group {
        grid-column: span 2;
    }

    .form__group--half {
        grid-column: span 1;
        width:100%;
    }

    .form__group .checkboxes-container ~ .error {
        text-align: center;
        margin-top: 0px;
    }

}

/* lg */
@media (min-width: 992px) {
}

/* xl */
@media (min-width: 1100px) {
    [class*="constrain-"] {
        padding-left: 20px;
    }

    .module-pad {
        padding: 100px 0 50px 0;
    }
}

/* xxl */
@media (min-width: 1400px) {
}

.center-text {
    text-align: center;
}