/**
 * SHLOFF GEZUNT Frontend Scoped Stylesheet.
 *
 * Scoped to .shloff-form-wrapper to prevent theme collisions.
 */

.shloff-form-wrapper {
	max-width: 680px;
	margin: 24px auto;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	color: #1e293b;
	line-height: 1.5;
	box-sizing: border-box;
	overflow: visible;
}

.shloff-form-wrapper * {
	box-sizing: border-box;
}

/* Header & Promo */
.shloff-form-header {
	padding: 28px 32px 20px;
	border-bottom: 1px solid #f1f5f9;
}

.shloff-title {
	margin: 0 0 16px;
	font-size: 24px;
	font-weight: 700;
	color: #0f172a;
	text-align: center;
}

/* Promotional Banner (Full-Width, Stacked, Clean) */
.shloff-promo-banner {
	width: 100% !important;
	background: #eff6ff !important;
	border: 1px solid #bfdbfe !important;
	border-radius: 8px !important;
	padding: 16px 20px !important;
	box-sizing: border-box !important;
	text-align: left !important;
	margin: 14px 0 0 0 !important;
}

.shloff-standard-banner {
	background: #f8fafc !important;
	border-color: #e2e8f0 !important;
}

.shloff-promo-badge {
	display: inline-block !important;
	background: #2563eb !important;
	color: #ffffff !important;
	font-size: 11px !important;
	font-weight: 800 !important;
	letter-spacing: 0.6px !important;
	text-transform: uppercase !important;
	padding: 4px 10px !important;
	border-radius: 4px !important;
	margin-bottom: 8px !important;
	line-height: 1.2 !important;
}

.shloff-promo-headline {
	margin: 0 0 6px 0 !important;
	font-size: 17px !important;
	font-weight: 700 !important;
	color: #1e3a8a !important;
	line-height: 1.35 !important;
}

.shloff-promo-desc {
	margin: 0 !important;
	font-size: 13.5px !important;
	color: #2563eb !important;
	line-height: 1.5 !important;
}

.shloff-standard-banner .shloff-promo-headline {
	color: #0f172a !important;
}

.shloff-standard-banner .shloff-promo-desc {
	color: #475569 !important;
}

.shloff-historical-50p-notice {
	margin-top: 12px;
	padding: 10px 14px;
	background-color: #fffbeb;
	border-left: 4px solid #f59e0b;
	border-radius: 4px;
	font-size: 13px;
	color: #b45309;
}

/* Dynamic Progress Bar */
.shloff-progress-container {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	z-index: 100;
	padding: 14px 28px 12px 28px;
	background: #ffffff;
	border-bottom: 1px solid #e2e8f0;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	border-top-left-radius: 12px;
	border-top-right-radius: 12px;
}

body.admin-bar .shloff-progress-container {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .shloff-progress-container {
		top: 46px;
	}
}

.shloff-progress-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
	font-size: 13px;
}

.shloff-progress-label {
	font-weight: 600;
	color: #334155;
}

.shloff-progress-percentage {
	font-weight: 700;
	color: #2563eb;
	background: #eff6ff;
	padding: 2px 8px;
	border-radius: 12px;
	border: 1px solid #bfdbfe;
}

.shloff-progress-track {
	width: 100%;
	height: 8px;
	background: #e2e8f0;
	border-radius: 4px;
	overflow: hidden;
}

.shloff-progress-bar {
	height: 100%;
	background: linear-gradient(90deg, #2563eb, #3b82f6);
	border-radius: 4px;
	transition: width 0.35s ease-in-out;
}

.shloff-cancellation-callout {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	font-size: 12.5px;
	color: #15803d;
	font-weight: 600;
}

/* Form Sections */
.shloff-signup-form {
	padding: 24px 32px 32px;
}

.shloff-form-section {
	margin-bottom: 28px;
	padding-bottom: 24px;
	border-bottom: 1px solid #f1f5f9;
}

.shloff-form-section:last-of-type {
	border-bottom: none;
	margin-bottom: 16px;
	padding-bottom: 0;
}

.shloff-section-heading {
	font-size: 17px;
	font-weight: 600;
	color: #0f172a;
	margin: 0 0 16px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.shloff-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	background: #3b82f6;
	color: #ffffff;
	border-radius: 50%;
	font-size: 13px;
	font-weight: 700;
}

.shloff-section-desc {
	margin: -8px 0 16px;
	font-size: 13px;
	color: #64748b;
}

/* Fields & Layout */
.shloff-field-group {
	margin-bottom: 16px;
}

.shloff-field-group:last-child {
	margin-bottom: 0;
}

.shloff-label {
	display: block;
	font-size: 13.5px;
	font-weight: 600;
	color: #334155;
	margin-bottom: 6px;
}

.shloff-required {
	color: #ef4444;
	font-weight: bold;
}

.shloff-optional {
	font-weight: 400;
	font-size: 12px;
	color: #94a3b8;
}

.shloff-input,
.shloff-select {
	width: 100%;
	padding: 10px 14px;
	font-size: 14.5px;
	color: #1e293b;
	background-color: #f8fafc;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	transition: all 0.2s ease;
	outline: none;
	line-height: 1.4;
}

.shloff-input:focus,
.shloff-select:focus {
	background-color: #ffffff;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.shloff-input.shloff-has-error {
	border-color: #ef4444;
	background-color: #fef2f2;
}

.shloff-field-error {
	display: block;
	color: #dc2626;
	font-size: 12px;
	margin-top: 4px;
	font-weight: 500;
	min-height: 16px;
}

.shloff-field-help {
	font-size: 12.5px;
	color: #64748b;
	margin: 8px 0 0;
	line-height: 1.4;
}

/* Grids */
.shloff-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.shloff-grid-3 {
	display: grid;
	grid-template-columns: 2fr 1.5fr 1.5fr;
	gap: 16px;
}

/* Language Radio Cards */
.shloff-radio-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 6px;
}

.shloff-radio-card {
	display: block;
	position: relative;
	cursor: pointer;
}

.shloff-radio-card input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.shloff-radio-content {
	display: block;
	padding: 12px 16px;
	background: #f8fafc;
	border: 1.5px solid #cbd5e1;
	border-radius: 8px;
	text-align: center;
	transition: all 0.2s ease;
}

.shloff-radio-card:hover .shloff-radio-content {
	border-color: #94a3b8;
}

.shloff-radio-card input:checked + .shloff-radio-content {
	background: #eff6ff;
	border-color: #3b82f6;
	box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.shloff-radio-title {
	font-size: 14.5px;
	color: #1e293b;
}

.shloff-radio-card input:checked + .shloff-radio-content .shloff-radio-title {
	color: #1d4ed8;
	font-weight: 700;
}

/* Dynamic Total Box */
.shloff-total-summary-box {
	background: #f0fdf4;
	border: 1.5px solid #86efac;
	border-radius: 8px;
	padding: 16px 20px;
	margin-bottom: 20px;
}

.shloff-total-row {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
}

.shloff-total-label {
	font-size: 15px;
	font-weight: 600;
	color: #166534;
}

.shloff-total-value {
	font-size: 26px;
	font-weight: 800;
	color: #15803d;
	letter-spacing: -0.5px;
}

.shloff-total-freq {
	font-size: 14px;
	color: #166534;
}

.shloff-total-trial-note {
	margin-top: 6px;
	font-size: 12.5px;
	color: #15803d;
	font-weight: 500;
}

/* Stripe Box */
.shloff-stripe-card-box {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	padding: 12px 14px;
	transition: all 0.2s ease;
}

.shloff-stripe-card-box.StripeElement--focus {
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.shloff-stripe-card-box.StripeElement--invalid {
	border-color: #ef4444;
}

.shloff-security-badge {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: #64748b;
	margin-top: 10px;
}

.shloff-security-badge svg {
	color: #10b981;
	flex-shrink: 0;
}

/* Consents & Bulletproof Standard Checkboxes */
.shloff-consent-section,
.shloff-checkbox-field,
.shloff-checkbox-field * {
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	text-shadow: none !important;
}

.shloff-consent-section {
	margin-top: 18px !important;
	padding-top: 16px !important;
	border-top: 1px solid #f1f5f9 !important;
}

.shloff-checkbox-field,
label.shloff-checkbox-field {
	display: flex !important;
	align-items: flex-start !important;
	gap: 12px !important;
	margin-bottom: 14px !important;
	position: relative !important;
	background: transparent !important;
	background-color: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	cursor: pointer !important;
	width: 100% !important;
	-webkit-tap-highlight-color: transparent !important;
}

.shloff-checkbox-field:last-child,
label.shloff-checkbox-field:last-child {
	margin-bottom: 0 !important;
}

.shloff-checkbox-field:hover,
.shloff-checkbox-field:focus,
.shloff-checkbox-field:active,
.shloff-checkbox-field:focus-within,
label.shloff-checkbox-field:hover,
label.shloff-checkbox-field:focus,
label.shloff-checkbox-field:active,
label.shloff-checkbox-field:focus-within {
	background: transparent !important;
	background-color: transparent !important;
}

.shloff-checkbox-field::before,
.shloff-checkbox-field::after,
.shloff-checkbox-text::before,
.shloff-checkbox-text::after,
label.shloff-checkbox-field::before,
label.shloff-checkbox-field::after,
.shloff-consent-section *::before,
.shloff-consent-section *::after {
	display: none !important;
	content: none !important;
	background: transparent !important;
	background-color: transparent !important;
}

.shloff-form-wrapper input[type="checkbox"].shloff-checkbox,
.shloff-checkbox-field input[type="checkbox"] {
	-webkit-appearance: checkbox !important;
	-moz-appearance: checkbox !important;
	appearance: checkbox !important;
	display: inline-block !important;
	width: 20px !important;
	min-width: 20px !important;
	max-width: 20px !important;
	height: 20px !important;
	min-height: 20px !important;
	max-height: 20px !important;
	margin: 2px 0 0 0 !important;
	padding: 0 !important;
	flex-shrink: 0 !important;
	cursor: pointer !important;
	accent-color: #2563eb !important;
	background-color: #ffffff !important;
	border: 1.5px solid #94a3b8 !important;
	border-radius: 4px !important;
	box-sizing: border-box !important;
	opacity: 1 !important;
	visibility: visible !important;
	position: static !important;
	outline: none !important;
	-webkit-tap-highlight-color: transparent !important;
}

.shloff-checkbox-field.shloff-checkbox-error input[type="checkbox"] {
	outline: 2px solid #ef4444 !important;
}

.shloff-checkbox-text {
	flex: 1 1 auto !important;
	font-size: 13.5px !important;
	color: #334155 !important;
	line-height: 1.45 !important;
	cursor: pointer !important;
	margin: 0 !important;
	padding: 0 !important;
	display: block !important;
	background: transparent !important;
	background-color: transparent !important;
	border: none !important;
	box-shadow: none !important;
	user-select: none !important;
	-webkit-user-select: none !important;
	-moz-user-select: none !important;
	-ms-user-select: none !important;
	-webkit-tap-highlight-color: transparent !important;
}

.shloff-checkbox-text:hover,
.shloff-checkbox-text:focus,
.shloff-checkbox-text:active,
.shloff-form-wrapper input[type="checkbox"]:checked ~ *,
.shloff-form-wrapper input[type="checkbox"]:checked + *,
.shloff-form-wrapper input[type="checkbox"]:focus ~ *,
.shloff-form-wrapper input[type="checkbox"]:focus + *,
.shloff-form-wrapper input[type="checkbox"]:active ~ *,
.shloff-form-wrapper input[type="checkbox"]:active + * {
	background: transparent !important;
	background-color: transparent !important;
	color: #334155 !important;
}

.shloff-checkbox-text::selection,
.shloff-checkbox-text::-moz-selection,
.shloff-consent-section *::selection,
.shloff-consent-section *::-moz-selection {
	background: transparent !important;
	color: #334155 !important;
}

.shloff-checkbox-text strong,
.shloff-form-wrapper input[type="checkbox"]:checked ~ * strong {
	color: #1e293b !important;
	background: transparent !important;
	background-color: transparent !important;
}

.shloff-checkbox-text a,
.shloff-form-wrapper input[type="checkbox"]:checked ~ * a {
	color: #2563eb !important;
	text-decoration: underline !important;
	font-weight: 500 !important;
	transition: color 0.15s ease;
	background: transparent !important;
	background-color: transparent !important;
	user-select: auto !important;
	-webkit-user-select: auto !important;
}

.shloff-checkbox-text a:hover,
.shloff-form-wrapper input[type="checkbox"]:checked ~ * a:hover {
	color: #1d4ed8 !important;
	background: transparent !important;
	background-color: transparent !important;
}

/* Actions & Button */
.shloff-form-actions {
	margin-top: 24px;
	text-align: center;
}

.shloff-btn-submit {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #1e3a8a;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	padding: 14px 24px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.1s ease;
}

.shloff-btn-submit:hover {
	background: #1e40af;
}

.shloff-btn-submit:active {
	transform: scale(0.99);
}

.shloff-btn-submit:disabled {
	background: #94a3b8;
	cursor: not-allowed;
	transform: none;
}

.shloff-submit-footnote {
	font-size: 12px;
	color: #64748b;
	margin-top: 8px;
}

/* Spinner */
.shloff-spinner {
	width: 18px;
	height: 18px;
	border: 2.5px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: #ffffff;
	animation: shloff-spin 0.8s linear infinite;
	margin-left: 10px;
}

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

/* Alerts */
.shloff-alert {
	padding: 12px 16px;
	border-radius: 6px;
	font-size: 13.5px;
	margin-bottom: 20px;
	line-height: 1.4;
}

.shloff-alert-error {
	background-color: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

/* Success Card */
.shloff-success-card {
	padding: 40px 32px;
	text-align: center;
}

.shloff-success-icon {
	color: #16a34a;
	margin-bottom: 16px;
}

.shloff-success-title {
	font-size: 24px;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 8px;
}

.shloff-success-lead {
	font-size: 15px;
	color: #475569;
	margin: 0 0 24px;
}

.shloff-success-details {
	max-width: 480px;
	margin: 0 auto 24px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 16px 20px;
	text-align: left;
}

.shloff-detail-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 0;
	border-bottom: 1px dashed #e2e8f0;
	font-size: 13.5px;
}

.shloff-detail-row:last-child {
	border-bottom: none;
}

.shloff-detail-label {
	color: #64748b;
}

.shloff-detail-val {
	color: #0f172a;
	font-weight: 600;
}

.shloff-badge-pill {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 9999px;
	font-size: 12px;
	font-weight: 700;
}

.shloff-badge-active {
	background: #dcfce7;
	color: #15803d;
}

.shloff-badge-trial {
	background: #eff6ff;
	color: #1d4ed8;
	border: 1px solid #bfdbfe;
}

.shloff-badge-cancelled {
	background: #f1f5f9;
	color: #64748b;
	border: 1px solid #cbd5e1;
}

.shloff-badge-pending {
	background: #fef3c7;
	color: #b45309;
}

.shloff-alert-success {
	background-color: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #166534;
}

/* ==========================================================================
   PORTAL SWITCHER TABS (Sign Up vs Member Login)
   ========================================================================== */
.shloff-portal-container {
	max-width: 680px;
	margin: 24px auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.shloff-portal-nav {
	display: flex;
	background: #f1f5f9;
	padding: 4px;
	border-radius: 10px;
	margin-bottom: 20px;
	gap: 6px;
}

.shloff-portal-tab {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 16px;
	font-size: 15px;
	font-weight: 700;
	color: #475569;
	background: transparent;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.shloff-portal-tab:hover {
	color: #0f172a;
	background: rgba(255, 255, 255, 0.6);
}

.shloff-portal-tab.active {
	background: #ffffff;
	color: #1e3a8a;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.shloff-login-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 36px 32px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   LOGGED-IN MEMBER DASHBOARD
   ========================================================================== */
.shloff-dashboard-wrapper {
	max-width: 780px;
	margin: 24px auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.shloff-dash-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.shloff-dash-title {
	margin: 0 0 4px;
	font-size: 24px;
	font-weight: 800;
	color: #0f172a;
}

.shloff-dash-subtitle {
	margin: 0;
	font-size: 13.5px;
	color: #64748b;
}

.shloff-btn-logout {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	background: #f1f5f9;
	color: #475569;
	text-decoration: none;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	transition: background 0.15s ease;
}

.shloff-btn-logout:hover {
	background: #e2e8f0;
	color: #0f172a;
}

.shloff-dash-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 24px;
	margin-bottom: 20px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.shloff-card-topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 18px;
	padding-bottom: 12px;
	border-bottom: 1px solid #f1f5f9;
}

.shloff-plan-rate {
	font-size: 14px;
	color: #64748b;
}

.shloff-plan-rate strong {
	font-size: 20px;
	color: #1e3a8a;
}

.shloff-dash-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
}

.shloff-dash-field {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.shloff-dash-field .shloff-field-label {
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.shloff-dash-field .shloff-field-val {
	font-size: 14.5px;
	color: #1e293b;
}

.shloff-card-preview-box {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	padding: 12px 18px;
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
}

.shloff-card-meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

/* Modal Dialog */
.shloff-modal-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(15, 23, 42, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	padding: 20px;
}

.shloff-modal-dialog {
	background: #ffffff;
	border-radius: 12px;
	max-width: 500px;
	width: 100%;
	padding: 24px;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.shloff-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #e2e8f0;
	padding-bottom: 12px;
}

.shloff-modal-close {
	background: none;
	border: none;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: #94a3b8;
}

.shloff-modal-close:hover {
	color: #0f172a;
}

/* Success Info Box */
.shloff-success-info-box {
	max-width: 480px;
	margin: 0 auto;
	background: #eff6ff;
	border-left: 4px solid #3b82f6;
	padding: 16px 20px;
	border-radius: 4px;
	text-align: left;
	font-size: 13.5px;
}

.shloff-success-info-box h4 {
	margin: 0 0 6px;
	font-size: 14px;
	color: #1e3a8a;
}

.shloff-success-info-box p {
	margin: 0 0 8px;
	color: #1e40af;
}

.shloff-success-info-box p:last-child {
	margin-bottom: 0;
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 640px) {
	.shloff-form-wrapper,
	.shloff-login-card,
	.shloff-dashboard-wrapper {
		margin: 12px;
		border-radius: 8px;
	}

	.shloff-form-header,
	.shloff-dash-card {
		padding: 18px 14px;
	}

	.shloff-dash-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.shloff-signup-form {
		padding: 16px;
	}

	.shloff-title {
		font-size: 20px;
	}

	.shloff-promo-banner {
		padding: 14px 16px;
	}

	.shloff-grid-2,
	.shloff-grid-3,
	.shloff-radio-cards,
	.shloff-dash-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.shloff-success-card {
		padding: 24px 16px;
	}
}

