/**
 * uxneuron — contact.css
 *
 * The Contact page's two-column hero (copy + info cards on the left, the
 * form card on the right). Info cards reuse .infocard from base.css.
 *
 * @package uxneuron
 */

.contact-hero {
	position: relative;
	overflow: hidden;
	max-width: var( --container-max );
	margin: 0 auto;
	padding: 80px var( --section-x ) 90px;
}

.contact-hero__grid {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1.05fr;
	gap: 64px;
	align-items: start;
}

.contact-hero__title {
	font-weight: 800;
	font-size: 58px;
	line-height: 1.05;
	letter-spacing: -.025em;
	margin: 0 0 22px;
}

.contact-hero__description {
	font-size: 19px;
	line-height: 1.65;
	color: var( --color-text-soft );
	max-width: 440px;
	margin: 0 0 40px;
}

.contact-info-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* Form card. */

.contact-form-card {
	position: relative;
	background: #fff;
	border: 1px solid rgba(0,0,0,.08);
	border-radius: var( --radius-2xl );
	padding: 40px;
	box-shadow: var( --shadow-form );
}

.form-row {
	margin-bottom: 14px;
}

.form-row--two {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.form-group label {
	display: block;
	font-family: var( --font-heading );
	font-weight: 600;
	font-size: 13px;
	color: #3a3a3a;
	margin-bottom: 5px;
	letter-spacing: .01em;
}

.form-optional {
	color: #b0b0b6;
	font-weight: 500;
}

.req-star {
	color: #e53935;
	font-size: 14px;
	margin-left: 2px;
	line-height: 1;
}

.fld {
	transition: border-color .25s ease, box-shadow .25s ease;
	width: 100%;
	padding: 13px 15px;
	border: 1px solid rgba(0,0,0,.14);
	border-radius: var( --radius-sm );
	font-family: var( --font-body );
	font-size: 15px;
	background: var( --color-input-bg );
}

.fld:focus {
	outline: none;
	border-color: var( --color-primary );
	box-shadow: 0 0 0 4px rgba(222,108,9,.12);
}

textarea.fld {
	resize: vertical;
}

.svc-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
}

.chipbtn {
	transition: background .25s ease, color .25s ease, border-color .25s ease;
	cursor: pointer;
	font-family: var( --font-heading );
	font-weight: 600;
	font-size: 13.5px;
	padding: 9px 16px;
	border-radius: var( --radius-pill );
	border: 1px solid rgba(0,0,0,.14);
	background: #fff;
	color: #3a3a3a;
	display: inline-flex;
	align-items: center;
}

.chipbtn__input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.chipbtn:has( .chipbtn__input:checked ) {
	background: var( --color-primary );
	color: #fff;
	border-color: var( --color-primary );
}

/* :has() fallback for browsers without support: contact-form.js also
   toggles this class directly on click. */
.chipbtn.is-checked {
	background: var( --color-primary );
	color: #fff;
	border-color: var( --color-primary );
}

.contact-form__submit {
	width: 100%;
	justify-content: center;
}

.contact-form__submit[disabled] {
	opacity: .7;
	cursor: not-allowed;
	transform: none !important;
}

.contact-form__status {
	min-height: 20px;
	margin: 14px 0 0;
	font-size: 14px;
	color: var( --color-text-muted );
	text-align: center;
}

.contact-form__status.is-error {
	color: #c0392b;
}

.contact-form__success {
	text-align: center;
	padding: 30px 10px;
}

.contact-form__success-icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: rgba(222,108,9,.12);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
}

.contact-form__success h3 {
	font-weight: 800;
	font-size: 26px;
	margin: 0 0 8px;
}

.contact-form__success p {
	font-size: 16px;
	color: var( --color-text-muted );
	margin: 0;
}

/* =========================================================================
   Contact Form 7 compatibility
   Mirrors the theme's built-in form styles onto CF7's generated markup.
   ========================================================================= */

.wpcf7 { margin: 0; }
.wpcf7 form { margin: 0; }

/* CF7 wraps every field in a span — make it behave like a block */
.wpcf7 .wpcf7-form-control-wrap {
	display: block;
	margin: 0;
	padding: 0;
}

/* Text / email inputs */
.wpcf7 input.wpcf7-text,
.wpcf7 input.wpcf7-email {
	transition: border-color .25s ease, box-shadow .25s ease;
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 13px 15px;
	border: 1px solid rgba(0,0,0,.14);
	border-radius: var( --radius-sm );
	font-family: var( --font-body );
	font-size: 15px;
	background: var( --color-input-bg );
}

.wpcf7 input.wpcf7-text:focus,
.wpcf7 input.wpcf7-email:focus {
	outline: none;
	border-color: var( --color-primary );
	box-shadow: 0 0 0 4px rgba(222,108,9,.12);
}

/* Textarea */
.wpcf7 textarea.wpcf7-textarea {
	transition: border-color .25s ease, box-shadow .25s ease;
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 13px 15px;
	border: 1px solid rgba(0,0,0,.14);
	border-radius: var( --radius-sm );
	font-family: var( --font-body );
	font-size: 15px;
	background: var( --color-input-bg );
	resize: vertical;
}

.wpcf7 textarea.wpcf7-textarea:focus {
	outline: none;
	border-color: var( --color-primary );
	box-shadow: 0 0 0 4px rgba(222,108,9,.12);
}

/* Checkbox chips — add class="cf7-chips-group" to the wrapping .form-group */
.cf7-chips-group .wpcf7-checkbox {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
}

.cf7-chips-group .wpcf7-list-item {
	margin: 0;
}

.cf7-chips-group .wpcf7-list-item label {
	transition: background .25s ease, color .25s ease, border-color .25s ease;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	font-family: var( --font-heading );
	font-weight: 600;
	font-size: 13.5px;
	padding: 9px 16px;
	border-radius: var( --radius-pill );
	border: 1px solid rgba(0,0,0,.14);
	background: #fff;
	color: #3a3a3a;
	margin-bottom: 0;
}

.cf7-chips-group .wpcf7-list-item input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.cf7-chips-group .wpcf7-list-item label:has( input:checked ) {
	background: var( --color-primary );
	color: #fff;
	border-color: var( --color-primary );
}

/* Submit button — CF7 outputs <input type="submit">, not <button>,
   so inline-flex from .btn doesn't apply; override to block + full width */
.wpcf7 input.wpcf7-submit.btn {
	display: block;
	width: 100%;
	text-align: center;
	cursor: pointer;
	border: none;
	-webkit-appearance: none;
	appearance: none;
}

.wpcf7 input.wpcf7-submit.btn:disabled {
	opacity: .7;
	cursor: not-allowed;
	transform: none;
}

/* Field-level validation error */
.wpcf7 .wpcf7-not-valid-tip {
	display: block;
	color: #c0392b;
	font-size: 12.5px;
	margin-top: 5px;
}

.wpcf7 input.wpcf7-not-valid,
.wpcf7 textarea.wpcf7-not-valid {
	border-color: #c0392b;
	box-shadow: 0 0 0 3px rgba(192,57,43,.10);
}

/* Form-level response message (success / error) */
.wpcf7 .wpcf7-response-output {
	margin: 14px 0 0;
	padding: 12px 16px;
	border-radius: var( --radius-sm );
	font-size: 14px;
	border: none;
	text-align: center;
}

.wpcf7 form.sent .wpcf7-response-output {
	background: rgba(222,108,9,.08);
	color: var( --color-primary );
	border-color: transparent;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
	background: rgba(192,57,43,.08);
	color: #c0392b;
	border-color: transparent;
}
