/**
 * Studios Selection Page Styles
 * Template: template-studios-selection.php
 * Figma: Desktop 355:9375, Mobile 355:10726
 *
 * @package unique
 */

/* Main Container
--------------------------------------------------------------*/
.studios-selection-main {
	background-color: #F6F6F6;
	position: relative;
	width: 100%;
	overflow: hidden;
	min-height: 100vh;
}

/* Breadcrumbs Section */
.studios-selection-main .site-breadcrumbs-section {
	position: relative;
	z-index: 2;
	padding-top: 24px;
	padding-bottom: 12px;
}

/* Section */
.studios-selection-section {
	position: relative;
	padding-top: 16px;
	padding-bottom: 80px;
	width: 100%;
}

.studios-selection-container {
	position: relative;
	z-index: 2;
}

/* Header & Title */
.studios-selection-header {
	margin-bottom: 24px;
	text-align: center;
	width: 100%;
}

.studios-selection-title {
	font-family: var(--font-heading, 'Comfortaa', cursive, sans-serif);
	font-size: 44px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--purple, #8F1575);
	text-transform: uppercase;
	margin: 0;
}

/* Filter Dropdown
--------------------------------------------------------------*/
.studios-selection-filter-bar {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 40px;
	position: relative;
	z-index: 20;
}

.studios-selection-dropdown {
	position: relative;
	display: inline-block;
}

.studios-selection-dropdown-btn {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	border: 1.5px solid #1F1F1F;
	background-color: #FFFFFF;
	border-radius: 40px;
	padding: 8px 18px;
	font-family: var(--font-primary, 'Century Gothic', Arial, sans-serif);
	font-size: 16px;
	color: #1F1F1F;
	cursor: pointer;
	min-width: 120px;
	box-sizing: border-box;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.studios-selection-dropdown-btn:hover,
.studios-selection-dropdown.is-open .studios-selection-dropdown-btn {
	border-color: var(--purple, #8F1575);
	color: var(--purple, #8F1575);
}

.studios-selection-dropdown-btn .dropdown-chevron {
	transition: transform 0.25s ease;
	flex-shrink: 0;
}

.studios-selection-dropdown.is-open .dropdown-chevron {
	transform: rotate(180deg);
}

.studios-selection-dropdown-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%) translateY(-8px);
	background-color: #FFFFFF;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	border: 1px solid #EFEFEF;
	list-style: none;
	margin: 0;
	padding: 8px 0;
	min-width: 180px;
	max-height: 280px;
	overflow-y: auto;
	z-index: 30;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.studios-selection-dropdown.is-open .studios-selection-dropdown-menu {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0);
}

.dropdown-option {
	padding: 10px 20px;
	font-family: var(--font-primary, 'Century Gothic', Arial, sans-serif);
	font-size: 15px;
	color: #1F1F1F;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
	text-align: left;
	white-space: nowrap;
}

.dropdown-option:hover {
	background-color: #F8F4FA;
	color: var(--purple, #8F1575);
}

.dropdown-option.is-active {
	background-color: #F8F4FA;
	color: var(--purple, #8F1575);
	font-weight: 700;
}

/* Grid & Cards
--------------------------------------------------------------*/
.studios-selection-grid-wrap {
	width: 100%;
	position: relative;
	z-index: 2;
}

.studios-selection-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	width: 100%;
	box-sizing: border-box;
	transition: opacity 0.25s ease;
}

.studios-selection-grid.is-loading {
	opacity: 0.45;
	pointer-events: none;
}

.studios-selection-empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 60px 20px;
	font-family: var(--font-primary, 'Century Gothic', Arial, sans-serif);
	font-size: 18px;
	color: #888888;
}

/* Studio Card */
.studios-selection-card {
	background-color: #FFFFFF;
	border-radius: 16px;
	padding: 24px 24px 36px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
	min-height: 480px;
	box-sizing: border-box;
}

/* Grade Badge */
.studios-selection-card .studio-card-badge {
	position: absolute;
	top: 16px;
	right: 16px;
	background-color: var(--yellow, #FDB913);
	color: var(--purple, #8F1575);
	border-radius: 100px;
	padding: 4px 14px;
	font-family: var(--font-heading, 'Comfortaa', cursive, sans-serif);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	z-index: 3;
}

.studios-selection-card .studio-card-image-wrap {
	width: 100%;
	height: 220px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 12px;
	margin-bottom: 20px;
	position: relative;
}

.studios-selection-card .studio-card-img-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	text-decoration: none;
}

.studios-selection-card .studio-card-img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	display: block;
	aspect-ratio: 1/1;
}

.studios-selection-card .studio-card-img-placeholder {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	background-color: #F8F4FA;
	color: var(--purple, #8F1575);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
}

.studios-selection-card .studio-card-info {
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1;
}

.studios-selection-card .studio-card-title {
	font-family: var(--font-heading, 'Comfortaa', cursive, sans-serif);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--black, #1F1F1F);
	text-transform: uppercase;
	margin: 0;
}

.studios-selection-card .studio-card-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.studios-selection-card .studio-card-title a:hover {
	color: var(--purple, #8F1575);
}

.studios-selection-card .studio-card-desc {
	font-family: var(--font-primary, 'Century Gothic', Arial, sans-serif);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	color: #666666;
	margin: 0;
	flex: 1;
}

.studios-selection-card .studio-card-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--font-primary, 'Century Gothic', Arial, sans-serif);
	font-size: 16px;
	font-weight: 400;
	color: var(--purple, #8F1575);
	text-decoration: none;
	margin-top: auto;
	padding-top: 12px;
	width: fit-content;
	transition: color 0.2s ease;
}

.studios-selection-card .studio-card-link:hover {
	color: var(--purple-hover, #750f5f);
}

.studios-selection-card .studio-card-link .link-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	flex-shrink: 0;
}

.studios-selection-card .studio-card-link .link-arrow svg {
	display: block;
	width: 20px;
	height: 20px;
}

/* Load More Button
--------------------------------------------------------------*/
.studios-selection-load-more-wrap {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 48px;
	width: 100%;
}

.studios-selection-load-more {
	background-color: var(--yellow, #FDB913);
	color: var(--purple, #8F1575);
	font-family: var(--font-heading, 'Comfortaa', cursive, sans-serif);
	font-size: 16px;
	font-weight: 700;
	padding: 16px 36px;
	border-radius: 40px;
	border: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	transition: background-color 0.2s ease;
}

.studios-selection-load-more:hover {
	background-color: #ECA90E;
}

.studios-selection-load-more:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.studios-selection-load-more .btn-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid var(--purple, #8F1575);
	border-top-color: transparent;
	border-radius: 50%;
	animation: studiosSpin 0.7s linear infinite;
}

@keyframes studiosSpin {
	to {
		transform: rotate(360deg);
	}
}

/* Background Decorative Elements
--------------------------------------------------------------*/
.studios-selection-decor {
	position: absolute;
	pointer-events: none;
	z-index: 1;
}

/* Decor 1: Top-Left Lavender Pill (Figma 355:9400) */
.studios-selection-decor--top-left {
	top: 240px;
	left: -114px;
	width: 415px;
	height: 311px;
}

.studios-selection-decor--top-left .decor-pill-single {
	width: 411px;
	height: 120px;
	border-radius: 425px;
	background-color: rgba(219, 208, 235, 0.4);
	transform: rotate(30.36deg);
}

/* Decor 2: Top-Right Crossed Lavender Pills (Figma 355:9396) */
.studios-selection-decor--top-right {
	top: 153px;
	right: -80px;
	width: 416px;
	height: 410px;
}

.studios-selection-decor--top-right img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Decor 3: Left Pale Yellow Donut (Figma 355:9393) - shown only when > 8 items */
.studios-selection-decor--donut-left {
	top: 1115px;
	left: -114px;
	width: 414px;
	height: 414px;
	opacity: 0.8;
	display: none;
}

.studios-selection-decor--donut-left img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Decor 4: Bottom-Right Lavender Arc (Figma 355:9399) - shown only when > 8 items */
.studios-selection-decor--bottom-right {
	bottom: 180px;
	right: -60px;
	width: 446px;
	height: 241px;
	transform: rotate(-30.93deg);
	display: none;
}

.studios-selection-decor--bottom-right img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Display Donut & Bottom-Right Arc only when there are more than 8 items */
.studios-selection-section.has-many-items .studios-selection-decor--donut-left,
.studios-selection-section.has-many-items .studios-selection-decor--bottom-right {
	display: block;
}

/*--------------------------------------------------------------
# CTA Section (Допоможемо знайти програму)
--------------------------------------------------------------*/
.studio-cta-section {
	background-color: var(--purple, #8F1575);
	position: relative;
	width: 100%;
	overflow: hidden;
	padding: 40px 0;
	margin-top: 40px;
	box-sizing: border-box;
}

.studios-selection-cta {
	margin-top: 60px;
}

/* Wavy Bubble Pattern */
.studio-cta-pattern {
	position: absolute;
	left: 205px;
	top: -16px;
	width: 670px;
	height: 647px;
	pointer-events: none;
	z-index: 1;
}

.studio-cta-pattern-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	mix-blend-mode: overlay;
	opacity: 0.7;
	filter: contrast(1.1);
}

.studio-cta-grid {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	position: relative;
	z-index: 2;
	width: 100%;
}

/* Left Side: Title & Phone */
.studio-cta-left {
	flex: 1 1 420px;
	max-width: 500px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 350px;
	box-sizing: border-box;
}

.studio-cta-title {
	font-family: var(--font-heading, 'Comfortaa', cursive, sans-serif);
	font-size: 40px;
	font-weight: 700;
	line-height: 1.2;
	color: #FFFFFF;
	text-transform: uppercase;
	margin: 0;
}

.studio-cta-title .br-mobile {
	display: none;
}

.studio-cta-title .br-desktop {
	display: inline;
}

.studio-cta-title .tag-yellow {
	background-color: var(--yellow, #FDB913);
	color: var(--purple, #8F1575);
	font-family: var(--font-heading, 'Comfortaa', cursive, sans-serif);
	font-size: 40px;
	font-weight: 700;
	padding: 4px 18px;
	border-radius: 40px;
	display: inline-block;
	transform: rotate(-3.14deg);
	transform-origin: center center;
	line-height: 1.2;
	margin-top: -10px;
}

.studio-cta-phone-wrap {
	padding-top: 32px;
}

.studio-cta-phone {
	font-family: var(--font-heading, 'Comfortaa', cursive, sans-serif);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	color: #FFFFFF;
	text-transform: uppercase;
	text-decoration: none;
	transition: opacity 0.2s ease;
	display: inline-block;
}

.studio-cta-phone:hover {
	opacity: 0.85;
}

/* Right Side: Form Card */
.studio-cta-right {
	flex: 1 1 500px;
	max-width: 560px;
	width: 100%;
	box-sizing: border-box;
}

.studio-form-card {
	background-color: #FFFFFF;
	border-radius: 16px;
	padding: 24px;
	box-sizing: border-box;
	width: 100%;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.studio-form-header {
	margin-bottom: 24px;
	text-align: center;
}

.studio-form-title {
	font-family: var(--font-heading, 'Comfortaa', cursive, sans-serif);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.72px;
	color: var(--black, #1F1F1F);
	text-transform: uppercase;
	margin: 0 0 8px 0;
}

.studio-form-subtitle {
	font-family: var(--font-primary, 'Century Gothic', Arial, sans-serif);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--black, #1F1F1F);
	margin: 0;
}

/* Form inputs & Contact Form 7 integration */
.studio-form-body .form-group,
.studio-form-body form p {
	margin-bottom: 16px;
	margin-top: 0;
	width: 100%;
}

.studio-form-body .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
	position: relative;
}

.studio-form-body .wpcf7-not-valid-tip {
	font-family: var(--font-primary, 'Century Gothic', Arial, sans-serif);
	font-size: 13px;
	color: #dc3232;
	margin-top: 4px;
	display: block;
}

.studio-form-body .form-control,
.studio-form-body .wpcf7-form-control:not([type="submit"]):not([type="checkbox"]):not([type="radio"]) {
	width: 100%;
	background-color: #FFFFFF;
	border: 1px solid #999999;
	border-radius: 8px;
	padding: 16px 24px;
	font-family: var(--font-primary, 'Century Gothic', Arial, sans-serif);
	font-size: 16px;
	color: var(--black, #1F1F1F);
	box-sizing: border-box;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.studio-form-body .form-control:focus,
.studio-form-body .wpcf7-form-control:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):focus {
	border-color: var(--purple, #8F1575);
	box-shadow: 0 0 0 3px rgba(143, 21, 117, 0.1);
}

.studio-form-body .form-control::placeholder,
.studio-form-body .wpcf7-form-control::placeholder {
	color: #999999;
}

.studio-form-body .form-textarea,
.studio-form-body .wpcf7-textarea {
	resize: vertical;
	min-height: 120px;
	height: 120px;
}

.studio-form-body .form-group-submit {
	margin-top: 24px;
	margin-bottom: 0;
}

.studio-form-body .btn-yellow,
.studio-form-body .form-submit,
.studio-form-body .wpcf7-submit {
	width: 100%;
	background-color: var(--yellow, #FDB913);
	color: var(--purple, #8F1575);
	border: none;
	border-radius: 40px;
	padding: 16px 24px;
	font-family: var(--font-primary, 'Century Gothic', Arial, sans-serif);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	box-sizing: border-box;
	transition: background-color 0.2s ease;
	text-align: center;
	display: block;
}

.studio-form-body .btn-yellow:hover,
.studio-form-body .form-submit:hover,
.studio-form-body .wpcf7-submit:hover {
	background-color: #ECA90E;
}

.studio-form-body .wpcf7-response-output {
	margin: 16px 0 0 0 !important;
	padding: 12px 16px !important;
	border-radius: 8px !important;
	font-family: var(--font-primary, 'Century Gothic', Arial, sans-serif);
	font-size: 14px;
}

.studio-form-body .wpcf7-spinner {
	margin: 10px auto 0;
	display: block;
}

/*--------------------------------------------------------------
# Media Queries: Tablet (max-width: 1024px)
--------------------------------------------------------------*/
@media screen and (max-width: 1024px) {
	.studios-selection-title {
		font-size: 34px;
	}

	.studios-selection-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}

	.studios-selection-decor--top-left {
		top: 180px;
		left: -80px;
		transform: scale(0.75);
		transform-origin: top left;
	}

	.studios-selection-decor--top-right {
		top: 120px;
		right: -60px;
		width: 320px;
		height: 320px;
	}

	.studios-selection-decor--donut-left {
		top: 900px;
		left: -80px;
		width: 300px;
		height: 300px;
	}

	.studios-selection-decor--bottom-right {
		bottom: 120px;
		right: -40px;
		width: 320px;
		height: 180px;
	}

	.studio-cta-section {
		padding: 40px 0;
	}

	.studio-cta-grid {
		flex-direction: column;
		gap: 40px;
	}

	.studio-cta-left {
		flex: none;
		min-height: 0;
		justify-content: flex-start;
		max-width: 100%;
		text-align: center;
		align-items: center;
		gap: 20px;
	}

	.studio-cta-phone-wrap {
		margin-top: 0;
		padding-top: 0;
	}

	.studio-cta-right {
		flex: none;
		max-width: 100%;
	}
}

/*--------------------------------------------------------------
# Media Queries: Mobile (max-width: 768px)
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
	.studios-selection-main .site-breadcrumbs-section {
		padding-top: 16px;
		padding-bottom: 8px;
	}

	.studios-selection-section {
		padding-top: 40px;
		padding-bottom: 40px;
	}

	.studios-selection-header {
		margin-bottom: 16px;
	}

	.studios-selection-title {
		font-size: 24px;
		line-height: 1.3;
	}

	.studios-selection-filter-bar {
		margin-bottom: 24px;
	}

	.studios-selection-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.studios-selection-card {
		padding: 24px 20px;
		min-height: auto;
	}

	.studios-selection-card .studio-card-image-wrap {
		height: 180px;
		margin-top: 8px;
		margin-bottom: 16px;
	}

	.studios-selection-card .studio-card-title {
		font-size: 20px;
	}

	.studios-selection-card .studio-card-desc {
		font-size: 16px;
	}

	.studios-selection-load-more-wrap {
		margin-top: 32px;
	}

	.studios-selection-load-more {
		width: 100%;
		max-width: 320px;
	}

	/* Scale down background decor on mobile */
	.studios-selection-decor--top-left {
		top: 100px;
		left: -60px;
		transform: scale(0.5);
	}

	.studios-selection-decor--top-right {
		top: 60px;
		right: -60px;
		width: 220px;
		height: 220px;
		opacity: 0.5;
	}

	.studios-selection-decor--donut-left {
		display: none !important;
	}

	.studios-selection-section.has-many-items .studios-selection-decor--bottom-right {
		display: block;
	}

	.studios-selection-decor--bottom-right {
		bottom: 80px;
		right: -40px;
		width: 220px;
		height: 120px;
		opacity: 0.5;
	}

	/* CTA Section on Mobile */
	.studio-cta-section {
		padding: 40px 0;
		margin-top: 24px;
	}

	.studios-selection-cta {
		margin-top: 24px;
	}

	.studio-cta-pattern {
		left: 80px;
		top: 20px;
		width: 385px;
		height: 372px;
	}

	.studio-cta-grid {
		flex-direction: column;
		gap: 32px;
	}

	.studio-cta-left {
		flex: none;
		min-height: 0;
		justify-content: flex-start;
		text-align: left;
		align-items: flex-start;
		max-width: 100%;
		gap: 16px;
	}

	.studio-cta-title {
		font-size: 24px;
		line-height: 1.4;
		text-align: left;
		width: 100%;
	}

	.studio-cta-title .br-mobile {
		display: inline;
	}

	.studio-cta-title .br-desktop {
		display: none;
	}

	.studio-cta-title .tag-yellow {
		display: block;
		margin-left: auto;
		margin-top: 8px;
		margin-bottom: 8px;
		width: fit-content;
		font-size: 24px;
		padding: 4px 18px;
		text-align: center;
	}

	.studio-cta-phone-wrap {
		margin-top: 0;
		padding-top: 0;
	}

	.studio-cta-phone {
		font-size: 24px;
		line-height: 1.4;
	}

	.studio-cta-right {
		max-width: 100%;
	}

	.studio-form-card {
		padding: 24px 16px;
		border-radius: 16px;
	}

	.studio-form-title {
		font-size: 20px;
	}

	.studio-form-subtitle {
		font-size: 14px;
	}
}