.arrenda-contact {
	background: var(--arrenda-surface);
	border: 1px solid var(--arrenda-border);
	border-radius: 0.75rem;
	margin-top: clamp(2rem, 5vw, 3.5rem);
	padding: clamp(1.25rem, 4vw, 2rem);
}

.arrenda-contact h2,
.arrenda-contact > p {
	margin-top: 0;
}

.arrenda-contact__form {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 1.25rem;
}

.arrenda-contact__field {
	align-content: start;
	display: grid;
	gap: 0.35rem;
}

.arrenda-contact__field--wide,
.arrenda-contact__phone-section,
.arrenda-contact__consent,
.arrenda-contact__form > .arrenda-button {
	grid-column: 1 / -1;
}

.arrenda-contact__phone-section {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.arrenda-contact__phone-section-country {
	grid-column: 1;
	grid-row: 1;
}

.arrenda-contact__phone-section-phone {
	grid-column: 2;
	grid-row: 1;
}

.arrenda-contact__phone-section-other {
	grid-column: 1;
	grid-row: 2;
	margin-top: 0;
}

.arrenda-contact__phone-section--other .arrenda-contact__phone-section-phone {
	grid-column: 2;
	grid-row: 2;
}

.arrenda-contact__field label {
	font-size: 0.85rem;
	font-weight: 700;
}

.arrenda-contact__field input,
.arrenda-contact__field select,
.arrenda-contact__field textarea {
	background: var(--arrenda-surface);
	border: 1px solid var(--arrenda-border);
	border-radius: 0.4rem;
	color: var(--arrenda-text);
	font: inherit;
	padding: 0.65rem 0.75rem;
	width: 100%;
}

.arrenda-contact .arrenda-contact__field > input {
	box-sizing: border-box;
	height: 2.8rem;
	margin: 0 !important;
	min-height: 2.8rem;
}

.arrenda-contact__country-control {
	align-items: stretch;
	background: var(--arrenda-surface);
	border: 1px solid var(--arrenda-border);
	border-radius: 0.4rem;
	box-sizing: border-box;
	display: flex;
	height: 2.8rem;
	overflow: hidden;
	width: 100%;
}

.arrenda-contact__country-flag {
	align-items: center;
	background: color-mix(in srgb, var(--arrenda-text) 4%, var(--arrenda-surface));
	border-right: 1px solid var(--arrenda-border);
	display: flex;
	flex: 0 0 3rem;
	justify-content: center;
}

.arrenda-contact__country-flag svg {
	box-shadow: 0 1px 2px rgb(0 0 0 / 18%);
	display: block;
	height: 1rem;
	width: 1.5rem;
}

.arrenda-contact__country-control select {
	appearance: auto;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-sizing: border-box;
	color: var(--arrenda-text);
	flex: 1 1 auto;
	font: inherit;
	height: 100%;
	margin: 0 !important;
	min-height: 0;
	min-width: 0;
	padding: 0.65rem 0.75rem;
	width: auto;
}

.arrenda-contact__field small {
	color: var(--arrenda-muted);
	font-size: 0.78rem;
}

.arrenda-contact__other-country {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: minmax(0, 1fr) minmax(7rem, 0.55fr);
}

.arrenda-contact__other-country[hidden] {
	display: none;
}

.arrenda-contact__field textarea {
	resize: vertical;
}

.arrenda-contact__field input:focus,
.arrenda-contact__field select:focus,
.arrenda-contact__field textarea:focus,
.arrenda-contact__consent input:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--arrenda-accent) 35%, transparent);
	outline-offset: 2px;
}

.arrenda-contact__country-control:focus-within {
	outline: 3px solid color-mix(in srgb, var(--arrenda-accent) 35%, transparent);
	outline-offset: 2px;
}

.arrenda-contact__country-control select:focus {
	outline: 0;
}

.arrenda-contact__consent {
	align-items: flex-start;
	display: flex;
	gap: 0.6rem;
}

.arrenda-contact__consent input {
	flex: 0 0 auto;
	margin-top: 0.25rem;
}

.arrenda-contact__notice {
	border-left: 4px solid;
	margin: 1rem 0;
	padding: 0.75rem 1rem;
}

.arrenda-contact__notice--success {
	background: #edf8f0;
	border-color: #26833b;
	color: #155b27;
}

.arrenda-contact__notice--error {
	background: #fff1f1;
	border-color: #b32d2e;
	color: #7a1d1e;
}

.arrenda-contact__trap {
	height: 1px;
	left: -10000px;
	overflow: hidden;
	position: absolute;
	top: auto;
	width: 1px;
}

@media (max-width: 600px) {
	.arrenda-contact__form,
	.arrenda-contact__phone-section,
	.arrenda-contact__other-country {
		grid-template-columns: minmax(0, 1fr);
	}

	.arrenda-contact__phone-section-country,
	.arrenda-contact__phone-section-other,
	.arrenda-contact__phone-section-phone,
	.arrenda-contact__phone-section--other .arrenda-contact__phone-section-phone {
		grid-column: 1;
		grid-row: auto;
	}
}