/* Frontend styles for Azygo multi-step wizard */
:root {
	--green: #3ea37a;
	--green-dark: #1f574a;
	--green-light: #7fc4a2;
	--grey: #b3b3b3;
	--light-grey: #f4f2ee;
}

.azygo-request-form-container {
	width: 100%;
	max-width: unset !important;
	background: var(--light-grey);
}

.azygo-wizard {
	max-width: 1100px;
	margin: 0 auto;
	padding: 70px 0;
}

.azygo-steps-header {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 10px 0 34px
}

.azygo-steps {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	font-weight: 700;
	color: #1b312d
}

.azygo-steps .step-badge {
	background: var(--green);
	color: #fff;
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%
}

.azygo-progress {
	height: 8px;
	background: var(--grey);
	border-radius: 6px;
	overflow: hidden
}

.azygo-progress .bar {
	display: block;
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, var(--green-dark), var(--green));
	transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.azygo-layout {
	display: grid;
	grid-template-columns: 1fr 360px;
	gap: 36px
}

.azygo-summary {
	background: linear-gradient(180deg, #18483f, var(--green-dark));
	color: #fff;
	padding: 20px;
	border-radius: 10px
}

.azygo-summary h4 {
	color: #fff;
	font-size: 1.6rem;
	margin: 0 0 12px
}

.azygo-summary ul {
	list-style: none;
	margin: 0;
	padding: 0
}

.azygo-summary li {
	margin: 10px 0
}

.azygo-summary .divider {
	border-top: 3px dashed rgba(255, 255, 255, .7);
	height: 1px;
	margin: 14px 0
}

.step {
	display: none
}

.step.active {
	display: block
}

.substep {
	display: none
}

.substep.active {
	display: block
}

.substep h2, .substep h3, .step h2, .step h3 {
	text-align: center !important;
}

.substep h3 {
	font-size: 2.2rem;
	margin-bottom: 2rem;
}

.grid-two {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px
}

.check-inline {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 10px 0
}

.choices {
	margin: 22px 0
}

.choice-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px
}

.choice-grid button {
	width: calc(33.33333333333333% - 11px);
}

.choice-grid.single button.active,
.select-like button.active {
	background: var(--green-dark);
	color: #fff;
	border-color: var(--green-dark);
}

.choice-grid button,
.select-like button {
	color: var(--green-dark);
	background: #fff;
	border: 2px solid var(--green-light);
	border-radius: 0;
	padding: 18px;
	min-height: 150px;
	font-size: 1.2rem;
	cursor: pointer
}

.select-like {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px
}

.counters {
	display: grid;
	grid-template-columns: 50% 50%;
	gap: 20px;
	max-width: 460px;
	margin: 20px auto;
}

.counters.active {
	display: grid;
}

.counters .actions {
	grid-column: 1/-1;
}

.counter {
	display: grid;
	grid-template-columns: 44px 44px 44px;
	gap: 12px;
	align-items: center
}

.counter .label {
	grid-column: 1/-1;
	font-weight: 700
}

.counter .dec,
.counter .inc {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 2px solid var(--green-dark);
	background: #fff;
	color: var(--green-dark);
	font-size: 24px;
	line-height: 40px;
	text-align: center;
	cursor: pointer;
}

/* click on .dec or .inc runs animation */
.counter .dec:active,
.counter .inc:active {
	animation: pulse 0.5s forwards;
}

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

.counter .val {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #e0e0e0;
	border-radius: 50%;
	width: 44px;
	height: 44px
}

.transport-extra {
	margin-top: 14px
}

.user-infos .actions,
.counters .actions,
.choices .actions {
	margin-top: 18px;
	display: flex;
	justify-content: center;
	gap: 12px
}

.btn-prev,
.btn-submit,
.btn-next {
	background: var(--green-dark);
	color: #fff;
	border: none;
	border-radius: 10rem;
	padding: 12px 18px;
	cursor: pointer;
	font-weight: 600;
	transition: background-color 0.2s ease
}

.btn-prev {
	background: transparent;
	color: var(--green-dark);
}

.btn-prev:hover {
	background: var(--green-dark);
	color: #fff;
}

.btn-next:hover,
.btn-submit:hover {
	background: var(--green-dark);
	color: #fff;
}

.wizard-controls {
	margin-top: 16px
}

/* Type selection styling */
.type-selection {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin: 32px 0
}

.type-selection button {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 32px 20px;
	height: 160px;
	text-align: center;
	background: var(--light-grey);
	border: 4px solid white;
	border-radius: 0;
	cursor: pointer;
	transition: all 0.3s ease;
	width: 100%;
}

.type-selection button:hover {
	border-color: var(--green-light);
	background: #fff
}

.type-selection button.active {
	border-color: var(--green-dark);
	background: #fff;
	box-shadow: 0 4px 12px rgba(62, 163, 122, 0.2)
}

.choice-icon {
	margin-bottom: 12px;
}

.type-selection .choice-title {
	font-weight: 600;
	font-size: 16px;
	color: #333
}

.type-selection button.active .choice-icon {
	opacity: 1
}

.type-selection button.active .choice-title {
	color: #56b58d;
}

@media (max-width:1100px) {
	.azygo-layout {
		grid-template-columns: 1fr
	}
}

/* Input Styling */
.azygo-wizard input[type="text"],
.azygo-wizard input[type="email"],
.azygo-wizard input[type="date"],
.azygo-wizard input[type="tel"],
.azygo-wizard input[type="phone"],
.azygo-wizard select,
.azygo-wizard textarea {
	width: 100% !important;
	padding: 12px 16px !important;
	border: 2px solid var(--green-light) !important;
	border-radius: 8px !important;
	font-size: 16px !important;
	font-family: inherit !important;
	background-color: #fff !important;
	color: #333 !important;
	transition: all 0.3s ease !important;
	box-sizing: border-box !important;
}

.azygo-wizard input[type="text"]:focus,
.azygo-wizard input[type="email"]:focus,
.azygo-wizard input[type="date"]:focus,
.azygo-wizard input[type="tel"]:focus,
.azygo-wizard input[type="phone"]:focus,
.azygo-wizard select:focus,
.azygo-wizard textarea:focus {
	outline: none !important;
	border-color: var(--green-dark) !important;
	box-shadow: 0 0 0 3px rgba(62, 163, 122, 0.1) !important;
}

.azygo-wizard input[type="text"]:hover,
.azygo-wizard input[type="email"]:hover,
.azygo-wizard input[type="date"]:hover,
.azygo-wizard input[type="tel"]:hover,
.azygo-wizard input[type="phone"]:hover,
.azygo-wizard select:hover,
.azygo-wizard textarea:hover {
	border-color: var(--green) !important;
}

.azygo-wizard select {
	cursor: pointer !important;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
	background-repeat: no-repeat !important;
	background-position: right 12px center !important;
	background-size: 16px !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
}

.azygo-wizard textarea {
	min-height: 120px !important;
	resize: vertical !important;
}

.azygo-wizard input[type="checkbox"] {
	width: 18px !important;
	height: 18px !important;
	margin-right: 8px !important;
	accent-color: var(--green-dark) !important;
	cursor: pointer !important;
}

.azygo-wizard label {
	display: block !important;
	margin-bottom: 16px !important;
	font-weight: 600 !important;
	color: #333 !important;
	font-size: 14px !important;
}

.azygo-wizard label span {
	display: block !important;
	margin-bottom: 6px !important;
	color: var(--green-dark) !important;
}

.azygo-wizard .check-inline label {
	display: flex !important;
	align-items: center !important;
	margin-bottom: 12px !important;
	cursor: pointer !important;
}

.azygo-wizard .grid-two label {
	margin-bottom: 0 !important;
}

.azygo-wizard input[required]:invalid {
	border-color: #e74c3c !important;
}

.azygo-wizard input[required]:valid {
	border-color: var(--green) !important;
}

.azygo-wizard input::placeholder,
.azygo-wizard textarea::placeholder {
	color: #999 !important;
	opacity: 1 !important;
}

@media (max-width:768px) {
	.type-selection {
		grid-template-columns: 1fr;
		gap: 16px
	}

	.type-selection button {
		height: 120px;
		padding: 24px 16px
	}

	.azygo-wizard input[type="text"],
	.azygo-wizard input[type="email"],
	.azygo-wizard input[type="date"],
	.azygo-wizard input[type="tel"],
	.azygo-wizard input[type="phone"],
	.azygo-wizard select,
	.azygo-wizard textarea {
		font-size: 16px !important;
		padding: 14px 16px !important;
	}

	/* Show only current step (active badge and its title) in header */
	.azygo-steps .step-badge { display: none; }
	.azygo-steps .step-badge.active { display: inline-flex; }
	.azygo-steps .step-title { display: none; }
	.azygo-steps .step-badge.active + .step-title { display: inline; }
}

/* Calendar Widget Styling */
.azygo-calendar-container {
	margin: 20px 0 !important;
	display: block !important;
}

.BookingSyncCalendarWidget__calendar {
	--bookingsync-calendar-highlighted-bg-color: var(--green-dark) !important;
	--bookingsync-calendar-highlighted-color: #fff !important;
	background-color: var(--light-grey) !important;
}

.azygo-wizard .bookingsyncCalendarWidget {
	font-family: inherit !important;
	border: 2px solid var(--green-light) !important;
	border-radius: 12px !important;
	background: #fff !important;
	padding: 20px !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.azygo-wizard .bookingsyncCalendarWidget__header {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	margin-bottom: 20px !important;
	padding: 0 10px !important;
}

.azygo-wizard .bookingsyncCalendarWidget__nav {
	background: var(--green-dark) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 50% !important;
	width: 40px !important;
	height: 40px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
	font-size: 18px !important;
	transition: background-color 0.3s ease !important;
}

.azygo-wizard .bookingsyncCalendarWidget__nav:hover {
	background: var(--green) !important;
}

.azygo-wizard .bookingsyncCalendarWidget__nav:disabled {
	background: var(--grey) !important;
	cursor: not-allowed !important;
}

.azygo-wizard .bookingsyncCalendarWidget__month-name {
	font-weight: 700 !important;
	font-size: 18px !important;
	color: var(--green-dark) !important;
	margin: 0 15px !important;
}

.azygo-wizard .bookingsyncCalendarWidget__table {
	width: 100% !important;
	border-collapse: separate !important;
	border-spacing: 4px !important;
}

.azygo-wizard .bookingsyncCalendarWidget__table th {
	background: var(--light-grey) !important;
	color: var(--green-dark) !important;
	font-weight: 600 !important;
	text-align: center !important;
	padding: 10px 5px !important;
	border-radius: 6px !important;
	font-size: 14px !important;
}

.azygo-wizard .bookingsyncCalendarWidget__table td {
	text-align: center !important;
	padding: 0 !important;
	position: relative !important;
}

.azygo-wizard .bookingsyncCalendarWidget__day {
	width: 40px !important;
	height: 40px !important;
	border: 1px solid transparent !important;
	border-radius: 8px !important;
	background: #fff !important;
	color: #333 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
	font-weight: 500 !important;
	transition: all 0.3s ease !important;
	font-size: 14px !important;
}

.azygo-wizard .bookingsyncCalendarWidget__day:hover {
	background: var(--green-light) !important;
	color: #fff !important;
	border-color: var(--green) !important;
}

.azygo-wizard .bookingsyncCalendarWidget__day--disabled {
	color: #ccc !important;
	cursor: not-allowed !important;
	background: #f9f9f9 !important;
}

.azygo-wizard .bookingsyncCalendarWidget__day--disabled:hover {
	background: #f9f9f9 !important;
	color: #ccc !important;
	border-color: transparent !important;
}

.azygo-wizard .bookingsyncCalendarWidget__day--selected-start,
.azygo-wizard .bookingsyncCalendarWidget__day--selected-end {
	background: var(--green-dark) !important;
	color: #fff !important;
	border-color: var(--green-dark) !important;
	font-weight: 700 !important;
}

.azygo-wizard .bookingsyncCalendarWidget__day--selected-range {
	background: var(--green-light) !important;
	color: #fff !important;
	border-color: var(--green-light) !important;
}

.azygo-wizard .bookingsyncCalendarWidget__day--today {
	border-color: var(--green) !important;
	font-weight: 700 !important;
}

.azygo-wizard .bookingsyncCalendarWidget__months {
	display: flex !important;
	gap: 30px !important;
	justify-content: center !important;
	flex-wrap: wrap !important;
}

.azygo-wizard .bookingsyncCalendarWidget__month {
	flex: 1 !important;
	min-width: 280px !important;
}

@media (max-width: 768px) {
	.azygo-wizard .bookingsyncCalendarWidget__months {
		flex-direction: column !important;
		gap: 20px !important;
	}

	.azygo-wizard .bookingsyncCalendarWidget__month {
		min-width: 100% !important;
	}

	.azygo-wizard .bookingsyncCalendarWidget {
		padding: 15px !important;
	}

	.azygo-wizard .bookingsyncCalendarWidget__day {
		width: 35px !important;
		height: 35px !important;
		font-size: 13px !important;
	}
}

@keyframes fadeInFromLeft {
	0% {
		opacity: 0;
		transform: translateX(-30px);
	}
	100% {
		opacity: 1;
		transform: translateX(0);
	}
}

.substep > * {
	opacity: 0;
	transform: translateX(-30px);
	animation: fadeInFromLeft 0.6s ease-out forwards;
}

.substep.active > *:nth-child(1) {
	animation-delay: 0.1s;
}

.substep.active > *:nth-child(2) {
	animation-delay: 0.2s;
}

.substep.active > *:nth-child(3) {
	animation-delay: 0.3s;
}

.substep.active > *:nth-child(4) {
	animation-delay: 0.4s;
}

.substep.active > *:nth-child(5) {
	animation-delay: 0.5s;
}

.substep.active > *:nth-child(6) {
	animation-delay: 0.6s;
}

.substep.active > *:nth-child(7) {
	animation-delay: 0.7s;
}

.substep.active > *:nth-child(8) {
	animation-delay: 0.8s;
}

/* Success screen */
.azygo-success-screen {
	max-width: 800px;
	margin: 30px auto;
	background: #fff;
	border: 2px solid var(--green-light);
	border-radius: 12px;
	padding: 30px;
	text-align: center
}

.azygo-success-screen .icon {
	width: 72px;
	height: 72px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: var(--green-dark);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 900;
	font-size: 36px
}

.azygo-success-screen h2 {
	margin: 0 0 10px;
	color: var(--green-dark)
}

.azygo-success-screen p {
	margin: 8px 0;
	font-size: 16px
}

.azygo-success-screen .actions .btn-next {
	display: inline-block;
	text-decoration: none
}
