/* =============================================================
   LawyerUp Contact Page — dark law-firm aesthetic
   Photo bg + glass card + CF7 dark form styling.
   ============================================================= */


/* ========================================
   1. PAGE BACKGROUND
   ======================================== */

.lawyerup-contact-page {
	position: relative;
	min-height: 100vh;
	background:
		linear-gradient(
			180deg,
			rgba(14, 15, 26, 0.92) 0%,
			rgba(14, 15, 26, 0.82) 30%,
			rgba(14, 15, 26, 0.85) 70%,
			rgba(14, 15, 26, 0.95) 100%
		),
		url('https://lawyerup.network/wp-content/uploads/2026/04/lawyerup-courtroom.png') center/cover no-repeat;
	background-attachment: scroll, fixed;
}

/* Kill parent theme white wrappers that bleed through */
body.lawyerup-dark-page {
	background: var(--lh-dark, #0e0f1a) !important;
}

body.lawyerup-dark-page #c27-site-wrapper {
	background: transparent !important;
}

body.lawyerup-dark-page .i-section,
body.lawyerup-dark-page .page-body {
	background: transparent !important;
}


/* ========================================
   2. CONTENT + CARD
   ======================================== */

.lawyerup-contact-page__content {
	position: relative;
	padding: 80px 0 60px;
}

.lawyerup-contact-page__content > .container {
	max-width: 640px;
	padding: 0 24px;
}

.lawyerup-contact-page__card {
	background: rgba(20, 21, 31, 0.75);
	-webkit-backdrop-filter: blur(12px) saturate(140%);
	backdrop-filter: blur(12px) saturate(140%);
	border: 1px solid var(--lh-border-dark, rgba(255, 255, 255, 0.12));
	border-radius: 12px;
	padding: 44px 40px;
	position: relative;
	overflow: hidden;
}

/* Gold top stripe */
.lawyerup-contact-page__card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--lh-gold, #d4a85a) 0%, var(--lh-yellow, #ffd54a) 100%);
	opacity: 0.6;
}

.lawyerup-contact-page__title {
	font-family: 'Cardo', 'Roboto', serif;
	color: var(--lh-cream, #f5e9d0);
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 32px;
	text-align: center;
}


/* ========================================
   3. CONTACT FORM 7 — DARK INPUTS
   ======================================== */

/* Labels */
.lawyerup-contact-page .wpcf7 label {
	color: rgba(245, 233, 208, 0.7) !important;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	display: block;
	margin-bottom: 6px;
}

/* Text / email / tel inputs */
.lawyerup-contact-page .wpcf7 input[type="text"],
.lawyerup-contact-page .wpcf7 input[type="email"],
.lawyerup-contact-page .wpcf7 input[type="tel"],
.lawyerup-contact-page .wpcf7 input[type="url"],
.lawyerup-contact-page .wpcf7 input[type="number"],
.lawyerup-contact-page .wpcf7 select {
	background: rgba(14, 15, 26, 0.6) !important;
	border: 1px solid rgba(255, 255, 255, 0.15) !important;
	border-radius: 8px !important;
	color: var(--lh-cream, #f5e9d0) !important;
	padding: 14px 16px !important;
	font-size: 14px !important;
	width: 100%;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Textarea */
.lawyerup-contact-page .wpcf7 textarea {
	background: rgba(14, 15, 26, 0.6) !important;
	border: 1px solid rgba(255, 255, 255, 0.15) !important;
	border-radius: 8px !important;
	color: var(--lh-cream, #f5e9d0) !important;
	padding: 14px 16px !important;
	font-size: 14px !important;
	width: 100%;
	min-height: 140px;
	resize: vertical;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Focus state */
.lawyerup-contact-page .wpcf7 input:focus,
.lawyerup-contact-page .wpcf7 textarea:focus,
.lawyerup-contact-page .wpcf7 select:focus {
	border-color: var(--lh-gold, #d4a85a) !important;
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(212, 168, 90, 0.15) !important;
}

/* Placeholder text */
.lawyerup-contact-page .wpcf7 input::placeholder,
.lawyerup-contact-page .wpcf7 textarea::placeholder {
	color: rgba(245, 233, 208, 0.3) !important;
}

/* Autofill dark fix */
.lawyerup-contact-page .wpcf7 input:-webkit-autofill,
.lawyerup-contact-page .wpcf7 input:-webkit-autofill:hover,
.lawyerup-contact-page .wpcf7 input:-webkit-autofill:focus {
	-webkit-box-shadow: 0 0 0 1000px rgba(20, 21, 31, 0.95) inset !important;
	-webkit-text-fill-color: var(--lh-cream, #f5e9d0) !important;
	border: 1px solid rgba(255, 255, 255, 0.15) !important;
	transition: background-color 5000s ease-in-out 0s;
}

/* Form row spacing */
.lawyerup-contact-page .wpcf7 p {
	margin-bottom: 20px;
	color: rgba(245, 233, 208, 0.7);
}

/* Any description text within the form */
.lawyerup-contact-page .wpcf7-form > p:first-child {
	color: rgba(245, 233, 208, 0.6);
	font-size: 14px;
	line-height: 1.6;
}


/* ========================================
   4. SUBMIT BUTTON — GOLD CTA
   ======================================== */

/* Center the submit button wrapper */
.lawyerup-contact-page .wpcf7-form > p:last-of-type {
	text-align: center;
}

.lawyerup-contact-page .wpcf7 input[type="submit"],
.lawyerup-contact-page .wpcf7 .wpcf7-submit {
	background: var(--lh-gold, #d4a85a) !important;
	color: var(--lh-dark, #0e0f1a) !important;
	border: none !important;
	border-radius: 24px !important;
	font-weight: 700 !important;
	padding: 14px 48px !important;
	font-size: 15px !important;
	width: auto !important;
	cursor: pointer;
	transition: all 0.25s ease !important;
	display: inline-block;
	letter-spacing: 0.02em;
}

.lawyerup-contact-page .wpcf7 input[type="submit"]:hover,
.lawyerup-contact-page .wpcf7 .wpcf7-submit:hover {
	background: var(--lh-yellow, #ffd54a) !important;
	transform: translateY(-2px);
	box-shadow: 0 10px 24px -8px rgba(212, 168, 90, 0.5) !important;
}


/* ========================================
   5. CF7 VALIDATION + STATUS MESSAGES
   ======================================== */

.lawyerup-contact-page .wpcf7-not-valid-tip {
	color: #f87171 !important;
	font-size: 12px;
	margin-top: 6px;
}

.lawyerup-contact-page .wpcf7-not-valid {
	border-color: rgba(248, 113, 113, 0.5) !important;
}

.lawyerup-contact-page .wpcf7-response-output {
	border-radius: 8px !important;
	padding: 14px 18px !important;
	margin: 20px 0 0 !important;
	font-size: 13px;
}

/* Success message */
.lawyerup-contact-page .wpcf7-mail-sent-ok,
.lawyerup-contact-page .wpcf7 form.sent .wpcf7-response-output {
	background: rgba(34, 197, 94, 0.1) !important;
	border: 1px solid rgba(34, 197, 94, 0.3) !important;
	color: #86efac !important;
}

/* Error/fail message */
.lawyerup-contact-page .wpcf7-mail-sent-ng,
.lawyerup-contact-page .wpcf7 form.failed .wpcf7-response-output,
.lawyerup-contact-page .wpcf7 form.aborted .wpcf7-response-output {
	background: rgba(239, 68, 68, 0.1) !important;
	border: 1px solid rgba(239, 68, 68, 0.3) !important;
	color: #fca5a5 !important;
}

/* Validation error state */
.lawyerup-contact-page .wpcf7 form.invalid .wpcf7-response-output,
.lawyerup-contact-page .wpcf7 form.unaccepted .wpcf7-response-output {
	background: rgba(251, 191, 36, 0.1) !important;
	border: 1px solid rgba(251, 191, 36, 0.3) !important;
	color: #fde68a !important;
}

/* Spinner / loading indicator */
.lawyerup-contact-page .wpcf7-spinner {
	margin: 12px 0;
}


/* ========================================
   6. RESPONSIVE
   ======================================== */

@media (max-width: 640px) {
	.lawyerup-contact-page__content {
		padding: 40px 0 40px;
	}

	.lawyerup-contact-page__card {
		padding: 28px 20px;
	}

	.lawyerup-contact-page__title {
		font-size: 24px;
	}

	.lawyerup-contact-page {
		background-attachment: scroll, scroll;
	}
}
