/**
 * Service page styles
 *
 * @package Svaros_Partneriai
 */

/* Service hero */
.service-hero {
	background: linear-gradient(135deg, var(--sp-color-primary-dark) 0%, var(--sp-color-primary) 100%);
	color: var(--sp-color-white);
	padding: var(--sp-space-12) 0 var(--sp-space-16);
	text-align: center;
}

.service-hero__title {
	font-size: var(--sp-text-4xl);
	color: var(--sp-color-white);
	margin-bottom: var(--sp-space-4);
}

.service-hero__description {
	font-size: var(--sp-text-lg);
	color: rgba(255, 255, 255, 0.9);
	max-width: 600px;
	margin: 0 auto;
}

/* What's included */
.service-includes {
	padding: var(--sp-section-padding) 0;
}

.service-includes__grid {
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	gap: var(--sp-space-4);
}

@media (min-width: 640px) {
	.service-includes__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.service-includes__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.service-includes__item {
	display: flex;
	align-items: flex-start;
	gap: var(--sp-space-3);
	padding: var(--sp-space-4);
	border-radius: var(--sp-radius-md);
	background: var(--sp-color-gray-50);
}

.service-includes__icon {
	flex-shrink: 0;
	width: 1.5rem;
	height: 1.5rem;
	color: var(--sp-color-success);
	margin-top: 0.15rem;
}

.service-includes__text {
	font-size: var(--sp-text-sm);
	line-height: var(--sp-leading-relaxed);
}

/* Calculator section on service page */
.service-calculator {
	padding: var(--sp-section-padding) 0;
	background: var(--sp-color-bg-alt);
}

/* Booking section (step 2 — hidden initially) */
.service-booking {
	padding: var(--sp-section-padding) 0;
	display: none;
}

.service-booking.is-active {
	display: block;
}

/* Contact form section (step 3 — hidden initially) */
.service-contact {
	padding: var(--sp-section-padding) 0;
	background: var(--sp-color-bg-alt);
	display: none;
}

.service-contact.is-active {
	display: block;
}

/* Confirmation (step 4 — hidden initially) */
.service-confirmation {
	padding: var(--sp-section-padding) 0;
	text-align: center;
	display: none;
}

.service-confirmation.is-active {
	display: block;
}

.service-confirmation__icon {
	width: 5rem;
	height: 5rem;
	margin: 0 auto var(--sp-space-6);
	background: var(--sp-color-success-bg);
	color: var(--sp-color-success);
	border-radius: var(--sp-radius-full);
	display: flex;
	align-items: center;
	justify-content: center;
}

.service-confirmation__icon svg {
	width: 2.5rem;
	height: 2.5rem;
}

/* FAQ section */
.service-faq {
	padding: var(--sp-section-padding) 0;
}

.faq-accordion {
	max-width: 720px;
	margin: 0 auto;
}

.faq-item {
	border-bottom: 1px solid var(--sp-color-border-light);
}

.faq-item__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: var(--sp-space-5) 0;
	text-align: left;
	font-size: var(--sp-text-md);
	font-weight: var(--sp-font-semibold);
	color: var(--sp-color-gray-900);
	cursor: pointer;
	border: none;
	background: none;
}

.faq-item__icon {
	flex-shrink: 0;
	width: 1.25rem;
	height: 1.25rem;
	color: var(--sp-color-gray-500);
	transition: transform var(--sp-transition-fast);
}

.faq-item.is-open .faq-item__icon {
	transform: rotate(180deg);
}

.faq-item__answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height var(--sp-transition-base);
}

.faq-item.is-open .faq-item__answer {
	max-height: 500px;
}

.faq-item__answer-inner {
	padding-bottom: var(--sp-space-5);
	font-size: var(--sp-text-sm);
	color: var(--sp-color-text-light);
	line-height: var(--sp-leading-relaxed);
}

/* Custom request form */
.custom-request {
	padding: var(--sp-section-padding) 0;
}

.custom-request__form {
	max-width: 640px;
	margin: 0 auto;
}

.custom-request__badge {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-space-2);
	padding: var(--sp-space-2) var(--sp-space-4);
	background: var(--sp-color-info-bg);
	color: var(--sp-color-info);
	border-radius: var(--sp-radius-full);
	font-size: var(--sp-text-sm);
	font-weight: var(--sp-font-medium);
	margin-bottom: var(--sp-space-6);
}

/* Image upload zone */
.upload-zone {
	border: 2px dashed var(--sp-color-border);
	border-radius: var(--sp-radius-lg);
	padding: var(--sp-space-8);
	text-align: center;
	cursor: pointer;
	transition: all var(--sp-transition-fast);
}

.upload-zone:hover,
.upload-zone.is-dragover {
	border-color: var(--sp-color-primary);
	background: var(--sp-color-primary-bg);
}

.upload-zone__icon {
	width: 3rem;
	height: 3rem;
	margin: 0 auto var(--sp-space-3);
	color: var(--sp-color-gray-400);
}

.upload-zone__text {
	font-size: var(--sp-text-sm);
	color: var(--sp-color-text-light);
	margin-bottom: var(--sp-space-1);
}

.upload-zone__hint {
	font-size: var(--sp-text-xs);
	color: var(--sp-color-text-muted);
}

/* Upload previews */
.upload-previews {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--sp-space-3);
	margin-top: var(--sp-space-4);
}

@media (min-width: 640px) {
	.upload-previews {
		grid-template-columns: repeat(4, 1fr);
	}
}

.upload-preview {
	position: relative;
	aspect-ratio: 1;
	border-radius: var(--sp-radius-md);
	overflow: hidden;
}

.upload-preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.upload-preview__remove {
	position: absolute;
	top: var(--sp-space-1);
	right: var(--sp-space-1);
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.6);
	color: var(--sp-color-white);
	border-radius: var(--sp-radius-full);
	font-size: 14px;
	border: none;
	cursor: pointer;
}

.upload-preview__progress {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.5);
	color: var(--sp-color-white);
	font-size: var(--sp-text-sm);
	font-weight: var(--sp-font-bold);
}


/* ==========================================================================
   Service rooms overview — clean tabbed card showing per-room tasks
   Brand tokens: cyan #00aeef · cyan→blue gradient · 14–20 px radii
   Styles are context-agnostic so they work both inside the booking form
   (page-rezervacija.php) and on the service landing pages.
   ========================================================================== */

.sp-rooms {
	padding: 56px 0 32px;
}

.sp-rooms__title {
	margin: 0 0 8px;
	font-size: clamp( 22px, 3vw, 30px );
	font-weight: 800;
	color: #1d1e20;
	text-align: center;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.sp-rooms__lead {
	margin: 0 auto 28px;
	max-width: 540px;
	font-size: 14.5px;
	color: rgba( 29, 30, 32, 0.55 );
	text-align: center;
	line-height: 1.5;
}

/* Tabs */
.sp-rooms__tabs {
	display: grid;
	grid-template-columns: repeat( 4, 1fr );
	gap: 10px;
	max-width: 760px;
	margin: 0 auto 24px;
}

.sp-rooms__tab {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 10px 14px;
	background: #ffffff;
	border: 1.5px solid rgba( 0, 0, 0, 0.06 );
	border-radius: 14px;
	font-size: 14px;
	font-weight: 700;
	color: #1d1e20;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba( 0, 0, 0, 0.04 );
	transition:
		background 0.25s ease,
		color 0.25s ease,
		border-color 0.25s ease,
		box-shadow 0.25s ease,
		transform 0.18s ease;
}

.sp-rooms__tab:hover {
	border-color: rgba( 0, 174, 239, 0.4 );
	transform: translateY( -1px );
}

.sp-rooms__tab.is-active {
	background: var( --sp-color-primary );
	border-color: transparent;
	color: #ffffff;
	box-shadow: 0 8px 22px rgba( 0, 174, 239, 0.32 );
}

/* Panels & card */
.sp-rooms__panel {
	max-width: 880px;
	margin: 0 auto;
}

.sp-rooms__panel[hidden] {
	display: none;
}

.sp-rooms__card {
	background: #ffffff;
	border: 1px solid rgba( 0, 0, 0, 0.05 );
	border-radius: 20px;
	padding: 26px 26px 22px;
	box-shadow: 0 12px 36px rgba( 0, 0, 0, 0.06 );
}

.sp-rooms__card-head {
	display: flex;
	align-items: center;
	gap: 16px;
	padding-bottom: 18px;
	margin-bottom: 18px;
	border-bottom: 1px solid rgba( 0, 0, 0, 0.06 );
}

.sp-rooms__card-glyph {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	flex-shrink: 0;
	border-radius: 16px;
	background: rgba( 0, 174, 239, 0.10 );
	color: var( --sp-color-primary );
}

.sp-rooms__card-meta {
	flex: 1;
	min-width: 0;
}

.sp-rooms__card-eyebrow {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba( 29, 30, 32, 0.45 );
}

.sp-rooms__card-title {
	margin: 4px 0 0;
	font-size: 20px;
	font-weight: 800;
	color: #1d1e20;
	letter-spacing: -0.01em;
	line-height: 1.2;
}

.sp-rooms__card-count {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	background: rgba( 0, 174, 239, 0.10 );
	border-radius: 100px;
	font-size: 12.5px;
	font-weight: 700;
	color: #00aeef;
}

/* Tasks */
.sp-rooms__tasks {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	gap: 12px 22px;
}

.sp-rooms__task {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14.5px;
	line-height: 1.4;
	color: rgba( 29, 30, 32, 0.85 );
	font-weight: 500;
}

.sp-rooms__task-check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	border-radius: 50%;
	background: rgba( 0, 174, 239, 0.12 );
	color: #00aeef;
	margin-top: 1px;
}

.sp-rooms__task-label {
	flex: 1;
}

@media ( max-width: 768px ) {
	.sp-rooms {
		padding: 36px 0 24px;
	}
	.sp-rooms__tabs {
		grid-template-columns: repeat( 2, 1fr );
		gap: 8px;
	}
	.sp-rooms__tab {
		font-size: 13px;
		min-height: 44px;
		padding: 9px 12px;
	}
	.sp-rooms__card {
		padding: 20px 18px 18px;
		border-radius: 18px;
	}
	.sp-rooms__card-head {
		gap: 12px;
		padding-bottom: 14px;
		margin-bottom: 14px;
	}
	.sp-rooms__card-glyph {
		width: 46px;
		height: 46px;
		border-radius: 13px;
	}
	.sp-rooms__card-title {
		font-size: 17px;
	}
	.sp-rooms__card-count {
		font-size: 11.5px;
		padding: 5px 10px;
	}
	.sp-rooms__tasks {
		grid-template-columns: 1fr;
		gap: 10px;
	}
	.sp-rooms__task {
		font-size: 14px;
	}
}

/* ==========================================================================
   Service excluded items — "what cleaners won't do"
   ========================================================================== */

.sp-excluded {
	padding: 40px 0 60px;
}

.sp-excluded__title {
	margin: 0 0 28px;
	font-size: clamp( 22px, 3vw, 30px );
	font-weight: 800;
	color: #1d1e20;
	text-align: center;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.sp-excluded__accent {
	color: #00aeef;
}

.sp-excluded__grid {
	display: grid;
	grid-template-columns: repeat( 6, minmax( 0, 1fr ) );
	gap: 14px;
	max-width: 1080px;
	margin: 0 auto;
}

.sp-excluded__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
	padding: 20px 18px;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 6px 18px rgba( 0, 0, 0, 0.04 );
	border: 1px solid rgba( 0, 0, 0, 0.04 );
	min-height: 150px;
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.sp-excluded__card:hover {
	transform: translateY( -3px );
	box-shadow: 0 12px 26px rgba( 0, 0, 0, 0.07 );
}

.sp-excluded__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 12px;
	background: rgba( 0, 174, 239, 0.10 );
	color: #00aeef;
}

.sp-excluded__label {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: #1d1e20;
	line-height: 1.35;
}

.sp-excluded__footnote {
	margin: 24px auto 0;
	max-width: 720px;
	text-align: center;
	font-size: 13px;
	color: #00aeef;
	font-weight: 600;
	line-height: 1.5;
}

@media ( max-width: 1024px ) {
	.sp-excluded__grid {
		grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	}
}

@media ( max-width: 600px ) {
	.sp-excluded {
		padding: 32px 0 50px;
	}
	.sp-excluded__grid {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
		gap: 10px;
	}
	.sp-excluded__card {
		min-height: 120px;
		padding: 16px 14px;
		gap: 14px;
	}
}

/* --------------------------------------------------------------------------
   Booking-form context overrides — when these sections sit INSIDE the
   `.checkout-form` glass card, drop the bare-section padding and let the
   form's own padding handle the framing. The cards keep their look but
   the wrapper aligns with the rest of the form's content.
   -------------------------------------------------------------------------- */

.checkout-form .sp-rooms,
.checkout-form .sp-excluded {
	padding: 0;
}

.checkout-form .sp-rooms .container,
.checkout-form .sp-excluded .container {
	padding: 0;
	max-width: none;
	width: auto;
}

.checkout-form .sp-rooms__title,
.checkout-form .sp-excluded__title {
	font-size: 18px;
	text-align: left;
	margin: 0 0 10px;
}

.checkout-form .sp-rooms__lead {
	margin: 0 0 18px;
	text-align: left;
	font-size: 13.5px;
}

.checkout-form .sp-rooms__tabs {
	max-width: none;
	margin: 0 0 16px;
}

.checkout-form .sp-rooms__panel {
	max-width: none;
}

.checkout-form .sp-rooms__card {
	padding: 22px 22px 20px;
	box-shadow: 0 6px 18px rgba( 0, 0, 0, 0.04 );
	border-color: rgba( 0, 0, 0, 0.06 );
}

/* The "Kokių darbų neatlieka?" title and grid wrap into the same form body
   — keep the title compact on the left and let the grid breathe. */
.checkout-form .sp-excluded {
	margin-top: 28px;
}

.checkout-form .sp-excluded__grid {
	max-width: none;
}

.checkout-form .sp-excluded__footnote {
	text-align: left;
	margin: 16px 0 0;
}

/* Stack to 3 columns on the booking form's narrower content area. */
@media ( min-width: 769px ) {
	.checkout-form .sp-excluded__grid {
		grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	}
}

/* Drop the section spacing on mobile inside the form. */
@media ( max-width: 600px ) {
	.checkout-form .sp-rooms__title,
	.checkout-form .sp-excluded__title {
		font-size: 16px;
	}
}

/* ==========================================================================
   Native <details>/<summary> disclosure — collapse the rooms-overview and
   exclusions sections by default so the booking page stays short. Clicking
   the summary card expands the body. Browser handles all state; no JS.
   ========================================================================== */

.sp-rooms__disclosure,
.sp-excluded__disclosure {
	display: block;
}

.sp-rooms__summary,
.sp-excluded__summary {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 18px;
	background: #ffffff;
	border: 1px solid rgba( 0, 0, 0, 0.06 );
	border-radius: 14px;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba( 0, 0, 0, 0.04 );
	list-style: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Strip the browser's default disclosure triangle on both engines. */
.sp-rooms__summary::-webkit-details-marker,
.sp-excluded__summary::-webkit-details-marker {
	display: none;
}
.sp-rooms__summary::marker,
.sp-excluded__summary::marker {
	display: none;
	content: '';
}

.sp-rooms__summary:hover,
.sp-excluded__summary:hover,
.sp-rooms__summary:focus-visible,
.sp-excluded__summary:focus-visible {
	border-color: rgba( 0, 174, 239, 0.45 );
	box-shadow: 0 6px 18px rgba( 0, 174, 239, 0.12 );
	outline: none;
}

/* Inside the summary, neutralise the original title's center alignment /
   bottom margin so it sits flush in the row with the chevron. */
.sp-rooms__summary .sp-rooms__title,
.sp-excluded__summary .sp-excluded__title {
	flex: 1;
	min-width: 0;
	margin: 0;
	text-align: left;
}

.sp-rooms__summary-chevron,
.sp-excluded__summary-chevron {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	flex-shrink: 0;
	border-radius: 50%;
	background: rgba( 0, 174, 239, 0.10 );
	color: var( --sp-color-primary );
	transition: transform 0.25s ease, background 0.2s ease;
}

.sp-rooms__disclosure[open] .sp-rooms__summary-chevron,
.sp-excluded__disclosure[open] .sp-excluded__summary-chevron {
	transform: rotate( 180deg );
	background: rgba( 0, 174, 239, 0.18 );
}

.sp-rooms__details-body,
.sp-excluded__details-body {
	margin-top: 22px;
}

/* Inside the booking-form glass card the summary card sits flush — drop the
   white-on-white shadow, use a soft tint instead. */
.checkout-form .sp-rooms__summary,
.checkout-form .sp-excluded__summary {
	padding: 12px 14px;
	border-radius: 12px;
	box-shadow: none;
	background: rgba( 0, 0, 0, 0.02 );
}

.checkout-form .sp-rooms__details-body,
.checkout-form .sp-excluded__details-body {
	margin-top: 16px;
}
