/* ==========================================
   WP Raffle System — Form Styles
   ========================================== */

.wp-raffle-wrapper {
	max-width: 480px;
	margin: 0 auto;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.wp-raffle-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 8px;
	text-align: center;
}

.wp-raffle-subtitle {
	color: #64748B;
	text-align: center;
	margin-bottom: 24px;
	font-size: 0.95rem;
	line-height: 1.5;
}

/* Form fields */
.wp-raffle-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.wp-raffle-field label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 6px;
	color: #1E293B;
}

.wp-raffle-field input {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #CBD5E1;
	border-radius: 8px;
	font-size: 0.95rem;
	font-family: inherit;
	background: #FFFFFF;
	color: #0F172A;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
}

.wp-raffle-field input:focus {
	outline: none;
	border-color: #2563EB;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.wp-raffle-field input.field-error {
	border-color: #DC2626;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Code field — uppercase */
#raffle-code {
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: 600;
}

/* Error message */
.wp-raffle-error {
	background: #FEF2F2;
	color: #991B1B;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 0.9rem;
	line-height: 1.4;
	border: 1px solid #FECACA;
}

/* Submit button */
.wp-raffle-submit {
	width: 100%;
	padding: 14px 20px;
	background: #2563EB;
	color: #FFFFFF;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.1s ease;
	margin-top: 8px;
}

.wp-raffle-submit:hover {
	background: #1D4ED8;
}

.wp-raffle-submit:active {
	transform: scale(0.98);
}

.wp-raffle-submit:disabled {
	opacity: 0.65;
	cursor: not-allowed;
	transform: none;
}

/* Success state */
.wp-raffle-success {
	text-align: center;
	padding: 32px 16px;
}

.success-icon {
	font-size: 3rem;
	margin-bottom: 12px;
}

.success-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: #065F46;
	margin-bottom: 8px;
}

.success-message {
	color: #334155;
	margin-bottom: 20px;
	font-size: 0.95rem;
}

.success-ticket {
	display: inline-block;
	background: #F0FDF4;
	border: 2px solid #22C55E;
	border-radius: 12px;
	padding: 16px 32px;
	font-size: 1.4rem;
	font-weight: 700;
	color: #065F46;
	letter-spacing: 2px;
	margin-bottom: 16px;
}

.success-note {
	color: #64748B;
	font-size: 0.85rem;
}

/* Closed state */
.wp-raffle-closed {
	text-align: center;
	padding: 40px 20px;
	background: #F8FAFC;
	border-radius: 12px;
	border: 1px solid #E2E8F0;
}

.wp-raffle-closed p {
	color: #64748B;
	font-size: 1rem;
}

/* Responsive */
@media (max-width: 600px) {
	.wp-raffle-wrapper {
		padding: 0 12px;
	}

	.wp-raffle-field input {
		padding: 10px 12px;
	}

	.wp-raffle-submit {
		padding: 12px 16px;
	}
}
