/**
 * Front-end styles for template-parts/single_services_phtml.php ("Single Service").
 * Brand colors match the rest of the site: navy #191d88 / gold #ffcc33.
 * Only loaded on pages using this template (see single_service_frontend_assets()).
 */

.ss-hero {
	--ss-hero-navy: #191d88;
	--ss-hero-gold: #ffcc33;
	--ss-hero-gold-dark: #eeb300;

	background:
		linear-gradient(120deg, rgba(25, 29, 136, 0.95) 45%, rgba(25, 29, 136, 0.55)),
		var(--ss-hero-bg) center / cover no-repeat;
	background-color: var(--ss-hero-navy);
}

.ss-hero__content {
	padding: 64px 0;
	color: #fff;
}

/**
 * Hero text (col-md-8) and the quote form (col-md-4) share the site's usual
 * container > row > col grid. The container's width is capped explicitly to
 * keep the row readable instead of stretching to Bootstrap's full lg width.
 */
.ss-hero__content .container {
	max-width: 1200px;
	width: 100%;
}

.ss-hero__content .row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

/* Breadcrumb */
.ss-breadcrumb ol {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 0;
	margin: 0 0 20px;
	font-size: 13px;
}

.ss-breadcrumb li:not(:last-child)::after {
	content: "\203A";
	margin-left: 6px;
	opacity: 0.5;
}

.ss-breadcrumb a {
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
}

.ss-breadcrumb a:hover {
	color: var(--ss-hero-gold);
}

.ss-breadcrumb li[aria-current] {
	color: var(--ss-hero-gold);
}

/* Title / subtitle */
.ss-hero__title {
	font-size: 44px;
	line-height: 1.15;
	font-weight: 800;
	margin: 0 0 18px;
	color: #fff;
}

.ss-hero__title span {
	color: var(--ss-hero-gold);
}

.ss-hero__subtitle {
	font-size: 16px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.85);
	max-width: 520px;
	margin: 0 0 28px;
}

/* Trust badges */
.ss-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 18px 28px;
	list-style: none;
	padding: 0;
	margin: 0 0 32px;
}

.ss-badges__item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 600;
}

.ss-badges__icon {
	display: inline-flex;
	color: var(--ss-hero-gold);
	flex-shrink: 0;
}

/* CTA buttons */
.ss-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.ss-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: 4px;
	font-weight: 700;
	text-decoration: none;
	font-size: 15px;
	transition: all 0.25s ease;
}

.ss-btn--primary {
	background: var(--ss-hero-gold);
	color: var(--ss-hero-navy);
}

.ss-btn--primary:hover {
	background: var(--ss-hero-gold-dark);
	color: var(--ss-hero-navy);
	transform: translateY(-2px);
}

.ss-btn--outline {
	background: transparent;
	color: #fff;
	border: 2px solid rgba(255, 255, 255, 0.6);
}

.ss-btn--outline:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

/* Quote form card, sitting in col-md-4 alongside the hero text */
.ss-hero__form-col {
	background: #fff;
	border-radius: 8px;
	padding: 36px 28px;
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
	margin: 8px 0;
}

.ss-quote-card {
	width: 100%;
}

.ss-quote-card h2 {
	color: var(--ss-hero-navy);
	font-size: 22px;
	margin: 0 0 8px;
	font-weight: 800;
}

.ss-quote-card > p {
	color: #555;
	font-size: 14px;
	margin: 0 0 20px;
}

.ss-quote-card__notice {
	background: #fff4d6;
	border: 1px solid var(--ss-hero-gold);
	padding: 12px;
	border-radius: 4px;
	font-size: 13px;
	color: #6b5000;
}

/**
 * Contact Form 7 layout inside the quote card: Name/Phone and Email/Postcode
 * sit as 2-column pairs (.ss-form-row--half); Service, Message and Submit
 * each take the full row.
 */
.ss-quote-card .wpcf7-form {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.ss-quote-card .wpcf7-form br {
	display: none;
}

.ss-quote-card .wpcf7-form p {
	position: relative;
	margin: 0;
	flex: 1 1 100%;
}

.ss-quote-card .wpcf7-form p.ss-form-row--half {
	flex: 1 1 calc(50% - 7px);
}

.ss-quote-card .ss-form-icon {
	position: absolute;
	left: 12px;
	top: 17px;
	color: var(--ss-hero-navy);
	pointer-events: none;
	display: inline-flex;
}

.ss-quote-card .ss-form-icon svg {
	width: 16px;
	height: 16px;
}

.ss-quote-card .wpcf7-form-control {
	width: 100%;
	border: 1px solid #e0e0e0;
	background: #f8f9fb;
	border-radius: 4px;
	padding: 12px 10px 12px 36px;
	font-size: 13px;
}

.ss-quote-card textarea.wpcf7-form-control {
	padding-left: 14px;
	min-height: 90px;
	resize: vertical;
}

.ss-quote-card .wpcf7-form-control:focus {
	outline: none;
	border-color: var(--ss-hero-navy);
}

.ss-quote-card input[type="submit"] {
	width: 100%;
	background: var(--ss-hero-gold);
	color: var(--ss-hero-navy);
	border: none;
	padding: 14px;
	font-weight: 800;
	border-radius: 4px;
	cursor: pointer;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: background 0.25s ease;
}

.ss-quote-card input[type="submit"]:hover {
	background: var(--ss-hero-gold-dark);
}

.ss-quote-card .wpcf7-spinner {
	display: block;
	margin: 10px auto 0;
}

.ss-quote-card .wpcf7-not-valid-tip {
	font-size: 12px;
	margin-top: 4px;
}

/* Responsive */
@media (max-width: 991px) {
	.ss-hero__content {
		text-align: center;
		padding: 56px 24px;
	}

	/**
	 * .ss-hero__content > .container-fluid > .container > .col-md-8 each
	 * carry their own Bootstrap 15px side padding, which stacks on top of
	 * .ss-hero__content's own padding above (three extra nested paddings,
	 * ~45px of redundant inset). Zero those out so the hero's mobile inset
	 * comes from exactly one place and is predictable.
	 */
	.ss-hero__content .container-fluid,
	.ss-hero__content .container,
	.ss-hero__content .row > [class*="col-"] {
		padding-left: 0;
		padding-right: 0;
	}

	.ss-breadcrumb ol,
	.ss-badges,
	.ss-hero__actions {
		justify-content: center;
	}

	.ss-hero__subtitle {
		margin-left: auto;
		margin-right: auto;
	}

	.ss-hero__form-col {
		margin: 32px 0 8px;
	}
}

@media (max-width: 576px) {
	.ss-hero__title {
		font-size: 32px;
	}

	.ss-badges {
		flex-direction: column;
		align-items: center;
		gap: 12px;
	}

	.ss-hero__actions {
		flex-direction: column;
		width: 100%;
	}

	.ss-btn {
		justify-content: center;
		width: 100%;
	}

	.ss-quote-card .wpcf7-form p.ss-form-row--half {
		flex: 1 1 100%;
	}
}
