/* Сторінка контактів SunTime */

.page-slug-contacts .page_title,
.page-slug-contacts .sc_layouts_title,
.page-slug-contacts .entry-header,
.suntime-contacts-page .page_title,
.suntime-contacts-page .sc_layouts_title,
.suntime-contacts-page .entry-header {
	display: none;
}

/* page_content_wrap — без бокових відступів; padding лише на content_wrap_fullscreen */
.page-slug-contacts .page_content_wrap,
.suntime-contacts-page .page_content_wrap {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* Ширина контейнера — як у теми (content_wrap), не fullscreen на всю сторінку */
.page-slug-contacts .page_content_wrap .content_wrap_fullscreen,
.suntime-contacts-page .page_content_wrap .content_wrap_fullscreen {
	width: 100%;
	max-width: var(--st-layout-max, 1920px);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--st-layout-gutter, var(--theme-var-page_fullwide_extra, 60px));
	padding-right: var(--st-layout-gutter, var(--theme-var-page_fullwide_extra, 60px));
	box-sizing: border-box;
}

.page-slug-contacts .content_wrap_fullscreen > .content,
.suntime-contacts-page .content_wrap_fullscreen > .content {
	width: 100%;
	max-width: 100%;
	margin: 0;
	float: none;
}

.suntime-contacts {
	--stc-heading: rgba(3, 16, 54, 1);
	--stc-text: rgba(99, 105, 123, 0.92);
	--stc-accent: #ef533f;
	--stc-accent-soft: rgba(239, 83, 63, 0.12);
	--stc-surface: #fff;
	--stc-surface-muted: #f4ede1;
	--stc-border: #ebe4dc;
	--stc-radius: 18px;
	--stc-shadow: 0 18px 50px rgba(3, 16, 54, 0.08);
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	padding: clamp(20px, 4vw, 40px) 0 clamp(40px, 6vw, 72px);
	color: var(--stc-text);
}

.suntime-contacts__hero {
	margin-bottom: 34px;
}

.suntime-contacts__title {
	margin: 0 0 12px;
	font-family: var(--theme-font-h1_font-family, "Onest", sans-serif);
	font-size: clamp(34px, 5vw, 52px);
	font-weight: var(--theme-font-h1_font-weight, 600) !important;
	line-height: 0.95;
	letter-spacing: -0.04em;
	color: var(--stc-heading);
}

.suntime-contacts__lead {
	margin: 0;
	max-width: 620px;
	font-size: 17px;
	line-height: 1.6;
}

.suntime-contacts__layout {
	display: grid;
	grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
	gap: 28px;
	margin-bottom: 28px;
	align-items: stretch;
}

.suntime-contacts__panel {
	display: flex;
	flex-direction: column;
	align-self: stretch;
	min-height: 0;
	background: var(--stc-surface);
	border: 1px solid var(--stc-border);
	border-radius: var(--stc-radius);
	box-shadow: var(--stc-shadow);
	padding: 28px 28px 30px;
}

.suntime-contacts__panel--info {
	background:
		linear-gradient(180deg, rgba(244, 237, 225, 0.55) 0%, rgba(255, 255, 255, 1) 42%),
		var(--stc-surface);
}

.suntime-contacts__panel-title {
	margin: 0 0 18px;
	font-size: clamp(22px, 2.4vw, 28px);
	font-weight: var(--suntime-heading-weight, 700) !important;
	line-height: 1.15;
	letter-spacing: -0.03em;
	color: var(--stc-heading);
}

.suntime-contacts__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.suntime-contacts__item + .suntime-contacts__item {
	margin-top: 14px;
}

.suntime-contacts__link {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	text-decoration: none;
	color: inherit;
	transition: color 0.2s ease;
}

.suntime-contacts__link:hover {
	color: var(--stc-accent);
}

.suntime-contacts__icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--stc-accent-soft);
	color: var(--stc-accent);
}

.suntime-contacts__icon i {
	font-size: 16px;
	line-height: 1;
}

.suntime-contacts__text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding-top: 2px;
}

.suntime-contacts__label {
	font-size: 16px;
	line-height: 1.4;
	font-weight: 600;
	color: var(--stc-heading);
}

.suntime-contacts__note {
	font-size: 13px;
	line-height: 1.35;
	color: var(--stc-text);
}

.suntime-contacts__meta {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--stc-border);
}

.suntime-contacts__meta-line {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 10px;
	font-size: 14px;
	line-height: 1.45;
}

.suntime-contacts__meta-line:last-child {
	margin-bottom: 0;
}

.suntime-contacts__meta-icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	color: var(--stc-accent);
}

.suntime-contacts__meta-icon i {
	display: block;
	font-size: 16px;
	line-height: 1;
}

.suntime-contacts__socials {
	margin-top: auto;
	padding-top: 24px;
}

.suntime-contacts__socials-title {
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 600;
	color: var(--stc-heading);
}

.suntime-contacts__socials-list {
	display: flex;
	align-items: center;
	gap: 12px;
}

.suntime-contacts__social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--stc-border);
	border-radius: 50%;
	color: var(--stc-heading);
	text-decoration: none;
	transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.suntime-contacts__social:hover {
	color: var(--stc-accent);
	border-color: var(--stc-accent);
	background: var(--stc-accent-soft);
}

.suntime-contacts__social i {
	font-size: 17px;
	line-height: 1;
}

.suntime-contacts__form-lead {
	margin: -6px 0 22px;
	font-size: 15px;
	line-height: 1.55;
}

.suntime-contacts__panel--form .sc_contact_form,
.suntime-contacts__panel--form .elementor-widget-container,
.suntime-contacts__panel--form .wpcf7 {
	margin: 0;
}

.suntime-contacts__panel--form .wpcf7 form {
	margin: 0;
}

/* CF7 form-style-1 — як у Elementor / trx_sc_contact_form_7 */
.suntime-contacts__panel--form[data-suntime-form] .form-style-1 .columns_wrap {
	display: flex;
	flex-wrap: wrap;
	margin-left: 0;
	margin-right: calc(-1 * var(--theme-var-grid_gap, 30px));
}

.suntime-contacts__panel--form[data-suntime-form] .form-style-1 .columns_wrap + .columns_wrap {
	margin-top: 4px;
}

.suntime-contacts__panel--form[data-suntime-form] .form-style-1 .columns_wrap.margin-bottom {
	margin-bottom: 22px;
}

.suntime-contacts__panel--form[data-suntime-form] .form-style-1 .columns_wrap > [class*="column-"] {
	flex: 0 0 50%;
	max-width: 50%;
	min-width: 0;
	padding-right: var(--theme-var-grid_gap, 30px);
	box-sizing: border-box;
}

.suntime-contacts__panel--form[data-suntime-form] .form-style-1 .column-1_1 {
	flex: 0 0 100%;
	max-width: 100%;
	width: 100%;
	padding-right: 0;
}

.suntime-contacts__panel--form[data-suntime-form] .form-style-1 .style-line.icon-textarea textarea,
.suntime-contacts__panel--form[data-suntime-form] .form-style-1 textarea[name="your-message"] {
	display: block;
	width: 100%;
	min-height: calc(1.5em * 3 + 26px);
	height: calc(1.5em * 3 + 26px);
	resize: none;
	box-sizing: border-box;
}

.suntime-contacts__panel--form[data-suntime-form] .form-style-1 p {
	margin: 0;
}

.suntime-contacts__panel--form[data-suntime-form] .form-style-1 .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

.suntime-contacts__panel--form[data-suntime-form] .form-style-1 .style-line[class*="icon-"]::before {
	position: absolute;
	left: 0;
	top: 15px;
	z-index: 2;
	width: 18px;
	font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
	font-weight: 900;
	font-size: 15px;
	line-height: 1;
	text-align: center;
	color: rgba(99, 105, 123, 0.72);
	pointer-events: none;
}

.suntime-contacts__panel--form[data-suntime-form] .form-style-1 .style-line.icon-name::before {
	content: "\f007";
}

.suntime-contacts__panel--form[data-suntime-form] .form-style-1 .style-line.icon-email::before {
	content: "\f0e0";
}

.suntime-contacts__panel--form[data-suntime-form] .form-style-1 .style-line.icon-phone::before {
	content: "\f095";
}

.suntime-contacts__panel--form[data-suntime-form] .form-style-1 .style-line.icon-subject::before {
	content: "\f05a";
}

.suntime-contacts__panel--form[data-suntime-form] .form-style-1 .style-line.icon-textarea::before {
	content: "\f304";
	top: 18px;
}

.suntime-contacts__panel--form[data-suntime-form] .wpcf7 input[type="submit"],
.suntime-contacts__panel--form[data-suntime-form] .wpcf7 .wpcf7-submit {
	width: auto !important;
	min-width: 0;
	max-width: 100%;
	margin-top: 8px;
	padding: 14px 34px !important;
	border-radius: 999px !important;
	display: inline-block;
}

.suntime-contacts__panel--form[data-suntime-form] .wpcf7 .wpcf7-acceptance {
	display: block;
	margin-top: 14px;
	font-size: 13px;
	line-height: 1.45;
}

.suntime-contacts__panel--form[data-suntime-form] .wpcf7 .wpcf7-acceptance label {
	display: inline;
}

.suntime-contacts__panel--form[data-suntime-form] .wpcf7 .wpcf7-acceptance a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.12em;
	text-decoration-color: currentColor;
	border-bottom: 0 !important;
	box-shadow: none !important;
}

.suntime-contacts__panel--form .wpcf7-response-output {
	margin: 18px 0 0;
	padding: 14px 16px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.45;
}

.suntime-contacts__panel--form .wpcf7 form.sent .wpcf7-response-output {
	border-color: #86c38a;
	background: rgba(134, 195, 138, 0.12);
	color: #245c28;
}

.suntime-contacts__panel--form .wpcf7 form.invalid .wpcf7-response-output,
.suntime-contacts__panel--form .wpcf7 form.failed .wpcf7-response-output,
.suntime-contacts__panel--form .wpcf7 form.spam .wpcf7-response-output {
	border-color: #e8a598;
	background: rgba(239, 83, 63, 0.08);
	color: #9a3f31;
}

.suntime-contacts__fallback {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
}

.suntime-contacts__fallback a {
	color: var(--stc-accent);
}

.suntime-contacts__map-wrap {
	background: var(--stc-surface);
	border: 1px solid var(--stc-border);
	border-radius: var(--stc-radius);
	box-shadow: var(--stc-shadow);
	overflow: hidden;
}

.suntime-contacts__map-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 24px 28px 0;
}

.suntime-contacts__map-link {
	font-size: 14px;
	font-weight: 600;
	color: var(--stc-accent);
	text-decoration: none;
	white-space: nowrap;
}

.suntime-contacts__map-link:hover {
	text-decoration: underline;
}

.suntime-contacts__map {
	position: relative;
	width: 100%;
	min-height: 360px;
	margin-top: 18px;
}

.suntime-contacts__map iframe {
	display: block;
	width: 100%;
	height: 360px;
	border: 0;
}

@media (max-width: 1024px) {
	.suntime-contacts__layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 1279px) {
	.page-slug-contacts .page_content_wrap .content_wrap_fullscreen,
	.suntime-contacts-page .page_content_wrap .content_wrap_fullscreen {
		padding-left: 20px !important;
		padding-right: 20px !important;
	}
}

@media (max-width: 767px) {
	.suntime-contacts__panel,
	.suntime-contacts__map-head {
		padding-left: 20px;
		padding-right: 20px;
	}

	.suntime-contacts__panel--form[data-suntime-form] .form-style-1 .columns_wrap > [class*="column-"] {
		flex-basis: 100%;
		max-width: 100%;
	}

	.suntime-contacts__map-head {
		flex-direction: column;
		align-items: flex-start;
	}

	.suntime-contacts__map,
	.suntime-contacts__map iframe {
		min-height: 280px;
		height: 280px;
	}
}
