/**
 * File: assets/css/pages/quote/base.css
 * Description: Quote page layout and global inner hero migration styles.
 *
 * MAGIDA QUOTE PAGE PASS 12:
 * - Adds a dedicated Quote page layout with hero, process, and form sections.
 *
 * MAGIDA QUOTE GLOBAL HERO MIGRATION PASS 22.4:
 * - Lets the shared global inner hero control Quote page spacing, breadcrumb, grid, and title scale.
 * - Keeps only Quote-specific artwork and downstream section layout in this page stylesheet.
 */

.magida-template--quote {
	/* MAGIDA PASS 22.4: The template keeps a scoped hook while the shared inner-page unity file owns the main page atmosphere. */
	background-color: var(--magida-dark);
}

.magida-inner-hero--quote .magida-quote-hero__visual {
	/* MAGIDA PASS 22.4: Quote visual content is padded inside the approved global right-card shell. */
	display: grid;
	place-items: stretch;
	padding: clamp(22px, 3vw, 46px);
}

.magida-quote-hero__art {
	/* MAGIDA PASS 22.4: Single contained artwork stage prevents the Quote card from leaking outside the global shell. */
	position: relative;
	width: 100%;
	min-height: 100%;
	border: 1px solid rgba(5, 223, 254, 0.16);
	border-radius: clamp(24px, 2vw, 34px);
	background:
		linear-gradient(135deg, rgba(4, 8, 18, 0.94), rgba(12, 14, 28, 0.84)),
		radial-gradient(
			circle at 18% 22%,
			rgba(5, 223, 254, 0.18),
			transparent 34%
		),
		radial-gradient(
			circle at 78% 70%,
			rgba(124, 106, 251, 0.2),
			transparent 38%
		);
	box-shadow:
		inset 0 0 0 1px rgba(255, 255, 255, 0.025),
		0 24px 70px rgba(0, 0, 0, 0.26);
	overflow: hidden;
	isolation: isolate;
}

.magida-quote-hero__art > * {
	position: relative;
	z-index: 2;
}

.magida-quote-hero__ambient,
.magida-quote-hero__grid,
.magida-quote-hero__scan,
.magida-quote-hero__route,
.magida-quote-hero__node,
.magida-quote-hero__orb {
	/* MAGIDA PASS 22.4: Decorative layers are locked behind the readable brief/status cards. */
	position: absolute;
	z-index: 1;
	pointer-events: none;
}

.magida-quote-hero__ambient--one {
	width: 260px;
	height: 260px;
	top: -74px;
	left: -78px;
	border-radius: 999px;
	background: rgba(5, 223, 254, 0.16);
	filter: blur(34px);
}

.magida-quote-hero__ambient--two {
	width: 290px;
	height: 290px;
	right: -92px;
	bottom: -86px;
	border-radius: 999px;
	background: rgba(124, 106, 251, 0.18);
	filter: blur(38px);
}

.magida-quote-hero__grid {
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
	background-size: 86px 86px;
	mask-image: radial-gradient(
		circle at 54% 44%,
		rgba(0, 0, 0, 0.86),
		transparent 74%
	);
	opacity: 0.42;
}

.magida-quote-hero__scan {
	inset: clamp(22px, 3vw, 42px);
	border: 1px solid rgba(255, 255, 255, 0.075);
	border-radius: clamp(20px, 1.7vw, 30px);
	background-image:
		linear-gradient(
			90deg,
			transparent,
			rgba(5, 223, 254, 0.18),
			transparent
		),
		linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 62%);
	background-size:
		180% 100%,
		auto;
	opacity: 0.76;
}

.magida-quote-hero__route {
	top: 50%;
	left: 10%;
	right: 10%;
	height: 3px;
	border-radius: 999px;
	background: linear-gradient(
		90deg,
		rgba(5, 223, 254, 0.88),
		rgba(124, 106, 251, 0.88),
		rgba(5, 223, 254, 0.88)
	);
	background-size: 220% 100%;
	opacity: 0.72;
}

.magida-quote-hero__node {
	width: 12px;
	height: 12px;
	border: 1px solid rgba(5, 223, 254, 0.72);
	border-radius: 999px;
	background: rgba(5, 223, 254, 0.14);
	box-shadow: 0 0 22px rgba(5, 223, 254, 0.24);
}

.magida-quote-hero__node--one {
	top: calc(50% - 5px);
	left: 28%;
}

.magida-quote-hero__node--two {
	top: calc(50% - 5px);
	right: 26%;
}

.magida-quote-hero__orb {
	border-radius: 999px;
	border: 1px solid rgba(5, 223, 254, 0.24);
	background: rgba(5, 223, 254, 0.05);
}

.magida-quote-hero__orb--one {
	width: clamp(86px, 9vw, 140px);
	height: clamp(86px, 9vw, 140px);
	right: 9%;
	top: 12%;
}

.magida-quote-hero__orb--two {
	width: clamp(72px, 7vw, 112px);
	height: clamp(72px, 7vw, 112px);
	left: 10%;
	bottom: 12%;
	border-color: rgba(124, 106, 251, 0.3);
	background: rgba(124, 106, 251, 0.06);
}

.magida-quote-brief-card,
.magida-quote-hero__status {
	/* MAGIDA PASS 22.4: The two readable cards are the only heavy surfaces in the hero visual. */
	position: absolute;
	z-index: 3;
	border: 1px solid rgba(5, 223, 254, 0.22);
	border-radius: 24px;
	background: rgba(4, 8, 18, 0.88);
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
	backdrop-filter: blur(16px);
}

.magida-quote-brief-card {
	top: 15%;
	left: 8%;
	width: min(55%, 430px);
	padding: clamp(24px, 2.4vw, 36px);
}

.magida-quote-brief-card span,
.magida-quote-hero__status span {
	display: block;
	margin: 0 0 14px;
	color: var(--magida-cyan);
	font-family: var(--magida-font-heading);
	font-size: 0.76rem;
	font-weight: 900;
	letter-spacing: 0.16em;
	line-height: 1.1;
	text-transform: uppercase;
}

.magida-quote-brief-card strong,
.magida-quote-hero__status strong {
	display: block;
	color: var(--magida-white);
	font-family: var(--magida-font-heading);
	font-size: clamp(1.45rem, 2.1vw, 2.5rem);
	font-weight: 950;
	letter-spacing: -0.065em;
	line-height: 1;
}

.magida-quote-brief-card i {
	display: block;
	height: 8px;
	margin-top: 16px;
	border-radius: 999px;
	background: linear-gradient(
		90deg,
		rgba(5, 223, 254, 0.72),
		rgba(124, 106, 251, 0.58)
	);
	opacity: 0.7;
}

.magida-quote-brief-card i:nth-of-type(2) {
	width: 78%;
}

.magida-quote-brief-card i:nth-of-type(3) {
	width: 58%;
}

.magida-quote-hero__status {
	right: 8%;
	bottom: 19%;
	width: min(38%, 300px);
	min-height: 158px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(22px, 2vw, 30px);
}

.magida-quote-hero__status strong {
	font-size: clamp(1.1rem, 1.45vw, 1.5rem);
	letter-spacing: -0.035em;
	line-height: 1.14;
}

.magida-quote-hero__chips {
	position: absolute;
	z-index: 4;
	left: 9%;
	right: 9%;
	bottom: 8%;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.magida-quote-hero__chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 16px;
	border: 1px solid rgba(185, 189, 229, 0.13);
	border-radius: 999px;
	background: rgba(4, 8, 18, 0.82);
	color: var(--magida-white);
	font-family: var(--magida-font-heading);
	font-size: 0.76rem;
	font-weight: 900;
	letter-spacing: -0.02em;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.magida-quote-section__eyebrow {
	margin: 0 0 16px;
}

.magida-quote-section {
	padding: clamp(86px, 9vw, 140px) 0;
	border-bottom: 1px solid rgba(185, 189, 229, 0.08);
}

.magida-quote-section__header {
	max-width: 860px;
	margin-bottom: clamp(36px, 5vw, 74px);
}

.magida-quote-section__header h2,
.magida-quote-form-intro h2 {
	margin: 0;
	color: var(--magida-text);
	font-family: var(--magida-font-heading);
	font-size: clamp(2.9rem, 6vw, 6.2rem);
	font-weight: 900;
	letter-spacing: -0.07em;
	line-height: 0.94;
}

.magida-quote-section__header p,
.magida-quote-form-intro p {
	max-width: 760px;
	margin: 22px 0 0;
	color: var(--magida-text-soft);
	font-size: clamp(1rem, 1.4vw, 1.28rem);
	line-height: 1.75;
}

.magida-quote-process__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.magida-quote-process-card {
	position: relative;
	min-height: 260px;
	padding: clamp(26px, 3vw, 38px);
	border: 1px solid rgba(185, 189, 229, 0.12);
	border-radius: 28px;
	background:
		linear-gradient(145deg, rgba(10, 15, 30, 0.86), rgba(5, 8, 18, 0.82)),
		radial-gradient(
			circle at 100% 0%,
			rgba(0, 221, 255, 0.12),
			transparent 34%
		);
	box-shadow: 0 18px 70px rgba(0, 0, 0, 0.18);
	overflow: hidden;
}

.magida-quote-process-card::after {
	/* MAGIDA QUOTE PAGE PASS 12: Adds depth without making these boxes look like heavy homepage cards. */
	content: "";
	position: absolute;
	right: -38px;
	bottom: -44px;
	width: 150px;
	aspect-ratio: 1;
	border: 1px solid rgba(0, 221, 255, 0.12);
	border-radius: 999px;
	background: radial-gradient(
		circle,
		rgba(0, 221, 255, 0.12),
		transparent 64%
	);
}

.magida-quote-process-card span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	aspect-ratio: 1;
	border: 1px solid rgba(0, 221, 255, 0.2);
	border-radius: 999px;
	color: var(--magida-cyan);
	font-family: var(--magida-font-heading);
	font-size: 0.82rem;
	font-weight: 900;
	letter-spacing: 0.1em;
}

.magida-quote-process-card h3 {
	margin: 34px 0 0;
	color: var(--magida-text);
	font-family: var(--magida-font-heading);
	font-size: clamp(1.45rem, 2.2vw, 2.35rem);
	font-weight: 900;
	letter-spacing: -0.055em;
	line-height: 1;
}

.magida-quote-process-card p {
	margin: 16px 0 0;
	color: var(--magida-text-soft);
	font-size: 1rem;
	line-height: 1.7;
}

.magida-quote-process-media {
	/* MAGIDA HUMAN MEDIA PRICING / QUOTE PASS 23.5.6: Optional process image appears after the existing process cards only. */
	margin-top: clamp(24px, 4vw, 46px);
}

.magida-quote-process-media img {
	min-height: 320px;
}

@media (max-width: 1080px) {
	.magida-quote-process__grid,
	.magida-quote-form-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 760px) {
	.magida-quote-process-media img {
		min-height: 240px;
	}

	.magida-quote-section {
		padding: 74px 0;
	}

	.magida-quote-section__head {
		margin-bottom: 32px;
	}

	.magida-quote-process__step,
	.magida-quote-form-card,
	.magida-quote-aside-card {
		padding: 24px;
		border-radius: 24px;
	}

	.magida-quote-form-card__top {
		grid-template-columns: 1fr;
	}

	.magida-quote-form__actions {
		align-items: stretch;
		flex-direction: column;
	}

	.magida-quote-submit {
		width: 100%;
	}
}

/* MAGIDA QUOTE GLOBAL HERO MIGRATION PASS 22.4:
   Final responsive containment for the new global Quote hero visual. */
@media (max-width: 1180px) {
	.magida-inner-hero--quote .magida-quote-hero__visual {
		padding: clamp(20px, 4vw, 34px);
	}

	.magida-quote-brief-card {
		width: min(58%, 420px);
	}
}

@media (max-width: 760px) {
	.magida-inner-hero--quote .magida-quote-hero__visual {
		padding: 16px;
	}

	.magida-quote-hero__art {
		border-radius: 22px;
	}

	.magida-quote-hero__scan {
		inset: 16px;
		border-radius: 18px;
	}

	.magida-quote-hero__route,
	.magida-quote-hero__node,
	.magida-quote-hero__orb--two {
		display: none;
	}

	.magida-quote-hero__orb--one {
		width: 86px;
		height: 86px;
		right: -18px;
		top: 46%;
		opacity: 0.45;
	}

	.magida-quote-brief-card {
		top: 18px;
		left: 18px;
		right: 18px;
		width: auto;
		padding: 22px;
		border-radius: 20px;
	}

	.magida-quote-brief-card strong {
		font-size: clamp(1.48rem, 8vw, 2.08rem);
	}

	.magida-quote-hero__status {
		left: 18px;
		right: 18px;
		bottom: 86px;
		width: auto;
		min-height: 92px;
		padding: 18px 20px;
		border-radius: 20px;
	}

	.magida-quote-hero__chips {
		left: 18px;
		right: 18px;
		bottom: 18px;
		justify-content: flex-start;
		gap: 8px;
	}

	.magida-quote-hero__chip {
		min-height: 36px;
		padding: 0 12px;
		font-size: 0.68rem;
	}
}

@media (max-width: 480px) {
	.magida-quote-brief-card span,
	.magida-quote-hero__status span {
		font-size: 0.66rem;
		letter-spacing: 0.14em;
	}

	.magida-quote-brief-card i {
		height: 6px;
		margin-top: 12px;
	}

	.magida-quote-hero__status {
		bottom: 94px;
	}
}

/* MAGIDA PASS 24.1.42 — Quote Process Line, Media Scale, and Form Rhythm Polish
   Keeps the optional Quote process image cinematic without letting it dominate the path to the form. */
.magida-quote-process {
	padding-bottom: clamp(48px, 5.8vw, 78px);
}

.magida-quote-process .magida-quote-section__header {
	margin-bottom: clamp(30px, 4vw, 52px);
}

.magida-quote-process-media {
	width: min(100%, 1120px);
	aspect-ratio: 16 / 7;
	margin: clamp(22px, 3vw, 36px) auto 0;
}

.magida-quote-process-media img {
	height: 100%;
	min-height: 0;
	object-fit: cover;
	object-position: center 50%;
}

@media (max-width: 1080px) {
	.magida-quote-process {
		padding-bottom: clamp(46px, 7vw, 68px);
	}

	.magida-quote-process-media {
		width: 100%;
		aspect-ratio: 16 / 8;
	}
}

@media (max-width: 760px) {
	.magida-quote-process {
		padding-bottom: 44px;
	}

	.magida-quote-process .magida-quote-section__header {
		margin-bottom: 28px;
	}

	.magida-quote-process-media {
		aspect-ratio: 4 / 3;
		margin-top: 24px;
	}
}
