/* ==========================================================================
   Contact form
   ========================================================================== */

.ad-form-wrap {
	width: 100%;
	max-width: 760px;
}

.ad-form {
	background: var(--ad-surface, #141922);
	border: 1px solid var(--ad-line, rgba(255, 255, 255, 0.08));
	border-radius: var(--ad-radius, 14px);
	padding: 30px;
}

/* Honeypot - hidden from people, still reachable by naive bots */
.ad-form__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ad-form__row {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
}

.ad-form__row > .ad-form__field {
	flex: 1 1 240px;
	min-width: 0;
}

.ad-form__field {
	display: flex;
	flex-direction: column;
	gap: 7px;
	margin: 0 0 18px;
}

.ad-form__field label {
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--ad-text, #F4F7FA);
	letter-spacing: 0.01em;
}

.ad-form__field label span {
	color: var(--ad-accent, #C1121F);
}

.ad-form input[type="text"],
.ad-form input[type="tel"],
.ad-form input[type="email"],
.ad-form select,
.ad-form textarea {
	width: 100%;
	padding: 13px 15px;
	border-radius: var(--ad-radius-sm, 8px);
	background: var(--ad-bg, #0A0C10);
	border: 1px solid var(--ad-line-strong, rgba(255, 255, 255, 0.16));
	color: var(--ad-text, #F4F7FA);
	font-family: inherit;
	font-size: 0.97rem;
	line-height: 1.4;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
	-webkit-appearance: none;
	appearance: none;
}

.ad-form textarea {
	resize: vertical;
	min-height: 130px;
}

/* Native select arrow is invisible on a dark background, so draw one */
.ad-form select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239AA7B4'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 20px;
	padding-right: 40px;
}

.ad-form select option {
	background: #0A0C10;
	color: #F4F7FA;
}

.ad-form ::placeholder {
	color: var(--ad-dim, #6B7885);
	opacity: 1;
}

.ad-form input:focus,
.ad-form select:focus,
.ad-form textarea:focus {
	outline: none;
	border-color: var(--ad-accent, #C1121F);
	box-shadow: 0 0 0 3px rgba(193, 18, 31, 0.18);
}

.ad-form input:focus-visible,
.ad-form select:focus-visible,
.ad-form textarea:focus-visible {
	outline: 2px solid var(--ad-accent, #C1121F);
	outline-offset: 1px;
}

/* Captcha sits in its own tinted band so it reads as a step, not a field */
.ad-form__captcha {
	background: var(--ad-surface-2, #1C232E);
	border: 1px solid var(--ad-line, rgba(255, 255, 255, 0.08));
	border-radius: var(--ad-radius-sm, 8px);
	padding: 16px 18px;
}

.ad-form__captcha strong {
	color: var(--ad-accent, #C1121F);
	font-size: 1.05rem;
}

.ad-form__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin: 4px 0 0;
}

.ad-form button[type="submit"] {
	font-family: inherit;
	font-size: 0.97rem;
	cursor: pointer;
	border: 0;
}

.ad-form__wa {
	font-size: 0.9rem;
	color: var(--ad-muted, #9AA7B4);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ad-form__wa:hover {
	color: var(--ad-accent, #C1121F);
}

/* ---------------------------------------------------------------- notices */

.ad-form__notice {
	margin: 0 0 20px;
	padding: 15px 18px;
	border-radius: var(--ad-radius-sm, 8px);
	font-size: 0.95rem;
	line-height: 1.55;
	border: 1px solid;
}

.ad-form__notice--ok {
	background: rgba(61, 214, 140, 0.10);
	border-color: rgba(61, 214, 140, 0.40);
	color: #8FE9BC;
}

.ad-form__notice--err {
	background: rgba(242, 85, 90, 0.10);
	border-color: rgba(242, 85, 90, 0.40);
	color: #FF9CA0;
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 767px) {
	.ad-form {
		padding: 20px;
	}

	.ad-form__row {
		gap: 0;
	}

	.ad-form__row > .ad-form__field {
		flex: 1 1 100%;
	}

	.ad-form__actions {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}

	.ad-form button[type="submit"] {
		width: 100%;
		justify-content: center;
	}

	/* 16px prevents iOS Safari zooming the page on focus */
	.ad-form input,
	.ad-form select,
	.ad-form textarea {
		font-size: 16px;
	}
}
