@import url(https://fonts.bunny.net/css?family=barlow:300,300i,500,800|pt-sans:400,700);

:root {
	/* Variables */
	--borderColor: #eee;
	--darkColor: #1D1A31;
	--lightColor: #ffffff;
	--greyColor: #f7f7f7;	
	--darkGreyColor: #979797;
	--bodyText: 'Barlow', sans-serif;
	--headerText: sans-serif;
	--textColor: #000000;
	--buttonColor: #F98A07;
	--buttonDisabledColor: #FCF5ED;
	--lightOrange: #FCF5ED;
	--darkOrange: #FA581C;
    --orange: #F98A07;
	--errorColorLight: pink;
	--errorColor: red;
    --headerBackground: #000000;
    --textColorWhite: #ffffff;
    --blockOne: #F2EFEA;
    --blockTwo: #FBF7E4;
    --blockThree: #FFFFFF;
}

/* RESET! */

* {
	background: none repeat scroll 0 0 transparent;
	border: medium none;
	border-spacing: 0;
	font-weight: normal;
	line-height: 1.4rem;
	list-style: none outside none;
	margin: 0;
	padding: 0;
	text-align: left;
	text-decoration: none;
	text-indent: 0;
}

/* Html */

html {
	background-color: var(--backgroundColor);
	color: var(--textColor);
	font-family: var(--bodyText);
	margin: 0;	
	padding: 0;
	padding-bottom: 6rem;
	height: 100vh;
}

body {
	display: flex;
	justify-content: flex-start;
	flex-direction: column;
}

header, footer {
    background-color: var(--headerBackground);
    color: var(--textColorWhite);
    justify-content: space-between;
    padding: 1rem;
}

header h1 {
    font-size: 1.8rem;
    margin-left: 5rem;
}
header a {
    color: var(--textColorWhite);
}
header p, header div {
    font-size: 1.2rem;
}
header .logo {
    width: 300px;
}
header .logo img {
    width: 100%;
}
header .tagline {
    font-family: Barlow;
    font-size: 1.3rem;
    line-height: 1.5rem;
    width: 12rem;
    letter-spacing: 0.5px;
    margin-top: .5rem;
}
header .phone {
    font-family: 'barlow';
    font-size: 2.25rem;
    line-height: 2.5rem;
}
header .email {
    margin-top: 0.5rem;
}

.rating {
    background-image: url(../images/rating.png);
    background-repeat: no-repeat;
    background-size: cover;
    height: 2.5rem;
    text-align: right;
    color: var(--textColorWhite);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem;
    box-sizing: border-box;
    font-size: 1.2rem;
}

header,
div.row,
form section div.row,
form section div.questions.row {
	display: flex;
	flex-direction: row;
    align-items: flex-start;
}
div.row,
form section div.row,
form section div.questions.row {
	gap: 0.5rem;
}
div.column {
	display: flex;
	flex-direction: column;
}
.space-between {
	justify-content: space-between;
}
.center {
    justify-content: center;
}
.right {
    align-items: flex-end;
    align-self: flex-end;
}
.right div, .right p {
    align-self: flex-end;
}
nav {
    font-family: 'PT Sans';
    padding: 0.8rem 1rem;
}
nav li {
    display: inline-block;
    margin-right: 1rem;
    margin-left: 0rem;
}
nav a {
    font-weight: 700;
    color: var(--textColor);
}

h1 {
    font-size: 2rem;
    line-height: 2.2rem;
    margin-bottom: 2rem;
}

h2 {
	font-weight: 500;
	font-size: 1.3rem;
	padding-bottom: 1rem;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 0.3rem;	
}

p, ul {
    font-weight: 300;
    margin-bottom: 1rem;
}
li { 
    margin-left: 1rem;
    list-style: disc;
}
li::marker {
    color: var(--darkOrange);
    font-size: 1.8rem;
}

input, textarea, select {
	font-size: 1rem;
}

input, textarea, select {
	font-weight: 300;
	min-width: 0; /* Stops right-hand elements in this design exceeding their bounding element and pushing into label */
}
select {
	margin-bottom: 1rem;
	margin-top: .25rem;
}
label {
    font-weight: 300;
}

/* main {
    padding-top: 1rem;
} */

section {
    max-width: 60rem;
    margin: auto;
    margin-top: 1rem;
    box-sizing: border-box;
    padding: 1rem;
}

ul.emphasis {
    margin-bottom: 1rem;
}
ul.emphasis li {
    font-size: 1.3rem;
    line-height: 1.8rem;
    font-weight: 300;
    margin-bottom: 0.3rem;
    list-style: none;
    margin-left: 0;
}
ul.emphasis li::before {
    content: url(../images/tickbul.png);
    vertical-align: middle;
    margin-right: 0.5rem;
}

.teaser {
    padding: 1rem 0;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}
.teaser img { 
    width: 150px;
    margin-right: 2rem;;
}
.teaser p {
    font-family: 'PT Sans';
    font-size: 1.3rem;
    line-height: 1.8rem;
    max-width:  25rem;
}

.block {
    margin-top: 1rem;
    padding: 4rem 4rem 3rem 4rem;
}
.block.form {
    background-color: var(--lightOrange);
    padding: 2rem;
    margin-top: 0;
}
.block.form p {
    padding: 0.5rem;
    margin-bottom: 0;
}
.block.one {
    background-color: var(--blockOne);
}
.block.two {
    background-color: var(--blockTwo);
}
.block.three,
.block.four {
    background-color: var(--blockThree);
    padding: 0;
}
.block h2 {
    margin-bottom: 1rem;
}
.block.three h2 {
    color: var(--darkOrange);
}
.block p, .block ul {
    display: block;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}
.block ul li {
    font-size: 1.2rem;
    margin-left: 1.6rem;
}

.break {
    background-color: var(--orange);
    max-height: 10rem;
    display: flex;
    overflow: hidden;
    margin-top: 1rem;
    margin-bottom: 2rem;
}
.break img {
    max-width: 60rem;
    overflow: hidden;
    margin: auto;
}

/* Enquiry form styling */

form div input[type="text"],
form div input[type="password"],
form div input[type="email"],
form div input[type="phone"],
form div textarea {
	flex: 1;
	border: 1px solid var(--borderColor);
	padding: 0.3rem;
	align-self: center;
    background-color: var(--lightColor);
    margin: 0.3rem;
    min-width: 18rem;
}
form div input[type="checkbox"] {
    align-self: center;
}
form div input:disabled, form div textarea:disabled {
	border: none;
}
form div textarea {
	align-self: stretch;
    /* min-width: 25rem; */
    min-height: 6.5rem;
    padding: 0.5rem;
}
form .row.header {
    margin-bottom: 2rem;
}
form .set div {
    margin: 0.3rem;    
}
/* form .set p {
    margin-bottom: 0.3rem;
} */
form .set > .row {
    gap: 0.8rem;
}
form .textarea {
    display: flex;
}
form div.select {
    position: relative;
    border-radius: 0.25em;
    padding: 0.2em 0.5em;
    cursor: pointer;
    line-height: 1.2;
    background-color: #fff;
    /* background-image: linear-gradient(to top, #f9f9f9, #fff 33%); */
    height: 1.5rem;
    /* width: 3rem !important; */
    flex-direction: row !important;
    /* font-weight: 500; */
    margin: 0.3rem;
    border: 1px solid var(--greyColor);
    font-size: 1.1rem;
}
form div.select::after {
    content: "";
    justify-self: end;
    width: 0.8em;
    height: 0.5em;
    background-color: var(--darkGreyColor);
    clip-path: polygon(100% 0%, 0 0%, 50% 100%);
    position: absolute;
    top: .6rem;
    right: .5rem;
}
form div.select select {
    appearance: none;
    background-color: transparent;
    border: none;
    padding: 0.1em 1em 0.1em 0.1em;
    margin: 0;
    font-family: inherit;
    font-size: 1.1rem;
    cursor: inherit;
    line-height: inherit;
    z-index: 1;
    outline: none;
    /* font-weight: 500; */
    width: 100%;
}
a.button,
input.button,
button {
	font-size: .9rem;
	padding: 0.3rem 0.8rem;
	border-radius: .3rem;
	font-weight: 500;
	background-color: var(--greyColor);
	color: var(--textColor);
	margin-right: 0.3rem;
	cursor: pointer;
}
.buttons.right {
	display: flex;
	align-items: flex-end;
	flex-direction: column;
	padding-bottom: 0;
}
.buttons.right button {
	margin-right: 0rem;
	margin-left: 0.3rem;
}
a.button,
input.button,
button:hover {
	background-color: var(--darkGreyColor);
	color: var(--lightColor);
}
a.button.primary,
input.button.primary,
button.primary {
	background-color: var(--buttonColor);
	color: var(--lightColor);
}
a.button.primary:hover,
input.button.primary:hover,
button.primary:hover {
	background-color: var(--darkOrange);
}

p.error {
    margin: 1rem;
    color: var(--errorColor); 
}

input.error, textarea.error {
    border: 1px solid var(--errorColor) !important; 
}

/* .submission {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 1rem;
}

.submission p {
    margin-left: .5rem;
    margin-bottom: 0.5rem;
} */

footer {
    margin-top: 2rem;
}

@media screen and (max-width: 800px) {
    header .logo {
        width: 150px;
    }
    header h1 {
        margin-left: 0;
        font-size: 1.2rem;
    }
    header .tagline {
        font-size: 1rem;
        width: 10rem;
        margin-top: 0rem;
    }
    header .phone {
        font-size: 1.5rem;
    }
    header div, header p {
        font-size: 1rem;
    }
    form .row.header {
        margin-bottom: 0;
    }
    div.row.collapse {
        flex-direction: column;
    }
}

@media screen and (max-width: 600px) {
    header {
        flex-direction: column;
    }
    header h1 {
        margin-bottom: 0;
    }
    .rating {
        font-size: 1rem;
    }
    nav li {
        display: block;
        margin-bottom: 0.3rem;
    }
    .teaser {
        padding: 0;
    }
    .teaser img {
        margin-right: 1rem;
    }
    .teaser p {
        font-size: 1.2rem;
        line-height: 1.5rem;
    }
    .block {
        padding: 2rem 2rem 1rem 2rem;
    }
    ul.emphasis li {
        font-size: 1.3rem;
        line-height: 1.5rem;
        padding-left: 2rem;
    }
    ul.emphasis li::before {
        margin-left: -2.1rem;
    }
    h1 {
        font-size: 1.8rem;
        line-height: 2rem;
        margin-bottom: 1rem;
    }
}

.searchbar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.searchbar .button-container {
    display: flex;
    justify-content: flex-start;
}

.searchbar .filters {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.searchbar .filters > div {
    flex: 1;
}

.searchbar .filters > div:last-child {
    flex: 0 0 auto;
}

form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

form .form-group.row {
    flex-direction: row;
}

form .form-group label  {
    font-weight: 500;
    margin-bottom: 0.2rem;
}

a.button:disabled,
input.button:disabled,
button:disabled,
a.button.disabled,
input.button.disabled,
button.disabled {
	color: var(--darkGreyColor);
	background-color: var(--greyColor);
}
a.button.primary.disabled,
a.button.primary:disabled,
input.button.primary.disabled,
input.button.primary:disabled,
button.primary.disabled,
button.primary:disabled {
	background-color: var(--buttonDisabledColor);
}

.error-content {
    min-height: 50vh;
}