/* ============================================================
   Shelbyville Verified Registration — Frontend Styles
   ============================================================ */

/* ---- Wrapper ---- */
.svr-registration-wrap {
	max-width: 480px;
	margin: 0 auto;
}

/* ---- Honeypot ---- */
.svr-hp-field {
	display: none !important;
	visibility: hidden;
}

/* ---- Form card ---- */
.svr-form {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 32px 28px 24px;
}

/* ---- Rows ---- */
.svr-row {
	margin-bottom: 14px;
}

.svr-row--split {
	display: flex;
	gap: 12px;
}

.svr-row--split .svr-field {
	flex: 1 1 0;
	min-width: 0;
}

/* ---- Inputs (placeholder-style, no visible labels) ---- */
.svr-field label {
	display: none; /* Labels are replaced by placeholders in this design */
}

.svr-input {
	width: 100%;
	box-sizing: border-box;
	padding: 14px 16px;
	border: 1.5px solid #e2e2e2;
	border-radius: 8px;
	font-size: .9375rem;
	color: #222;
	background: #fff;
	transition: border-color .15s, box-shadow .15s;
	outline: none;
}

.svr-input::placeholder {
	color: #aaa;
	font-size: .9375rem;
}

.svr-input:focus {
	border-color: #7B3FA0;
	box-shadow: 0 0 0 3px rgba(123,63,160,.12);
}

.svr-input.svr-input--error {
	border-color: #ef4444;
}

/* ---- Field-level error text ---- */
.svr-field-error {
	display: block;
	font-size: .8125rem;
	color: #ef4444;
	margin-top: 4px;
	min-height: 1.1em;
}

/* ---- Form-level error box ---- */
.svr-form-error {
	background: #fef2f2;
	border: 1px solid #fca5a5;
	border-radius: 6px;
	padding: 10px 14px;
	font-size: .875rem;
	color: #b91c1c;
	margin-bottom: 14px;
}

/* ---- Submit button ---- */
.svr-btn--submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	background: #7B3FA0;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 14px 20px;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	letter-spacing: .02em;
	transition: background .15s, opacity .15s;
	margin-top: 4px;
}

.svr-btn--submit:hover {
	background: #6a2f8e;
}

.svr-btn--submit:disabled {
	opacity: .65;
	cursor: not-allowed;
}

/* ---- Spinner ---- */
.svr-spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255,255,255,.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: svr-spin .6s linear infinite;
}

.svr-btn--submit.svr-loading .svr-spinner {
	display: inline-block;
}

@keyframes svr-spin {
	to { transform: rotate(360deg); }
}

/* ---- Login link below the form ---- */
.svr-login-link {
	text-align: center;
	margin-top: 16px;
	font-size: .9rem;
	color: #555;
}

.svr-login-link a {
	color: #7B3FA0;
	font-weight: 600;
	text-decoration: none;
}

.svr-login-link a:hover {
	text-decoration: underline;
}

/* ---- Post-submit success message ---- */
.svr-success-message {
	background: #f0fdf4;
	border: 1px solid #86efac;
	border-radius: 8px;
	padding: 24px 28px;
	font-size: 1rem;
	color: #166534;
	text-align: center;
	line-height: 1.6;
}

/* ---- Utility ---- */
.svr-hidden {
	display: none !important;
}


/* ============================================================
   Confirmation Popup (shown on landing page after verification)
   ============================================================ */
.svr-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.5);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: svr-fade-in .2s ease;
}

.svr-modal {
	background: #fff;
	border-radius: 12px;
	padding: 40px 36px;
	max-width: 440px;
	width: calc(100% - 40px);
	text-align: center;
	box-shadow: 0 8px 40px rgba(0,0,0,.18);
	position: relative;
	animation: svr-slide-up .25s ease;
}

.svr-modal__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #f0fdf4;
	color: #16a34a;
	font-size: 1.75rem;
	margin: 0 auto 16px;
}

.svr-modal__title {
	font-size: 1.375rem;
	font-weight: 700;
	color: #111827;
	margin: 0 0 12px;
}

.svr-modal__message {
	font-size: 1rem;
	color: #4b5563;
	line-height: 1.6;
	margin: 0 0 24px;
}

.svr-modal__close {
	background: #7B3FA0;
	color: #fff;
	border: none;
	border-radius: 7px;
	padding: 10px 28px;
	font-size: .9375rem;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s;
}

.svr-modal__close:hover {
	background: #6a2f8e;
}

@keyframes svr-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes svr-slide-up {
	from { transform: translateY(24px); opacity: 0; }
	to   { transform: translateY(0);    opacity: 1; }
}

/* ---- Error notice ---- */
.svr-error-notice {
	max-width: 480px;
	margin: 24px auto;
	background: #fef2f2;
	border: 1px solid #fca5a5;
	border-radius: 8px;
	padding: 20px 24px;
	color: #b91c1c;
	font-size: 1rem;
	text-align: center;
}

@media (max-width: 520px) {
	.svr-form {
		padding: 22px 16px 18px;
	}
	.svr-row--split {
		flex-direction: column;
		gap: 0;
	}
}
