/* =================================================================
   CONTACT.CSS — Reveries Theme
================================================================= */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}

/* ── Page layout ── */
.rv-contact-wrap {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(32px, 4vw, 64px);
	max-width: 1380px;
	margin: 0 auto;
	padding: 42px 56px 80px;
}

.rv-contact-left,
.rv-contact-right {
	min-width: 0;
}

.rv-contact-left h2,
.rv-contact-right h2 {
	margin: 0 0 24px;
	color: var(--ink, #f4f4f4);
	font-family: var(--font-primary, inherit);
	font-size: clamp(2rem, 3vw, 2.7rem);
	font-weight: 700;
	letter-spacing: -.03em;
	line-height: 1.05;
	text-align: left;
}

/* ── Form surface ── */
.rv-contact-left .wpcf7 {
	padding: clamp(24px, 3vw, 36px);
	border: 1px solid var(--line, rgba(245, 245, 245, .12));
	border-radius: 14px;
	background: var(--deep-grey, #151515);
	box-shadow: 0 20px 50px rgba(0, 0, 0, .22);
}

/* ── Contact numbers ── */
.rv-contact-left .rv-contact-options {
	display: grid;
	grid-template-columns: minmax(130px, .8fr) 1fr 1fr;
	gap: 12px;
	align-items: stretch;
	margin: -2px 0 28px;
	padding: 0 0 24px;
	border-bottom: 1px solid var(--line, rgba(245, 245, 245, .12));
}

.rv-contact-options__intro {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-right: 8px;
}

.rv-contact-options__intro > span {
	color: var(--ink, #f4f4f4);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .01em;
}

.rv-contact-options__intro p {
	margin: 5px 0 0;
	color: var(--muted, #9d9d9d);
	font-size: 12px;
	line-height: 1.45;
}

.rv-contact-options__number {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 58px;
	padding: 10px 12px;
	border: 1px solid var(--dim, #2f2f2f);
	border-radius: 10px;
	background: var(--bg-soft, #0d0d0d);
	color: var(--ink, #f4f4f4);
	text-decoration: none;
	transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.rv-contact-options__number svg {
	width: 17px;
	height: 17px;
	flex: 0 0 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
	color: var(--muted, #9d9d9d);
}

.rv-contact-options__number small,
.rv-contact-options__number strong {
	display: block;
}

.rv-contact-options__number small {
	margin-bottom: 3px;
	color: var(--muted, #9d9d9d);
	font-size: 10px;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.rv-contact-options__number strong {
	color: var(--ink, #f4f4f4);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.rv-contact-options__number:hover,
.rv-contact-options__number:focus-visible {
	border-color: var(--ink, #f4f4f4);
	background: rgba(255, 255, 255, .05);
	transform: translateY(-2px);
	outline: none;
}

/* ── Enquiry heading ── */
.rv-contact-left .rv-enquiry-intro {
	margin: 0 0 26px;
}

.rv-contact-left .rv-enquiry-intro span {
	display: block;
	margin-bottom: 8px;
	color: var(--muted, #9d9d9d);
	font-size: 10px;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.rv-contact-left .rv-enquiry-intro h3 {
	margin: 0;
	color: var(--ink, #f4f4f4);
	font-family: var(--font-primary, inherit);
	font-size: clamp(1.8rem, 3vw, 2.25rem);
	font-weight: 700;
	letter-spacing: -.03em;
	line-height: 1.1;
}

/* ── Fields ── */
.rv-contact-left .wpcf7 label,
.rv-contact-left .wpcf7 .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

.rv-contact-left .wpcf7 label {
	margin-bottom: 7px;
	color: var(--muted, #9d9d9d);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .06em;
	line-height: 1.3;
	text-transform: uppercase;
}

.rv-contact-left .rv-form-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 16px;
}

.rv-contact-left .rv-form-row > label:last-child {
	grid-column: 1 / -1;
}

.rv-contact-left .wpcf7 input[type="text"],
.rv-contact-left .wpcf7 input[type="email"],
.rv-contact-left .wpcf7 input[type="tel"],
.rv-contact-left .wpcf7 textarea {
	box-sizing: border-box;
	width: 100%;
	margin: 7px 0 22px;
	padding: 14px 16px;
	border: 1px solid var(--dim, #2f2f2f);
	border-radius: 8px;
	background: var(--bg-soft, #0d0d0d);
	color: var(--ink, #f4f4f4);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.35;
	outline: none;
	transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.rv-contact-left .wpcf7 input[type="text"]:focus,
.rv-contact-left .wpcf7 input[type="email"]:focus,
.rv-contact-left .wpcf7 input[type="tel"]:focus,
.rv-contact-left .wpcf7 textarea:focus {
	border-color: rgba(244, 244, 244, .75);
	background: #101010;
	box-shadow: 0 0 0 3px rgba(244, 244, 244, .07);
}

.rv-contact-left .wpcf7 input[type="text"]::placeholder,
.rv-contact-left .wpcf7 input[type="email"]::placeholder,
.rv-contact-left .wpcf7 input[type="tel"]::placeholder,
.rv-contact-left .wpcf7 textarea::placeholder {
	color: var(--soft-grey, #8c8c8c);
	opacity: 1;
}

.rv-contact-left .wpcf7 textarea {
	min-height: 166px;
	resize: vertical;
}

/* ── Services ── */
.rv-contact-left .rv-service-options {
	margin: 0 0 24px;
	padding: 0;
	border: 0;
}

.rv-contact-left .rv-service-options legend {
	margin-bottom: 13px;
	color: var(--muted, #9d9d9d);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.rv-contact-left .rv-service-options .wpcf7-form-control {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
}

.rv-contact-left .rv-service-options .wpcf7-list-item {
	margin: 0;
}

.rv-contact-left .rv-service-options label {
	display: inline-flex;
	align-items: center;
	width: auto;
	margin: 0;
	color: var(--ink, #f4f4f4);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
}

.rv-contact-left .rv-service-options input[type="checkbox"] {
	width: 15px;
	height: 15px;
	margin: 0 7px 0 0;
	accent-color: #f4f4f4;
	cursor: pointer;
}

/* ── Submit ── */
.rv-contact-left .wpcf7 input[type="submit"] {
	display: block !important;
	margin: 8px auto 0;
	padding: 14px 30px;
	border: 1px solid transparent;
	border-radius: 10px;
	background: var(--ink, #f4f4f4);
	color: var(--bg, #000);
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .04em;
	cursor: pointer;
	transition: transform .2s ease, opacity .2s ease;
}

.rv-contact-left .wpcf7 input[type="submit"]:hover {
	opacity: .88;
	transform: translateY(-2px);
}

.rv-contact-left .wpcf7 input[type="submit"]:active {
	transform: translateY(0);
}

/* ── Form status and errors ── */
.rv-contact-left .wpcf7 .wpcf7-response-output {
	margin: 18px 0 0;
	padding: 12px 15px;
	border: 1px solid var(--dim, #2f2f2f);
	border-radius: 8px;
	color: var(--muted, #9d9d9d);
	font-size: 13px;
	line-height: 1.45;
}

.rv-contact-left .wpcf7 .wpcf7-mail-sent-ok {
	border-color: #2d6a4f;
	background: rgba(45, 106, 79, .12);
	color: #9ce2ba;
}

.rv-contact-left .wpcf7 .wpcf7-validation-errors,
.rv-contact-left .wpcf7 .wpcf7-mail-sent-ng,
.rv-contact-left .wpcf7 .wpcf7-spam-blocked {
	border-color: #a63b3b;
	background: rgba(127, 29, 29, .14);
	color: #ffb0b0;
}

.rv-contact-left .wpcf7 .wpcf7-not-valid {
	border-color: #f87171 !important;
}

.rv-contact-left .wpcf7 .wpcf7-not-valid-tip {
	display: block;
	margin: -14px 0 15px;
	color: #ff9c9c;
	font-size: 12px;
	line-height: 1.35;
}

/* ── Instagram ── */
.rv-contact-instagram {
	overflow: hidden;
	padding: 20px;
	border: 1px solid var(--line, rgba(245, 245, 245, .12));
	border-radius: 14px;
	background: var(--deep-grey, #151515);
	box-shadow: 0 20px 50px rgba(0, 0, 0, .22);
}

.rv-contact-instagram .sbi_photos,
.rv-contact-instagram #sb_instagram {
	width: 100% !important;
}

.rv-contact-notice {
	padding: 24px;
	border: 1px dashed var(--dim, #2f2f2f);
	border-radius: 8px;
	color: var(--muted, #9d9d9d);
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
}

/* ── Tablet and mobile ── */
@media (max-width: 900px) {
	.rv-contact-wrap {
		grid-template-columns: 1fr;
		padding: 36px 28px 68px;
	}

	.rv-contact-right {
		margin-top: 10px;
	}
}

@media (max-width: 600px) {
	.rv-contact-wrap {
		gap: 38px;
		padding: 30px 18px 56px;
	}

	.rv-contact-left h2,
	.rv-contact-right h2 {
		margin-bottom: 20px;
		font-size: 2rem;
	}

	.rv-contact-left .wpcf7 {
		padding: 22px 18px;
		border-radius: 12px;
	}

	.rv-contact-left .rv-contact-options {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.rv-contact-options__intro {
		padding: 0 0 4px;
	}

	.rv-contact-left .rv-form-row {
		grid-template-columns: 1fr;
	}

	.rv-contact-left .rv-form-row > label:last-child {
		grid-column: auto;
	}

	.rv-contact-left .wpcf7 input[type="text"],
	.rv-contact-left .wpcf7 input[type="email"],
	.rv-contact-left .wpcf7 input[type="tel"],
	.rv-contact-left .wpcf7 textarea {
		margin-bottom: 19px;
	}
}

/* ================================================================
   FINAL MOBILE FIX — prevents horizontal scrolling / zooming out
================================================================ */

html,
body {
	max-width: 100%;
	overflow-x: hidden;
}

.rv-contact-wrap,
.rv-contact-left,
.rv-contact-right,
.rv-contact-left .wpcf7,
.rv-contact-instagram {
	box-sizing: border-box;
}

@media (max-width: 900px) {
	.rv-contact-wrap {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 !important;
		padding: 30px 18px 60px !important;
	}

	.rv-contact-left,
	.rv-contact-right {
		width: 100% !important;
		min-width: 0 !important;
	}

	.rv-contact-right {
		margin-top: 42px;
	}

	.rv-contact-left h2,
	.rv-contact-right h2 {
		width: 100%;
		margin-bottom: 20px;
		font-size: clamp(2rem, 10vw, 2.6rem) !important;
		line-height: 1.08;
		text-align: left !important;
		overflow-wrap: anywhere;
	}

	.rv-contact-left .wpcf7,
	.rv-contact-instagram {
		width: 100% !important;
		max-width: 100% !important;
		padding: 22px 18px !important;
		border-radius: 12px;
	}

	.rv-contact-left .rv-contact-options {
		display: grid !important;
		grid-template-columns: 1fr !important;
		width: 100% !important;
		gap: 10px !important;
		margin: 0 0 24px !important;
		padding: 0 0 22px !important;
	}

	.rv-contact-options__intro {
		padding: 0 0 4px !important;
	}

	.rv-contact-options__number,
	.rv-contact-left .rv-contact-options a {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100% !important;
	}

	.rv-contact-left .rv-form-row {
		display: grid !important;
		grid-template-columns: 1fr !important;
		gap: 0 !important;
		width: 100% !important;
	}

	.rv-contact-left .rv-form-row > label,
	.rv-contact-left .rv-form-row > label:last-child {
		grid-column: auto !important;
		min-width: 0 !important;
	}

	.rv-contact-left .wpcf7 input[type="text"],
	.rv-contact-left .wpcf7 input[type="email"],
	.rv-contact-left .wpcf7 input[type="tel"],
	.rv-contact-left .wpcf7 textarea {
		box-sizing: border-box !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	.rv-contact-left .rv-service-options .wpcf7-form-control {
		display: grid !important;
		grid-template-columns: 1fr !important;
		gap: 10px !important;
	}

	.rv-contact-left .rv-service-options label {
		min-width: 0 !important;
	}
}

.rv-contact-left .wpcf7 .rv-enquiry-submit {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	margin: 26px auto 0 !important;
	padding: 15px 30px !important;
	border: 1px solid #f4f4f4 !important;
	border-radius: 10px !important;
	background: #f4f4f4 !important;
	color: #000 !important;
	cursor: pointer !important;
}
