/**
 * CurrencyFlow - Hero Section Styles
 * Clean modern split layout — no random positioned elements.
 * Background atmosphere via CSS-only ::before / ::after pseudo-elements.
 *
 * @package CurrencyFlow
 */

/* ============================================================
   SECTION SHELL
   ============================================================ */
.hero {
	position: relative;
	background: linear-gradient(145deg, #1e1a50 0%, #2e2575 55%, #38218a 100%);
	overflow: hidden;
	/* Reserve space for sticky header (90px) + breathing room */
	padding-top: 90px;
}

/* Large violet radial glow — top-right quadrant */
.hero::before {
	content: '';
	position: absolute;
	top: -160px;
	right: -160px;
	width: 760px;
	height: 760px;
	background: radial-gradient(circle, rgba(120, 80, 220, 0.45) 0%, transparent 62%);
	pointer-events: none;
	z-index: 0;
}

/* Subtle magenta accent — bottom-left */
.hero::after {
	content: '';
	position: absolute;
	bottom: -120px;
	left: -80px;
	width: 560px;
	height: 560px;
	background: radial-gradient(circle, rgba(229, 0, 88, 0.18) 0%, transparent 60%);
	pointer-events: none;
	z-index: 0;
}

/* ============================================================
   INNER GRID  (two balanced columns inside a centered container)
   ============================================================ */
.hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
	align-items: center;
	max-width: 1280px;
	margin-inline: auto;
	padding: 72px 48px 88px;
}

/* ============================================================
   LEFT COLUMN — text content
   ============================================================ */
.hero__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
}

/* Eyebrow pill */
.hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	padding: 8px 18px;
	font-size: 13px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.9);
	letter-spacing: 0.03em;
	margin-bottom: 28px;
}

.hero__eyebrow-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #E50058;
	flex-shrink: 0;
	/* Subtle pulse animation */
	animation: hero-pulse 2.4s ease-in-out infinite;
}

@keyframes hero-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(229, 0, 88, 0.7); }
	50%       { box-shadow: 0 0 0 6px rgba(229, 0, 88, 0); }
}

/* Main headline */
.hero__title {
	font-size: clamp(36px, 4vw, 60px);
	font-weight: 800;
	line-height: 1.05;
	color: #FFFFFF;
	letter-spacing: -0.03em;
	margin: 0 0 24px;
}

/* Second-line accent in magenta */
.hero__title-accent {
	color: #FF4D8D;
}

/* Description */
.hero__desc {
	font-size: clamp(16px, 1.5vw, 18px);
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.65);
	max-width: 480px;
	margin: 0 0 36px;
}

/* ── Stats strip ── */
.hero__stats {
	display: flex;
	align-items: center;
	gap: 0;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 16px;
	padding: 20px 28px;
	margin-bottom: 32px;
	width: 100%;
}

.hero__stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
	gap: 4px;
	text-align: center;
}

.hero__stat-val {
	font-size: 30px;
	font-weight: 800;
	color: #FFFFFF;
	line-height: 1;
	letter-spacing: -0.03em;
}

.hero__stat-plus {
	font-size: 18px;
	font-weight: 700;
	color: #FF4D8D;
	margin-left: 2px;
}

.hero__stat-lbl {
	font-size: 12px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.5);
	text-transform: uppercase;
	letter-spacing: 0.07em;
}

.hero__stat-div {
	width: 1px;
	height: 40px;
	background: rgba(255, 255, 255, 0.12);
	flex-shrink: 0;
}

/* ── Trustpilot bar ── */
.hero__tp {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 28px;
}

.hero__tp-stars {
	display: flex;
	gap: 3px;
	flex-shrink: 0;
}

.hero__tp-label {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.6);
	line-height: 1.4;
}

.hero__tp-label strong {
	color: rgba(255, 255, 255, 0.9);
	font-weight: 700;
}

/* ── Award badge — inline, in flow ── */
.hero__award {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.15) 100%);
	border: 1px solid rgba(245, 158, 11, 0.35);
	border-radius: 14px;
	padding: 12px 20px;
}

.hero__award-icon {
	width: 44px;
	height: 44px;
	background: linear-gradient(135deg, #F59E0B, #D97706);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.hero__award-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.hero__award-text span:first-child {
	font-size: 14px;
	font-weight: 700;
	color: #FFFFFF;
	line-height: 1.2;
}

.hero__award-text span:last-child {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.55);
}

/* ============================================================
   RIGHT COLUMN — form card
   ============================================================ */
.hero__form-side {
	display: flex;
	justify-content: center;
	align-items: flex-start;
}

/* White card */
.hero-form-card {
	background: #FFFFFF;
	border-radius: 24px;
	padding: 36px 36px 36px;
	width: 100%;
	max-width: 520px;
	box-shadow:
		0 4px 6px -1px rgba(0, 0, 0, 0.07),
		0 24px 48px -8px rgba(0, 0, 0, 0.22),
		0 0 0 1px rgba(255, 255, 255, 0.08);
}

.hero-form-card__title {
	font-size: 26px;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 4px;
	letter-spacing: -0.025em;
	line-height: 1.1;
}

.hero-form-card__sub {
	font-size: 13px;
	color: #94a3b8;
	margin: 0 0 24px;
	font-weight: 400;
}

/* ── Currency Row ── */
.hero-form__currency-row {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

/* Swap icon in the middle */
.hero-form__ccy-swap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #f1f5f9;
	color: #64748b;
	flex-shrink: 0;
}

/* Each currency picker */
.hero-form__ccy-field {
	position: relative;
	height: 64px;
	border: 1.5px solid #e2e8f0;
	border-radius: 12px;
	background: #FFFFFF;
	overflow: hidden;
	transition: border-color 150ms ease, box-shadow 150ms ease;
}

.hero-form__ccy-field:focus-within {
	border-color: #6D28D9;
	box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.12);
}

.hero-form__ccy-display {
	position: absolute;
	inset: 0;
	padding: 0 12px;
	display: flex;
	align-items: center;
	gap: 8px;
	pointer-events: none;
	z-index: 1;
}

.hero-form__ccy-flag {
	font-size: 22px;
	line-height: 1;
	flex-shrink: 0;
}

.hero-form__ccy-info {
	display: flex;
	flex-direction: column;
	gap: 1px;
	flex: 1;
	min-width: 0;
	overflow: hidden;
}

.hero-form__ccy-sublabel {
	font-size: 10px;
	color: #94a3b8;
	font-weight: 500;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.hero-form__ccy-code {
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1;
}

.hero-form__ccy-chevron {
	color: #94a3b8;
	flex-shrink: 0;
}

.hero-form__ccy-native {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	z-index: 2;
	cursor: pointer;
	font-family: inherit;
}

/* ── Amount + Select fields ── */
.hero-form__field {
	margin-bottom: 12px;
}

.hero-form__label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	margin-bottom: 6px;
}

/* Amount with inline prefix */
.hero-form__amount-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.hero-form__amount-prefix {
	position: absolute;
	left: 14px;
	font-size: 14px;
	font-weight: 700;
	color: #475569;
	pointer-events: none;
	z-index: 1;
}

.hero-form__input {
	width: 100%;
	height: 58px;
	border: 1.5px solid #e2e8f0;
	border-radius: 12px;
	padding: 0 16px;
	font-size: 16px;
	font-weight: 500;
	color: #0f172a;
	background: #FFFFFF;
	font-family: inherit;
	transition: border-color 150ms ease, box-shadow 150ms ease;
}

.hero-form__input--amount {
	padding-left: 52px; /* room for prefix */
}

.hero-form__input:focus {
	outline: none;
	border-color: #6D28D9;
	box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.12);
}

.hero-form__input::placeholder { color: #cbd5e1; }

/* Select */
.hero-form__select-wrap {
	position: relative;
}

.hero-form__select {
	width: 100%;
	height: 58px;
	border: 1.5px solid #e2e8f0;
	border-radius: 12px;
	padding: 0 44px 0 16px;
	font-size: 16px;
	font-weight: 500;
	color: #0f172a;
	background: #FFFFFF;
	appearance: none;
	cursor: pointer;
	font-family: inherit;
	transition: border-color 150ms ease, box-shadow 150ms ease;
}

.hero-form__select:focus {
	outline: none;
	border-color: #6D28D9;
	box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.12);
}

.hero-form__select option[value=""] { color: #94a3b8; }

.hero-form__select-chev {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
}

/* ── Checkbox ── */
.hero-form__checkbox-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 18px;
}

.hero-form__checkbox {
	width: 18px;
	height: 18px;
	border-radius: 4px;
	accent-color: #6D28D9;
	cursor: pointer;
	flex-shrink: 0;
	margin-top: 2px;
}

.hero-form__checkbox-label {
	font-size: 13px;
	color: #64748b;
	line-height: 1.5;
}

.hero-form__link {
	color: #6D28D9;
	font-weight: 600;
	text-decoration: underline;
}

/* ── CTA button ── */
.hero-form__submit {
	width: 100%;
	height: 56px;
	background: #E50058;
	color: #FFFFFF;
	border: none;
	border-radius: 12px;
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	transition: background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.hero-form__submit:hover {
	background: #cc004e;
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(229, 0, 88, 0.38);
}

.hero-form__submit:active  { transform: translateY(0); }

.hero-form__submit:focus-visible {
	outline: 3px solid rgba(229, 0, 88, 0.45);
	outline-offset: 2px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
	.hero__inner { gap: 40px; padding: 64px 32px 72px; }
}

@media (max-width: 900px) {
	.hero__inner {
		grid-template-columns: 1fr;
		padding: 56px 24px 64px;
		gap: 40px;
	}

	.hero__content { align-items: center; text-align: center; }
	.hero__desc     { max-width: 100%; }
	.hero__tp       { justify-content: center; }
	.hero__award    { align-self: center; }

	.hero__form-side { width: 100%; justify-content: center; }
	.hero-form-card  { max-width: 480px; }
}

@media (max-width: 600px) {
	.hero__inner { padding: 48px 16px 56px; }

	.hero__title    { font-size: 32px; }
	.hero__desc     { font-size: 15px; }

	.hero__stats {
		padding: 16px 16px;
		gap: 0;
	}
	.hero__stat-val { font-size: 24px; }

	.hero-form-card { padding: 24px 20px; border-radius: 18px; }

	.hero-form__currency-row {
		grid-template-columns: 1fr;
		gap: 8px;
	}
	.hero-form__ccy-swap { display: none; }
	.hero-form__submit   { font-size: 16px; height: 52px; }
}
