/* This is the main CSS file for the Commercial Waste website */

:root {
	/* Colours styles */

	--main-color: #212957;
	--softBlue: #024586;
	--light-bg: #c1eaf5;
	--light-grey: #707070;
	--text-option: #012950;
	--heading-color: #000000;
	--button: #7fc453;
	--list: #7af2ce;
	--red: #df3025;
	--borderColor: #0c70c1;
	--progressBar: #f1f1f1;
	--progressBarFill: #0c70c1;

	/* Font sizes for headings and body - Desktop sizes */
	--heading-1: 1.7rem;
	--heading-2: 3.06rem;
	--heading-3: 2.5rem;
	--heading-4: 1.1rem;
	--body-font: clamp(0.99rem, 1vw + 0.5rem, 1.1rem);

	/* Font family */
	--font-primary: "Public Sans", sans-serif;

	/* Font weights */
	--font-weight-light: 300;
	--font-weight-regular: 400;
	--font-weight-semibold: 500;
	--font-weight-bold: 700;

	/* Line height */
	/* Line height with dynamic scaling */
	--line-height-normal: clamp(
		2rem,
		calc(2rem + (2.5rem - 2) * ((100vw - 320px) / (1600 - 320))),
		2.5rem
	);

	/* Shadow */

	--shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

/* ================================================== */

/*  Style definition for each heading and body text */

/* ================================================== */

html {
	font-size: 100%; /* Equivalent to 16px */
}
h1,
.h1 {
	font-size: clamp(1.1rem, 2.2vw + 0.35rem, var(--heading-1));
	font-weight: var(--font-weight-bold);
	color: #fff;
	line-height: var(--line-height-normal);
	text-align: center;
	font-family: var(--font-secondary);
	line-height: var(--line-height-normal);
}

h2,
.h2 {
	font-size: clamp(1.375rem, 1vw + 0.5rem, var(--heading-2));
	font-weight: var(--font-weight-bold);
	line-height: var(--line-height-normal);
	text-align: center;
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
	h2 {
		width: 32rem;
		margin: auto;
	}
}

h3 {
	font-size: clamp(
		1.3rem,
		1.5vw + 1rem,
		var(--heading-3)
	); /* Adjust these values as needed */
	font-weight: var(--font-weight-bold);
	line-height: var(--line-height-normal);
}

h4 {
	font-size: clamp(
		1.1rem,
		1.25vw + 0.5rem,
		var(--heading-4)
	); /* Adjust these values as needed */
	font-weight: var(--font-weight-bold);
	line-height: var(--line-height-normal);
	text-align: center;
}
h5 {
	font-size: clamp(
		1rem,
		1.2vw + 0.5rem,
		var(--heading-4)
	); /* Adjust these values as needed */
	font-weight: var(--font-weight-bold);
	line-height: var(--line-height-normal);
}

body {
	font-family: var(--font-primary);
	font-size: var(--body-font);
	font-weight: var(--font-weight-regular);
	line-height: var(--line-height-normal);
	color: var(--black);
	background-color: var(--body);
}

html {
	scroll-behavior: smooth;
}
/* ================================================== */

/*  Layout definiton responsive*/

/* ================================================== */

.container {
	width: 100%;
	background-color: var(--tertiary-base);
}

.wrapper {
	padding: 0 1.2rem;
	margin: auto; /* This centers the wrappper */
	max-width: 80rem; /* 1440px / 16px per rem */
	background-color: var(--primary-base);
	height: 100%;
}

@media (min-width: 768px) {
	.wrapper {
		overflow: visible;
	}
}

/* ================================================== */

/*  Top Bar */

/* ================================================== */

.top {
	background-color: #fff;
	box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.08);
	padding: 0px;
}

.logo {
	width: 10.22113rem;
}

.topNav {
	position: sticky;
	top: 0;
	z-index: 1000;
	background-color: #fff;
}
.topBar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.7rem 0rem 0.7rem 0rem;
}

@media (min-width: 650px) {
	.topBar {
		padding: 1.2rem 0rem 1.2rem 0rem;
	}
}

.hidden {
	display: none;
}

/* ================================================== 
	Hero Section
	===================================================*/

.hero {
	background: url(../img/heroImg.svg) no-repeat center center/cover;
	min-height: 62vh;
	display: flex;
	align-items: center;
	justify-content: center;
}
.heroThanks {
	background: url(../img/heroImg.svg) no-repeat center;
	min-height: 65vh;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--main-color);
}

.heroThanks h1 {
	color: var(--main-color);
	font-size: 2rem;
	width: 99%;
	margin: -8rem auto;
}

@media (min-width: 650px) {
	.heroThanks h1 {
		font-size: 2.5rem;
		width: 70%;
		margin: -6rem auto;
	}
}

.hero-content {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100%;
}

/* ================================================== 
		 F O R M   S E C T I O N
==============================================*/

.form {
	margin-top: 1rem;
}
.titleStep {
	font-size: clamp(1rem, 2vw + 0.65rem, 1.25rem);
	font-style: normal;
	font-weight: 700;
	text-align: center;
}

.formBox {
	margin-top: 0.9rem;
	border-radius: 1rem;
	border: 1px solid #96c7f7;
	overflow: hidden;
	background-color: #fff;
	width: auto;
	min-height: 20rem;
}

.formBox .topBox {
	background-color: var(--softBlue);
	padding: 0.7rem 1rem;
}
@media (min-width: 650px) {
	.formBox .topBox {
		padding: 1.7rem 1.2rem;
	}
}
@media (min-width: 1200px) {
	.formBox {
		margin-top: 2.5rem;
		max-width: 57rem;
		max-height: min-content;
	}

	.formBox .topBox {
		display: flex;
		flex-direction: column;
		gap: 1rem;
		padding: 1.7rem 3rem;
	}
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 650px) {
	.formBox .topBox .tickSection {
		justify-content: space-around;
		display: flex;
		gap: 1rem;
	}
	/* Styles for medium devices here */
}
.formBox .topBox p {
	font-size: 1.25rem;
	font-style: normal;
	font-weight: var(--font-weight-semibold);
	color: #fff;
	text-align: center;
}

.tickSection {
	margin-top: 0.7rem;
	text-align: center;
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-gap: 0.5rem;
}

ul.tickSection li:nth-child(1) {
	grid-column: 1/-1;
}
.tickSection li:nth-child(2) {
	grid-column: 2;
	grid-row: 1;
}
.tickSection li:nth-child(3) {
	grid-row: 1;
}

.formBox .topBox .tickSection li {
	list-style: none;
	font-size: 0.875rem;
	font-style: normal;
	font-weight: 600;
	color: var(--list);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.2rem;
}

@media (min-width: 600px) {
	.formBox .topBox .tickSection li {
		font-size: var(--body-font);
	}
}

.formBox .topBox .tickSection li:not(:last-child) {
	margin-bottom: 0.3rem;
}

.formContent {
	padding-inline: 0.7rem;
}

/* Styles for radio buttons */

/* Base style for all labels */
.radio-option {
	font-size: inherit;
	padding: 1.44rem 0.5rem;
	border: 1px solid #b7b7be;
	border-radius: 0.25rem;
	background: #fff;
	cursor: pointer;
	transition: background-color 0.3s, box-shadow 0.3s, border-color 0.3s;
	font-size: 1rem;
	text-wrap: nowrap;
	display: flex;
	align-items: center;
	gap: 0.2rem;
}

@media (min-width: 650px) {
	.radio-option {
		font-size: var(--body-font);
		padding: 1.2rem 1rem;
	}
}
@media (min-width: 1200px) {
	.radio-option {
		padding: 1.4rem 1rem;
	}
}

.options {
	margin: 1.2rem 0 1.4rem 0;
	display: grid;
	gap: 0.5rem;
	grid-template-columns: 1fr 1fr;
}

.options > * {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

@media (min-width: 650px) {
	.options {
		padding-inline: 2rem;
		gap: 1.5rem;
	}
	.options > * {
		gap: 1.25rem;
	}
}
@media (min-width: 1200px) {
	.options {
		padding-inline: 3rem;
		margin: 2rem 0;
	}
}

.highlight {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #e6f2fc;
	padding: 0.5rem;
	font-size: 0.85rem;
	font-style: normal;
	font-weight: 400;
	border-radius: 0.2rem;
	margin: 1rem 0;
	gap: 0.5rem;
}

@media (min-width: 650px) {
	.highlight {
		padding: 0.9rem;
		font-size: var(--body-font);
	}
}
input {
	font-family: inherit;
	font-size: inherit;
}

.input {
	padding: 0.7rem 0.5rem;
	border: 1px solid var(--borderColor);
	border-radius: 0.25rem;
	background: #fff;
	cursor: pointer;
	transition: background-color 0.3s, box-shadow 0.3s, border-color 0.3s;
	font-size: 0.8rem;
	width: 100%;
}

@media (min-width: 650px) {
	.input {
		width: 60%;
		padding: 1.2rem 1rem;
		font-family: inherit;
		font-size: inherit;
	}
}
@media (min-width: 1200px) {
	.input {
		width: 40%;
		padding: 1.4rem 1rem;
		font-family: inherit;
		font-size: inherit;
	}
}
.input.error {
	border: 2px solid #df3025; /* Red border for error */
}

.inputsField {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
}

@media (min-width: 650px) {
	.inputsField {
		gap: 1.5rem;
	}
}

.error-message {
	color: #df3025; /* Red text for error message */
	font-size: 0.9rem;
	display: none; /* Hidden by default */
	margin-top: 5px;
}

.terms {
	width: 92%;
	margin-top: 1rem;
}

@media (min-width: 650px) {
	.terms {
		margin-top: 2rem;
	}
}

/* Style for label when the radio button is checked */
.radio-option.active {
	border-color: var(--progressBarFill);
	background: #acd9ff;
	box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.17);
}

/* Optional: hover effect for labels */
.radio-option:hover {
	background: #acd9ff;
}

/* Progress bar */

.progress {
	margin-top: 0.8rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

@media (min-width: 1200px) {
	.progress {
		margin-top: 1.3rem;
	}
}

.progress #completed {
	font-size: var(--body-font);
	font-weight: var(--font-weight-semibold);
	display: none;
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
	.progress #completed {
		display: block;
	}
}

.progress-bar {
	width: 100%;
	overflow: hidden;
	background-color: #e0e0e0;
	height: 0.875rem;
	border-radius: 2.8125rem;
	position: relative; /* Keep the progress bar at the top of the page */
	top: 0;
	left: 0;
	z-index: 1000; /* Ensure it's above other elements */
}

.progress-bar-fill {
	height: 0.875rem;

	background-color: var(--progressBarFill);
	width: 0%;
	font-size: 0.68rem;
	transition: width 0.4s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	border-radius: 2.8125rem;
}
@media (min-width: 650px) {
	.progress-bar {
		height: 1rem;
	}
	.progress-bar-fill {
		height: 1rem;
	}
}

.arrow {
	background-color: transparent;
	border: none;
	cursor: pointer;
	width: 3rem;
	height: 2rem;
}

.arrow > img {
	width: 100%;
}

.arrow-left {
	opacity: 0.5;
	cursor: not-allowed;
}
/* ================================================== 
Forward and backwards animation
=================================================*/
.step {
	opacity: 0;
	visibility: hidden;
	transform: translateX(-100%);
	transition: opacity 0.5s, transform 0.5s, visibility 0s linear 0.5s;
}

.step.active {
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
	transition: opacity 0.5s, transform 0.5s;
}

@media (min-width: 1200px) {
	.step {
		margin-top: 2rem;
	}
}

/* Slide out to the left */
.step.slide-left-out {
	opacity: 0;
	transform: translateX(-100%);
	transition: opacity 0.1s, transform 0.1s;
}

.step.slide-left-out,
.step.slide-right-out {
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s, visibility 0s linear 0.1s;
}

/* Slide out to the right */
.step.slide-right-out {
	opacity: 0;
	transform: translateX(100%);
	transition: opacity 0.1s, transform 0.1s;
}

/* Prepare to slide in from the right */
.step.prepare-slide-left-in {
	opacity: 0;
	transform: translateX(100%);
	transition: opacity 0.1s, transform 0.1s;
}

/* Prepare to slide in from the left */
.step.prepare-slide-right-in {
	opacity: 0;
	transform: translateX;
}

.mb-1 {
	margin-bottom: 1rem;
}
.mt-1 {
	width: 84%;
	text-align: center;
	margin: -7rem auto 0 auto;
}
/* ================================================== 
	Featured  Section
===================================================*/

.feautures {
	margin-top: 2rem;
}

.feautures-content {
	margin: 3.21rem 0rem;
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
	.feautures {
		margin-top: 4rem;
	}
	.feautures-content {
		display: flex;
		gap: 6rem;
		text-align: center;
		justify-content: center;
	}

	.feautures-item p {
		padding-inline: 1rem;
	}
}

.feautures-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin: 1.5rem 0rem;
	text-align: center;
	gap: 0.5rem;
}
.feautures-item img {
	margin-bottom: 1rem;
}

/* =========================
		Section FAQ
============================*/
.faq {
	margin: 2rem 0rem;
}

.accordion {
	width: 100%;
	max-width: 600px; /* Adjust as needed */
	margin: auto;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
	.accordion {
		max-width: 53.125rem;
	}
}

.accordion-item {
	overflow: hidden;
	border-radius: 0.3125rem;
	border: 1px solid #0c70c1;
}

.accordion-button {
	width: 100%;
	text-align: left;
	padding: 1rem;
	border: none;
	background-color: #fff;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.center {
	text-align: center;
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
	.accordion-button {
		padding: 1.5rem 1rem;
	}
}

.accordion-button span {
	font-style: normal;
	font-weight: 700;
	line-height: var(--line-height-normal);
	font-size: 0.95rem;
}

.accordion-button:focus {
	outline: none;
}

.accordion-content {
	background-color: #fff;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.2s linear, padding 0.2s linear;
	padding: 0 1em;
}
.accordion-content p {
	margin-bottom: 1rem;
}

.accordion-content.open {
	max-height: 1000px; /* or more, depending on your content */
	padding: 0em 1em 1em 1em;
}

.tab-content {
	padding-inline: 3rem;
	margin-top: 1rem;
}

.icon {
	width: 24px; /* Adjust as needed */
	height: 24px; /* Adjust as needed */
}

/* Button Styles */

.btn {
	border: none;
	margin: 1.5rem auto;
	padding: 1rem;
	border-radius: 10px;
	background: var(--main-color);
	color: #fff;
	font-size: 18px;
	width: 100%;
	max-width: 320px;
	cursor: pointer;
	transition: all 0.2s ease-in;
	text-decoration: none;
	text-align: center;
}

@media (min-width: 650px) {
	.btn {
		display: block;
	}
}
@media (min-width: 1200px) {
	.btn {
		padding: 1.5rem 1rem;
	}
}

.btn:hover {
	opacity: 0.945;
}

.btn-submit {
	background: #7fc453;
	max-width: 350px;
	background: #7fc453;
	font-size: 22px;
	font-weight: var(--font-weight-bold);
	text-transform: capitalize;
	display: block;
}

.btn-submit:hover {
	background-color: var(--main-color);
}

/* =========================
	Footer styles section
============================*/

.footer {
	background-color: var(--main-color);
	color: #fff;
	padding: 2.25rem 0rem;
}

.footer .terms {
	margin-top: 1rem;
	display: flex;
	align-items: center;
	gap: 1rem;
}
.footer .terms a {
	color: #fff;
	font-size: 0.9rem;
}
.footer .footerText {
	font-size: 0.9rem;
	font-weight: 100;
	line-height: 1.2rem;
}
.footer .footerText:not(:last-child) {
	margin: 1rem 0rem;
}

/* =========================
		Media Queries
============================*/

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
	/* Styles for medium devices here */
}

/* Large devices (laptops/desktops, 992px and up) */
@media (min-width: 992px) {
	/* Styles for large devices here */
}

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

/* =========================
		Modal
============================*/
/* The Modal (background) */
.simple-modal {
	display: none;
	position: fixed;
	z-index: 10000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgb(0, 0, 0);
	background-color: rgba(0, 0, 0, 0.4);
	text-align: left;
}

.modal-open {
	display: flex;
	justify-content: center;
	align-items: center;
}

/* Modal Content */
.simple-modal-content {
	background-color: #fefefe;
	margin: 15% auto; /* 15% from the top and centered */
	padding: 20px;
	border: 1px solid #888;
	width: 25%;
	border-radius: 4px;
}

.simple-modal-content p {
	font-size: 1rem;
	font-family: inherit;
	line-height: 32px;
}
/* The Close Button */
.simple-modal-close {
	color: #aaa;
	float: right;
	font-size: 16px;
	border-radius: 2px;
	font-weight: bold;
	background: #f1f1f1;
	border: none;
	padding: 5px 10px;
	cursor: pointer;
}

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


/*
==============================================
pulse
==============================================
*/

.pulse {
	animation-name: pulse;
	-webkit-animation-name: pulse;

	animation-duration: 1.5s;
	-webkit-animation-duration: 1.5s;

	animation-iteration-count: infinite;
	-webkit-animation-iteration-count: infinite;
}

@keyframes pulse {
	0% {
		transform: scale(0.9);
		opacity: 1;
	}
	50% {
		transform: scale(1);
		opacity: 1;
	}
	100% {
		transform: scale(0.9);
		opacity: 1;
	}
}

@-webkit-keyframes pulse {
	0% {
		-webkit-transform: scale(0.9);
		opacity: 1;
	}
	50% {
		-webkit-transform: scale(1);
		opacity: 1;
	}
	100% {
		-webkit-transform: scale(0.9);
		opacity: 1;
	}
}
