/* ==========================================================================
   Scorpion - Refer a Friend / Promotions page
   Page-specific styles. Load AFTER /assets/css/style.css
   All rules are namespaced with .raf- or #raf- so nothing here can leak
   into other pages.
   ========================================================================== */

:root {
	--raf-red: #D3171C;
	--raf-red-dark: #b91318;
	--raf-ink: #1c1c1c;
	--raf-body: #444444;
	--raf-muted: #6d6d6d;
	--raf-grey-panel: #e3e3e3;
	--raf-dark-panel: #3d3d3d;
	--raf-border: #dcdcdc;
	--raf-reward-bg: #e3e3e3;
	--raf-radius: 8px;
}

/* --------------------------------------------------------------------------
   Shared type
   -------------------------------------------------------------------------- */
.raf-intro,
.raf-how-it-works,
.raf-form,
.raf-rewards {
	font-family: "Open Sans", sans-serif;
}

.raf-page-title {
	font-family: "Poppins", sans-serif;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.2;
	text-align: left;
	margin: 0 0 22px 0;
}

.raf-section-title {
	font-family: "Poppins", sans-serif;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.25;
	text-align: left;
	margin: 0 0 18px 0;
}

.raf-body {
	font-size: 16px;
	line-height: 1.6;
	color: var(--raf-body);
	margin: 0 0 16px 0;
}

/* --------------------------------------------------------------------------
   Intro section
   -------------------------------------------------------------------------- */
.raf-intro {
	padding: 34px 0 0 0;
}

.raf-jump {
	margin: 22px 0 0 0;
}

.raf-jump-link {
	font-family: "Poppins", sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: var(--raf-red);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.raf-jump-link:hover,
.raf-jump-link:focus {
	color: var(--raf-red-dark);
	text-decoration: underline;
}

.raf-banner-wrap {
	margin-top: 30px;
}

.raf-banner {
	display: block;
	width: 100%;
	height: auto;
}

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */
.raf-how-it-works {
	padding: 46px 0 0 0;
}

.raf-steps {
	margin: 0 -10px;
}

.raf-step-col {
	padding: 0 10px;
	margin-bottom: 20px;
	display: flex;
}

.raf-step-card {
	width: 100%;
	background: #ffffff;
	border: 1px solid var(--raf-border);
	border-radius: var(--raf-radius);
	padding: 22px 22px 24px 22px;
}

.raf-step-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--raf-red);
	color: #ffffff;
	font-family: "Poppins", sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	margin-bottom: 16px;
}

.raf-step-title {
	font-family: "Poppins", sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: var(--raf-ink);
	margin: 0 0 8px 0;
	text-align: left;
}

.raf-step-text {
	font-size: 14px;
	line-height: 1.55;
	color: var(--raf-body);
	margin: 0;
}

.raf-inline-link {
	color: var(--raf-red);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.raf-inline-link:hover {
	color: var(--raf-red-dark);
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Referral form
   -------------------------------------------------------------------------- */
.raf-form {
	padding: 40px 0 0 0;
}

.raf-form-panel {
	padding: 30px 34px 34px 34px;
}

.raf-form-panel-light {
	background: var(--raf-grey-panel);
	padding-bottom: 20px;
}

.raf-form-panel-dark {
	position: relative;
	background: var(--raf-dark-panel);
	color: #ffffff;
	padding-top: 40px;
}

/* Red dot straddling the light / dark panel join */
.raf-panel-dot {
	position: absolute;
	top: 0;
	left: 50%;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--raf-red);
	transform: translate(-50%, -50%);
}

.raf-form-intro {
	margin-bottom: 20px;
}

.raf-form-subhead {
	font-family: "Poppins", sans-serif;
	font-size: 15px;
	font-weight: 400;
	color: var(--raf-ink);
	margin: 0 0 16px 0;
}

.raf-form-subhead strong {
	font-weight: 700;
}

.raf-form-subhead-dark {
	color: #ffffff;
	margin-bottom: 20px;
}

.raf-subhead-note {
	font-weight: 400;
}

.raf-field-row {
	margin-left: -10px;
	margin-right: -10px;
}

.raf-field {
	padding-left: 10px;
	padding-right: 10px;
	margin-bottom: 18px;
}

.raf-label {
	display: block;
	font-family: "Open Sans", sans-serif;
	font-size: 14px;
	font-weight: 400;
	color: var(--raf-ink);
	margin-bottom: 7px;
}

.raf-label-dark {
	color: #ffffff;
}

.raf-input {
	display: block;
	width: 100%;
	height: 42px;
	padding: 8px 12px;
	background: #ffffff;
	border: 1px solid #b9b9b9;
	border-radius: 4px;
	font-size: 15px;
	color: var(--raf-ink);
	line-height: 1.4;
}

.raf-input:focus {
	outline: none;
	border-color: var(--raf-red);
	box-shadow: 0 0 0 2px rgba(211, 23, 28, 0.15);
}

.raf-input.frame_input_marked {
	border: 2px solid var(--raf-red);
}

/* Terms & conditions */
.raf-terms {
	display: flex;
	align-items: center;
	margin: 10px 0 24px 0;
}

.raf-checkbox {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin: 0 12px 0 0;
	accent-color: var(--raf-red);
	background: #ffffff;
	border-radius: 3px;
	cursor: pointer;
}

.raf-checkbox input {
	width: 22px;
	height: 22px;
}

.raf-checkbox.frame_input_marked {
	outline: 2px solid var(--raf-red);
	outline-offset: 2px;
}

.raf-terms-label {
	font-size: 15px;
	color: #ffffff;
	margin: 0;
	cursor: pointer;
}

.raf-terms-link {
	color: var(--raf-red);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.raf-terms-link:hover {
	color: #f0484d;
	text-decoration: underline;
}

/* Buttons */
.raf-submit-row {
	display: block;
}

.raf-btn {
	display: inline-block;
	min-width: 200px;
	padding: 12px 28px;
	border: 0;
	border-radius: 4px;
	font-family: "Poppins", sans-serif;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.raf-btn-red {
	background: var(--raf-red);
	color: #ffffff;
}

.raf-btn-red:hover,
.raf-btn-red:focus {
	background: var(--raf-red-dark);
	color: #ffffff;
}

/* Server-side message labels */
.raf-form .error_header,
.raf-form .error_message {
	color: var(--raf-red);
	font-size: 15px;
}

.raf-form .success_header,
.raf-form .success_message {
	color: #1b7a34;
	font-size: 15px;
}

/* --------------------------------------------------------------------------
   Reward categories
   -------------------------------------------------------------------------- */
.raf-rewards {
	padding: 46px 0 50px 0;
}

/* Pill toggle */
.raf-toggle {
	display: inline-flex;
	background: #ededed;
	border-radius: 999px;
	padding: 4px;
	margin: 12px 0 26px 0;
}

.raf-toggle-btn {
	border: 0;
	background: transparent;
	border-radius: 999px;
	padding: 9px 26px;
	font-family: "Poppins", sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: var(--raf-ink);
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.raf-toggle-btn:hover {
	color: var(--raf-red);
}

.raf-toggle-btn.active {
	background: var(--raf-red);
	color: #ffffff;
}

/* Accordion */
.raf-accordion-item {
	background: #ffffff;
	border: 1px solid var(--raf-border);
	border-radius: var(--raf-radius) !important;
	margin-bottom: 14px;
	overflow: hidden;
}

.raf-accordion-btn.accordion-button {
	background: #ffffff;
	box-shadow: none;
	padding: 20px 24px;
	border-radius: var(--raf-radius);
}

.raf-accordion-btn.accordion-button:not(.collapsed) {
	background: #ffffff;
	color: inherit;
	box-shadow: none;
}

.raf-accordion-btn.accordion-button:focus {
	box-shadow: none;
	border-color: transparent;
}

.raf-accordion-btn.accordion-button::after {
	width: 16px;
	height: 16px;
	background-size: 16px;
}

.raf-accordion-heading {
	display: flex;
	flex-direction: column;
}

.raf-accordion-name {
	font-family: "Poppins", sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: var(--raf-ink);
	line-height: 1.3;
}

.raf-accordion-meta {
	font-size: 14px;
	color: var(--raf-muted);
	line-height: 1.4;
	margin-top: 2px;
}

/* Expanded panel holding the reward combos */
.raf-accordion-body {
	background: var(--raf-reward-bg);
	padding: 22px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--raf-body);
}

/* One block per payment method (Debit order / Stop order / Cash payment) */
.raf-reward-group {
	background: #ffffff;
	border-radius: 6px;
	padding: 20px 22px 6px 22px;
	margin-bottom: 18px;
}

.raf-reward-group:last-child {
	margin-bottom: 0;
}

.raf-reward-group-title {
	font-family: "Poppins", sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--raf-red);
	margin: 0 0 14px 0;
}

.raf-reward-row {
	margin-left: -7px;
	margin-right: -7px;
}

.raf-reward-col {
	padding-left: 7px;
	padding-right: 7px;
	margin-bottom: 14px;
	display: flex;
}

/* Individual reward tile */
.raf-reward-item {
	display: flex;
	align-items: center;
	width: 100%;
	border: 1px solid var(--raf-border);
	border-radius: 6px;
	padding: 10px 14px;
}

.raf-reward-thumb {
	flex: 0 0 46px;
	width: 46px;
	height: 46px;
	margin-right: 16px;
	border: 1px solid #ececec;
	border-radius: 4px;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.raf-reward-thumb img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.raf-reward-copy {
	display: block;
	min-width: 0;
}

.raf-reward-combo {
	display: block;
	font-family: "Poppins", sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #9b9b9b;
	line-height: 1.4;
}

.raf-reward-desc {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: var(--raf-ink);
	line-height: 1.4;
}

.raf-footnote {
	font-size: 13px;
	line-height: 1.55;
	color: var(--raf-muted);
	margin: 22px 0 0 0;
}

.raf-footnote-link {
	color: var(--raf-muted);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.raf-footnote-link:hover {
	color: var(--raf-red);
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Tablet
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {

	.raf-page-title {
		font-size: 28px;
	}

	.raf-section-title {
		font-size: 24px;
	}

	.raf-body {
		font-size: 15px;
	}

	.raf-form-panel {
		padding: 26px 24px 28px 24px;
	}

	.raf-form-panel-dark {
		padding-top: 34px;
	}
}

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {

	.raf-intro {
		padding-top: 24px;
	}

	.raf-page-title {
		font-size: 26px;
		margin-bottom: 16px;
	}

	.raf-section-title {
		font-size: 22px;
	}

	.raf-body {
		font-size: 15px;
		margin-bottom: 14px;
	}

	.raf-banner-wrap {
		margin-top: 22px;
	}

	.raf-how-it-works {
		padding-top: 34px;
	}

	.raf-step-card {
		padding: 18px 18px 20px 18px;
	}

	.raf-form {
		padding-top: 30px;
	}

	.raf-form-panel {
		padding: 22px 18px 24px 18px;
	}

	.raf-form-panel-dark {
		padding-top: 30px;
	}

	.raf-panel-dot {
		width: 22px;
		height: 22px;
	}

	.raf-terms {
		align-items: flex-start;
	}

	.raf-terms-label {
		font-size: 14px;
	}

	.raf-btn {
		width: 100%;
		min-width: 0;
	}

	.raf-rewards {
		padding: 34px 0 40px 0;
	}

	.raf-toggle {
		display: flex;
		width: 100%;
	}

	.raf-toggle-btn {
		flex: 1 1 50%;
		padding: 9px 12px;
	}

	.raf-accordion-btn.accordion-button {
		padding: 16px 18px;
	}

	.raf-accordion-body {
		padding: 14px;
	}

	.raf-reward-group {
		padding: 16px 14px 4px 14px;
		margin-bottom: 14px;
	}

	.raf-reward-item {
		padding: 10px 12px;
	}

	.raf-reward-thumb {
		flex-basis: 42px;
		width: 42px;
		height: 42px;
		margin-right: 12px;
	}

	.raf-reward-desc {
		font-size: 13px;
	}
}
