/**
 * WayAround Form – estilos do formulário (front-end)
 */

/* Shell wrapper */
.waf-form-shell {
	width: 100%;
	max-width: none;
}

/* Mensagens de erro/sucesso */
.waf-form-messages {
	margin-bottom: 1rem;
}

.waf-form-message {
	padding: 0.75rem 1rem;
	border-radius: 3px;
	font-size: 14px;
	line-height: 1.4;
}

.waf-form-message--error {
	background: rgba(0, 0, 0, 0.15);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.waf-success-message {
	padding: 1.5rem;
	background: #dd8423;
	border-radius: 3px;
	color: #fff;
}

.waf-success-message h3 {
	margin: 0 0 0.5rem 0;
	font-size: 18px;
	font-weight: 600;
}

.waf-success-message p {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
}

/* Estado de submissão */
.waf-form.is-submitting {
	opacity: 0.7;
	pointer-events: none;
}

.waf-form,
.waf-form *,
.waf-form *::before,
.waf-form *::after {
	box-sizing: border-box;
}

.waf-form {
	width: 100%;
	max-width: none;
	padding: 1.25rem 1.5rem;
	background: #dd8423;
	font-family: inherit;
}

.waf-form .waf-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin-bottom: 0;
}

@media (min-width: 768px) {
	.waf-form .waf-row-customer,
	.waf-form .waf-row-outbound,
	.waf-form .waf-row-return {
		grid-template-columns: repeat(3, 1fr);
		gap: 16px;
	}

	.waf-form .waf-row-footer {
		grid-template-columns: 1fr auto 1fr;
		align-items: center;
		gap: 1.25rem;
	}
}

.waf-form .waf-row-divider {
	height: 1px;
	background: rgba(255, 255, 255, 0.25);
	margin: 1rem 0;
}

.waf-form .waf-row-divider-return {
	display: none;
	margin: 1rem 0;
}

.waf-form .waf-row-divider-return.is-visible {
	display: block;
}

.waf-form .waf-field {
	display: flex;
	flex-direction: column;
}

/* Labels – referência formulário antigo: 15px, 400, 22.5px line-height */
.waf-form .waf-field label {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 15px;
	font-weight: 400;
	line-height: 22.5px;
	font-style: normal;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* Altura uniforme: 46px para todos os campos (inputs e selects) */
.waf-form .waf-input,
.waf-form .waf-select,
.waf-form input[type="text"],
.waf-form input[type="email"],
.waf-form input[type="tel"],
.waf-form input[type="number"],
.waf-form select,
.waf-form .flatpickr-input {
	width: 100%;
	height: 46px;
	min-height: 46px;
	max-height: 46px;
	padding: 0 14px;
	margin: 0;
	line-height: 46px;
	background: #f5f5f5;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 2px;
	font-size: 15px;
	font-weight: 400;
	color: #333;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	outline: none;
	box-shadow: none;
}

.waf-form .waf-input:focus,
.waf-form .waf-select:focus,
.waf-form input[type="text"]:focus,
.waf-form input[type="email"]:focus,
.waf-form input[type="tel"]:focus,
.waf-form input[type="number"]:focus,
.waf-form select:focus,
.waf-form .flatpickr-input:focus {
	outline: none;
	box-shadow: none;
}

.waf-form .waf-input::placeholder,
.waf-form input[type="text"]::placeholder,
.waf-form .flatpickr-input::placeholder {
	color: #999;
}

/* Select: seta custom, padding-right para não sobrepor texto */
.waf-form .waf-select,
.waf-form select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
}

/* Input number: remover setas spinner em alguns browsers */
.waf-form input[type="number"]::-webkit-outer-spin-button,
.waf-form input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.waf-form input[type="number"] {
	-moz-appearance: textfield;
}

/* Footer: people */
.waf-form .waf-footer-people {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.waf-form .waf-footer-people label {
	margin-bottom: 0;
	font-size: 15px;
	font-weight: 400;
	line-height: 22.5px;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.waf-form .waf-footer-people label span {
	text-transform: none;
	font-weight: 400;
	opacity: 0.95;
}

.waf-form .waf-input-people {
	width: 3rem;
	min-width: 3rem;
	height: 46px;
	min-height: 46px;
	max-height: 46px;
	line-height: 46px;
	padding: 0 0.5rem;
	flex-shrink: 0;
	text-align: center;
}

/* Footer: trip type */
.waf-form .waf-footer-trip {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.waf-form .waf-radio-label {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
	font-size: 15px;
	font-weight: 400;
	line-height: 22.5px;
	color: #fff;
	text-transform: none;
	letter-spacing: 0.02em;
	cursor: pointer;
}

.waf-form .waf-radio-label input {
	margin: 0;
	vertical-align: middle;
}

/* Footer: submit */
.waf-form .waf-footer-submit {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

/* Botão – referência formulário antigo: .btn.large */
.waf-form .waf-button {
	display: inline-block;
	height: 54px;
	line-height: 54px;
	padding: 0 50px!important;
	min-width: 200px;
	background: #fff!important;
	color: #e78504!important;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	font-size: 17px;
	font-weight: 400;
	text-transform: uppercase;
	text-align: center;
	box-shadow: none;
}

.waf-form .waf-button:hover {
	background: #fafafa;
}

/* Linha de retorno: escondida por defeito */
.waf-form .waf-row-return {
	display: none;
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transition: opacity 0.3s ease, max-height 0.35s ease;
	margin-bottom: 0;
}

/* Linha de retorno visível (controlada por JS) */
.waf-form .waf-row-return.is-visible {
	display: grid;
	max-height: 400px;
	opacity: 1;
	margin-bottom: 0;
}

/* Mobile: empilhar em 1 coluna */
@media (max-width: 767px) {
	.waf-form .waf-row-customer {
		grid-template-columns: 1fr;
	}

	.waf-form .waf-row-footer {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.waf-form .waf-footer-people {
		flex-wrap: wrap;
	}

	.waf-form .waf-input-people {
		width: 4rem;
		min-width: 4rem;
	}

	.waf-form .waf-footer-trip {
		justify-content: flex-start;
	}

	.waf-form .waf-footer-submit {
		justify-content: stretch;
	}

	.waf-form .waf-footer-submit .waf-button {
		width: 100%;
		min-width: 0;
		height: 54px;
		line-height: 54px;
	}
}


.waf-footer-people input[type="number"] {
	width: 54px;
	min-width: 54px;
	max-width: 54px;
	text-align: center;
  }