:root {
	--primary-box-shadow: 5px 5px 1em rgba(0, 0, 0, 0.2);
	--primary-border-radius: 4px;
	--secondary-border-radius: 8px;
}

* {
	/* background-color: #C9DAEA; */
	background-color: #CBC1B7;
}

body {
	margin: 0;
}

main {
	width: 90%;
	margin: auto;
	/* using 100 view height to shove the footer to the bottom  */
	min-height: 100vh;
	font-family: Arial, Helvetica, sans-serif;
	display: flex;
	flex-direction: column;
	/* gap: 40px; */
}

a {
	font-family: Arial, Helvetica, sans-serif;
	text-decoration: underline;
	color: black;
}

input{
	font-size: larger;
	border-radius: 4px;
	padding: 4px;
}
label{
	font-size: large;
}

select, option{
	font-size: large;
	padding: 4px;
	border-radius: var(--primary-border-radius);
}

/* admin nav */
#admin-nav {
	width: 100%;
	height: 5vh;
	background-color: #BC6C25;
	display: flex;
	flex-direction: row;
	/* font-size: larger; */

	align-items: center;
	justify-content: space-evenly;
}

#admin-nav>* {
	background-color: unset;
}

nav {
	width: 95%;
	margin: auto;
	height: 25vh;
	font-size: large;
	display: flex;
	flex-direction: row;
	justify-content: space-evenly;
	align-items: center;
	flex-wrap: wrap;
}

.social-link img {
	width: 30px;
}

section {
	margin-top: 30px;
	/* padding: 0 5%; */
}

#nav-tags {
	/* width: 100%; */
	display: flex;
	flex-direction: row;
	justify-content: center;
	flex-grow: 1;
	gap: 2rem;
	align-items: center;
	font-size: medium;

}


#home-link img {
	width: 70px;
	margin-right: auto;
}

#contact-info-wrapper {
	/* margin-left: auto; */
	font-family: Arial, Helvetica, sans-serif;
	display: flex;
	flex-direction: column;
	/* justify-content: center; */
	font-size: medium;
	margin-right: auto;
	/* margin-left: auto; */
}

#contact-form-wrapper {
	display: flex;
	flex-direction: column;
}

#contact-form {
	font-size: larger;
}

#contact-form input {
	border-style: none;
	background-color: #F1ECE6;
	font-size: large;
	margin-bottom: 5px;
}

#contact-form textarea {
	border-style: none;
	background-color: #F1ECE6;
	font-size: large;
	width: 100%;
}

/* admin contact area */

#contact-queries-section {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.contact-query {
	display: flex;
	flex-direction: column;
	background-color: #F1ECE6;
	padding: 10px;
	border-radius: var(--primary-border-radius);
}

.contact-query * {
	background-color: unset;

}

/* Hero section  */

#hero-section {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-evenly;
}

#hero-name-span {
	font-size: large;
	background: unset;
}


#hero-section p {
	width: 90%;
	font-size: large;
}

#hero-section img {

	background: unset;
}

#hero-image {
	height: 100%;
	min-width: 50%;
	/* width: 100%; */
	overflow: hidden;
}


.cta-wrapper {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
	gap: 20px;
}

.cta {
	background-color: #b7d6b4;
	padding: 10px;
	width: 30%;
	max-width: 220px;
	text-align: center;
	border-radius: var(--primary-border-radius);
	font-size: large;
	box-shadow: var(--primary-box-shadow);
}

#cta-services {
	margin-top: 40px;
}

/* Review section */
#reviews {
	display: flex;
	flex-direction: column;
	/* margin: 0 5%; */
	margin-top: 3vh;
}

#reviews-wrapper {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-evenly;
	min-height: 30vh;
	gap: 15px;
}

.review {
	/* background-color: antiquewhite; */
	min-height: 20vh;
	background-color: #F1ECE6;
	padding: 20px;
	border-radius: var(--primary-border-radius);
}

.review p {
	/* background-color: #F1ECE6; */
	background: unset;
	padding: 10px;
	margin: 0;
	font-style: italic;
}

.review-author {
	font-size: larger;
	background: unset;
}

.review a {
	background: unset;
}

.review-dialog{
	/* width: 50%; */

}
.review-dialog a{
	margin-top: 10px;
}


/* FOOTER */
footer {
	display: flex;
	flex-direction: row;
	justify-content: space-evenly;
	background-color: #333;
	margin-top: 30px;
	height: 25vh;
}

footer * {
	background-color: #333;
	color: white;
}

/* coverage section */
#coverage-section {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

#coverage-wrapper {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap-reverse;
	justify-content: space-evenly;
	align-items: center;
}

#map-box {
	/* display: none; */
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

#map-box img {
	max-width: 80%;

}

.location-pin {
	width: 20px;
}

/* booking form */
#admin-booking-form {
	background-color: #F1ECE6;
	display: flex;
	flex-direction: column;
	max-width: 80%;
	padding: 10px;
}

#admin-booking-form>* {
	background-color: #F1ECE6;
	font-size: larger;
}

.info-span{
	background-color: unset;
}

#admin-landing-wrapper {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.timeslot-group label{
	background-color: unset;
}


.admin-link {
	background-color: #E07A5F;
	width: 200px;
	font-size: large;
	padding: 10px;
	text-align: center;
	border-radius: var(--primary-border-radius);
}

.admin-button{
	background-color: #E07A5F;
			/* width: 200px; */
	font-size: large;
	padding: 10px;
	text-align: center;
	border-radius: var(--primary-border-radius);
}

.admin-detail {
	font-size: larger;
	text-decoration: underline;
}

#admin-notes:disabled {
	font-size: larger;
	color: black;
}

/* error / alert  */
.alert {
	position: relative;
	/* So the close button can be absolute */
	padding: 15px 40px 15px 15px;
	/* Extra padding on the right for the X */
	margin-bottom: 20px;
	border-radius: var(--primary-border-radius);
	transition: opacity 0.6s ease, transform 0.6s ease;
	width: fit-content;
}

.close-btn {
	position: absolute;
	top: 50%;
	right: 15px;
	transform: translateY(-50%);
	font-size: 22px;
	font-weight: bold;
	line-height: 1;
	cursor: pointer;
	opacity: 0.6;
	background-color: unset;
	margin-left: 10px;
}

.close-btn:hover {
	opacity: 1;
}

.alert-danger {
	background-color: #FF645E;
	color: white;
}

.alert-success {
	background-color: lightgreen;

}


/* services */
.services-list {
	list-style: none;
	padding: 0;
}

.services-item {}

.service-icon {}

.services-item strong {
	color: #333;
	font-weight: 700;
}

/* Coverage page*/
#coverage-content-wrapper {
	border-radius: var(--primary-border-radius);
	background-color: #F1ECE6;
	box-shadow: var(--primary-box-shadow);
	margin-bottom: 20px;
}

#coverage-text {
	font-size: larger;
	/* width: 60%; */
	padding: 30px;
	background-color: unset;
	/* border-radius: 10px; */
	/* box-shadow: var(--primary-box-shadow); */
}

#coverage-list-wrapper {
	display: flex;
	flex-direction: column-reverse;
	align-items: center;
	flex-wrap: wrap-reverse;
}

#coverage-map {
	border-radius: var(--primary-border-radius);
	max-width: 100%;
	margin: auto;
	box-shadow: var(--primary-box-shadow);

}

#coverage-list {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	max-width: 90%;
	margin-bottom: 20px;
	gap: 6px;
}

/* turn off the desktop view */
#coverage-list-dt {
	display: none;
}


/* Report explanation section  */

#report-explanation-wrapper {
	display: grid;
	grid-template-columns: 1fr;
	/* grid-auto-flow: column; */
	gap: 15px;
	justify-content: center;
	justify-items: center;
	margin-bottom: 100px;
}

#explanation-section-wrapper{
	margin-top: 100px;
}

.explainer-title-wrapper {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 15px;
}

.explainer-title-wrapper img {
	max-width: 50px;
}

.explainer * {
	background: unset;
}

.explainer {
	width: 80%;
	/* background-color: #F1ECE6; */
}

#hero-name-desktop {
	display: none;
}

#hero-image-alt {
	/* display: none; */
	width: 90%;
}

#hero-section div#hero-image-desktop {
	/* width: 50%; */
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;

}

/*  services page  */

#about-text-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;

}

#about-text-wrapper .cta-wrapper {
	display: flex;
	flex-direction: row;
	gap: 15px;
	width: 100%;
}

#about-text-wrapper .cta-wrapper a {
	width: 40%;
	margin-right: 10px;
}


.about-section {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap-reverse;
	align-items: center;
	justify-content: space-evenly;
	background-color: #F1ECE6;
	border-radius: var(--primary-border-radius);
	padding: 15px;
	/* box-shadow: var(--primary-box-shadow); */
	/* width: 80%; */
}

.about-section img {
	background-color: #F1ECE6;
	width: 100%;
	max-width: 450px;
	border-radius: var(--primary-border-radius);
	box-shadow: var(--primary-box-shadow);
}

.about-card-text {
	background-color: unset;
}

.about-card-text h3 {
	background-color: unset;
}

.about-text {
	background-color: #F1ECE6;
	font-size: larger;
	/* width: 40%; */
}


/* SCHEDULE TEST */
.timeslots {
	box-sizing: border-box;
	list-style: none;
	padding: unset;
	margin: unset;
	/* height: 80%; */
	background-color: unset;
	display: flex;
	flex-direction: column;
}

.timeslots li {
	/* height: 50%; */
	display: flex;
	flex-direction: row;
	align-items: center;
	padding-left: 10px;
}


.admin-timeslots{
	box-sizing: border-box;
	list-style: none;
	padding: unset;
	margin: unset;
	/* height: 80%; */
	background-color: unset;
	display: flex;
	flex-direction: column;
	padding-bottom: 10px;
}
.admin-timeslots li{
	display: flex;
	flex-direction: row;
	align-items: center;
	padding-left: 10px;
	margin-top: 10px;
}
.admin-timeslots a{
	background-color: unset;
}

.slot-taken{
	background-color: lightsalmon;
}
.timeslots a {
	background-color: unset;
}

.free {
	background-color: lightgreen;
}

.taken {
	background-color: lightsalmon;
}


/* booking update  */
#booking-update-wrapper>* {
	font-size: large;
}

#booking-update-wrapper input {
	font-size: large;
}

#save-button {
	background-color: rgb(148, 230, 148);
}

.button-delete {
	font-size: large;
	background-color: rgb(227, 80, 80);
	border-style: none;
}

/* login */
#login-form {
	font-size: larger;
}



/* TESTING THE CALENDER */

#calender-nav-wrapper {}

#calender-nav-wrapper a {
	font-size: larger;
}

#calender-nav-wrapper form {
	margin-top: 15px;
	margin-bottom: 15px;
}

.calendar-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 1fr), 1fr));
	flex-wrap: wrap;
	border: 1px solid #ddd;
	min-height: 60vh;
}
.day-string{
	background-color: unset;
	font-weight: bold;
}

.day-name {
	background: #F1ECE6;
	font-weight: bold;
	padding: 10px;
	text-align: center;
	border-bottom: 2px solid #ccc;
	display: none;
}

.day {
	/* padding: 4px; */
	border: 1px solid #F1ECE6;
	min-height: 40px;
	/* text-align: right; */
	flex-grow: 1;
}
.day:has(.slot-taken-1){
background-color: #e4e476;
}
.day:has(.slot-taken-2){
background-color: #f0d278;
}
.day:has(.slot-taken-3){
background-color: #e58957;
}
.day:has(.free){
	background-color: lightgreen;
}
.day:has(.taken){
	background-color: lightsalmon;
}

.day form {
	background-color: unset;
}

.make-enquiry-input {
	background-color: unset;
	border-style: none;
	text-decoration: underline;
}
.make-enquiry-input:hover{
	cursor: pointer;
}


.today {
	background-color: #F1ECE6;
	/* font-weight: bold; */
}

.empty {
	background-color: #F1ECE6;
	display: none;
}

/* NEW CALENDER VIEW */
.slot-taken-1 {
	background-color: #e4e476;
}

.slot-taken-2 {
	background-color: #f0d278;

}

.slot-taken-3 {
	background-color: #e58957;

}



/*########################################### desktop view  */
@media (width > 600px) {
	nav {
		width: 90%;
		flex-direction: row;
	}

	.query-tabs {
		display: flex;
		flex-direction: row;
		width: 50%;
		height: unset;

	}

	#report-explanation-wrapper {
		grid-template-columns: repeat(3, 1fr);
		/* row-gap: 30px; */
		/* background-color: #F1ECE6; */
	}

	.explainer {
		/* max-width: 80vw; */
		background-color: #F1ECE6;
		border-radius: var(--primary-border-radius);
		padding: 10px;
		box-shadow: var(--primary-box-shadow);
	}

	#nav-tags {
		margin-right: auto;
		font-size: larger;
		justify-content: space-evenly;
		margin: 0 10vw;
		padding: 0 3vw;
		/* flex-grow: 0; */
	}

	#hero-name-wrapper {
		display: flex;
		flex-direction: column;
		height: unset;
		background-image: unset;
		background-size: unset;
	}

	#hero-name-span {
		background: unset;
	}

	#home-link img {
		width: 120px;
		height: 120px;
	}


	#contact-info-wrapper {
		font-size: medium;
		margin-left: auto;
	}

	#hero-section {
		flex-wrap: wrap;
	}

	#hero-section div:not(.cta-wrapper) {
		width: 50%;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}

	.cta {
		width: 20%;
	}

	#hero-section div.hero-mobile {
		display: none;
	}

	#hero-section div#hero-image-desktop #hero-image-alt {
		display: flex;
		width: 65%;
		overflow: hidden;
	}

	#hero-name-desktop {
		/* display: flex; */
		font-size: xx-large;
		margin-left: 20px;
	}

	#hero-section p {
		font-size: larger;
		width: 70%;
	}


	/* reviews */
	#reviews{
		margin-top: 150px;
		
	}
	.review {
		max-width: 25%;
		box-shadow: var(--primary-box-shadow);
	}

	#map-box {
		width: 50%;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	#map-box img {
		width: 80%;
	}

	/* services page  */
	.about-section {
		width: 80%;
	}

	.about-card-text {
		width: 50%;
	}

	.about-text {
		/* width: 50%; */
		font-size: larger;
		line-height: 1.3rem;
	}

	#about-text-wrapper .cta-wrapper {
		display: flex;
		flex-direction: row;
		gap: 15px;
		width: 80%;
	}

	#about-text-wrapper .cta-wrapper a {
		width: 20%;
		margin-right: 10px;
	}


	/* coverage  */

	#coverage-content-wrapper {
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-evenly;
		gap: 15px;
		margin-bottom: 30px;
		background-color: #F1ECE6;
		border-radius: var(--primary-border-radius);
		box-shadow: var(--primary-box-shadow);
		max-width: 60%;
		padding: 10px;

	}

	#coverage-text {
		font-size: larger;
		width: 60%;
	}

	#coverage-list-wrapper {
		flex-direction: row;
		justify-content: center;
		gap: 30px;
	}

	#coverage-map {
		margin: unset;
		box-shadow: var(--primary-box-shadow);
	}

	#coverage-list {
		display: none;
	}

	#coverage-list-dt {
		max-width: 35%;
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		/* margin-top: 10px; */
		gap: 6px;
		font-size: large;
		background-color: #F1ECE6;
	}

	.location-tag {
		background-color: unset;
	}

	.location-pin {
		background-color: unset;
		width: 20px;
	}

	/* desktop calender */
	.calendar-grid {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
		flex-wrap: wrap;
	}

	/* .empty {
		display: block;
	} */

	/* contact form  */
	#contact-form textarea {
		width: 40%;
	}
}

@media(width > 1200px) {
	.calendar-grid {
		grid-template-columns: repeat(7, minmax(min(150px, 100%), 1fr));
	}

	.day-name{
		display: block;
	}
	.empty{
		display: block;
	}
}

/* small mobiles */
@media (width < 350px) {
	nav {
		margin-top: 20px;
		gap: 20px;
		height: unset;
	}
}

