/* Refer & Earn — page layout */

.page-refer {
	background: #f4f6fa;
}

/* ── Hero ── */
.refer-hero {
	background: linear-gradient(135deg, #071225 0%, #12233f 55%, #1a3358 100%);
	color: #fff;
	padding: 48px 0 56px;
}

.refer-hero__grid {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 36px;
	align-items: center;
}

.refer-hero__copy {
	position: relative;
	z-index: 1;
}

.refer-hero__eyebrow {
	display: inline-block;
	margin: 0 0 12px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #f58212;
}

.refer-hero__title {
	margin: 0 0 14px;
	font-size: clamp(1.8rem, 3.2vw, 2.75rem);
	line-height: 1.15;
	font-weight: 800;
	color: #fff;
}

.refer-hero__lead {
	margin: 0 0 22px;
	max-width: 520px;
	color: #d6dfeb;
	font-size: 15px;
	line-height: 1.6;
}

.refer-hero__points {
	list-style: none;
	margin: 0 0 26px;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 18px;
}

.refer-hero__points li {
	display: grid;
	gap: 2px;
}

.refer-hero__points strong {
	font-size: 13px;
	font-weight: 800;
}

.refer-hero__points span {
	font-size: 12px;
	color: #c5d0e0;
	line-height: 1.4;
}

.refer-hero__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 22px;
	font-weight: 800;
}

.refer-hero__visual {
	border-radius: 18px 18px 80px 18px;
	overflow: hidden;
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
	min-height: 360px;
	background: #0b1830;
}

.refer-hero__visual img {
	width: 100%;
	height: 100%;
	min-height: 360px;
	object-fit: cover;
	display: block;
}

/* ── Main form + sidebar ── */
.refer-main {
	padding: 36px 0 40px;
}

.refer-main__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.7fr);
	gap: 24px;
	align-items: start;
}

.refer-form-card,
.refer-rewards,
.refer-steps {
	background: #fff;
	border: 1px solid #e7ebf1;
	border-radius: 14px;
	box-shadow: 0 12px 30px rgba(13, 24, 44, 0.06);
}

.refer-form-card {
	padding: 28px 28px 30px;
}

.refer-form-card__head {
	margin-bottom: 22px;
	padding-bottom: 18px;
	border-bottom: 1px solid #eef1f6;
}

.refer-form-card__head h2 {
	margin: 6px 0 8px;
	font-size: 1.5rem;
	color: #071225;
	font-weight: 800;
}

.refer-form-card__head p {
	margin: 0;
	color: #687386;
	font-size: 14px;
	line-height: 1.5;
	max-width: 560px;
}

/* Form sections */
.refer-form__section {
	margin-bottom: 22px;
	padding: 18px;
	border: 1px solid #eef1f6;
	border-radius: 12px;
	background: #fbfcfe;
}

.refer-form__section-head {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 16px;
}

.refer-form__step {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #071225;
	color: #fff;
	display: grid;
	place-items: center;
	font-size: 12px;
	font-weight: 800;
	margin-top: 2px;
}

.refer-form__section-head h3 {
	margin: 0 0 2px;
	font-size: 15px;
	font-weight: 800;
	color: #071225;
}

.refer-form__section-head p {
	margin: 0;
	font-size: 12px;
	color: #687386;
}

.refer-form__fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 16px;
}

.refer-form__field--full {
	grid-column: 1 / -1;
}

.refer-form .field {
	margin: 0;
	min-width: 0;
}

.refer-form label:not(.refer-seg__btn),
.refer-form .field-label {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 700;
	color: #3b4658;
}

.refer-form label em {
	color: #f58212;
	font-style: normal;
}

.refer-form .inp,
.refer-form select.inp,
.refer-form textarea.inp {
	width: 100%;
	height: 44px;
	border: 1px solid #dfe5ee;
	border-radius: 8px;
	padding: 0 14px;
	font: inherit;
	font-size: 14px;
	color: #101827;
	background: #fff;
	outline: 0;
	box-sizing: border-box;
	appearance: none;
	-webkit-appearance: none;
}

.refer-form .inp:focus,
.refer-form select.inp:focus,
.refer-form textarea.inp:focus {
	border-color: rgba(245, 130, 18, 0.65);
	box-shadow: 0 0 0 3px rgba(245, 130, 18, 0.14);
}

.refer-form .inp--area,
.refer-form textarea.inp {
	height: auto;
	min-height: 96px;
	padding: 12px 14px;
	resize: vertical;
	line-height: 1.45;
}

.refer-select {
	position: relative;
}

.refer-select::after {
	content: "";
	position: absolute;
	right: 14px;
	top: 50%;
	width: 8px;
	height: 8px;
	border-right: 2px solid #687386;
	border-bottom: 2px solid #687386;
	transform: translateY(-60%) rotate(45deg);
	pointer-events: none;
}

.refer-select select.inp {
	padding-right: 36px;
	cursor: pointer;
}

/* Home loan Yes/No — pill segmented control */
.refer-form .refer-seg {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: stretch;
	width: 100%;
	max-width: 260px;
	height: 44px;
	padding: 4px;
	gap: 4px;
	border: 1px solid #d8dee8;
	border-radius: 999px;
	background: #e8edf5;
	box-sizing: border-box;
}

.refer-form .refer-seg__input {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
	margin: 0;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
	pointer-events: none;
}

.refer-form .field label.refer-seg__btn,
.refer-form label.refer-seg__btn,
.page-refer .refer-form .field label.refer-seg__btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	align-self: stretch;
	width: auto;
	min-width: 0;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 16px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: transparent !important;
	box-shadow: none !important;
	font-family: inherit !important;
	font-size: 13px !important;
	font-weight: 800 !important;
	letter-spacing: 0.01em !important;
	text-transform: none !important;
	line-height: 1 !important;
	color: #5a6576 !important;
	text-align: center !important;
	cursor: pointer;
	user-select: none;
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.refer-form .field label.refer-seg__btn:hover,
.refer-form label.refer-seg__btn:hover {
	color: #071225 !important;
	background: rgba(255, 255, 255, 0.55) !important;
}

.refer-form .refer-seg__input:checked + label.refer-seg__btn,
.refer-form .field .refer-seg__input:checked + label.refer-seg__btn {
	background: #f58212 !important;
	color: #ffffff !important;
	box-shadow: 0 2px 10px rgba(245, 130, 18, 0.38) !important;
}

.refer-form .refer-seg__input:focus-visible + label.refer-seg__btn {
	outline: 2px solid rgba(245, 130, 18, 0.55);
	outline-offset: 2px;
}

.refer-form .refer-seg__input:focus-visible + .refer-seg__btn {
	outline: 2px solid rgba(245, 130, 18, 0.55);
	outline-offset: 2px;
}

.refer-form__footer {
	display: grid;
	gap: 16px;
	margin-top: 6px;
}

.refer-consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 13px;
	color: #3b4658;
	line-height: 1.5;
	cursor: pointer;
	margin: 0;
}

.refer-consent input {
	margin-top: 3px;
	flex-shrink: 0;
	accent-color: #f58212;
}

.refer-form__submit {
	width: 100%;
	min-height: 48px;
	font-weight: 800;
	font-size: 15px;
}

.refer-form__submit[disabled] {
	opacity: 0.7;
	cursor: wait;
}

/* Aside */
.refer-aside {
	display: grid;
	gap: 16px;
	position: sticky;
	top: 96px;
}

.refer-rewards,
.refer-steps {
	padding: 22px 20px;
}

.refer-rewards h2,
.refer-steps h2 {
	margin: 6px 0 16px;
	font-size: 1.2rem;
	color: #071225;
	font-weight: 800;
	line-height: 1.25;
}

.refer-rewards__list,
.refer-steps__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.refer-rewards__list li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: baseline;
	padding: 12px 14px;
	border-radius: 10px;
	background: #f7f8fb;
	border: 1px solid #eef1f6;
}

.refer-rewards__label {
	font-size: 13px;
	font-weight: 700;
	color: #283447;
}

.refer-rewards__list strong {
	font-size: 13px;
	color: #f58212;
	white-space: nowrap;
}

.refer-rewards__note {
	margin: 14px 0 0;
	font-size: 11px;
	color: #687386;
	line-height: 1.4;
}

.refer-steps__list {
	counter-reset: refer-step;
}

.refer-steps__list li {
	counter-increment: refer-step;
	position: relative;
	padding: 0 0 16px 42px;
}

.refer-steps__list li:last-child {
	padding-bottom: 0;
}

.refer-steps__list li::before {
	content: counter(refer-step);
	position: absolute;
	left: 0;
	top: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #071225;
	color: #fff;
	display: grid;
	place-items: center;
	font-size: 12px;
	font-weight: 800;
}

.refer-steps__list strong {
	display: block;
	font-size: 14px;
	color: #071225;
	margin-bottom: 2px;
}

.refer-steps__list span {
	font-size: 12px;
	color: #687386;
	line-height: 1.4;
}

/* Trust bar */
.refer-trust {
	background: #071225;
	color: #fff;
	padding: 28px 0;
}

.refer-trust__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.refer-trust__grid div {
	display: grid;
	gap: 4px;
}

.refer-trust__grid strong {
	font-size: 14px;
	font-weight: 800;
}

.refer-trust__grid span {
	font-size: 12px;
	color: #c5d0e0;
	line-height: 1.4;
}

/* Success */
.refer-success {
	text-align: center;
	padding: 18px 8px 8px;
}

.refer-success__badge {
	width: 56px;
	height: 56px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: #e8f8ef;
	color: #1b7f4a;
	display: grid;
	place-items: center;
	font-size: 28px;
	font-weight: 800;
}

.refer-success h3 {
	margin: 0 0 8px;
	font-size: 1.35rem;
	color: #071225;
	font-weight: 800;
}

.refer-success > p {
	margin: 0 0 18px;
	color: #687386;
}

.refer-success__meta {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 18px;
}

.refer-success__meta > div {
	background: #f7f8fb;
	border: 1px solid #e7ebf1;
	border-radius: 10px;
	padding: 14px;
	text-align: left;
}

.refer-success__meta span {
	display: block;
	font-size: 11px;
	font-weight: 700;
	color: #687386;
	margin-bottom: 4px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.refer-success__meta strong {
	font-size: 16px;
	color: #071225;
}

.refer-success__status {
	color: #1b7f4a !important;
}

.refer-success__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.btn-navy {
	background: #071225;
	color: #fff;
	border: 0;
}

.btn-navy:hover {
	background: #12233f;
	color: #fff;
}

.btn-whatsapp {
	background: #25d366;
	color: #fff;
	border: 0;
}

.btn-whatsapp:hover {
	background: #1ebe57;
	color: #fff;
}

.page-refer .alert {
	margin-bottom: 16px;
	padding: 12px 14px;
	border-radius: 8px;
	font-size: 13px;
	line-height: 1.45;
}

.page-refer .alert-success {
	background: #e8f8ef;
	color: #1b7f4a;
	border: 1px solid #bfe8cf;
}

.page-refer .alert-error {
	background: #fdeeee;
	color: #b42318;
	border: 1px solid #f3c1bb;
}

/* Responsive */
@media (max-width: 1100px) {
	.refer-hero__grid,
	.refer-main__grid {
		grid-template-columns: 1fr;
	}

	.refer-hero__visual {
		order: -1;
		border-radius: 14px;
		min-height: 240px;
		max-width: 520px;
	}

	.refer-hero__visual img {
		min-height: 240px;
	}

	.refer-aside {
		position: static;
		grid-template-columns: 1fr 1fr;
		display: grid;
	}

	.refer-trust__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 720px) {
	.refer-hero {
		padding: 28px 0 32px;
	}

	.refer-hero__points,
	.refer-form__fields,
	.refer-aside,
	.refer-trust__grid,
	.refer-success__meta {
		grid-template-columns: 1fr;
	}

	.refer-form-card {
		padding: 18px 16px 22px;
	}

	.refer-form__section {
		padding: 14px;
	}

	.refer-rewards,
	.refer-steps {
		padding: 18px 16px;
	}

	.refer-success__actions {
		flex-direction: column;
	}

	.refer-success__actions .btn {
		width: 100%;
	}
}
