/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
	font-family: 'Montserrat', sans-serif;
	box-sizing: border-box;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
	background-color: #f9f9f9;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

* {
	font-family: 'Montserrat', sans-serif;
	box-sizing: border-box;
}

.container {
	width: 100%;
	max-width: 1170px;
	margin: 0 auto;
	padding: 0 15px;
}

header {
	text-align: center;
	margin: 30px 0 40px 0;
}

h1 {
	font-family: 'Montserrat', sans-serif;
	font-size: 48px;
	font-weight: 600;
	line-height: 1.1;
}

/* Filter section styling */
.filter {
    background: #f5f5f5;
    padding: 20px 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #eaeaea;
}

.filter-inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
	flex-direction: column;
}

.filter-title {
    display: flex;
    align-items: center;
	justify-content: center;
	margin-bottom: 15px;
    width: 100%;
}

.filter-title i {
    color: #03ba48;
    margin-right: 10px;
    font-size: 20px;
}

.filter-title h3 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.filter-select {
    flex: 1;
    margin: 0 0 0 10px;
    max-width: 300px;
    min-width: 250px;
    position: relative;
}

.filter-select-container {
    display: flex;
}

.filter-select select {
    width: 100%;
    padding: 12px 15px 12px 36px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    appearance: none;
    color: #444;
    font-weight: 500;
	font-size: 14px;
}

.filter-select select:focus {
    outline: none;
    border-color: #03ba48;
    box-shadow: 0 0 0 2px rgba(3, 186, 72, 0.1);
}

.filter-select select:hover {
    border-color: #03ba48;
}

/* Add icons for the filter selects */
#filter-country {
    background-position: 10px center, right 10px top 50%;
    background-repeat: no-repeat, no-repeat;
}

#filter-areas {
    background-position: 10px center, right 10px top 50%;
    background-repeat: no-repeat, no-repeat;
}

#filter-country, 
#filter-areas {

}

.filter-select label {
	display: block;
	color: #333;
	margin-bottom: 5px;
	font-weight: 500;
}

/* Results section */
.results {
	margin: 30px 0;
}

.results .list {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.results .list .item {
	flex: 0 1 calc(50% - 10px);
	min-width: 300px;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	background-color: white;
	margin-bottom: 20px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.results .panel {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.results .item:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

/* Card header styling */
.results .panel .heading {
	background-color: #03ba48;
	color: white;
	padding: 15px 20px;
	font-size: 1.3em;
	line-height: 1.4em;
	font-weight: 600;
}

/* Card body styling */
.results .panel .panel-body {
	padding: 20px 20px 0;
	flex: 1 1 auto;
}

/* Contact info styling */
.contact-info {
	display: flex;
	align-items: center;
	margin-bottom: 12px;
}

.contact-info i {
	width: 20px;
	margin-right: 12px;
	color: #555;
	font-size: 16px;
}

/* Address block styling */
.address-block {
	display: flex;
	margin: 12px 0;
}

.address-icon {
	margin-right: 16px;
	color: #555;
}

.fa-envelope:before {
	font-size: 14px;
}

.address-content {
	flex: 1;
	min-height: 120px;
}

.address-content p {
	margin: 0 0 5px 0;
	line-height: 1.4;
}

/* Areas served styling */
.areas-served {
	margin: 15px 0;
}

.areas-served-title {
	font-weight: 600;
	margin-bottom: 8px;
}

.areas-label {
	display: inline-block;
	background-color: #f0f0f0;
	padding: 5px 10px;
	border-radius: 4px;
	margin-right: 5px;
	margin-bottom: 5px;
	font-size: 0.9em;
}

/* Location styling */
.location-info {
	display: flex;
	align-items: center;
	margin: 15px 0;
}

.location-info i {
	width: 20px;
	margin-right: 12px;
	color: #555;
}

/* Social icons styling */
.social-icons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.icon-circle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background-color: #f0f0f0;
	border-radius: 50%;
	color: #555;
	text-decoration: none;
	transition: all 0.3s ease;
}

.icon-circle:hover {
	background-color: #03ba48;
	color: white;
}

.container p.description {
	margin: 25px 40px 0 40px;
	font-size: 18px;
	line-height: 20px;
	text-align: left;
}

/* Button styles */
#myBtn {
    background-color: #03ba48;
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    max-width: 200px;
    margin-bottom: 15px;
    display: none;
}

#myBtn:hover {
    background-color: #2c5d24;
}

/* Modal styling */
/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
	width: 80%; /* Could be more or less, depending on screen size */
	height: 80%;
    overflow: scroll;
}

/* The Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#list li {
	padding: 15px;
	border-bottom: 1px solid #a7a7a7;
}

#list {
	text-align: center;
	margin-top: 15px;
}

#myBtn {
	display: none;
}

.no-results {
    text-align: center;
}

#reset-filters {
	background-color: #03ba48;
	color: #ffffff;
	border: 1px solid #03ba48;
	padding: 12px 15px;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 500;
	margin-top: 15px;
	transition: all 0.2s ease;
}

.reset-filters:hover {
	background-color: #e9e9e9;
	border-color: #ccc;
}

.filter-select::after {
    content: "\f078";
    font-family: FontAwesome;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #4CAF50;
    pointer-events: none;
    font-size: 12px;
}

.panel-footer {
	padding: 15px 20px;
	border-top: 1px solid #eaeaea;
	background-color: #f9f9f9;
	margin-top: auto;
	display: flex;
	justify-content: flex-start;
}

.copyright {
	text-align: center;
	padding: 20px 0;
	margin-top: 30px;
}

.copyright p {
	font-size: 14px;
	color: #666;
}

a.website-link {
    color: #0096FF;
}

.tick-list {
	list-style: none;
    padding-left: 0;
    font-size: 18px;
    line-height: 20px;
    column-count: 1;
    text-align: left;
    margin: 20px 40px 0;
}

.tick-list li {
	margin-left: 1.2em;
}

.tick-list li::before {
	content: "✔";
	color: green;
	font-weight: bold;
	display: inline-block;
	width: 1.2em;
	margin-left: -1.2em;
}



/* Responsive styles */
@media only screen and (max-width: 768px) {
    
	.filter-inner {
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
		flex-direction: column;
	}

	.filter-title {
		display: flex;
		align-items: center;
		width: 100%;
		justify-content: center;
		margin-bottom: 10px;
	}

	.filter-select-container {
		display: flex;
		flex-direction: column;
		gap: 10px;
	}

	.contact-info {
		word-break: break-word;
	}
	
	.results .list .item {
        flex: 1 1 100%;
    }
    
    h1 {
        font-size: 32px;
    }
    
    .filter-select {
        max-width: 100%;
        width: 100%;
        margin-right: 0;
    }

	.tick-list {
		column-count: 1;
		margin: 25px 40px 0 40px;
		line-height: 24px;
	}
}

@media only screen and (max-width: 600px) {
    header {
        margin: 20px 0;
    }

	
	.tick-list { 
		font-size: 18px;
		margin: 20px 10px 0;
	}
    
    .container p.description {
        margin: 20px 10px 0 10px;
        font-size: 18px;
        line-height: 24px;
    }
}

@media only screen and (max-width: 480px) {
    .filter {
        padding: 20px;
    }
    
    h1 {
        font-size: 28px;
    }
    
    .filter-title h3 {
        font-size: 16px;
    }
}