:root {
	--bg: #ffffff;
	--card: #ffffff;
	--ink: #222;
	--muted: #666;
	--brand: #005ea5;
	--accent: #0b7;
	--error: #b00020;
	--border: #2d83d3;
}

html, body {
	height: 100%;
}

fieldset legend {
	font-weight: bold;
	color: #2d83d3;
	font-size: 16px;
}

body {
	margin: 0;
	/*font: 16px/1.5 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;*/
	font: 16px/1.5'Articulat', Arial, sans-serif;
	color: var(--ink);
	background: var(--bg);
	border-color: darkblue;
}

.swiftcompleteResults {
	color: black;
}

.noResultsText {
	color: black;
}

.container {
	max-width: 900px;
	margin: 0 auto;
	padding: clamp(12px,3vw,24px);
}

.card {
	padding-left: 20px;
	padding-right: 20px;
	padding-bottom: 20px;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 12px;
	box-shadow: 0 2px 6px rgba(0,0,0,.06);
}



header {
    margin-bottom: 30px;
}

header img {
    display: block;
    width: 180px;
    height: auto;
    margin-bottom: 20px;
}

header h1 {
    margin: 0 0 10px 0;
    font-size: 42px;
    font-weight: 700;
}

header p {
    margin: 0;
    line-height: 1.5;
}
.grid {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(12,1fr);
	align-items: center;
}

.col-12 {
	grid-column: span 12;
}

.col-6 {
	grid-column: span 6;
}

.col-5 {
	grid-column: span 5;
}

.col-4 {
	grid-column: span 4;
}

.col-3 {
	grid-column: span 3;
}

.col-8 {
	grid-column: span 8;
}

.col-9 {
	grid-column: span 9;
}

.col-10 {
	grid-column: span 10;
}

.button {
	appearance: none;
	border-width: 1px;
	border-radius: 10px;
	padding: 10px 16px;
	font-weight: 600;
	cursor: pointer;
	margin: 2px 2px 2px 2px;
	display: inline-flex;
	color: #2d83d3;
}

#getQuoteButton {
	background-color: #055099;
	color: white;
	border: none;
	border-radius: 10px;
	padding: 10px 25px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	width: auto;
	float: left;
}

#getQuoteButton:disabled {
	background: gray;
	cursor: wait;
}

#Search_addr2,
#Search_addr1,
#Search_contactAddr {
	background-color: #055099 !important;
	color: white !important;
	border: none !important;
	border-radius: 8px !important;
	padding: 10px 20px !important;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
}

#addr2Srch,
#addr1Srch,
#contactAddrSrch {
	background-color: #E8F4FF;
}

input, select, textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: #fff;
	font-size: 16px;
}

textarea {
	margin-bottom: 20px;
	font-size: 14px;
	font: inherit;
}

.radiobutton {
	margin-right: 30px;
}

input[type="radio"] {
	-webkit-appearance: none;
	appearance: none;
	width: 24px;
	height: 24px;
	margin: 0 8px 0 0;
	border: 2px solid var(--border);
	border-radius: 50%;
	display: inline-grid;
	place-content: center;
	background: #fff;
	cursor: pointer;
}

input[type="radio"]::before {
	content: "";
	width: 12px;
	height: 12px;
	border-radius: 50%;
	transform: scale(0);
	transition: transform 120ms ease-in-out;
	background: #005ea5;
}

input[type="radio"]:checked::before {
	transform: scale(1);
}

input[type="checkbox"]:focus,
input[type="radio"]:focus {
	outline: 2px solid #99c7f0;
	outline-offset: 2px;
}

select:disabled {
	background: aliceblue;
}

input[type="checkbox"] {
	width: auto;
	margin-right: 8px;
	vertical-align: middle;
}

/* Name + Email section */
#nameEmail .name-row {
	display: flex;
	gap: 10px;
	width: 100%;
}

#nameEmail .field.title {
	flex: 0 0 120px;
}

#nameEmail .field.name {
	flex: 1 1 auto;
	min-width: 0;
}

.top-row {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid #2d83d3;
}

.address-lookup {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.price-wrap {
	flex: 0 0 220px;
	display: flex;
	flex-direction: column;
}

.address-lookup label,
.price-wrap label {
	display: block;
	margin-bottom: 6px;
}

.address-lookup input,
.price-wrap input {
	display: block;
	width: 100%;
	box-sizing: border-box;
}

.currency-input {
    position: relative;
}

.currency-symbol {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

.currency-input input {
    padding-left: 25px; /* make space for £ */
}

label {
	display: block;
	margin-bottom: 6px;
}

@media (max-width: 720px) {
	.col-6, .col-4, .col-3, .col-8, .col-9 {
		grid-column: span 12;
	}

	header {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		padding-top: 20px;
	}
	
	header h1 {
		margin-top: 0px;
		margin-bottom: 0px;
	}
	
	header img {
		float: none;
		display: block;
		margin-top: 10px;
		margin-bottom: 10px;
	}

	body {
		font-size: 18px;
	}



	label,
	fieldset legend {
		font-size: 18px;
	}

	input,
	select,
	textarea {
		font-size: 20px;
		padding: 16px;
		border-radius: 10px;
	}

	.grid {
		gap: 16px;
	}

	.block {
		margin-bottom: 12px;
	}

	#nameEmail .name-row {
		flex-direction: column;
		gap: 0px;
	}
	#nameEmail [style*="width"] {
		width: 100% !important;
	}

	#nameEmail .name-row {
		flex-wrap: wrap;
		flex-direction: column;
		gap: 12px;
	}

	#nameEmail .field.title,
	#nameEmail .field.name {
		width: 100% !important;
		flex: 1 1 auto;
	}

	#nameEmail input,
	#nameEmail select {
		width: 100% !important;
		max-width: 100%;
	}

	#nameEmail .address-lookup > div[style*="display: flex"] {
		flex-direction: column;
		gap: 10px;
	}

	#Search_contactAddr {
		width: 100%;
	}

	#nameEmail .field.title,
	#nameEmail .field.name {
		flex: 1 1 auto;
		width: 100%;
	}

	.top-row {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
	}

	.price-wrap {
		width: 100%;
		flex: 1 1 auto;
	}

	.button {
		width: 100%;
		justify-content: center;
		padding: 16px;
		font-size: 18px;
	}
	
	.radiobutton {
		display: flex;
		align-items: center;
	}
	
	input[type="radio"] {
		width: 20px;
		height: 20px;
		margin: 0;
	}
	
	.radiobutton label {
		display: flex;
		align-items: center;
		gap: 8px;
	}

	.quote-options {
		padding-top: 10px;
	}
	
	.quote-options h2 {
		margin: 0;
	}

	.quote-options p {
		margin: 5px 0 15px 0;
	}

	
	#saleAddress .col-8,
	#purchaseAddress .col-8 {
		grid-column: 1 / -1;
	}
}

@media (max-width: 480px) {
	.quote-options {
		grid-template-columns: 1fr;
	}
}

@media (min-width: 481px) and (max-width: 720px) {
	.quote-options {
		grid-template-columns: 1fr 1fr;
	}
}
	
fieldset {
	min-height: 200px;
	margin-top: 15px;
	margin-bottom: 15px;
	border-color: #2d83d3;
	border-radius: 10px;
	padding: 15px;
}

.checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.checkbox-label input {
	margin-top: 4px;
	flex: 0 0 auto;
}

.checkbox-label span {
	display: block;
}

.newbuild {
    display: flex;
	flex-direction: column;
    /*align-items: center;*/
    gap: 8px;
    margin-top: 10px; /* adjust if needed */
}

.newbuild input[type="checkbox"] {
    margin: 0;
    width: auto;
}

.newbuild label {
    margin: 0;
    display: inline;
}

.purchase-options {
	display: flex;
	flex-direction: row;
	gap: 10px;
}