/**
 * Konvoy JB3 raffle registration page — mobile-first brand styling.
 * Loaded only on the page-raffle.php template (see inc/enqueue.php).
 */

.rf-page {
	background: #0a0a0a;
	color: #fff;
	font-family: 'Sometypemono', ui-monospace, monospace;
	min-height: 100vh;
}

.rf-container {
	max-width: 1100px;
	margin: 0 auto;
}

.rf-narrow {
	max-width: 480px;
}

.rf-display {
	font-family: 'Vtcdubois', system-ui, sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	line-height: 1.05;
	color: #fff;
	margin: 0;
}

.rf-eyebrow {
	color: #f41515;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	margin-bottom: 0.75rem;
}

/* ============================== Hero ============================== */
.rf-hero {
	background: #0f0f0f;
	padding: 4rem 1.25rem 3rem;
	text-align: center;
}

.rf-hero h1 {
	font-size: clamp(2.25rem, 7vw, 4rem);
}

.rf-subcopy {
	color: rgba(255, 255, 255, 0.75);
	font-size: 1rem;
	line-height: 1.7;
	max-width: 44ch;
	margin: 1.25rem auto 2rem;
}

.rf-merch-img {
	display: block;
	width: 100%;
	max-width: 520px;
	margin: 0 auto;
	border: 1px solid #2a2a2a;
	border-radius: 4px;
}

/* ============================== Form ============================== */
.rf-section {
	padding: 3rem 1.25rem 5rem;
}

.rf-field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin-bottom: 1.25rem;
}

.rf-field label {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: rgba(255, 255, 255, 0.6);
}

.rf-field input {
	width: 100%;
	background: #161616;
	border: 1px solid #2a2a2a;
	border-radius: 2px;
	color: #fff;
	font-family: 'Sometypemono', ui-monospace, monospace;
	font-size: 1rem; /* 16px+ avoids iOS zoom-on-focus */
	padding: 0.9rem 1rem;
}

.rf-field input:focus {
	outline: none;
	border-color: #f41515;
	box-shadow: 0 0 0 2px rgba(244, 21, 21, 0.35);
}

/* Honeypot — offscreen, never display:none on the input itself. */
.rf-hp {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.rf-btn {
	display: block;
	width: 100%;
	background: #f41515;
	border: none;
	border-radius: 2px;
	color: #fff;
	cursor: pointer;
	font-family: 'Sometypemono', ui-monospace, monospace;
	font-size: 0.95rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	padding: 1.05rem 1.5rem; /* large touch target */
	margin-top: 0.5rem;
	transition: transform 0.15s ease, background 0.15s ease;
}

.rf-btn:hover {
	background: #d40e0e;
	transform: translateY(-1px);
}

.rf-btn:disabled {
	cursor: not-allowed;
	opacity: 0.6;
	transform: none;
}

/* ============================== Result panels ============================== */
.rf-panel {
	background: #161616;
	border: 1px solid #2a2a2a;
	border-radius: 4px;
	padding: 2rem 1.5rem;
	text-align: center;
}

.rf-panel[hidden] {
	display: none;
}

.rf-panel-title {
	font-size: clamp(1.6rem, 5vw, 2.25rem);
	margin-bottom: 1rem;
}

.rf-code {
	font-family: 'Sometypemono', ui-monospace, monospace;
	font-size: clamp(2rem, 9vw, 3rem);
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #f41515;
	margin: 1rem 0;
	word-break: break-all;
}

.rf-qr {
	display: block;
	width: 220px;
	max-width: 100%;
	margin: 1.25rem auto;
	background: #fff;
	border-radius: 4px;
	padding: 0.5rem;
}

.rf-qr[hidden] {
	display: none;
}

.rf-note {
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.9rem;
	line-height: 1.7;
	margin: 0.75rem 0 0;
}

.rf-note[hidden] {
	display: none;
}

.rf-panel-error {
	border-color: #f41515;
}

.rf-panel-error .rf-note {
	color: #f41515;
}

/* OTP step: inline error + resend link + always-on screenshot reminder. */
.rf-otp-error {
	color: #f41515;
}

.rf-screenshot-note {
	color: #ffffff;
	font-weight: 600;
}

.rf-winner-note {
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	color: #ffffff;
	font-weight: 600;
}

.rf-link {
	display: inline-block;
	margin-top: 1rem;
	padding: 0;
	background: none;
	border: 0;
	color: rgba(255, 255, 255, 0.75);
	font: inherit;
	font-size: 0.85rem;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.rf-link:hover {
	color: #f41515;
}

.rf-link:disabled {
	opacity: 0.6;
	cursor: default;
}

/* ============================== Larger screens ============================== */
@media (min-width: 768px) {
	.rf-hero {
		padding: 6rem 1.5rem 4rem;
	}

	.rf-section {
		padding: 4rem 1.5rem 6rem;
	}

	.rf-panel {
		padding: 2.5rem 2rem;
	}
}

/* ============================== Phone input (intl-tel-input) ============================== */
/* Low-opacity example-number placeholder. */
.rf-field input::placeholder {
	color: rgba(255, 255, 255, 0.3);
}

/* Make the country-picker wrapper fill the field and match the dark theme. */
.rf-field .iti {
	display: block;
	width: 100%;
}

.iti__selected-country,
.iti--separate-dial-code .iti__selected-country {
	background: #1f1f1f;
	border-radius: 2px 0 0 2px;
}

.iti__selected-country:hover,
.iti__selected-country:focus {
	background: #2a2a2a;
}

.iti--separate-dial-code .iti__selected-dial-code {
	color: rgba(255, 255, 255, 0.7);
}

/* Dropdown panel. */
.iti__dropdown-content {
	background: #161616;
	border: 1px solid #2a2a2a;
	color: #ffffff;
}

.iti__search-input {
	background: #0f0f0f;
	color: #ffffff;
	border: 0;
	border-bottom: 1px solid #2a2a2a;
}

.iti__search-input::placeholder {
	color: rgba(255, 255, 255, 0.4);
}

.iti__country-list {
	background: #161616;
}

.iti__country {
	color: #ffffff;
}

.iti__country.iti__highlight,
.iti__country:hover {
	background: #2a2a2a;
}

.iti__dial-code {
	color: rgba(255, 255, 255, 0.55);
}

.iti__divider {
	border-bottom: 1px solid #2a2a2a;
}
