* {
	box-sizing: border-box;
}
body {
	font-family: Arial, sans-serif;
	line-height: 1.6;
	margin: 0;
	padding: 20px;
	background-color: #f5f5f5;
	color: #333;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	background-color: white;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header {
	text-align: center;
	margin-bottom: 30px;
	border-bottom: 2px solid #eee;
	padding-bottom: 20px;
}

img.header-image {
	width: auto;
	max-width: 380px;
}
img.subheader-image {
	width: 235px;
	height: max-content;
}

h1 {
	color: #3b5998;
	margin-bottom: 10px;
}

h2 {
	color: #3b5998;
	margin-top: 0;
	border-bottom: 1px solid #eee;
	padding-bottom: 10px;
	margin-bottom: 0;
}

h3 {
	color: #555;
	margin-top: 20px;
}

.section {
	margin-bottom: 30px;
	padding: 20px;
	background-color: #f9f9f9;
	border-radius: 5px;
}

label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
}

.required:after {
	content: " *";
	color: red;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
	width: 100%;
	padding: 8px;
	margin-bottom: 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-sizing: border-box;
}

.button-success {
	background: #1cb841;
	color: white;
}

.button-secondary {
	background: #42b8dd;
	color: white;
}

.button-warning {
	background: #df7514;
	color: white;
}

.button-error {
	background: #ca3c3c;
	color: white;
}

.attendee-card {
	background-color: white;
	border: 1px solid #ddd;
	border-radius: 5px;
	padding: 15px;
	margin-bottom: 20px;
	position: relative;
}

.remove-attendee {
	position: absolute;
	top: 10px;
	right: 10px;
	background-color: #f44336;
	color: white;
	border: none;
	border-radius: 50%;
	width: 25px;
	height: 25px;
	line-height: 25px;
	text-align: center;
	cursor: pointer;
}

.attendee-type-container {
	margin-top: 15px;
	padding: 15px;
	background-color: #f0f7ff;
	border-radius: 5px;
	border-left: 3px solid #42b8dd;
}

.church-form {
	display: none;
	margin-top: 15px;
	padding: 15px;
	background-color: #fff9f0;
	border-radius: 5px;
	border-left: 3px solid #df7514;
}

.error-message {
	color: #f44336;
	font-size: 0.85em;
	margin-top: -10px;
	margin-bottom: 10px;
}
#successBanner {
	display: none;
}
.success-banner {
	background-color: #dff0d8;
	color: #3c763d;
	padding: 15px;
	margin-bottom: 20px;
	border-radius: 4px;
	
}

.wait-banner {
	background-color: #fff89c;
	color: #605841;
	padding: 15px;
	margin-bottom: 20px;
	border-radius: 4px;
	display: none;
}


.select2-container {
	margin-bottom: 15px;
}

.progress-steps {
	display: flex;
	justify-content: space-between;
	margin-bottom: 30px;
	position: relative;
}

.step {
	flex: 1;
	text-align: center;
	padding: 10px;
	background-color: #eee;
	position: relative;
	z-index: 1;
}

.step.active {
	background-color: #3b5998;
	color: white;
}

.step.completed {
	background-color: #1cb841;
	color: white;
}

.progress-bar {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 2px;
	background-color: #eee;
	z-index: 0;
}

.select2-container .select2-selection--single {
  height: 36px !important; /* Adjust this value to match your inputs */
}

/* Adjust the rendered selection text vertical alignment */
.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 36px !important; /* Should match the height */
}

/* Adjust the dropdown arrow position */
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 36px !important; /* Slightly less than total height */
}

.iti {
	margin-bottom: 15px;
}

.form-row {
	margin-bottom: 15px;
}
.form-row label {
	display: block;
	margin-bottom: 5px;
}
.form-row input {
	width: 100%;
	padding: 8px;
	box-sizing: border-box;
}
.card-input-container {
	border: 1px solid #ccc;
	padding: 10px;
	border-radius: 4px;
	margin-bottom: 15px;
}
.card-errors {
	color: #e74c3c;
	margin-top: 5px;
	font-size: 14px;
}
.success-message {
	color: #2ecc71;
	margin-top: 20px;
	padding: 10px;
	background-color: rgba(46, 204, 113, 0.1);
	border-radius: 4px;
	display: none;
}

.service-option {
	display: flex;
	position: relative;
	align-items: center;
}

.attending-services-options {
	display: flex;
	align-items: flex-end;
	justify-content: space-around;
	padding-bottom: 10px;
	flex-wrap: wrap;
}

.service-option-date {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-left: 10px;
	margin-right: 0.5em !important;
}

.service-option-date-time {
	font-size: 0.8em;
	line-height: 1;
	font-weight: 500;
}

.service-option-date-title {
	font-weight: 700;
	line-height: 1;
	font-size: 1.3em;
}

.attending-services-options.is-invalid {
	border: 1px solid #dc3545;
	border-radius: 4px;
	padding: 5px;
	background-color: rgba(220, 53, 69, 0.05);
}

.checkbox-wrapper {
  --borderColor: #48c;
  --borderWidth: .125em;
  --disabledColor: #ccc;
  margin: 0.5em;
}
.checkbox-wrapper label {
  display: block;
  max-width: 100%;
  margin: 0 auto;
}
.checkbox-wrapper input[type=checkbox] {
  -webkit-appearance: none;
  appearance: none;
  vertical-align: middle;
  background: #fff;
  font-size: 1.8em;
  border-radius: 0.125em;
  display: inline-block;
  border: var(--borderWidth) solid var(--borderColor);
  width: 1em;
  height: 1em;
  position: relative;
}
.checkbox-wrapper input[type=checkbox]:before,
.checkbox-wrapper input[type=checkbox]:after {
  content: "";
  position: absolute;
  background: var(--borderColor);
  width: calc(var(--borderWidth) * 3);
  height: var(--borderWidth);
  top: 50%;
  left: 10%;
  transform-origin: left center;
}
.checkbox-wrapper input[type=checkbox]:before {
  transform: rotate(45deg) translate(calc(var(--borderWidth) / -2), calc(var(--borderWidth) / -2)) scaleX(0);
  transition: transform 200ms ease-in 200ms;
}
.checkbox-wrapper input[type=checkbox]:after {
  width: calc(var(--borderWidth) * 5);
  transform: rotate(-45deg) translateY(calc(var(--borderWidth) * 2)) scaleX(0);
  transform-origin: left center;
  transition: transform 200ms ease-in;
}
.checkbox-wrapper input[type=checkbox]:checked:before {
  transform: rotate(45deg) translate(calc(var(--borderWidth) / -2), calc(var(--borderWidth) / -2)) scaleX(1);
  transition: transform 200ms ease-in;
}
.checkbox-wrapper input[type=checkbox]:checked:after {
  width: calc(var(--borderWidth) * 5);
  transform: rotate(-45deg) translateY(calc(var(--borderWidth) * 2)) scaleX(1);
  transition: transform 200ms ease-out 200ms;
}
.checkbox-wrapper input[type=checkbox]:focus {
  outline: calc(var(--borderWidth) / 2) dotted rgba(0, 0, 0, 0.25);
}

/* Disabled state styles */
.checkbox-wrapper input[type=checkbox]:disabled {
  border-color: var(--disabledColor);
  background-color: #f5f5f5;
  cursor: not-allowed;
}
.checkbox-wrapper input[type=checkbox]:disabled:before,
.checkbox-wrapper input[type=checkbox]:disabled:after {
  background: var(--disabledColor);
}
.checkbox-wrapper input[type=checkbox]:disabled + .checkbox {
  opacity: 0.6;
}

/* Add a visual cue for disabled state */
.service-option.disabled label {
  opacity: 0.7;
  cursor: not-allowed;
}

.service-option.disabled .service-option-date {
	
	cursor: not-allowed;
	position:relative
}
.service-option.disabled .service-option-date:before {
	position: absolute;
	top: 0;
	left: 0;
	color: red;
	width: inherit;
	height: 100%;
	content: 'No Spaces Available';
	text-align: center;
	font-size: 0.8em;
	line-height: 1;
	background-color: rgba(255, 255, 255, 0.8);
}

.select-all-container {
  margin-bottom: 10px;
  font-size: 0.9em;
  color: #555;
}
.select-all-wrapper {
  display: inline-flex;
  align-items: center;
}
.select-all-text {
  margin-left: 5px;
}

/* Review Section */
.review-container {
	background-color: #fff;
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
	padding: 1.5rem;
	margin-bottom: 2rem;


	.review-header {
		text-align: center;
		margin-bottom: 1.5rem;
	}
	
	.review-subtitle {
		color: #000;
		display: flex;
		align-items: flex-end;
		justify-content: center;
		margin-top: 0.5rem;
	}
	.review-subtitle i {
		font-size: 2.1em;
	}
	
	.review-subtitle span {
		color: #fff;
		background-color: #2e9bde;
		font-size: 1.5em;
		padding: 10px 20px 4px;
	}
	
	.review-divider {
		border: 0;
		height: 1px;
		background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
		margin: 1rem 0;
	}
	
	.review-block {
		margin-bottom: 1.5rem;
		padding-bottom: 1rem;
	}
	
	.review-section-title {
		color: #2c3e50;
		border-bottom: 2px solid #ecf0f1;
		padding-bottom: 0.5rem;
		margin-bottom: 1rem;
	}
	
	.contact-detail, .attendee-detail {
		margin-bottom: 0.5rem;
		line-height: 1.5;
	}
	
	.detail-label {
		font-weight: 600;
		color: #555;
		min-width: 150px;
		display: inline-block;
	}
	
	.detail-value {
		color: #333;
	}
	.service-group .detail-value {
		font-weight: 700;
		text-transform: uppercase;
		margin-left: 1em;
	}
	
	.attendee-review, #reviewPrimaryContact {
		background-color: #f9f9f9;
		border-left: 3px solid #3498db;
		padding: 1rem;
		margin-bottom: 1rem;
		border-radius: 0 4px 4px 0;
	}
	
	.attendee-name {
		color: #3498db;
		margin-top: 0;
		margin-bottom: 1rem;
		padding-bottom: 0.5rem;
		border-bottom: 1px solid #e0e0e0;
	}
	
	.review-actions {
		margin-top: 2rem;
		padding-top: 1rem;
		border-top: 1px solid #ecf0f1;
	}
	
	.service-group {
		margin-top: 5px;
	}
	
	.service-list {
		margin-left: 2em;
	}
	
	.service-group .service-time {
		padding: 3px 5px;
		background-color: lightgrey;
		margin: 5px;
		font-size: 0.8em;
		white-space: nowrap;
		color: darkblue;
		font-weight: 500;
	}
}

.text-right {
	text-align: right;
}

.button-secondary {
	background-color: #95a5a6;
	color: white;
}

.button-success {
	background-color: #27ae60;
	color: white;
	font-weight: bold;
}

.button-secondary:hover {
	background-color: #7f8c8d;
}

.button-success:hover {
	background-color: #2ecc71;
}

.logo-header {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-around;
}
img.footer-logo {
	width: 20%;
}

.pure-u-1.footer {
	display: flex;
	justify-content: center;
	flex-direction: column;
	align-items: center;
}

.footer span {
	font-size: 0.8em;
	margin-bottom: 20px;
}

.product-card {
	margin-bottom: 20px;
	padding: 15px;
	border-radius: 8px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.quantity-control {
	display: flex;
	align-items: center;
}
p.card-text {
	font-size: 0.9em;
}

.quantity-control button {
	height: 40px;
	width: 50px;
	font-weight: 900;
}
.quantity-input {
	width: 50px;
	text-align: center;
	margin: 0 10px;
	margin-bottom: 0px !important;
}

.total-container {
	display: flex;
	align-items: center;
	margin-bottom: 10px;
}

input#addon-total {
	width: 100px;
	margin-bottom: 0;
	margin-right: 0px;
}

.total-container span {
	margin-right: 10px;
}

/* Responsive adjustments */
@media (max-width: 48em) {
	.review-container .detail-label {
		min-width: 130px;
	}
	
	.review-container {
		padding: 1rem;
	}
	
}
@media only screen and (max-width: 480px) {
	body, .container, .section {
		padding: 20px 15px;
	}
	img.subheader-image {
		width: 115px;	
	}
	img.header-image {
		width: 100%;
	}
	.logo-header {
		flex-direction: column;	
	}
	img.footer-logo {
		width: 50%;
	}
	.pure-form button[type=submit] {
		margin: 0 0 0 !important;
	}
	.step {
		font-size: 0.6rem;
	}
	.service-group {
		.detail-value {
			margin-left: 0;
		}
		.service-list {
			margin-left: 0em;
			display: flex;
			flex-direction: column;
			align-items: flex-start;
		}
	}
	
	.success-banner {
		font-size: 0.6em;
	}
	
	p {
		font-size: 0.8em;
	}
	.attendee-detail {
		display: flex;
		flex-wrap: wrap;
	}
	.contact-detail {
		display: flex;
		flex-direction: column;
	}
	
	span.detail-value {
		font-size: 12px;
	}
}