/* ==========================================================================
   Apollo Referral Form — referral-form.css
   ========================================================================== */

:root {
	/*--arf-green: #3CAB7E;
	--arf-green-light: #EEF8F3;
	--arf-green-pale: #D6F0E5;
	--arf-dark: #1A2B1A;
	--arf-border: #E2E2E2;
	--arf-input-bg: #FFFFFF;
	--arf-input-bd: #CCCCCC;
	--arf-text: #2D2D2D;
	--arf-muted: #767676;
	--arf-placeholder: #AAAAAA;
	--arf-radius: 8px;
	--arf-radius-lg: 12px;
	--arf-shadow: 0 2px 16px rgba(0, 0, 0, .07);*/

	--apollo-primary: #173A2B;
	--apollo-secondary: #53C999;
	--apollo-grey-bg: #EDEFF7;
	--apollo-grey-03: #BCBFCC;
	--apollo-grey-04: #9DA2B3;
	--apollo-grey-06: #40424D;
	--apollo-green-lite: #E9F8F3;
	--apollo-green-lite-mint: #BBEAD6;
	--apollo-green-soft-mint: #98DFC1;
}

/* ── Wrapper ────────────────────────────────────────────────────────────── */
.arf-wrap {
	max-width: 1230px;
	margin: 0 auto;
	padding: 0px 15px;
	font-family: inherit;
	color: var(--arf-text);
	font-size: 14px;
	line-height: 1.5;
	font-family: "Manrope", Sans-serif;
}

/* ── Title ──────────────────────────────────────────────────────────────── */
.arf-header {
	margin-bottom: 28px;
}

.arf-title {
	font-size: 48px;
	font-weight: 700;
	color: var(--arf-dark);
	margin: 0;
	line-height: 1.2;
}

.arf-title span {
	color: var(--arf-green);
}

/* ── Progress Indicator ─────────────────────────────────────────────────── */
.arf-progress {
	display: flex;
	align-items: center;
	margin-bottom: 32px;
	overflow-x: auto;
	padding-bottom: 4px;
	justify-content: center;
}

.arf-prog-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.arf-prog-icon {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: var(--apollo-grey-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--apollo-grey-03);
	transition: background .25s, color .25s;
}

.arf-prog-icon svg {
	width: 40px;
	height: 40px;
}

.arf-prog-label {
	font-size: 16px;
	color: var(--apollo-primary);
	font-weight: 600;
	text-align: center;
	line-height: 1.3;
}

/* Active step */
.arf-prog-item.active .arf-prog-icon {
	background: var(--apollo-green-lite-mint);
	color: var(--apollo-secondary);
}

/* Connector line */
.arf-prog-line {
	flex: 1;
	height: 3px;
	background: #E3E9ED;
	margin: 0 5px;
	max-width: 90px;
	transition: background .25s;
}

/* ── Steps ──────────────────────────────────────────────────────────────── */
.arf-step {
	display: none;
}

.arf-step.active {
	display: block;
}

/* ── Card ───────────────────────────────────────────────────────────────── */
.arf-card {
	background: var(--apollo-green-lite);
	border-radius: 15px;
	padding: 60px 40px;
}

.arf-card.ard-card-grey {
	background: var(--apollo-grey-bg);
}

.arf-card-center {
	text-align: center;
}

.arf-card-title {
	font-size: 24px;
	font-weight: 700;
	color: var(--apollo-primary);
	margin: 0 0 20px;
	text-align: center;
}

/* ── Referral Type Cards (Step 1) ────────────────────────────────────────── */
.arf-type-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-bottom: 40px;
}

.arf-type-card {
	background: var(--apollo-green-lite-mint);
	border: 2px solid var(--arf-border);
	border-radius: 12px;
	padding: 20px 12px 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	transition: border-color .2s, background .2s;
	font-weight: 700;
	font-size: 16px;
	color: var(--apollo-primary);
}

.arf-type-card:hover {
	border-color: var(--arf-green);
}

.arf-type-card.selected {
	background: var(--apollo-secondary);
}

.arf-card.ard-card-grey.arf-type {
	padding: 60px 100px;
}

.arf-type p.arf-card-title {
	margin-bottom: 40px;
	text-align: center;
}

.arf-type-img {
	width: 100%;
	height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: white;
	border-radius: 12px;
}

.arf-type-img svg {
	width: 190px;
	height: 175px;
	color: var(--arf-green);
}

.arf-type-card.selected .arf-type-img svg {
	color: #fff;
}

/* ── Screens (Thank You / Save) ─────────────────────────────────────────── */
.arf-screen {
	/* shown/hidden via JS */
}

div#arf-screen-save p {
	font-size: 16px;
	color: var(--apollo-primary);
}

/* ── Grid Layouts ────────────────────────────────────────────────────────── */
.arf-grid-4 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px 16px;
}

.arf-grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px 16px;
}

.arf-grid-2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px 16px;
}

.arf-grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 15px;
}



.grid-col-3 {
	grid-column: span 3;
}

.grid-col-4 {
	grid-column: span 4;
}

.grid-col-5 {
	grid-column: span 5;
}

.grid-col-6 {
	grid-column: span 6;
}

.grid-col-7 {
	grid-column: span 7;
}

.grid-col-8 {
	grid-column: span 8;
}

.grid-col-9 {
	grid-column: span 9;
}




/* ── Field Group ─────────────────────────────────────────────────────────── */
.arf-field-group {
	margin-bottom: 25px;
}

.arf-field-group.d-flex {
	display: flex;
	align-items: center;
	gap: 30px;
}

.arf-field-group.d-flex label.arf-label {
	margin-bottom: 0;
}

.arf-label {
	display: block;
	font-size: 16px;
	font-weight: 500;
	color: var(--apollo-primary);
	margin-bottom: 10px;
}

.arf-field-group.d-flex .arf-radio-opt,
.arf-field-group.d-flex .arf-check-opt {
	margin: 0;
}

.extra-bold {
	font-weight: 800;
}

.arf-field-group input[type="radio"] {
	accent-color: var(--apollo-primary) !important;
}

.arf-field-group input[type="text"],
.arf-field-group input[type="email"],
.arf-field-group input[type="tel"],
.arf-field-group input[type="number"],
.arf-field-group input[type=date],
.arf-field-group select,
.arf-field-group textarea,
/* also when inside grid divs without .arf-field-group wrapper */
.arf-card input[type="text"],
.arf-card input[type="email"],
.arf-card input[type="tel"],
.arf-card select,
.arf-card textarea {
	width: 100%;
	padding: 18px;
	border: 1px solid var(--apollo-green-soft-mint);
	border-radius: 8px;
	line-height: 1;
	background: white;
	font-size: 16px;
	color: var(--apollo-primary);
	box-sizing: border-box;
	outline: none;
	transition: border-color .15s;
	-webkit-appearance: none;
	appearance: none;
}

.arf-card select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 32px;
	line-height: 1.3;
}

.arf-card input:focus,
.arf-card select:focus,
.arf-card textarea:focus {
	border-color: var(--apollo-green-soft-mint) !important;
	box-shadow: 0 0 0 3px rgba(60, 171, 126, .12);
}

.arf-card textarea {
	resize: vertical;
	min-height: 80px;
}

/* ── Radio Buttons ───────────────────────────────────────────────────────── */
.arf-radio-inline,
.arf-checkbox-inline {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin-top: 4px;
}

.arf-radio-stack,
.arf-checkbox-stack {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 4px;
}

.arf-radio-opt,
.arf-check-opt {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	cursor: pointer;
	font-size: 16px;
	color: var(--apollo-grey-06);
	line-height: 1.2;
	margin-top: 15px;
}

.arf-radio-opt input[type="radio"],
.arf-check-opt input[type="checkbox"] {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
	margin-top: 1px;
	accent-color: var(--apollo-primary);
	cursor: pointer;
}

/* ── Section Label ───────────────────────────────────────────────────────── */


/* ── Locked Field (Bill to Details) ──────────────────────────────────────── */
.arf-locked-field {
	display: flex;
	align-items: center;
	gap: 10px;
}

.arf-lock-icon {
	width: 40px;
	height: 40px;
	color: var(--arf-green);
	flex-shrink: 0;
	background: #BBEAD6;
	padding: 8px;
	border-radius: 50px;
}

.arf-locked-label {
	display: block;
	font-size: 16px;
	color: var(--apollo-primary);
	font-weight: 600;
}

.arf-locked-value {
	display: block;
	font-size: 16px;
	font-weight: 400;
	color: var(--apollo-primary);
}

/* ── File Upload Rows ───────────────────────────────────────────────────── */
.arf-file-row {

	margin-bottom: 20px;
}

.arf-file-input-wrap {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.arf-file-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--apollo-grey-bg);
	border: 1px solid var(--apollo-green-soft-mint);
	border-radius: 8px;
	padding: 12px 25px;
	font-size: 16px;
	font-weight: 400;
	cursor: pointer;
	white-space: nowrap;
	transition: border-color .15s;
}

.arf-file-btn:hover {
	border-color: var(--apollo-secondary);
}

.arf-file-btn svg {
	width: 20px;
	height: 19px;
}

.arf-file-btn input[type="file"] {
	display: none;
}

.arf-file-name {
	font-size: 16px;
	color: var(--apollo-grey-04);
	min-width: 80px;
}

.arf-file-limit {
	font-size: 16px;
	color: var(--apollo-grey-06);
}

/* ── Navigation Buttons ─────────────────────────────────────────────────── */
.arf-nav {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 24px;
	flex-wrap: wrap;
}

.arf-bill-nav {
	margin-top: 120px;
}

.arf-nav-center {
	justify-content: center;
}

button.arf-btn {
	padding: 15px 35px !important;
	border-radius: 50px !important;
	font-size: 16px !important;
	line-height: 1;
	font-weight: 600 !important;
	transition: opacity .15s, box-shadow .15s !important;
	white-space: nowrap !IMPORTANT;
	border: none !important;
}

button.arf-btn.arf-btn-primary {
	background: var(--apollo-primary);
	color: white !important;
}

button.arf-btn.arf-btn-secondary {
	background: var(--apollo-secondary);
	color: var(--apollo-primary) !important;
}

.arf-btn:hover {
	opacity: .88;
}

.arf-btn-dark {
	background: var(--arf-dark);
	color: #fff;
}

.arf-btn-green {
	background: var(--arf-green);
	color: #fff;
}

.arf-btn-full {
	width: 100% !important;
	text-align: center !important;
}

/* Next button always pushed to the right */
.arf-nav .arf-btn-dark:last-child {
	margin-left: auto;
}

.arf-nav-center .arf-btn-dark:last-child {
	margin-left: 0;
}

/* Text-only back link */
.arf-btn-text {
	background: none;
	border: none;
	color: var(--arf-muted);
	cursor: pointer;
	font-size: 13px;
	padding: 0;
	text-decoration: underline;
}

/* ── Thank You Screen ────────────────────────────────────────────────────── */
.arf-thankyou-msg {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 35px !important;
	color: var(--apollo-primary);
}

.arf-thankyou-img {
	margin: 0 auto;
}

.arf-thankyou-img svg {
	width: 100%;
	height: auto;
}

/* ── Save & Continue Screen ──────────────────────────────────────────────── */
.arf-save-link {
	color: var(--arf-green);
	word-break: break-all;
}

.arf-save-note {
	font-size: 12px;
	color: var(--arf-muted);
}

.arf-send-link-msg {
	margin-top: 12px;
	padding: 10px 14px;
	border-radius: 8px;
	background: #E9F8F3;
	color: var(--apollo-primary);
	font-size: 14px;
	font-weight: 500;
}

/* ── Free service banner ─────────────────────────────────────────────────── */
.arf-free-banner {
	text-align: center;
	font-size: 13px;
	color: var(--arf-green);
	font-weight: 500;
	margin: -12px 0 20px;
}

/* ── Confirmation Modal ──────────────────────────────────────────────────── */
.arf-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .35);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.arf-modal-box {
	background: #E9F8F3;
	font-weight: 700;
	border-radius: 24px;
	padding: 60px 32px;
	max-width: 980px;
	text-align: center;
	width: 100%;
	position: relative;
	font-size: 24px;
	line-height: 1.6;
	color: var(--apollo-primary);
	box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
}

.arf-modal-close {
	position: absolute;
	top: 12px;
	right: 25px;
	background: none;
	border: none;
	font-size: 40px !important;
	cursor: pointer;
	color: var(--arf-muted);
	line-height: 1;
	padding: 0;
	color: #53C999 !important;
	border: 0 !important;
	padding: 0 !important;
}

.arf-modal-close:hover {
	color: var(--apollo-primary);
	background: transparent !important;
}

/* ── Note Box ────────────────────────────────────────────────────────────── */
.arf-note-box {
	background: #fff;
	border-radius: 24px;
	padding: 30px 20px;
	font-size: 16px;
	color: var(--apollo-primary);
	margin-top: 30px !important;
}

.arf-note-box strong {
	color: var(--apollo-secondary);
	font-size: 24px;
}

/* ── Required field validation errors ──────────────────────────────────── */
.arf-has-error {
	border-color: #E53935 !important;
	box-shadow: 0 0 0 3px rgba(229, 57, 53, .12) !important;
}

.arf-field-msg {
	display: none;
	color: #E53935;
	font-size: 12px;
	font-weight: 500;
	margin-top: 5px;
}

/* Step 1: no referral type selected — inline message */
.arf-type-required-msg {
	display: none;
	text-align: center;
	color: #E53935;
	font-size: 14px;
	font-weight: 500;
	margin-top: 8px;
	margin-bottom: 0;
}

/* ── Form error message ─────────────────────────────────────────────────── */
.arf-error-msg {
	background: #fdecea;
	color: #c62828;
	border-radius: var(--arf-radius);
	padding: 10px 14px;
	font-size: 13px;
	margin-top: 12px;
}

/* ── Utility ─────────────────────────────────────────────────────────────── */
.arf-mt-8 {
	margin-top: 8px;
}

.arf-mt-16 {
	margin-top: 16px;
}

.mb-0 {
	margin-bottom: 0px !important;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 680px) {

	.arf-grid-4,
	.arf-grid-3 {
		grid-template-columns: repeat(2, 1fr);
	}

	.arf-card.ard-card-grey.arf-type {
		padding: 20px;
	}

	.arf-card {
		padding: 20px 16px;
	}

	.grid-col-3 {
		grid-column: span 12;
	}

	.grid-col-4 {
		grid-column: span 12;
	}

	.grid-col-5 {
		grid-column: span 12;
	}

	.grid-col-6 {
		grid-column: span 12;
	}

	.grid-col-7 {
		grid-column: span 12;
	}

	.grid-col-8 {
		grid-column: span 12;
	}

	.grid-col-9 {
		grid-column: span 12;
	}

	.arf-nav button {
		width: 100%;
	}
}

@media (max-width: 480px) {

	.arf-grid-4,
	.arf-grid-3,
	.arf-grid-2 {
		grid-template-columns: 1fr;
	}

	.arf-type-grid {
		grid-template-columns: 1fr;
	}

	.arf-prog-label {
		display: none;
	}

	.arf-card {
		padding: 20px 16px;
	}

	.grid-col-3 {
		grid-column: span 12;
	}

	.grid-col-4 {
		grid-column: span 12;
	}

	.grid-col-5 {
		grid-column: span 12;
	}

	.grid-col-6 {
		grid-column: span 12;
	}

	.grid-col-7 {
		grid-column: span 12;
	}

	.grid-col-8 {
		grid-column: span 12;
	}

	.grid-col-9 {
		grid-column: span 12;
	}

	.arf-nav button {
		width: 100%;
	}



	.arf-card.ard-card-grey.arf-type {
		padding: 20px;
	}

	.arf-file-row {
		flex-direction: column;
		align-items: flex-start;
	}

	.arf-file-label {
		min-width: unset;
	}
}