/* Search form */
.main-search-wrap {
	padding:.5rem 0;
}

.form-group .input-group .form-control[name="day"] {
	flex-flow:row!important;
	-webkit-flex-flow:row!important;
}

.form-inline {
	display:inline-grid;
}

.bootstrap-timepicker-widget table td input {
	width:58px;
}

input.input-suburb {
	width:250px!important;
}

input.time {
	width:95px!important;
}

select#distance-radius {
	border-radius:0 .25rem .25rem 0;
	border-left:none;
}

select#select-day {
	border-radius:.25rem 0 0 .25rem;
	border-right:none;
}

/* Search Results */
/* .query-summary {
	display: none;
  }*/
.results .query-summary {
	display: inline-block;
	line-height: 1.5em;
}
article.result {
	opacity:1;
}
article.result h3 .read-more {
	display: inline-block;
	width: 30px;
	height: 30px;
	line-height: 30px;
	text-align: center;
  margin-left: -0.4em;
}
article.result:hover {
	opacity:.9;
}

article.result[data-include-in-results="true"] {
	opacity:1;
}

article.result[data-include-in-results="true"] .read-more {
	display:none;
}


article.result[data-include-in-results] address,article.result[data-include-in-results] h5,article.result[data-include-in-results="false"] table {
	display:none;
}

article.result[data-include-in-results="true"] p.currently-closed {
	display:none;
}

article.result[data-include-in-results="true"] address,article.result[data-include-in-results="true"] h5 {
	display:block;
}

article.result[data-include-in-results="true"] table[data-day] {
	display:table;
}

p.no-results {
	display:none;
}

.result.show-details table {
	display:table!important;
}

.result.show-details .result-details address,.result.show-details .result-details h5 {
	display:block;
}

/* Google Translate */
#google_translate_element {
	padding:5px 0;
}

/* Main Layout and Styles*/
h1 {
	font-size:2rem;

}

h1.text-center {
	padding:0 3rem;

}

header h1 {
	font-size:1.45rem;
}

header h3 {
	font-size:1.3rem;
}

h3,h4 {
	font-size:1.25rem;
}

header {
	padding:15px 0 10px;
	border-bottom:solid 1px rgba(225,225,225,.5);
}

header h1.sitename {
	font-size:1.2rem;
	text-transform:uppercase;
}

header,.navy,.home,footer {
	background-color:#243d77;
	color:#fff;
}

header a {
	color:#fff!important;
}

.uppercase {
	text-transform:uppercase;
}

.grey {
	background-color:#ccc;
	color:#333;
	text-transform:uppercase;
}

.blue {
	background-color:#2196F3!important;
}

.red,.emergency {
	background-color:#ea2020;
	color:#fff;
}

.green,.more-information {
	background-color:#2a9130;
	color:#fff;
}

.orange,.gp-or-dentist {
	background-color:#eb7e24;
	color:#fff;
}

.purple,.pharmacist {
	background-color:#4e1e78;
	color:#fff;
}

.light-blue,.self-care {
	background-color:#2196F3;
	color:#fff;
}

footer {
	padding:10px 0;
	font-size:.85rem;
}

footer .text-center:last-child article.contacts {
	border-bottom:none;
	padding-bottom:0;
	margin-bottom:0;
}

footer .row p {
	text-align:center;
}

.copyright,.disclaimer {
	text-align:center;
}

footer a {
	color:#fff!important;
	text-decoration:underline;
}

/* Navigation */
.navbar-inverse .navbar-toggler {
	border:none;
}

.navbar {
	box-shadow:0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);
}

.navbar-inverse .navbar-nav .nav-link {
	color:rgba(255,255,255,1);
}

#nav-sub li {
	padding:0 15px;
}

.nav-item {
	border-bottom:solid 1px #fff;
}

/* Home Page */
.cta {
	padding:0;
}

.cta,.cta a,.cta a:visited {
	color:#fff;
	text-decoration:none;
}

.condition {
	border-right:solid 1px #fff;
}

.action:hover {
	opacity:.75;
}

.action {
	text-transform:uppercase;
}

.action,.condition {
	float:left;
	width:48%;
}

.action.icon {
	background-position:10px center;
	background-repeat:no-repeat;
	background-size:30px;
	padding-left:40px;
	padding-right:10px;
}
.action.icon.red {
	background-image:url(/images/emergency.png);
	}
.action.icon.green {
	background-image:url(/images/help.png);
	}
.action.icon.purple {
	background-image:url(/images/pharmacist.png);
	}
.action.icon.orange {
	background-image:url(/images/dentist.png);
	}
.action.icon.blue {
	background-image:url(/images/self-care.png);
	}


.go {
	float:left;
	width:2%;
}
.go .fa-4x {font-size: 3em;}
.action h5,.condition h5 {
	padding:.75rem;
	margin:0;
	font-size:1rem;
}

.container .row.cta:last-child {
	border-radius:0 0 15px 15px;
}

/* Page Sections */
section.main {
	padding:1.5rem 0;
}

section.service-selector {
	padding:0;
	padding-bottom:30px;
}

section.contacts {
	padding:30px 0;
}

.contact-details {
	background-color:#333D47;
	color:#fff;
	border-right:solid 1px #fff;
	font-size:.75rem;
	padding:1rem;
}

.contact-details:last-child {
	border:none;
}

.contact-info-list {
	margin-bottom: 3rem;
}

/* Information Contacts */
.contact-info {
	border-bottom:solid 1px #efefef;
	padding-bottom:10px;
	margin-bottom:10px;
}
.contact-info h5 {
  display: inline-block;
  line-height: 1.5em;
  margin-bottom: 0;
}
.contact-info .contact-website {
	white-space: nowrap;
}

/* Footer Logos */
img.aphn-logo {
	width:80px;
	text-align:center;
	margin:20px 0;
}

img.ag-logo {
	width:100px;
	text-align:center;
	margin:20px 0;
}

.modal-backdrop.show {
	background-color: #333;
    opacity: 0.9;
}

/* hide emergency hospital from drop down list */
/*
#select-category option[value="10"] {
	display: none !important;
}*/

/* hide certain elements for gp home visiting service */
html[data-search-category="6"] .no-results,
html[data-search-category="6"] .result .result-details .view-on-map,
html[data-search-category="6"] .result .result-details .view-on-map-icon,
html[data-search-category="6"] .result .result-right-col * {
	display: none !important;
}
html[data-search-category="6"]  .result .result-details address,
html[data-search-category="6"]  .result .result-details h5 {
	display: block;
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
	header {
		padding:20px 0;
		border-bottom:none;
	}

	header h1.sitename {
		font-size:1.8rem;
		text-transform:none;
	}

	.action h5,.condition h5 {
		padding:1rem;
		margin:0;
		font-size:1.25rem;
		line-height:1.25rem;
	}

	.main-search-wrap {
		padding:3rem 0;
	}

	section.service-selector {
		padding:1.75rem 0;
	}

	section.service-selector h4 {
		padding:1rem;
		color:#333;
		margin:0;
	}

	section.results {
		padding:1.75em 0;
	}



	.disclaimer {
		text-align:left;
	}

	footer .row p {
		text-align:left;
	}

	h3.intro {
		padding:0 0 1.5rem;
	}

	.contact-details {
		border-bottom:none;
		border-right:solid 1px #fff;
		padding:1rem;
	}

	.contact-details:last-child {
		border:none;
	}

	.contact-details a {
		color:#fff;
	}

	.action.icon {
		background-position:20px center;
		background-repeat:no-repeat;
		background-size:40px;
		padding-left:60px;
	}
}

@media (min-width: 320px) and (max-width: 640px) {
	.main-search-wrap .form-inline {
		max-width: 100%;
		display: block;
	}
	.main-search-wrap [type="submit"] {
		width: 100%;
		display: block;
	}
	/* remove white gap on right */
	footer {
		overflow-x: hidden;
	}
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
	.form-inline {
		display:inline-grid;
	}
footer .row .copyright p {
		text-align:right;
	}

}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
	.form-inline {
		display:inline-flex;
	}

	.action h5,.condition h5 {
		padding:1.25rem;
		margin:0;
		font-size:1.5rem;
		line-height:1.75rem;
	}

	.action.icon {

		background-position:20px center;
		background-repeat:no-repeat;
		background-size:50px;
		padding-left:65px;
	}
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {

}

@media (max-width: 640px){
	.results h1 {
		margin-top: 0.5em;
	}
	.results .query-summary {
		line-height: 1.4em;
		font-size: 16px;
	}
	.results .result h3 {
		display: inline-block;
		font-weight: 600;
		line-height: 1.3em;
	}
	.results .result .result-details h4 {
		font-size: 1.3rem;
	}
}