/**
 * Gutenberg Minimal — Objednávka / order page shell.
 * Scoped to body.legalion-gutenberg-order.
 * Shared Fluent Form field/button skin: fluentform.css.
 * Figma: 17257:2757
 */

body.legalion-gutenberg-order {
	background: #fafafa;
}

/* —— Header (logo + phone) —— */

.site-header-minimal {
	background: #fafafa;
}

.site-header-minimal__inner {
	max-width: 1300px;
	margin: 0 auto;
	padding: 36px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 100px;
	box-sizing: border-box;
}

.site-header-minimal__logo {
	display: inline-flex;
	line-height: 0;
	flex-shrink: 0;
}

.site-header-minimal__logo img {
	display: block;
	height: 28px;
	width: auto;
}

.site-header-minimal__phone {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	flex-shrink: 0;
	text-decoration: none;
	color: #171717;
}

.site-header-minimal__phone:hover .site-header-minimal__phone-number {
	text-decoration: underline;
}

.site-header-minimal__phone-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	border-radius: 8px;
	background: #e7def6;
}

.site-header-minimal__phone-icon img {
	display: block;
	width: 20px;
	height: 20px;
}

.site-header-minimal__phone-number {
	padding-top: 10px;
	font-family: "Objektiv Mk1 Trial", sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	color: #171717;
	white-space: nowrap;
}

/* —— Content card —— */

.legalion-gutenberg-order__main {
	padding: 0 24px 0;
}

.legalion-gutenberg-order__article {
	max-width: 1080px;
	margin: 0 auto;
}

/* Shell is transparent — white cards come from editor groups (thank-you + order). */
.legalion-gutenberg-order__content {
	background: transparent;
	border-radius: 0;
	padding: 0;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
}

.legalion-gutenberg-order__content > * {
	width: 100%;
	max-width: 1080px;
	box-sizing: border-box;
}

.legalion-gutenberg-order__content > .wp-block-group.has-white-background-color {
	padding-top: var(--wp--preset--spacing--xxl, 64px);
	padding-bottom: var(--wp--preset--spacing--xxl, 64px);
	padding-left: 24px;
	padding-right: 24px;
}

/* .legalion-gutenberg-order__content > .wp-block-group.has-white-background-color > .wp-block-heading {
	margin-top: 0;
	margin-bottom: 0;
	text-align: center;
	color: #171717;
	font-family: "Objektiv Mk1 Trial", sans-serif;
	font-size: 1.5rem;
	line-height: 2rem;
	font-weight: 600;
} */

.legalion-gutenberg-order__content > .wp-block-group.has-white-background-color > .wp-block-paragraph {
	margin: 0;
	text-align: center;
	color: #404040;
	font-size: 1rem;
	line-height: 1.5rem;
}

/* Heading + supporting text sit closer than the form below (Figma 12px / 40px). */
.legalion-gutenberg-order__content > .wp-block-group.has-white-background-color > .wp-block-heading + .wp-block-paragraph {
	margin-top: 12px;
}

.legalion-gutenberg-order__content > .wp-block-group.has-white-background-color > .wp-block-buttons {
	margin-top: 40px;
}

.legalion-gutenberg-order__content > .wp-block-group.has-white-background-color > .wp-block-spacer + .fluentfom-guten-block,
.legalion-gutenberg-order__content > .wp-block-group.has-white-background-color .fluentform {
	margin-top: 0;
}

/* —— Order form extras (shared FF skin in fluentform.css) —— */

/* Plan select — Figma pricing-tier card control.
 * Must beat body…select.ff-el-form-control (fluentform.css): that rule uses
 * `background: #fff` + smaller padding/min-height and wins on unfocused state
 * when this selector is weaker. */
.legalion-gutenberg-order .ff-el-group:has(.legalion-pricing-plan-select) > .ff-el-input--label {
	display: none;
}

body.legalion-gutenberg-order select.ff-el-form-control.legalion-pricing-plan-select,
body.legalion-gutenberg-order select.ff-el-form-control.legalion-pricing-plan-select:hover,
body.legalion-gutenberg-order select.ff-el-form-control.legalion-pricing-plan-select:focus,
body.legalion-gutenberg-order select.ff-el-form-control.legalion-pricing-plan-select:active {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	/* Longhands only — shorthand `background` would wipe the chevron. */
	background-color: #fafafa;
	background-image: url("../img/icon-chevron-down.svg");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 16px 16px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 10px;
	color: #7447a9;
	font-family: "Objektiv Mk1 Trial", sans-serif;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.5rem;
	padding: 16px 44px 16px 16px;
	min-height: 56px;
	height: auto;
	cursor: pointer;
	box-shadow: none;
	outline: none;
}

body.legalion-gutenberg-order select.ff-el-form-control.legalion-pricing-plan-select:focus {
	border-color: #633e8b; /* brand-800 */
	box-shadow: 0 0 0 2px rgba(99, 62, 139, 0.22);
	/* Keep same bg/size as default — only ring changes. */
	background-color: #fafafa;
}

/* Section dividers: “AI krytie” / “Kontaktné údaje” */
.legalion-gutenberg-order .legalion-order-section-wrap {
	margin: 0 0 1.25rem;
	width: 100%;
}

.legalion-gutenberg-order .legalion-order-section-wrap + .ff-el-group {
	margin-top: 0;
}

.legalion-gutenberg-order .legalion-order-section {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: none;
	color: #513370;
	font-family: "Objektiv Mk1 Trial", sans-serif;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.5rem;
	white-space: nowrap;
}

.legalion-gutenberg-order .legalion-order-section::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	min-width: 1rem;
	background: #e5e5e5;
}

/* —— Minimal footer —— */

.site-footer-minimal {
	background: #fafafa;
	margin-top: auto;
	padding: 96px 0;
}

.site-footer-minimal__inner {
	max-width: 1300px;
	margin: 0 auto;
	padding: 32px 24px 0;
	border-top: 1px solid #f5f5f5;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px 32px;
	box-sizing: border-box;
}

.site-footer-minimal__left {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 32px;
	flex: 1 1 480px;
	min-width: 0;
}

.site-footer-minimal__social {
	display: flex;
	align-items: center;
	gap: 16px;
}

.site-footer-minimal__social a {
	display: inline-flex;
	line-height: 0;
	opacity: 1;
	transition: opacity 0.15s ease;
}

.site-footer-minimal__social a:hover {
	opacity: 0.75;
}

.site-footer-minimal__social img {
	display: block;
	width: 20px;
	height: 20px;
}

.site-footer-minimal__legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 24px;
}

.site-footer-minimal__legal a {
	color: #404040;
	font-family: "Objektiv Mk1 Trial", sans-serif;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.25rem;
	text-decoration: none;
}

.site-footer-minimal__legal a:hover {
	color: #171717;
	text-decoration: underline;
}

.site-footer-minimal__copy {
	margin: 0;
	color: #737373;
	font-size: 0.875rem;
	line-height: 1.25rem;
	white-space: normal;
}

.site-footer-minimal__copy-brand {
	color: #3f205f;
	font-family: "Objektiv Mk1 Trial", sans-serif;
	font-weight: 500;
}

@media (max-width: 767px) {
	.legalion-gutenberg-order__content > .wp-block-group.has-white-background-color {
		padding-top: 40px;
		padding-bottom: 40px;
		padding-left: 20px;
		padding-right: 20px;
	}

	.site-footer-minimal {
		padding: 32px 0;
	}

	.site-footer-minimal__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
		padding-top: 24px;
	}

	/*
	 * Desktop flex-grow on __left becomes vertical on mobile and
	 * align-content:stretch opens huge gaps between social / legal.
	 */
	.site-footer-minimal__left {
		flex: 0 0 auto;
		align-content: flex-start;
		gap: 12px 16px;
		width: 100%;
	}

	.site-footer-minimal__legal {
		gap: 6px 16px;
	}
}
