/* ============================================================
   Custom Contact Form — styles
   Scoped under .ccf-wrap so it won't fight your theme.
   Palette: ink navy + slate + a single warm amber accent.
   ============================================================ */

.ccf-wrap {
	--ccf-ink: #16243b;
	--ccf-navy: #1f3a5f;
	--ccf-slate: #5b6677;
	--ccf-line: #e4e8ef;
	--ccf-bg: #f6f8fb;
	--ccf-card: #ffffff;
	--ccf-accent: #e0892b;       /* warm amber, used sparingly */
	--ccf-accent-ink: #b9701f;
	--ccf-success-bg: #ecf7ef;
	--ccf-success-ink: #1d7a3e;
	--ccf-error-bg: #fdecec;
	--ccf-error-ink: #c0392b;
	--ccf-radius: 14px;
	--ccf-radius-sm: 9px;
	--ccf-shadow: 0 1px 2px rgba(22,36,59,.06), 0 12px 30px rgba(22,36,59,.07);

	box-sizing: border-box;
	background: var(--ccf-bg);
	color: var(--ccf-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
	line-height: 1.6;
	padding: clamp(28px, 5vw, 72px) 16px;
}

.ccf-wrap *,
.ccf-wrap *::before,
.ccf-wrap *::after {
	box-sizing: border-box;
}

.ccf-container {
	max-width: 1120px;
	margin: 0 auto;
}

/* ---------- Header ---------- */
.ccf-header {
	text-align: center;
	max-width: 680px;
	margin: 0 auto clamp(28px, 4vw, 48px);
}

.ccf-eyebrow {
	margin: 0 0 10px;
	text-transform: uppercase;
	letter-spacing: .14em;
	font-size: 12px;
	font-weight: 700;
	color: var(--ccf-accent-ink);
}

.ccf-title {
	margin: 0 0 12px;
	font-size: clamp(28px, 4.5vw, 44px);
	line-height: 1.1;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--ccf-ink);
}

.ccf-subtitle {
	margin: 0;
	font-size: clamp(15px, 2vw, 18px);
	color: var(--ccf-slate);
}

/* ---------- Grid ---------- */
.ccf-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 24px;
	align-items: start;
}

.ccf-card {
	background: var(--ccf-card);
	border: 1px solid var(--ccf-line);
	border-radius: var(--ccf-radius);
	box-shadow: var(--ccf-shadow);
}

.ccf-form-card {
	padding: clamp(22px, 3vw, 36px);
}

/* ---------- Form ---------- */
.ccf-form .ccf-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.ccf-field {
	margin-bottom: 18px;
	display: flex;
	flex-direction: column;
}

.ccf-field label {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 7px;
	color: var(--ccf-ink);
}

.ccf-req { color: var(--ccf-accent-ink); }

.ccf-field input,
.ccf-field textarea {
	width: 100%;
	font: inherit;
	font-size: 15px;
	color: var(--ccf-ink);
	background: #fbfcfe;
	border: 1.5px solid var(--ccf-line);
	border-radius: var(--ccf-radius-sm);
	padding: 12px 14px;
	transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.ccf-field textarea { resize: vertical; min-height: 130px; }

.ccf-field input:focus,
.ccf-field textarea:focus {
	outline: none;
	background: #fff;
	border-color: var(--ccf-navy);
	box-shadow: 0 0 0 4px rgba(31,58,95,.12);
}

.ccf-field input.ccf-invalid,
.ccf-field textarea.ccf-invalid {
	border-color: var(--ccf-error-ink);
	box-shadow: 0 0 0 4px rgba(192,57,43,.10);
}

.ccf-error {
	min-height: 16px;
	margin-top: 6px;
	font-size: 12.5px;
	color: var(--ccf-error-ink);
}

/* Honeypot — visually & semantically hidden, but present for bots. */
.ccf-hp {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	height: 0;
	width: 0;
	overflow: hidden;
}

/* ---------- Button ---------- */
.ccf-actions { margin-top: 4px; }

.ccf-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	background: var(--ccf-navy);
	border: none;
	border-radius: var(--ccf-radius-sm);
	padding: 13px 26px;
	cursor: pointer;
	transition: background .15s ease, transform .05s ease;
}

.ccf-btn:hover { background: var(--ccf-ink); }
.ccf-btn:active { transform: translateY(1px); }
.ccf-btn:focus-visible { outline: 3px solid var(--ccf-accent); outline-offset: 2px; }
.ccf-btn:disabled { opacity: .7; cursor: progress; }

.ccf-spinner {
	width: 16px; height: 16px;
	border: 2px solid rgba(255,255,255,.45);
	border-top-color: #fff;
	border-radius: 50%;
	display: none;
}
.ccf-btn.ccf-loading .ccf-spinner { display: inline-block; animation: ccf-spin .7s linear infinite; }
@keyframes ccf-spin { to { transform: rotate(360deg); } }

/* ---------- Alerts ---------- */
.ccf-alert {
	margin-top: 18px;
	padding: 13px 16px;
	border-radius: var(--ccf-radius-sm);
	font-size: 14.5px;
	font-weight: 600;
}
.ccf-alert--success { background: var(--ccf-success-bg); color: var(--ccf-success-ink); }
.ccf-alert--error { background: var(--ccf-error-bg); color: var(--ccf-error-ink); }

/* ---------- Info column ---------- */
.ccf-info { display: flex; flex-direction: column; gap: 24px; }
.ccf-info-block { padding: 24px; }

.ccf-info-title {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 700;
	color: var(--ccf-ink);
}

.ccf-address { font-style: normal; color: var(--ccf-slate); margin: 0 0 12px; }

.ccf-contact-line { margin: 4px 0; }
.ccf-contact-line a { color: var(--ccf-navy); text-decoration: none; font-weight: 600; }
.ccf-contact-line a:hover { color: var(--ccf-accent-ink); text-decoration: underline; }

.ccf-hours { list-style: none; margin: 0; padding: 0; }
.ccf-hours li {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 7px 0;
	border-bottom: 1px solid var(--ccf-line);
	color: var(--ccf-slate);
	font-size: 14.5px;
}
.ccf-hours li:last-child { border-bottom: none; }

/* ---------- Social ---------- */
.ccf-social { display: flex; gap: 10px; flex-wrap: wrap; }
.ccf-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px; height: 42px;
	border-radius: 10px;
	background: #f1f4f9;
	color: var(--ccf-navy);
	transition: background .15s ease, color .15s ease, transform .1s ease;
}
.ccf-social-link:hover { background: var(--ccf-navy); color: #fff; transform: translateY(-2px); }
.ccf-social-link:focus-visible { outline: 3px solid var(--ccf-accent); outline-offset: 2px; }

/* ---------- Map ---------- */
.ccf-map {
	margin-top: 24px;
	border-radius: var(--ccf-radius);
	overflow: hidden;
	border: 1px solid var(--ccf-line);
	box-shadow: var(--ccf-shadow);
	background: var(--ccf-card);
}
.ccf-map iframe { display: block; width: 100%; }

.ccf-map-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 280px;
	padding: 32px;
	text-align: center;
	color: var(--ccf-slate);
	background:
		repeating-linear-gradient(45deg, #f0f3f8 0 14px, #f6f8fb 14px 28px);
}
.ccf-map-placeholder svg { color: var(--ccf-navy); opacity: .55; }
.ccf-map-placeholder p { margin: 0; max-width: 420px; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
	.ccf-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.ccf-form .ccf-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Accessibility: reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.ccf-btn, .ccf-social-link, .ccf-spinner { transition: none; animation: none; }
}
