﻿/* =================================================================
   CONTACT.CSS — Reveries Theme
   Styles for template-parts/contact/contact.php
   Loaded only on the Contact page via inc/enqueue.php.
================================================================= */

/* =============================================
   REDUCED MOTION
============================================= */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}

/* ── Contact Page Layout ── */
.rv-contact-wrap {
	display: flex;
	gap: 48px;
	padding: 80px 56px;
	max-width: 1380px;
	margin: 0 auto;
}

/* ── Left column: CF7 form ── */
.rv-contact-left {
	flex: 1;
}

.rv-contact-left h2,
.rv-contact-right h2 {
	font-size: 2.4rem;
	font-weight: 700;
	margin-bottom: 32px;
	color: var(--ink, #c7c8cc);
	text-align: center;
	font-family: var(--font-primary);
	letter-spacing: -.02em;
}

/* ── Right column: Instagram feed ── */
.rv-contact-right {
	flex: 1;
}

/* ── CF7 Form Container ── */
.rv-contact-left .wpcf7 {
	border: 1px solid var(--line, rgba(245, 245, 245, .12));
	border-radius: 12px;
	padding: 32px;
	background: var(--deep-grey, #151515);
	box-shadow: 0 0 40px rgba(0, 0, 0, .4);
}

/* ── CF7 Labels ── */
.rv-contact-left .wpcf7 .wpcf7-form-control-wrap,
.rv-contact-left .wpcf7 label {
	display: block;
	width: 100%;
}

.rv-contact-left .wpcf7 label {
	font-size: 13px;
	font-weight: 500;
	color: var(--muted, #9d9d9d);
	margin-bottom: 6px;
	letter-spacing: .04em;
	text-transform: uppercase;
}

/* ── CF7 Input / Textarea ── */
.rv-contact-left .wpcf7 input[type="text"],
.rv-contact-left .wpcf7 input[type="email"],
.rv-contact-left .wpcf7 textarea {
	width: 100%;
	border: 1px solid var(--dim, #2f2f2f);
	border-radius: 8px;
	padding: 14px 16px;
	font-size: 15px;
	margin-bottom: 20px;
	background: var(--bg-soft, #0d0d0d);
	color: var(--ink, #f4f4f4);
	outline: none;
	font-family: inherit;
	transition: border-color .25s var(--ease, ease), box-shadow .25s var(--ease, ease);
}

.rv-contact-left .wpcf7 input[type="text"]:focus,
.rv-contact-left .wpcf7 input[type="email"]:focus,
.rv-contact-left .wpcf7 textarea:focus {
	border-color: var(--ink, #f4f4f4);
	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 textarea::placeholder {
	color: var(--soft-grey, #757575);
}

.rv-contact-left .wpcf7 textarea {
	height: 180px;
	resize: vertical;
}

/* ── reCAPTCHA container ── */
.rv-contact-left .wpcf7 .wpcf7-recaptcha {
	margin-bottom: 20px;
}

/* ── Submit button ── */
.rv-contact-left .wpcf7 input[type="submit"] {
	background: var(--ink, #f4f4f4);
	color: var(--bg, #000);
	border: none;
	padding: 13px 32px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	letter-spacing: .04em;
	margin: 8px auto 0;
	display: block;
	transition: opacity .25s var(--ease, ease), transform .2s var(--ease, ease);
}

.rv-contact-left .wpcf7 input[type="submit"]:hover {
	opacity: .85;
	transform: translateY(-1px);
}

.rv-contact-left .wpcf7 input[type="submit"]:active {
	transform: translateY(0);
}

/* ── CF7 Response messages ── */
.rv-contact-left .wpcf7 .wpcf7-response-output {
	border-radius: 8px;
	padding: 12px 16px;
	font-size: 14px;
	margin-top: 16px;
	border: 1px solid var(--dim, #2f2f2f);
	color: var(--muted, #9d9d9d);
}

.rv-contact-left .wpcf7 .wpcf7-mail-sent-ok {
	border-color: #2d6a4f;
	background: rgba(45, 106, 79, .12);
	color: #74c69d;
}

.rv-contact-left .wpcf7 .wpcf7-validation-errors,
.rv-contact-left .wpcf7 .wpcf7-mail-sent-ng,
.rv-contact-left .wpcf7 .wpcf7-spam-blocked {
	border-color: #7f1d1d;
	background: rgba(127, 29, 29, .12);
	color: #fca5a5;
}

/* ── CF7 validation error on individual fields ── */
.rv-contact-left .wpcf7 .wpcf7-not-valid {
	border-color: #f87171 !important;
}

.rv-contact-left .wpcf7 .wpcf7-not-valid-tip {
	font-size: 12px;
	color: #f87171;
	margin-top: -14px;
	margin-bottom: 14px;
	display: block;
}

/* ── Instagram feed wrapper ── */
.rv-contact-instagram {
	border: 1px solid var(--line, rgba(245, 245, 245, .12));
	border-radius: 12px;
	padding: 24px;
	background: var(--deep-grey, #151515);
	box-shadow: 0 0 40px rgba(0, 0, 0, .4);
	overflow: hidden;
}

/* Force Smash Balloon grid to fill the column */
.rv-contact-instagram .sbi_photos,
.rv-contact-instagram #sb_instagram {
	width: 100% !important;
}

/* ── Notice (when plugins are missing) ── */
.rv-contact-notice {
	color: var(--muted, #9d9d9d);
	font-size: 14px;
	padding: 24px;
	border: 1px dashed var(--dim, #2f2f2f);
	border-radius: 8px;
	text-align: center;
}

/* ── Mobile ── */
@media (max-width: 767px) {
	.rv-contact-wrap {
		flex-direction: column;
		padding: 40px 20px;
	}

	.rv-contact-left h2,
	.rv-contact-right h2 {
		font-size: 1.8rem;
	}
}

.rv-contact-left .wpcf7 .wpcf7-submit,
.rv-contact-left .wpcf7 input[type="submit"] {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	margin-top: 16px;
}