/* =============================================================
   Seven Dunes — Contact page + Ninja Forms styling
   Loaded only on page-templates/contact.php (see functions.php).
   Tokens come from :root in style.css (Sand & Ember).
   Ninja Forms rules are scoped to .sd-contact so any other forms
   elsewhere on the site are left untouched.
   ============================================================= */

.sd-contact {
	/* Full-screen sand photo (same image as the footer) with a light scrim
	   so the texture reads but the cards/text stay legible over it. */
	background:
		linear-gradient(rgba(253, 248, 240, 0.55), rgba(253, 248, 240, 0.60)),
		url('/wp-content/uploads/2026/05/Sand-3.jpg') center center / cover fixed;
	background-attachment: fixed;
}

/* ---- Hero (text sits over the page background) -------------- */
.sd-contact__hero {
	/* Soft highlight behind the title/subtitle for legibility over the photo,
	   fading out so the sand texture still shows around the edges. */
	background:
		radial-gradient(60% 85% at 50% 42%, rgba(253, 248, 240, 0.80) 0%, rgba(253, 248, 240, 0) 72%);
	padding-top: 72px;
	padding-bottom: 150px;   /* deep, so the cards lift into it */
	text-align: center;
}

.sd-contact__eyebrow {
	font-family: var(--sd-font-heading);
	text-transform: uppercase;
	letter-spacing: 0.16em;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--sd-brand);
	margin: 0 0 14px;
}

.sd-contact__title {
	font-family: var(--sd-font-heading);
	color: var(--sd-heading);
	font-size: clamp(2.4rem, 6vw, 3.75rem);
	line-height: 1.02;
	margin: 0;
}

.sd-contact__subtitle {
	font-family: var(--sd-font-body);
	color: var(--sd-muted);
	font-size: 1.15rem;
	line-height: 1.55;
	max-width: 34ch;
	margin: 18px auto 0;
}

/* ---- Body: two-column grid, lifted over the hero ------------ */
.sd-contact__body {
	position: relative;
	z-index: 1;
	margin-top: -110px;
	padding-bottom: 90px;
}

.sd-contact__grid {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 26px;
	align-items: stretch;
}

/* ---- Left: warm orange info panel --------------------------- */
.sd-contact__aside {
	background: linear-gradient(160deg, var(--sd-brand) 0%, #e07d09 60%, #c96f04 100%);
	color: #fff;
	border-radius: 20px;
	padding: 40px 36px;
	box-shadow: 0 22px 48px rgba(201, 111, 4, 0.30);
}

.sd-contact__aside-title {
	font-family: var(--sd-font-heading);
	font-size: 1.6rem;
	font-weight: 700;
	margin: 0 0 12px;
	color: #fff;
}

.sd-contact__aside-text {
	font-family: var(--sd-font-body);
	font-size: 1.02rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.92);
	margin: 0 0 26px;
}

.sd-contact__details {
	list-style: none;
	margin: 0 0 8px;
	padding: 0;
}

.sd-contact__detail {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 11px 0;
	font-family: var(--sd-font-body);
	font-size: 1.02rem;
	color: #fff;
	border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.sd-contact__detail:last-child {
	border-bottom: 0;
}

.sd-contact__detail a {
	color: #fff;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.5);
	transition: border-color 160ms ease;
}

.sd-contact__detail a:hover {
	border-color: #fff;
}

.sd-contact__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.16);
}

.sd-contact__icon svg {
	width: 20px;
	height: 20px;
}

/* Book-direct block */
.sd-contact__book {
	margin-top: 28px;
	padding-top: 26px;
	border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.sd-contact__book-label {
	font-family: var(--sd-font-heading);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.72rem;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.85);
	margin: 0 0 12px;
}

.sd-contact__book-btn {
	display: inline-flex;
	align-items: center;
	background: #fff;
	color: var(--sd-brand);
	font-family: var(--sd-font-heading);
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	padding: 14px 32px;
	border-radius: 999px;
	text-decoration: none;
	transition: transform 160ms ease, box-shadow 160ms ease;
}

.sd-contact__book-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
	color: var(--sd-brand);
}

/* ---- Right: white form card --------------------------------- */
.sd-contact__form-card {
	background: #fff;
	border: 1px solid #f0e7d7;
	border-radius: 20px;
	padding: 40px 42px;
	box-shadow: 0 22px 50px rgba(58, 42, 20, 0.10);
}

.sd-contact__form-card > p {
	font-family: var(--sd-font-body);
	color: var(--sd-text);
	font-size: 1.05rem;
	line-height: 1.6;
	margin-top: 0;
}

/* =============================================================
   Ninja Forms overrides (NF 3.x default markup)
   ============================================================= */
.sd-contact .nf-form-cont {
	margin-top: 18px;
}

/* Hide the form's own title (page + card already provide context) */
.sd-contact .nf-form-title,
.sd-contact .nf-form-content .nf-form-title {
	display: none;
}

/* Kill NF's default field chrome */
.sd-contact .nf-field-element input[type=text],
.sd-contact .nf-field-element input[type=email],
.sd-contact .nf-field-element input[type=tel],
.sd-contact .nf-field-element input[type=url],
.sd-contact .nf-field-element input[type=number],
.sd-contact .nf-field-element textarea {
	appearance: none;
	-webkit-appearance: none;
}

/* Labels */
.sd-contact .nf-field-label label,
.sd-contact .nf-field-label .nf-label-span {
	font-family: var(--sd-font-heading);
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--sd-heading);
	margin-bottom: 6px;
}

.sd-contact .ninja-forms-req-symbol {
	color: var(--sd-brand);
}

/* Inputs + textarea */
.sd-contact .nf-field-element input[type=text],
.sd-contact .nf-field-element input[type=email],
.sd-contact .nf-field-element input[type=tel],
.sd-contact .nf-field-element input[type=url],
.sd-contact .nf-field-element input[type=number],
.sd-contact .nf-field-element textarea {
	width: 100%;
	background: #fffdf9;
	border: 1px solid #e2d9c9;          /* warm sand-grey */
	border-radius: 10px;
	padding: 14px 16px;
	font-family: var(--sd-font-body);
	font-size: 1rem;
	color: var(--sd-text);
	line-height: 1.4;
	box-shadow: none;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.sd-contact .nf-field-element textarea {
	min-height: 150px;
	resize: vertical;
}

.sd-contact .nf-field-element input[type=text]:focus,
.sd-contact .nf-field-element input[type=email]:focus,
.sd-contact .nf-field-element input[type=tel]:focus,
.sd-contact .nf-field-element input[type=url]:focus,
.sd-contact .nf-field-element input[type=number]:focus,
.sd-contact .nf-field-element textarea:focus {
	outline: none;
	border-color: var(--sd-brand);
	box-shadow: 0 0 0 3px rgba(242, 143, 13, 0.18);
	background: #fff;
}

.sd-contact .nf-field-element input::placeholder,
.sd-contact .nf-field-element textarea::placeholder {
	color: #a99f8d;
}

/* Field spacing */
.sd-contact .nf-field-container {
	margin-bottom: 20px;
}

/* Submit button — mirrors .sd-btn (global primary button) */
.sd-contact .nf-field-element input[type=submit],
.sd-contact .nf-field-element input[type=button] {
	display: inline-flex;
	align-items: center;
	background: var(--sd-brand);
	color: #fff;
	font-family: var(--sd-font-heading);
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	padding: 15px 40px;
	width: auto;
	border: 2px solid transparent;
	border-radius: 999px;
	cursor: pointer;
	transition: background 160ms ease, transform 160ms ease;
}

.sd-contact .nf-field-element input[type=submit]:hover,
.sd-contact .nf-field-element input[type=button]:hover {
	background: #c97200;
	transform: translateY(-2px);
}

/* Validation / errors */
.sd-contact .nf-error.field-wrap .nf-field-element input,
.sd-contact .nf-error.field-wrap .nf-field-element textarea {
	border-color: #c0392b;
}

.sd-contact .nf-error-msg {
	color: #c0392b;
	font-family: var(--sd-font-body);
	font-size: 0.85rem;
	margin-top: 6px;
}

/* Success message after submit */
.sd-contact .nf-response-msg {
	background: var(--hpa-sand);
	border: 1px solid #e2d9c9;
	border-radius: 12px;
	padding: 22px 26px;
	font-family: var(--sd-font-body);
	color: var(--sd-text);
	font-size: 1.0625rem;
	line-height: 1.6;
}

/* ---- Responsive --------------------------------------------- */
@media (max-width: 860px) {
	.sd-contact__grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	/* Form first on mobile — it's the primary action */
	.sd-contact__form-card { order: -1; }
	.sd-contact__hero { padding-bottom: 130px; }
}

@media (max-width: 860px) {
	/* iOS/Android render fixed backgrounds poorly — scroll with the page instead */
	.sd-contact { background-attachment: scroll; }
}

@media (max-width: 600px) {
	.sd-contact__hero { padding-top: 48px; padding-bottom: 110px; }
	.sd-contact__body { margin-top: -90px; }
	.sd-contact__aside,
	.sd-contact__form-card { padding: 30px 24px; border-radius: 16px; }
	.sd-contact .nf-field-element input[type=submit],
	.sd-contact .nf-field-element input[type=button] { width: 100%; justify-content: center; }
}
