/*
 * [navian_form_card]: see inc/wpbakery/form-card.php.
 * Everything that restyles Contact Form 7 is scoped to .navian-form-card so forms elsewhere keep their look.
 */

.navian-form-card {
	background: var(--navian-brand-dark, #0a0b10);
	color: var(--navian-brand-light, #fff);
	border-radius: 12px;
	padding: 48px;
	box-sizing: border-box;
}
@media (max-width: 767px) {
	.navian-form-card { padding: 28px; }
}

.navian-form-card .navian-form-card__heading {
	margin: 0 0 16px;
	color: var(--navian-brand-light, #fff);
	font-size: clamp(30px, 3.05vw, 44px);
}
.navian-form-card .navian-form-card__highlight { color: var(--navian-brand-primary, #1a3cff); }
.navian-form-card .navian-form-card__intro,
.navian-form-card .navian-form-card__intro p {
	color: rgba(255, 255, 255, 0.85);
	font-size: 18px;
	line-height: 1.45;
}
.navian-form-card .navian-form-card__intro { margin-bottom: 28px; }
.navian-form-card .navian-form-card__intro p { margin: 0 0 10px; }
.navian-form-card .navian-form-card__intro p:last-child { margin-bottom: 0; }

/* ---- Form layout ---- */
.navian-form-card div.wpcf7 { margin: 0; padding: 0; background: none; }
.navian-form-card .wpcf7 p { margin: 0 0 18px; }
.navian-form-card .wpcf7 .contact-form-wrapper,
.navian-form-card .wpcf7 .contact-form-col { margin: 0; padding: 0; }
.navian-form-card .wpcf7 .contact-form-col.overflow-hidden { overflow: visible; }
.navian-form-card .wpcf7 .form-item { width: 100%; margin: 0; padding: 0; float: none; }
/* Keep the live form's own two-column grid on wide cards. */
.navian-form-card .wpcf7 .half-column { float: left; width: 48%; }
.navian-form-card .wpcf7 .half-column.half-column-left { margin-right: 4%; }
.navian-form-card .wpcf7 .half-column.half-column-right { width: 48%; }
.navian-form-card .wpcf7 .contact-form-col::after { content: ""; display: table; clear: both; }
@media (max-width: 1280px) {
	.navian-form-card .wpcf7 .half-column,
	.navian-form-card .wpcf7 .half-column.half-column-right { float: none; width: 100% !important; margin-right: 0; }
}
.navian-form-card .wpcf7 .wpcf7-form-control-wrap { display: block; }

/* ---- Labels: sentence case (markup is upper case, so lower it then capitalise the first letter) ---- */
.navian-form-card .wpcf7 .form-label,
.navian-form-card .wpcf7 .form-label-comment {
	display: block;
	margin: 0 0 8px;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.3;
	text-transform: lowercase;
}
.navian-form-card .wpcf7 .form-label::first-letter,
.navian-form-card .wpcf7 .form-label-comment::first-letter { text-transform: uppercase; }
.navian-form-card .wpcf7 br { display: none; }

/* ---- Fields ---- */
.navian-form-card .wpcf7 input.wpcf7-form-control:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.navian-form-card .wpcf7 select.wpcf7-form-control,
.navian-form-card .wpcf7 textarea.wpcf7-form-control {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 52px;
	margin: 0;
	padding: 0 16px;
	background: #fff;
	color: #0a0b10;
	border: 1px solid transparent;
	border-radius: 6px;
	box-shadow: none;
	box-sizing: border-box;
	font-size: 16px;
	font-weight: 400;
	text-transform: none;
	line-height: normal;
}
.navian-form-card .wpcf7 textarea.wpcf7-form-control {
	height: 140px;
	padding: 14px 16px;
	resize: vertical;
}
.navian-form-card .wpcf7 select.wpcf7-form-control { cursor: pointer; }
.navian-form-card .wpcf7 .wpcf7-form-control::placeholder,
.bg-dark .navian-form-card .wpcf7 .wpcf7-form-control-wrap .wpcf7-form-control::placeholder {
	color: #7a7f8c !important;
	opacity: 1 !important;
}
.navian-form-card .wpcf7 input.wpcf7-form-control:focus,
.navian-form-card .wpcf7 select.wpcf7-form-control:focus,
.navian-form-card .wpcf7 textarea.wpcf7-form-control:focus {
	outline: 2px solid var(--navian-brand-primary, #1a3cff);
	outline-offset: 0;
	background: #fff;
	color: #0a0b10;
}

/* ---- Checkboxes ---- */
.navian-form-card .wpcf7 .wpcf7-checkbox { display: block; }
.navian-form-card .wpcf7 .wpcf7-list-item { display: block; margin: 0; }
.navian-form-card .wpcf7 .wpcf7-list-item > label,
.navian-form-card .wpcf7 .wpcf7-list-item { position: relative; }
.navian-form-card .wpcf7 .wpcf7-list-item input[type="checkbox"] {
	-webkit-appearance: none;
	appearance: none;
	position: absolute;
	top: 1px;
	left: 0;
	width: 22px;
	height: 22px;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 2px solid #fff;
	border-radius: 4px;
	cursor: pointer;
	opacity: 1;
}
.navian-form-card .wpcf7 .wpcf7-list-item input[type="checkbox"]:checked {
	background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}
.navian-form-card .wpcf7 .wpcf7-list-item input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--navian-brand-primary, #1a3cff);
	outline-offset: 2px;
}
.navian-form-card .wpcf7 .wpcf7-list-item-label {
	display: block;
	padding-left: 36px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.45;
	text-transform: none;
	letter-spacing: 0;
}

/* ---- Submit ---- */
.navian-form-card .wpcf7 input.wpcf7-submit {
	display: block;
	width: 100%;
	height: 60px;
	margin: 8px 0 0;
	padding: 0 64px 0 24px;
	background-color: var(--navian-brand-primary, #1a3cff);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: calc(50% + 78px) center;
	background-size: 22px 22px;
	color: #fff;
	border: 0;
	border-radius: 6px;
	box-shadow: none;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.2s ease;
}
.navian-form-card .wpcf7 input.wpcf7-submit:hover,
.navian-form-card .wpcf7 input.wpcf7-submit:focus-visible {
	background-color: color-mix(in srgb, var(--navian-brand-primary, #1a3cff) 82%, #000);
	color: #fff;
}
.navian-form-card .wpcf7 .wpcf7-spinner { display: block; margin: 8px auto 0; }

/* reCAPTCHA badge/placeholder must not break the layout. */
.navian-form-card .wpcf7 .wpcf7-form-control-wrap.recaptcha { display: block; max-width: 100%; overflow: hidden; }
.navian-form-card .wpcf7 .g-recaptcha { max-width: 100%; }
.navian-form-card .wpcf7 .grecaptcha-badge { max-width: 100%; }

/* ---- Validation + response ---- */
.navian-form-card .wpcf7 .wpcf7-not-valid-tip {
	margin-top: 6px;
	color: #ff9aa8;
	font-size: 14px;
}
.navian-form-card .wpcf7 .wpcf7-not-valid { border-color: #ff9aa8 !important; }
.navian-form-card .wpcf7 .wpcf7-response-output {
	margin: 20px 0 0;
	padding: 12px 16px;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 6px;
	font-size: 15px;
}
.navian-form-card .wpcf7 form.sent .wpcf7-response-output { border-color: #7be3a4; }
.navian-form-card .wpcf7 form.invalid .wpcf7-response-output,
.navian-form-card .wpcf7 form.failed .wpcf7-response-output,
.navian-form-card .wpcf7 form.spam .wpcf7-response-output { border-color: #ff9aa8; }
