/* Sawadi Flavours — mobile first.
   Palette is exposed as variables: point them at the site's global colours
   and every block below follows. */

.sfl {
	--sfl-navy: #10233F;
	--sfl-magenta: #E6007E;
	--sfl-turquoise: #00B8B8;
	--sfl-yellow: #FFC72C;
	--sfl-white: #FFFFFF;
	--sfl-cream: #FFF8F0;
	--sfl-grey: #6B7A8C;
	--sfl-line: #E2E8EE;

	direction: rtl;
	text-align: right;
	max-width: 560px;
	margin-inline: auto;
	color: var(--sfl-navy);
	font-size: 16px;
	line-height: 1.55;
}

.sfl * {
	box-sizing: border-box;
}

/* ---------- intro above the form ---------- */

.sfl-intro {
	margin: 0 0 18px;
	font-size: 17px;
	text-align: center;
}

.sfl-intro--sub {
	color: var(--sfl-grey);
	font-size: 15px;
	margin-bottom: 16px;
}

/* Which restaurant you scanned in — logo, name, address. */
.sfl-venue {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin: 0 0 24px;
	padding: 16px;
	background: var(--sfl-cream);
	border-radius: 14px;
	text-align: center;
}

.sfl-venue__logo {
	width: auto;
	max-width: 150px;
	object-fit: contain;
	margin-bottom: 2px;
}

.sfl-venue__name {
	margin: 0;
	font-size: 19px;
	font-weight: 700;
	color: var(--sfl-navy);
}

.sfl-venue__addr {
	margin: 0;
	font-size: 14px;
	color: var(--sfl-grey);
}

/* ---------- form ---------- */

.sfl-field {
	margin-bottom: 20px;
}

.sfl-label {
	display: block;
	font-weight: 600;
	font-size: 16px;
	margin-bottom: 6px;
}

.sfl-label--question {
	font-size: 21px;
	font-weight: 700;
	line-height: 1.35;
	margin-bottom: 10px;
}

.sfl-input {
	width: 100%;
	/* 16px minimum, otherwise iOS zooms the page on focus */
	font-size: 16px;
	font-family: inherit;
	padding: 14px 14px;
	border: 1.5px solid var(--sfl-line);
	border-radius: 10px;
	background: var(--sfl-white);
	color: var(--sfl-navy);
	min-height: 52px;
	transition: border-color .15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.sfl-input:focus {
	outline: none;
	border-color: var(--sfl-turquoise);
	box-shadow: 0 0 0 3px rgba(0, 184, 184, .16);
}

.sfl-select {
	background-image: linear-gradient(45deg, transparent 50%, var(--sfl-grey) 50%),
		linear-gradient(135deg, var(--sfl-grey) 50%, transparent 50%);
	background-position: 16px calc(50% - 2px), 21px calc(50% - 2px);
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	padding-inline-start: 40px;
}

.sfl-textarea {
	resize: vertical;
	min-height: 96px;
	line-height: 1.5;
}

.sfl-counter {
	margin-top: 6px;
	font-size: 14px;
	color: var(--sfl-grey);
	text-align: left;
}

.sfl-counter.is-low {
	color: var(--sfl-magenta);
	font-weight: 600;
}

.sfl-hint {
	display: block;
	margin-top: 6px;
	font-size: 14px;
	color: var(--sfl-grey);
}

.sfl-hint--small {
	font-size: 13px;
	margin-top: 4px;
}

.sfl-error {
	display: block;
	margin-top: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--sfl-magenta);
}

/* ---------- consent ---------- */

.sfl-field--consent {
	background: var(--sfl-cream);
	padding: 16px;
	border-radius: 12px;
}

.sfl-consent__intro {
	margin: 0 0 10px;
	font-size: 15px;
	line-height: 1.5;
}

/* The theme's anchor rules were winning here — greying these out and
   inflating them. Inherit size and weight, keep only colour and underline. */
.sfl .sfl-consent__intro a,
.sfl a.sfl-inline-link {
	color: var(--sfl-magenta);
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	font-family: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.sfl a.sfl-inline-link:hover,
.sfl a.sfl-inline-link:focus {
	color: var(--sfl-navy);
}

.sfl-checkbox {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	/* comfortable thumb target */
	min-height: 44px;
}

.sfl-checkbox input {
	width: 24px;
	height: 24px;
	accent-color: var(--sfl-magenta);
	flex: none;
}

/* ---------- submit ---------- */

/* The theme forces its own display value on buttons, so margin:auto never
   took. Centring the wrapper works whatever the button ends up as. */
.sfl .sfl-submit-wrap {
	display: flex;
	justify-content: center;
	width: 100%;
}

.sfl .sfl-submit {
	width: 100%;
	max-width: 340px;
	min-height: 60px;
	border: none;
	border-radius: 999px;
	background: var(--sfl-magenta);
	color: var(--sfl-white);
	font-family: inherit;
	font-size: 19px;
	font-weight: 700;
	cursor: pointer;
	transition: transform .12s ease, opacity .12s ease;
}

.sfl-submit:active {
	transform: scale(.985);
}

.sfl-submit:disabled {
	opacity: .6;
	cursor: default;
}

.sfl-submit.is-loading::after {
	content: ' …';
}

/* ---------- notices ---------- */

.sfl-form-error {
	margin-top: 18px;
	padding: 18px;
	border-radius: 12px;
	background: var(--sfl-cream);
	border: 1.5px solid var(--sfl-yellow);
}

.sfl-form-error__title {
	margin: 0 0 6px;
	font-size: 19px;
	font-weight: 700;
}

.sfl-form-error__text {
	margin: 0;
	font-size: 16px;
	color: var(--sfl-grey);
}

.sfl-notice {
	padding: 28px 20px;
	border-radius: 14px;
	background: var(--sfl-cream);
	text-align: center;
}

.sfl-notice__title {
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 700;
}

.sfl-notice__text {
	margin: 0;
	font-size: 16px;
	color: var(--sfl-grey);
}

/* ---------- social / no-QR view ---------- */

.sfl-social__title {
	margin: 0 0 16px;
	font-size: 26px;
	font-weight: 700;
	text-align: center;
}

.sfl-steps {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
}

.sfl-steps__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--sfl-line);
	font-size: 16px;
}

.sfl-steps__item:last-child {
	border-bottom: none;
}

.sfl-steps__num {
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--sfl-turquoise);
	color: var(--sfl-white);
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sfl-cta {
	background: var(--sfl-navy);
	color: var(--sfl-white);
	padding: 20px;
	border-radius: 14px;
	text-align: center;
	margin-bottom: 20px;
}

.sfl-cta__title {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 700;
}

.sfl-cta__text {
	margin: 0;
	font-size: 16px;
	opacity: .9;
}

.sfl-locations {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sfl-locations__item {
	padding: 12px 14px;
	border: 1.5px solid var(--sfl-line);
	border-radius: 10px;
	margin-bottom: 8px;
	background: var(--sfl-white);
}

.sfl-locations__name {
	display: block;
	font-weight: 700;
	font-size: 16px;
}

.sfl-locations__addr {
	display: block;
	font-size: 14px;
	color: var(--sfl-grey);
}

/* ---------- thank you ---------- */

.sfl-thanks {
	text-align: center;
}

.sfl-thanks__title {
	margin: 0 0 12px;
	font-size: 30px;
	font-weight: 700;
}

.sfl-thanks__text {
	margin: 0 0 26px;
	font-size: 17px;
}

.sfl-card {
	background: var(--sfl-cream);
	border: 2px solid var(--sfl-yellow);
	border-radius: 16px;
	padding: 22px 18px;
	text-align: center;
}

.sfl-card__title {
	margin: 0 0 12px;
	font-size: 23px;
	font-weight: 700;
	line-height: 1.35;
}

.sfl-card__text {
	margin: 0 0 14px;
	font-size: 16px;
}

/* Tappable, unmistakably a link. Higher specificity than the theme's
   generic anchor rules, which were greying these out. */
.sfl .sfl-tags {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0 0 18px;
}

.sfl .sfl-tag {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 52px;
	padding: 12px 18px;
	border: 2px solid var(--sfl-magenta);
	border-radius: 999px;
	background: var(--sfl-white);
	color: var(--sfl-magenta);
	font-size: 17px;
	font-weight: 700;
	text-decoration: none;
	direction: ltr;
	transition: background .15s ease, color .15s ease;
}

.sfl .sfl-tag:hover,
.sfl .sfl-tag:focus {
	background: var(--sfl-magenta);
	color: var(--sfl-white);
}

.sfl .sfl-tag__icon {
	flex: none;
}

.sfl .sfl-card a {
	color: var(--sfl-magenta);
	font-weight: 700;
	text-decoration: underline;
}

.sfl .sfl-card a.sfl-tag {
	text-decoration: none;
}

.sfl-card__light {
	margin: 0 0 16px;
	font-size: 15px;
	color: var(--sfl-grey);
}

/* A statement, not a button — it is not clickable and must not invite taps. */
.sfl-card__highlight {
	margin: 0 0 14px;
	padding: 12px 14px;
	background: rgba(0, 184, 184, .12);
	border-inline-start: 4px solid var(--sfl-turquoise);
	border-radius: 6px;
	color: var(--sfl-navy);
	font-size: 16px;
	font-weight: 700;
}

.sfl-card__small {
	margin: 0;
	font-size: 13px;
	color: var(--sfl-grey);
}

@media (min-width: 600px) {
	.sfl-thanks__title { font-size: 34px; }
	.sfl-social__title { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
	.sfl-submit { transition: none; }
}

.sfl-testbar {
	margin: 0 auto 16px;
	padding: 10px 14px;
	border-radius: 8px;
	background: var(--sfl-yellow);
	color: var(--sfl-navy);
	font-size: 14px;
	font-weight: 700;
	text-align: center;
}

/* ---------- logo rows ---------- */

.sfl-logos {
	text-align: center;
	max-width: 620px;
	margin-inline: auto;
}

.sfl-logos__label {
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .04em;
	color: var(--sfl-grey);
}

/* Wraps on its own: two per line on a phone, one line on a wide screen.
   RTL, so the first item in the markup sits on the right. */
.sfl .sfl-logos__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 26px 34px;
	direction: rtl;
}

.sfl .sfl-logos__item {
	display: block;
	width: auto;
	max-width: 42vw;
	object-fit: contain;
}

@media (min-width: 520px) {
	.sfl .sfl-logos__row { gap: 28px 44px; }
	.sfl .sfl-logos__item { max-width: 200px; }
}

/* ---------- share ---------- */

/* Centre the button itself, not just its contents — same fix as the
   submit button. margin:auto does not apply to a flex item. */
.sfl .sfl-share-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	text-align: center;
}

.sfl .sfl-share {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 26px 0 0;
	max-width: 380px;
	width: 100%;
	min-height: 56px;
	padding: 14px 20px;
	border: 2px solid var(--sfl-turquoise);
	border-radius: 999px;
	background: var(--sfl-white);
	color: var(--sfl-turquoise);
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}

.sfl .sfl-share:hover,
.sfl .sfl-share:focus {
	background: var(--sfl-turquoise);
	color: var(--sfl-white);
}

.sfl .sfl-share__icon {
	flex: none;
}

.sfl .sfl-share__fallback {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 12px;
	width: 100%;
	max-width: 380px;
}

.sfl .sfl-share__opt {
	flex: 1 1 140px;
	min-height: 48px;
	padding: 12px 16px;
	border: 1.5px solid var(--sfl-line);
	border-radius: 999px;
	background: var(--sfl-white);
	color: var(--sfl-navy);
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sfl .sfl-share__opt--wa {
	border-color: #25D366;
	color: #128C4A;
}

.sfl .sfl-share__opt:hover,
.sfl .sfl-share__opt:focus {
	border-color: var(--sfl-turquoise);
}

.sfl-share__note {
	margin: 8px 0 0;
	min-height: 18px;
	font-size: 14px;
	font-weight: 600;
	color: var(--sfl-turquoise);
}

/* ---------- deadline ---------- */

.sfl.sfl-deadline {
	margin: 26px auto 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--sfl-grey);
	text-align: center;
}
