/**
 * simplydwell/contact-band — front-end styles.
 */

/* ── Section ─────────────────────────────────────────────────────────────── */
.cu-section {
	background: #f5f0e8;
	padding: clamp(48px, 9vw, 120px) clamp(24px, 6vw, 120px);	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 64px;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.cu-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 32px;
	text-align: center;
	width: 100%;
	max-width: 794px;
}

.cu-eyebrow {
	margin: 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.2em;
	color: #c8922a;
	text-transform: uppercase;
}

.cu-headline {
	margin: 0;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	font-size: clamp(32px, 3.8vw, 60px);
	font-weight: 800;
	line-height: 1;
}

.cu-headline__plain {
	color: var(--sd-color-dark)
}

.cu-headline__accent {
	background: var(--sd-gradient-brand, linear-gradient(90deg, #d46f35 0%, #e2bb61 100%));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.cu-divider {
	width: 48px;
	height: 3px;
	background: #c8922a;
}

/* ── Body (two-column) ───────────────────────────────────────────────────── */
.cu-body {
	display: flex;
	flex-direction: row;
	gap: 15%;
	align-items: flex-start;
	width: 100%;
}

/* ── Left — advisors ─────────────────────────────────────────────────────── */
.cu-left {
	flex: 0 0 35%;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.cu-advisors-label {
	margin: 0 0 16px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.18em;
	color: #888;
	text-transform: uppercase;
}

/* Advisor card */
.cu-card {
	background: #ffffff;
	border: 1px solid #e4ddd0;
	border-radius: 6px;
	border-left: 4px solid #c8922a;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 20px;
	margin-bottom: 16px;
	box-sizing: border-box;
}

.cu-card:last-child {
	margin-bottom: 0;
}

.cu-avatar {
	width: 72px;
	height: 72px;
	border-radius: 4px;
	object-fit: cover;
	flex-shrink: 0;
	background: #d4cfc7;
	filter: grayscale(100%);
}

.cu-avatar-placeholder {
	width: 72px;
	height: 72px;
	border-radius: 4px;
	background: #ccc;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cu-card-info {
	flex: 1;
	min-width: 0;
}

.cu-card-name {
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 700;
	color: #1e2433;
}

.cu-card-role {
	margin: 0 0 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: #888;
	text-transform: uppercase;
}

.cu-card-actions {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}

.cu-card-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #e07b2a;
	text-decoration: none;
	transition: opacity 0.15s ease;
}

.cu-card-link:hover {
	opacity: 0.75;
	text-decoration: underline;
}

.cu-card-link svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

/* ── Right — form ────────────────────────────────────────────────────────── */
.cu-right {
	flex: 1;
	min-width: 0;
	background: #ffffff;
	border: 1px solid #C8C8C8;
	border-radius: 6px;
	padding: 32px 36px;
	box-sizing: border-box;
}

.cu-form-notice {
	margin: 0;
	font-size: 13px;
	color: #999;
}

/* ── Gravity Forms overrides ─────────────────────────────────────────────── */
/* Prefix with the WP block class for higher specificity than GF's own sheet  */
.wp-block-simplydwell-contact-band .gform_wrapper,
.wp-block-simplydwell-contact-band .gform_wrapper.gravity-theme {
	margin: 0 !important;
}

.wp-block-simplydwell-contact-band .gform-body,
.wp-block-simplydwell-contact-band .gform_body {
	margin: 0 !important;
}

/* Two-column field grid */
.wp-block-simplydwell-contact-band .gform_fields,
.wp-block-simplydwell-contact-band .gfields {
	/* display: grid !important;
	grid-template-columns: 1fr 1fr !important;
	gap: 24px 28px !important;
	margin: 0 0 24px !important;
	padding: 0 !important;
	list-style: none !important; */
	gap: 30px 28px !important;
}

.wp-block-simplydwell-contact-band .gfield {
	margin: 0 !important;
	padding: 0 !important;
}

/* Full-width fields (set field size to "Full" in GF form builder) */
.wp-block-simplydwell-contact-band .gfield--width-full {
	grid-column: 1 / -1 !important;
}

/* Field labels */
.wp-block-simplydwell-contact-band .gfield_label {
	display: block !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: 0.14em !important;
	text-transform: uppercase !important;
	color: #737A87 !important;
	margin: 0 0 6px !important;
}

/* Input container */
.wp-block-simplydwell-contact-band .ginput_container {
	margin: 0 !important;
}

/* Text / email / tel / number inputs */
.wp-block-simplydwell-contact-band .cu-right input[type="text"],
.wp-block-simplydwell-contact-band .cu-right input[type="email"],
.wp-block-simplydwell-contact-band .cu-right input[type="tel"],
.wp-block-simplydwell-contact-band .cu-right input[type="number"] {
	background: transparent !important;
	border: none !important;
	border-bottom: 1.5px solid #C8C8C8 !important;
	border-radius: 0 !important;
	padding: 6px 0 !important;
	font-size: 14px !important;
	color: #737A87 !important;
	width: 100% !important;
	box-sizing: border-box !important;
	outline: none !important;
	box-shadow: none !important;
	transition: border-color 0.2s !important;
}

/* Select */
.wp-block-simplydwell-contact-band .cu-right select {
	background-color: #fff !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 4px center !important;
	border: 1px solid #C8C8C8 !important;
	border-radius: 3px !important;
	padding: 9px 32px 9px 10px !important;
	font-size: 14px !important;
	color: #737A87 !important;
	width: 100% !important;
	box-sizing: border-box !important;
	outline: none !important;
	box-shadow: none !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	transition: border-color 0.2s !important;
	line-height: 30px;
}

/* Textarea */
.wp-block-simplydwell-contact-band .cu-right textarea {
	background: transparent !important;
	border: 1.5px solid #C8C8C8 !important;
	border-radius: 3px !important;
	padding: 10px 12px !important;
	font-size: 14px !important;
	color: #737A87 !important;
	width: 100% !important;
	min-height: 120px !important;
	box-sizing: border-box !important;
	outline: none !important;
	box-shadow: none !important;
	resize: vertical !important;
	transition: border-color 0.2s !important;
}

/* Placeholders */
.wp-block-simplydwell-contact-band .cu-right input::placeholder,
.wp-block-simplydwell-contact-band .cu-right textarea::placeholder {
	color: #737A87 !important;
}

/* Focus states */
.wp-block-simplydwell-contact-band .cu-right input[type="text"]:focus,
.wp-block-simplydwell-contact-band .cu-right input[type="email"]:focus,
.wp-block-simplydwell-contact-band .cu-right input[type="tel"]:focus,
.wp-block-simplydwell-contact-band .cu-right input[type="number"]:focus,
.wp-block-simplydwell-contact-band .cu-right select:focus,
.wp-block-simplydwell-contact-band .cu-right textarea:focus {
	border-color: #e07b2a !important;
}

/* Submit button */
.wp-block-simplydwell-contact-band .gform_wrapper input.gform_button,
.wp-block-simplydwell-contact-band input[type="submit"],
.wp-block-simplydwell-contact-band button[type="submit"],
.wp-block-simplydwell-contact-band #gform_submit_button_1 {
	display: block !important;
	width: 100% !important;
	padding: 16px !important;
	background: #fff !important;
	border: 2px solid #e07b2a !important;
	border-radius: 30px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	letter-spacing: 0.18em !important;
	color: #e07b2a !important;
	text-transform: uppercase !important;
	cursor: pointer !important;
	text-align: center !important;
	transition: background 0.2s, color 0.2s !important;
	margin-top: 8px !important;
	box-shadow: none !important;
}

.wp-block-simplydwell-contact-band .gform-footer.gform_footer{
	padding: 30px 0px;
}

.wp-block-simplydwell-contact-band .gform_button:hover,
.wp-block-simplydwell-contact-band input[type="submit"]:hover,
.wp-block-simplydwell-contact-band button[type="submit"]:hover,
.wp-block-simplydwell-contact-band #gform_submit_button_1:hover {
	background: #e07b2a !important;
	color: #fff !important;
}

/* GF footer */
.wp-block-simplydwell-contact-band .gform_footer,
.wp-block-simplydwell-contact-band .gform_page_footer {
	margin: 0 !important;
	padding: 0 !important;
}

/* GF validation / error messages */
.wp-block-simplydwell-contact-band .gform_wrapper .validation_message,
.wp-block-simplydwell-contact-band .gform_wrapper .gfield_description {
	font-size: 12px !important;
	padding: 4px 0 0 !important;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
	.cu-body {
		flex-direction: column;
		gap: 40px;
	}

	.cu-left {
		flex: none;
		width: 100%;
	}
}

@media (max-width: 640px) {
	.cu-section {
		gap: 40px;
	}

	.cu-headline {
		flex-direction: column;
		gap: 4px;
	}

	.cu-right {
		padding: 24px 20px;
	}

	.cu-right .gform_fields {
		grid-template-columns: 1fr !important;
	}

	.cu-right .gfield--width-full {
		grid-column: 1 !important;
	}
}