/* ============================================================
   OCC Contact Section — Figma node 458-2211
   Left: info cards | Right: CF7 form
   ============================================================ */

.occ-contact-section {
	padding: 80px 0;
	background: #fff;
}

/* ── Two-column layout ── */
.occ-contact-section__inner {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 120px;
	box-sizing: border-box;
	display: flex;
	gap: 24px;
	align-items: flex-start;
}

/* ── LEFT column ── */
.occ-contact-section__left {
	flex: 0 0 486px;
	width: 486px;
	display: flex;
	flex-direction: column;
	gap: 30px;
}

/* ── Info cards shared ── */
.occ-contact-section__card {
	background: #f4f9ff;
	border-radius: 12px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.occ-contact-section__card-title {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	color: #000;
	margin: 0;
}

.occ-contact-section__card-row {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.occ-contact-section__card-row--center {
	align-items: center;
	gap: 8px;
}

.occ-contact-section__card-icon {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
}

.occ-contact-section__card-icon--lg {
	width: 24px;
	height: 31px;
	margin-top: 2px;
}

.occ-contact-section__card-text {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	color: #474747;
	margin: 0;
}

/* Office Hours */
.occ-contact-section__hours-day {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	color: #474747;
	white-space: nowrap;
}

.occ-contact-section__hours-time {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: #474747;
	white-space: nowrap;
}

.occ-contact-section__oncall {
	background: #fff;
	border-left: 2px solid #0066cc;
	border-radius: 8px;
	padding: 8px 12px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.occ-contact-section__oncall-title {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.6;
	color: #0052a3;
	margin: 0;
}

.occ-contact-section__oncall-text {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.6;
	color: #1a1a1a;
	margin: 0;
}

.occ-contact-section__oncall-text a {
	color: #0066cc;
	text-decoration: none;
}

/* Contact Info grid */
.occ-contact-section__contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.occ-contact-section__contact-item {
	background: #fff;
	border: 1px solid #c9c9c9;
	border-radius: 8px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.occ-contact-section__contact-item--full {
	grid-column: 1 / -1;
}

.occ-contact-section__contact-label-row {
	display: flex;
	align-items: center;
	gap: 5px;
}

.occ-contact-section__contact-icon {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	display: flex;
	align-items: center;
}

.occ-contact-section__contact-icon--fax {
	height: 26px;
}

.occ-contact-section__contact-label {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.6;
	color: #474747;
	letter-spacing: 0.04em;
}

.occ-contact-section__contact-value {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: #1a1a1a;
	text-decoration: none;
}

a.occ-contact-section__contact-value:hover {
	color: #0066cc;
}

.occ-contact-section__contact-note {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.6;
	color: #1a1a1a;
}

/* ── RIGHT — form card ── */
.occ-contact-section__form-card {
	flex: 1 0 0;
	min-width: 0;
	background: #fefefe;
	border: 1px solid #c9c9c9;
	border-radius: 20px;
	padding: 48px;
	box-shadow: 0 0 10px rgba(26, 26, 26, 0.1);
}

/* ── CF7 form reset & styling ── */
.occ-contact-section__form-card .wpcf7 {
	width: 100%;
}

.occ-contact-section__form-card .wpcf7-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* Reset all CF7 auto-generated <p> margins — don't hide them (they wrap real fields) */
.occ-contact-section__form-card .wpcf7-form p {
	margin: 0;
	padding: 0;
}

/* Hide only bare <br> injected by CF7 autop — never hide <p> containing fields */
.occ-contact-section__form-card .wpcf7-form > br {
	display: none;
}

/* ── Standalone field wrappers (how-hear, textarea, submit)
   CF7 autop wraps them: <p><span.wpcf7-form-control-wrap>...</span></p>
   Make those <p> containers full-width flex items ── */
.occ-contact-section__form-card .wpcf7-form > p > span.wpcf7-form-control-wrap,
.occ-contact-section__form-card .wpcf7-form > span.wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

/* ── Two-column field rows ──
   CF7 autop wraps the two shortcodes in ONE <p> inside our div.
   That <p> becomes the flex container. ── */
.occ-contact-section__form-card .occ-cf7-row {
	display: flex;
}

.occ-contact-section__form-card .occ-cf7-row > p {
	display: flex;
	gap: 20px;
	width: 100%;
}

.occ-contact-section__form-card .occ-cf7-row > p > span.wpcf7-form-control-wrap {
	flex: 1 0 0;
	min-width: 0;
}

/* ── Three-column field rows (Age / Weight / Height) ── */
.occ-contact-section__form-card .occ-cf7-row--3 {
	display: flex;
}

.occ-contact-section__form-card .occ-cf7-row--3 > p {
	display: flex;
	gap: 20px;
	width: 100%;
}

.occ-contact-section__form-card .occ-cf7-row--3 > p > span.wpcf7-form-control-wrap {
	flex: 1 0 0;
	min-width: 0;
}

/* ── All inputs, selects, textarea ── */
.occ-contact-section__form-card .wpcf7-form-control:not([type="checkbox"]):not([type="submit"]):not(.wpcf7-checkbox):not(.wpcf7-acceptance) {
	width: 100%;
	height: 47px;
	padding: 12px 16px;
	border: 1px solid #c9c9c9;
	border-radius: 8px;
	background-color: #fff; /* use background-color not shorthand — keeps background-image intact for selects */
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.6;
	color: #474747;
	outline: none;
	box-sizing: border-box;
	transition: border-color 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.occ-contact-section__form-card .wpcf7-form-control:not([type="checkbox"]):not([type="submit"]):not(.wpcf7-checkbox):not(.wpcf7-acceptance):focus {
	border-color: #0066cc;
}

.occ-contact-section__form-card .wpcf7-form-control:not([type="checkbox"]):not([type="submit"]):not(.wpcf7-checkbox):not(.wpcf7-acceptance)::placeholder {
	color: #474747;
}

/* ── Row children fill equally (fallback: if CF7 doesn't inject <p>) ── */
.occ-contact-section__form-card .occ-cf7-row > span.wpcf7-form-control-wrap,
.occ-contact-section__form-card .occ-cf7-row--3 > span.wpcf7-form-control-wrap {
	flex: 1 0 0;
	min-width: 0;
}

/* ── Select dropdown chevron arrow ── */
.occ-contact-section__form-card .wpcf7-select {
	/* Down chevron — default / closed (fully encoded, no raw quotes) */
	background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2214%22 height=%2214%22 viewBox=%220 0 14 14%22 fill=%22none%22%3E%3Cpath d=%22M2.5 4.5L7 9.5L11.5 4.5%22 stroke=%22%23474747%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 14px 14px;
	padding-right: 44px;
	cursor: pointer;
}

/* Up chevron + blue border — when select is open (JS adds .is-open) */
.occ-contact-section__form-card .wpcf7-select.is-open {
	background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2214%22 height=%2214%22 viewBox=%220 0 14 14%22 fill=%22none%22%3E%3Cpath d=%22M2.5 9.5L7 4.5L11.5 9.5%22 stroke=%22%230066cc%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E");
	border-color: #0066cc;
}

/* Keep blue border on regular focus (keyboard nav) */
.occ-contact-section__form-card .wpcf7-select:focus {
	border-color: #0066cc;
}

/* Textarea */
.occ-contact-section__form-card .wpcf7-textarea {
	height: 88px !important;
	resize: vertical;
	padding-top: 12px !important;
}

/* ── Procedure(s) of Interest label ── */
.occ-contact-section__form-card .occ-cf7-section-label {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: #0066cc;
	margin: 0;
}

/* ── Checkboxes — 2-column grid ── */
.occ-contact-section__form-card .occ-cf7-checkboxes .wpcf7-checkbox {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 32px;
}

.occ-contact-section__form-card .wpcf7-list-item {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.occ-contact-section__form-card .wpcf7-list-item input[type="checkbox"] {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	border: 1.3px solid #474747;
	border-radius: 2px;
	accent-color: #0066cc;
	cursor: pointer;
}

.occ-contact-section__form-card .wpcf7-list-item-label {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.6;
	color: #474747;
	cursor: pointer;
}

/* ── Metrics label ── */
.occ-contact-section__form-card .occ-cf7-metrics-label {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: #1a1a1a;
	margin: 0;
}

/* ── Consent acceptance ── */
.occ-contact-section__form-card .wpcf7-acceptance {
	display: block;
	width: 100%;
}

.occ-contact-section__form-card .wpcf7-acceptance label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	cursor: pointer;
}

.occ-contact-section__form-card .wpcf7-acceptance input[type="checkbox"] {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	margin-top: 3px;
	border: 1.3px solid #474747;
	border-radius: 2px;
	accent-color: #0066cc;
	cursor: pointer;
}

.occ-contact-section__form-card .wpcf7-acceptance .wpcf7-list-item-label,
.occ-contact-section__form-card .wpcf7-acceptance label span {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.6;
	color: #999;
}

/* ── Submit button ── */
.occ-contact-section__form-card .wpcf7-submit {
	width: 100%;
	height: auto !important;
	padding: 12px 24px !important;
	background: #0066cc;
	border: none;
	border-radius: 8px;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.6;
	color: #fff;
	cursor: pointer;
	transition: background 0.2s ease;
}

.occ-contact-section__form-card .wpcf7-submit:hover {
	background: #0052a3;
}

/* Hide CF7 spinner — it overflows below the full-width submit button */
.occ-contact-section__form-card .wpcf7-spinner {
	display: none !important;
}

/* ── CF7 validation messages ── */
.occ-contact-section__form-card .wpcf7-not-valid-tip {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 12px;
	color: #e53e3e;
	margin-top: 4px;
	display: block;
}

.occ-contact-section__form-card .wpcf7-response-output {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 14px;
	padding: 12px 16px;
	border-radius: 8px;
	margin: 0;
	border: none !important;
}

.occ-contact-section__form-card .wpcf7-mail-sent-ok {
	background: #e6f7ee;
	color: #276749;
}

.occ-contact-section__form-card .wpcf7-mail-sent-ng,
.occ-contact-section__form-card .wpcf7-aborted {
	background: #fff5f5;
	color: #c53030;
}

/* ── Tablet ── */
@media (max-width: 1200px) {
	.occ-contact-section__inner {
		padding: 0 48px;
	}

	.occ-contact-section__left {
		flex: 0 0 380px;
		width: 380px;
	}
}

/* ── Mobile ── */
@media (max-width: 900px) {
	.occ-contact-section {
		padding: 60px 0;
	}

	.occ-contact-section__inner {
		flex-direction: column;
		padding: 0 40px;
		gap: 32px;
	}

	.occ-contact-section__left {
		flex: none;
		width: 100%;
	}

	.occ-contact-section__form-card {
		width: 100%;
		padding: 24px 20px;
	}

	.occ-contact-section__form-card .occ-cf7-row > p,
	.occ-contact-section__form-card .occ-cf7-row--3 > p {
		flex-direction: column;
		gap: 20px;
	}

	.occ-contact-section__form-card .occ-cf7-checkboxes .wpcf7-checkbox {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.occ-contact-section {
		padding: 48px 0;
	}
		.occ-contact-section__inner {
		padding: 0 16px;
	}
}
