/* ==========================================================================
   Cubive Sports — Contact Page
   Adapted to the theme's own palette (--cubive-primary/accent/border)
   and button system rather than hardcoded colors.
   ========================================================================== */

.cubive-contact-page {
	padding-top: 32px;
	padding-bottom: 64px;
}
.cubive-contact-heading {
	text-align: center;
	font-size: 1.8rem;
	margin-bottom: 32px;
}

/* ---- Map (optional, above the page content) ---- */
.cubive-contact-map {
	width: 100%;
	height: 380px;
}
.cubive-contact-map iframe {
	display: block;
}
@media (max-width: 600px) {
	.cubive-contact-map { height: 260px; }
}

.cubive-contact-card {
	max-width: 1100px;
	margin: 0 auto;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(20,33,61,0.08);
	display: flex;
	overflow: hidden;
	border: 1px solid var(--cubive-border);
}

/* When the help panel is hidden (Customize > Contact Page), the form
   takes the full width instead of leaving empty space beside it. */
.cubive-contact-card--form-only .cubive-contact-form-col {
	flex: 0 0 100%;
	max-width: 100%;
}

/* ---- Left: form ---- */
.cubive-contact-form-col {
	flex: 0 0 60%;
	max-width: 60%;
	padding: 36px 40px;
}
.cubive-contact-form-title {
	font-size: 1.15rem;
	margin-bottom: 6px;
}
.cubive-contact-form-sub {
	font-size: 0.88rem;
	color: var(--cubive-text-muted);
	line-height: 1.7;
	margin-bottom: 24px;
}

.cubive-contact-notice {
	border-radius: var(--cubive-radius);
	padding: 14px 18px;
	font-size: 0.9rem;
	margin-bottom: 20px;
	display: none;
}
.cubive-contact-notice.is-visible { display: block; }
.cubive-contact-notice--success {
	background: var(--cubive-bg-alt);
	border-left: 4px solid #2e7d32;
	color: #1a1a1a;
}
.cubive-contact-notice--error {
	background: var(--cubive-bg-alt);
	border-left: 4px solid var(--cubive-accent);
}
.cubive-contact-notice--error ul { margin: 0; padding-left: 18px; }

.cubive-contact-row {
	display: flex;
	gap: 20px;
	margin-bottom: 18px;
}
.cubive-contact-field {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.cubive-contact-field label {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--cubive-primary);
	margin-bottom: 7px;
}
.cubive-contact-field input,
.cubive-contact-field textarea {
	border: 1px solid var(--cubive-border);
	border-radius: var(--cubive-radius);
	padding: 11px 14px;
	font-size: 0.9rem;
	font-family: var(--cubive-font-body);
	color: var(--cubive-text);
	background: var(--cubive-bg-alt);
	outline: none;
	width: 100%;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.cubive-contact-field input:focus,
.cubive-contact-field textarea:focus {
	border-color: var(--cubive-primary);
	background: #fff;
}
.cubive-contact-field textarea {
	resize: vertical;
	min-height: 110px;
}

.cubive-contact-phone-group {
	display: flex;
	gap: 8px;
}
.cubive-contact-phone-group select {
	border: 1px solid var(--cubive-border);
	border-radius: var(--cubive-radius);
	padding: 11px 8px;
	font-size: 0.9rem;
	background: var(--cubive-bg-alt);
	color: var(--cubive-text);
	outline: none;
	flex: 0 0 72px;
}
.cubive-contact-phone-group input { flex: 1; }

/* Honeypot: visually hidden from real visitors, tabbing over it is
   avoided via tabindex="-1" in the markup. */
.cubive-contact-hp-wrap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.cubive-contact-submit {
	margin-top: 4px;
}

/* ---- Right: help card ---- */
.cubive-contact-help-col {
	flex: 0 0 40%;
	max-width: 40%;
	padding: 32px;
	display: flex;
	flex-direction: column;
}

/* Dark theme (default): navy background, white text — matches the
   theme's primary color. */
.cubive-contact-help-col--dark {
	background: var(--cubive-primary);
	color: #fff;
}

/* Light theme: white background, subtle left border, for sites that
   prefer a less heavy help panel. */
.cubive-contact-help-col--light {
	background: #fff;
	color: var(--cubive-text);
	border-left: 1px solid var(--cubive-border);
}
.cubive-contact-help-col--light .cubive-contact-help-title { color: var(--cubive-primary); }
.cubive-contact-help-col--light .cubive-contact-help-item {
	background: var(--cubive-bg-alt);
	border-color: var(--cubive-border);
}
.cubive-contact-help-col--light .cubive-contact-help-label { color: var(--cubive-text-muted); }
.cubive-contact-help-col--light .cubive-contact-help-value { color: var(--cubive-primary) !important; }
.cubive-contact-help-col--light .cubive-contact-help-icon { background: var(--cubive-bg-alt); }
.cubive-contact-help-col--light .cubive-contact-help-icon svg { stroke: var(--cubive-primary); }
.cubive-contact-help-col--light .cubive-contact-connect-title { color: var(--cubive-primary); }
.cubive-contact-help-col--light .cubive-contact-social-row a {
	background: var(--cubive-bg-alt);
	color: var(--cubive-primary) !important;
}

.cubive-contact-help-title {
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.5;
	margin-bottom: 24px;
}
.cubive-contact-help-item {
	display: flex;
	align-items: center;
	gap: 14px;
	background: rgba(255,255,255,0.06);
	border: 1px solid rgba(255,255,255,0.14);
	border-radius: 10px;
	padding: 12px 16px;
	margin-bottom: 14px;
}
.cubive-contact-help-icon {
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255,255,255,0.12);
	display: flex;
	align-items: center;
	justify-content: center;
}
.cubive-contact-help-icon svg {
	width: 16px;
	height: 16px;
	stroke: #fff;
	fill: none;
}
.cubive-contact-help-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.cubive-contact-help-label {
	font-size: 0.7rem;
	color: rgba(255,255,255,0.65);
	margin-bottom: 2px;
}
.cubive-contact-help-value {
	font-size: 0.88rem;
	font-weight: 600;
	color: #fff !important;
}
.cubive-contact-help-value:hover { color: var(--cubive-accent) !important; }

.cubive-contact-connect-title {
	font-size: 0.85rem;
	font-weight: 600;
	margin: 14px 0 14px;
	color: #fff;
}
.cubive-contact-social-row {
	display: flex;
	gap: 12px;
}
.cubive-contact-social-row a {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255,255,255,0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff !important;
	font-weight: 700;
	font-size: 0.85rem;
	transition: background 0.2s ease;
}
.cubive-contact-social-row a:hover { background: var(--cubive-accent); }
.cubive-contact-social-row svg { width: 16px; height: 16px; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
	.cubive-contact-card { flex-direction: column; }
	.cubive-contact-form-col,
	.cubive-contact-help-col { flex: 0 0 100%; max-width: 100%; }
	.cubive-contact-form-col { padding: 28px 24px; }
	.cubive-contact-help-col { padding: 26px 24px; }
	.cubive-contact-row { flex-direction: column; gap: 16px; margin-bottom: 4px; }
	.cubive-contact-field { margin-bottom: 14px; }
}

@media (max-width: 480px) {
	.cubive-contact-heading { font-size: 1.5rem; }
	.cubive-contact-form-col,
	.cubive-contact-help-col { padding: 22px 18px; }
}
