.ttsd-form-title {
	text-align: center;
	margin-bottom: 0;
}

form.ttsd-form {
	margin-top: 2rem;
	border: 1px solid #00774a;
	border-radius: 0.5rem;
	overflow: hidden;
}

form.ttsd-form .form-row+p {
	margin-top: 1rem;
	font-weight: 700;
}

form.ttsd-form span.check-all {
	font-weight: 400;
	font-size: 0.9em;
}

form.ttsd-form .form-input-list {
	margin: 0;
	padding: 0;
	list-style: none;
	width: 100%;
}

form.ttsd-form .form-input-list li {
	margin-top: 0.5rem;
}

form.ttsd-form .form-input-list li .pad-top {
	margin-top: 1rem;
}

.ttsd-custom-form .form-column.pad-top {
	width: calc(100% - 1rem);
}

.ttsd-custom-form .form-field.pad-top {
	margin-left: 1rem;
	width: calc(100% - 2rem);
}

/* Section styling */
.ttsd-custom-form .form-section {
	padding: 2rem 1rem 3rem;
	background-color: #dff0d8;
	margin-bottom: 1rem;
}

.ttsd-custom-form .form-section:last-child {
	margin-bottom: 0;
}

.ttsd-custom-form .form-section h3 {
	margin: 0 0 1rem 0;
}

.ttsd-custom-form .form-ack {
	margin-top: 1rem;
}

.ttsd-custom-form .form-section.form-submit {
	background-color: unset;
}

/* Row styling */
.ttsd-custom-form .form-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0 1rem;
}

/* Column styling */
.ttsd-custom-form .form-column {
	flex: 1;
	min-width: 200px;
	display: flex;
	gap: 1rem;
}

.form-column.form-column--min {
	max-width: 200px;
	min-width: 120px;
}

.form-column.form-column--mini {
	max-width: 120px;
	min-width: 80px;
}

/* Label Styling */
/* CSS to add a red asterisk after the label text when the associated input is required */
label.required-label::after {
	content: '*';
	color: #dc3232;
	margin-left: 2px;
}

/* Field styling */
.ttsd-custom-form .form-field {
	width: 100%;
	padding: 0;
	margin-bottom: 2rem;
}

.ttsd-custom-form .form-row:last-child .form-field {
	margin-bottom: 0;
}

form.ttsd-form .form-input-list li .form-field {
	margin-bottom: 1rem;
}

.ttsd-custom-form .form-sub-field {
	margin-left: 1rem;
}

.ttsd-request-buttons {
	/* Fieldset styling if needed */
	text-align: center;
	/* Center align buttons */
	border: none;
}

.ttsd-request-buttons legend {
	font-size: 1.2em;
	font-weight: 700;
}

.ttsd-request-button {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background-color: #4CAF50;
	/* Green color for Service Issue */
	color: white;
	padding: 15px 30px;
	margin: 10px;
	border-radius: 25px;
	/* Bubbly effect */
	cursor: pointer;
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	/* Soft shadow for depth */
	text-align: left;
	/* Align the icon and text to the left */
}

.ttsd-request-button:hover {
	background-color: #388E3C;
	/* Darker shade for hover */
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
	/* Larger shadow on hover */
}

.ttsd-request-button.selected-request {
	outline: 3px solid #fff;
}

.ttsd-request-button input[type="radio"] {
	display: none;
	/* Hide the actual radio button */
}

.ttsd-request-button .ttsd-request-icon svg {
	/* Icon styling */
	fill: #fff;
	width: 64px;
	height: 64px;
}

.ttsd-request-button .ttsd-request-label {
	vertical-align: middle;
	/* Align the text with the icon */
}

/* Different color for Billing Issue */
.ttsd-request-button:nth-child(2) {
	background-color: #FF9800;
	/* Orange color for Billing Issue */
}

.ttsd-request-button:nth-child(2):hover {
	background-color: #F57C00;
	/* Darker shade for hover on Billing Issue */
}

/* Check which radio button is checked */
.ttsd-request-button input[type="radio"]:checked+.ttsd-request-icon+.ttsd-request-label {
	text-decoration: underline;
}


.ttsd-custom-form .form-field input:not([type="radio"]):not([type="checkbox"]),
.ttsd-custom-form .form-field select,
.ttsd-custom-form .form-field textarea,
.ttsd-custom-form .form-field button {
	width: calc(100% - 2rem - 2px);
	margin: auto;
	padding: 1rem;
	border-radius: 0.5rem;
	border: 1px solid #00774a;
	line-height: inherit;
	color: #333;
	font-weight: 700;
}

.ttsd-custom-form .form-field input:not([type="radio"]):not([type="checkbox"]),
.ttsd-custom-form .form-field select,
.ttsd-custom-form .form-field textarea {
	background-color: #ffffff;
}

.ttsd-custom-form .form-field select {
	width: 100%;
	padding: calc(1rem + 1px) 1rem;
}

.ttsd-custom-form .form-field select.light-grey-select {
	font-weight: 400;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
}

.ttsd-custom-form .form-field select option {
	color: #333;
}

.ttsd-custom-form .form-field select option.light-grey {
	color: #777;
}

.ttsd-custom-form .form-row .form-field input[type="date"]:not([type="radio"]):not([type="checkbox"]) {
	padding: calc(1rem - 1px) 1rem;
}

.form-field.form-field--submit {
	text-align: center;
}

.ttsd-custom-form .form-field button#submit_button {
	width: 50%;
	min-width: 200px;
	cursor: pointer;
	transition: all 0.25s ease;
	font-size: var(--wp--preset--font-size--medium);
	font-family: var(--wp--preset--font-family--action);
	background-color: #00774a;
	color: #ffffff;
	font-weight: 700;
	box-shadow: 2px 2px 8px -4px #000;
}

.ttsd-custom-form .form-field button#submit_button:hover {
	box-shadow: 2px 6px 16px -4px #000;
}

.ttsd-custom-form .form-field.form-field--radio-inline {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.form-field.form-field--checkbox {
	flex-basis: content;
}

.ttsd-custom-form .form-field {
	position: relative;
}

.ttsd-custom-form .form-field:not(.form-field--radio, .form-field--checkbox, .form-field--file) label {
	position: absolute;
	left: calc(1rem + 1px);
	font-size: var(--wp--preset--font-size--small, 13.333px);
	font-family: var(--wp--preset--font-family--body, Arial);
	top: 1rem;
	color: #333333;
	transition: all 0.25s ease-in-out;
}

.ttsd-custom-form .form-field input::placeholder,
.ttsd-custom-form .form-field textarea::placeholder {
	color: #00774a;
	font-weight: 400;
}

.ttsd-custom-form .form-field:not(.is-focused) input::placeholder,
.ttsd-custom-form .form-field:not(.is-focused) textarea::placeholder {
	opacity: 0;
}

.ttsd-custom-form .form-field.is-focused label,
.ttsd-custom-form .form-field.is-dirty label,
.ttsd-custom-form .form-field.form-field--date label {
	left: 0.5rem;
	top: calc(-1rem - 5px);
	color: #333333;
}

.ttsd-custom-form .form-field input[type="text"][readonly],
.ttsd-custom-form .form-field input[type="text"][disabled] {
	background-color: #e0e0e0;
	/* Light grey background */
	border-color: #ccc;
	/* Grey border */
	cursor: not-allowed;
	/* Display a 'not allowed' cursor */
}

span.form-field--text__helper {
	position: absolute;
	top: calc(-1rem - 3px);
	right: 0;
	font-size: 0.9em;
}

span.form-field--text__helper a {
	text-decoration: none;
	color: #00774a;
}

span.form-field--text__helper a:hover {
	text-decoration: underline;
}

/* Submit Styling */
.ttsd-custom-form .loading {
	display: inline-block;
}

.ttsd-custom-form .dot {
	display: inline-block;
	margin: 0 2px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: #ffffff;
	animation: bounce 1.5s infinite ease-in-out;
}

.ttsd-custom-form .dot:nth-child(2) {
	animation-delay: 0.2s;
}

.ttsd-custom-form .dot:nth-child(3) {
	animation-delay: 0.4s;
}

@keyframes bounce {

	0%,
	80%,
	100% {
		transform: translateY(0);
	}

	40% {
		transform: translateY(-10px);
	}
}

.ttsd-custom-form .success-message {
	color: #FFFFFF;
	font-weight: bold;
}

.ttsd-custom-form .error-message {
	color: #dc3232;
	font-weight: bold;
}

/* Responsive styling */
@media (max-width: 768px) {
	.ttsd-custom-form .form-column {
		flex: 100%;
		max-width: 100%;
	}

	.ttsd-custom-form .form-row:last-child .form-field {
		margin-bottom: 2rem;
	}

	.ttsd-custom-form .form-section .form-row:last-child .form-column:last-child .form-field {
		margin-bottom: 0;
	}
}

/* Modal Styles */
.complaint-modal {
	display: block;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.6);
	/* Black with opacity */
}

.complaint-modal .modal-content {
	background-color: #fefefe;
	margin: 15% auto;
	/* 15% from the top and centered */
	padding: 1rem;
	border: 1px solid #888;
	border-radius: 1rem;
	width: 90%;
	/* Could be more or less, depending on screen size */
	max-width: 800px;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/* Close Button */
.complaint-modal .close {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
}

.complaint-modal .close:hover,
.complaint-modal .close:focus {
	color: black;
	text-decoration: none;
	cursor: pointer;
}

/* Modal Title and Content */
complaint-.modal h2 {
	font-size: 24px;
	margin-bottom: 10px;
}

.complaint-modal p {
	font-size: 16px;
	line-height: 1.6;
}

.complaint-modal .torn-paper {
	padding: 20px 10px;
	background-color: white;
	overflow: hidden;
}

.complaint-modal .torn-paper img {
	position: relative;
	max-width: 100%;
	height: auto;
	display: block;
	margin: auto;
	box-shadow: 0px -10px 10px -5px rgba(0, 0, 0, 0.4);
}