/**
 * Rosukh Registration Form Stylesheet
 * Brand Identity & Visual Styling for https://rosukh.com/
 *
 * Primary Color: #164E78 (Teal / Deep Blue)
 * Secondary Accent: #F5A623 (Golden Amber)
 * Light Tint: #EEF4F8
 * Typography: 'Bahij TheSansArabic', 'Tajawal', 'Cairo', sans-serif
 */

:root {
	--rosukh-primary: #164E78;
	--rosukh-primary-hover: #103B5C;
	--rosukh-primary-light: #EEF4F8;
	--rosukh-primary-border: #BCD0DF;
	--rosukh-accent: #F5A623;
	--rosukh-accent-hover: #D98E16;
	--rosukh-dark: #0D2232;
	--rosukh-text: #2D3748;
	--rosukh-text-muted: #64748B;
	--rosukh-bg: #FFFFFF;
	--rosukh-card-bg: #F8FAFC;
	--rosukh-border: #E2E8F0;
	--rosukh-success: #059669;
	--rosukh-success-light: #ECFDF5;
	--rosukh-danger: #DC2626;
	--rosukh-danger-light: #FEF2F2;
	--rosukh-telegram: #229ED9;
	--rosukh-telegram-hover: #1A84B8;
	--rosukh-radius-lg: 18px;
	--rosukh-radius-md: 12px;
	--rosukh-radius-sm: 8px;
	--rosukh-shadow: 0 10px 25px -5px rgba(22, 78, 120, 0.08), 0 8px 10px -6px rgba(22, 78, 120, 0.04);
	--rosukh-shadow-lg: 0 20px 35px -5px rgba(22, 78, 120, 0.12), 0 10px 15px -5px rgba(22, 78, 120, 0.06);
	--rosukh-font: 'Bahij TheSansArabic', 'Tajawal', 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Container */
.rosukh-form-container {
	font-family: var(--rosukh-font);
	max-width: 860px;
	width: 100%;
	margin: 30px auto;
	padding: 35px;
	background: var(--rosukh-bg);
	border-radius: var(--rosukh-radius-lg);
	box-shadow: var(--rosukh-shadow-lg);
	border: 1px solid var(--rosukh-border);
	color: var(--rosukh-text);
	box-sizing: border-box;
	direction: rtl;
	text-align: right;
	position: relative;
	overflow-x: clip;
}

.rosukh-form-container * {
	box-sizing: border-box;
}

/* Header & Brand */
.rosukh-form-header {
	text-align: center;
	margin-bottom: 30px;
	position: relative;
	width: 100%;
	max-width: 100%;
}

.rosukh-header-brand {
	margin-bottom: 15px;
	display: flex;
	justify-content: center;
}

.rosukh-brand-logo {
	max-height: 85px;
	width: auto;
	object-fit: contain;
	filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
}

.rosukh-fallback-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--rosukh-primary-light);
	color: var(--rosukh-primary);
	padding: 10px 24px;
	border-radius: 50px;
	font-weight: bold;
	font-size: 1.2rem;
}

.rosukh-form-title {
	font-size: 1.85rem;
	font-weight: 800;
	color: var(--rosukh-primary);
	margin: 0 0 8px 0;
	line-height: 1.35;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.rosukh-form-subtitle {
	font-size: 1rem;
	color: var(--rosukh-text-muted);
	margin: 0 0 24px 0;
	line-height: 1.5;
}

/* Intro Collapsible Card */
.rosukh-intro-card {
	background: linear-gradient(135deg, #F0F6FA 0%, #E8F0F6 100%);
	border: 1px solid var(--rosukh-primary-border);
	border-radius: var(--rosukh-radius-md);
	margin-bottom: 30px;
	overflow: hidden;
	text-align: right;
}

.rosukh-intro-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	cursor: pointer;
	user-select: none;
	background: rgba(22, 78, 120, 0.04);
	transition: background 0.2s ease;
}

.rosukh-intro-card-header:hover {
	background: rgba(22, 78, 120, 0.08);
}

.rosukh-intro-title-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--rosukh-primary);
	font-size: 1rem;
}

.rosukh-toggle-btn {
	background: none;
	border: none;
	color: var(--rosukh-primary);
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 600;
}

.rosukh-toggle-btn .dashicons {
	transition: transform 0.3s ease;
}

.rosukh-toggle-btn.is-open .dashicons {
	transform: rotate(180deg);
}

.rosukh-intro-card-body {
	padding: 20px;
	border-top: 1px solid var(--rosukh-primary-border);
}

.rosukh-intro-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 12px;
	margin-bottom: 15px;
}

.rosukh-intro-item {
	font-size: 0.92rem;
	line-height: 1.6;
	background: #FFFFFF;
	padding: 10px 14px;
	border-radius: var(--rosukh-radius-sm);
	border: 1px solid rgba(22, 78, 120, 0.1);
}

.rosukh-intro-label {
	font-weight: 700;
	color: var(--rosukh-primary);
	margin-left: 6px;
}

.rosukh-highlight-free {
	color: var(--rosukh-success);
	font-weight: 700;
}

.rosukh-intro-alert {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #FEF9C3;
	border: 1px solid #FDE047;
	padding: 10px 14px;
	border-radius: var(--rosukh-radius-sm);
	font-size: 0.9rem;
	color: #854D0E;
}

.rosukh-intro-alert a {
	color: var(--rosukh-primary);
	font-weight: 700;
	text-decoration: underline;
}

/* Steps Wizard Navigation */
.rosukh-steps-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	position: relative;
	width: 100%;
	max-width: 100%;
}

.rosukh-step-item {
	flex: 1 1 0;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: var(--rosukh-radius-md);
	background: var(--rosukh-card-bg);
	border: 1px solid var(--rosukh-border);
	transition: all 0.3s ease;
	cursor: default;
	min-width: 0;
}

.rosukh-step-item.is-active {
	background: var(--rosukh-primary-light);
	border-color: var(--rosukh-primary);
	box-shadow: 0 4px 10px rgba(22, 78, 120, 0.08);
}

.rosukh-step-item.is-completed {
	border-color: var(--rosukh-success);
	background: var(--rosukh-success-light);
}

.rosukh-step-number {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.95rem;
	background: #CBD5E1;
	color: #475569;
	transition: all 0.3s ease;
	flex-shrink: 0;
}

.rosukh-step-item.is-active .rosukh-step-number {
	background: var(--rosukh-primary);
	color: #FFFFFF;
}

.rosukh-step-item.is-completed .rosukh-step-number {
	background: var(--rosukh-success);
	color: transparent;
	position: relative;
}

.rosukh-step-item.is-completed .rosukh-step-number::after {
	content: "✓";
	color: #FFFFFF;
	position: absolute;
	font-size: 15px;
	font-weight: 900;
	line-height: 1;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.rosukh-step-details {
	min-width: 0;
	flex: 1;
	overflow: hidden;
}

.rosukh-step-title {
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--rosukh-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
}

.rosukh-step-item.is-active .rosukh-step-title {
	color: var(--rosukh-primary);
}

/* Progress Bar */
.rosukh-progress-container {
	height: 6px;
	background: #E2E8F0;
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 25px;
}

.rosukh-progress-bar {
	height: 100%;
	background: linear-gradient(90deg, var(--rosukh-accent) 0%, var(--rosukh-primary) 100%);
	transition: width 0.4s ease;
}

/* Step Content Sections */
.rosukh-form-step {
	display: none;
	animation: rosukhFadeIn 0.35s ease;
}

.rosukh-form-step.is-active {
	display: block;
}

@keyframes rosukhFadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.rosukh-step-heading {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 25px;
	padding-bottom: 15px;
	border-bottom: 2px solid var(--rosukh-primary-light);
}

.rosukh-step-icon {
	font-size: 36px;
	width: 36px;
	height: 36px;
	color: var(--rosukh-primary);
}

.rosukh-step-heading h2 {
	font-size: 1.4rem;
	font-weight: 800;
	color: var(--rosukh-primary);
	margin: 0 0 4px 0;
}

.rosukh-step-heading p {
	font-size: 0.95rem;
	color: var(--rosukh-text-muted);
	margin: 0;
}

/* Form Groups & Inputs */
.rosukh-form-group {
	margin-bottom: 22px;
}

.rosukh-form-row {
	display: grid;
	gap: 18px;
	margin-bottom: 6px;
}

.rosukh-grid-2 {
	grid-template-columns: 1fr 1fr;
}

.rosukh-form-group label {
	display: block;
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--rosukh-dark);
	margin-bottom: 8px;
}

.rosukh-label-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 8px;
	width: 100%;
}

.rosukh-label-wrap label {
	margin-bottom: 0;
}

.rosukh-required {
	color: var(--rosukh-danger);
	margin-right: 3px;
	font-weight: 900;
}

.rosukh-field-help {
	display: block;
	font-size: 0.83rem;
	color: var(--rosukh-text-muted);
	margin-top: 6px;
	line-height: 1.5;
}

/* Input Fields */
.rosukh-input,
.rosukh-select,
.rosukh-textarea {
	width: 100%;
	padding: 13px 16px;
	font-family: inherit;
	font-size: 0.98rem;
	color: var(--rosukh-text);
	background: #FFFFFF;
	border: 1.5px solid #CBD5E1;
	border-radius: var(--rosukh-radius-md);
	outline: none;
	transition: all 0.25s ease;
	line-height: 1.5;
}

.rosukh-input:focus,
.rosukh-select:focus,
.rosukh-textarea:focus {
	border-color: var(--rosukh-primary);
	box-shadow: 0 0 0 4px rgba(22, 78, 120, 0.12);
	background: #FFFFFF;
}

.rosukh-input.has-error,
.rosukh-select.has-error,
.rosukh-textarea.has-error {
	border-color: var(--rosukh-danger);
	box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.rosukh-input-icon-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.rosukh-input-icon {
	position: absolute;
	right: 14px;
	color: #94A3B8;
	pointer-events: none;
	font-size: 20px;
	width: 20px;
	height: 20px;
}

.rosukh-input-icon-wrap .rosukh-input {
	padding-right: 44px;
}

.rosukh-input-prefix-wrap {
	display: flex;
	align-items: center;
	border: 1.5px solid #CBD5E1;
	border-radius: var(--rosukh-radius-md);
	overflow: hidden;
	background: #FFFFFF;
	transition: all 0.25s ease;
}

.rosukh-input-prefix-wrap:focus-within {
	border-color: var(--rosukh-primary);
	box-shadow: 0 0 0 4px rgba(22, 78, 120, 0.12);
}

.rosukh-input-prefix {
	background: var(--rosukh-primary-light);
	color: var(--rosukh-primary);
	font-weight: 700;
	padding: 13px 18px;
	font-size: 1.1rem;
	user-select: none;
	border-left: 1px solid var(--rosukh-primary-border);
}

.rosukh-input-prefix-wrap .rosukh-input {
	border: none;
	box-shadow: none;
	border-radius: 0;
}

/* Password Toggle, Match Badges & Strength */
.rosukh-input.rosukh-input-password,
.rosukh-input-icon-wrap:has(.rosukh-toggle-pass-btn) .rosukh-input {
	padding-left: 48px !important;
	padding-right: 44px !important;
}

.rosukh-toggle-pass-btn {
	position: absolute;
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: #94A3B8;
	cursor: pointer;
	padding: 4px;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s ease;
	z-index: 2;
}

.rosukh-toggle-pass-btn:hover {
	color: var(--rosukh-primary);
}

.rosukh-toggle-pass-btn .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
	line-height: 1;
}

.rosukh-match-badge {
	position: static;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.78rem;
	padding: 3px 10px;
	border-radius: 14px;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
}

.rosukh-match-badge[style*="display: block"],
.rosukh-match-badge[style*="display: inline"] {
	display: inline-flex !important;
}

.rosukh-match-badge.is-match {
	background: #D1FAE5;
	color: #065F46;
	border: 1px solid #A7F3D0;
}

.rosukh-match-badge.is-mismatch {
	background: #FEE2E2;
	color: #991B1B;
	border: 1px solid #FECACA;
}

.rosukh-pass-meter {
	height: 4px;
	background: #E2E8F0;
	border-radius: 4px;
	margin-top: 6px;
	overflow: hidden;
}

.rosukh-pass-meter-bar {
	height: 100%;
	width: 0;
	transition: all 0.3s ease;
}

/* Radio Pills (الجنس: ذكر / أنثى) */
.rosukh-radio-pills {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.rosukh-pill-label {
	cursor: pointer;
	margin-bottom: 0 !important;
}

.rosukh-pill-label input[type="radio"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.rosukh-pill-card {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px;
	border: 1.5px solid #CBD5E1;
	border-radius: var(--rosukh-radius-md);
	background: #FFFFFF;
	transition: all 0.25s ease;
}

.rosukh-pill-label input[type="radio"]:checked + .rosukh-pill-card {
	border-color: var(--rosukh-primary);
	background: var(--rosukh-primary-light);
	color: var(--rosukh-primary);
	font-weight: 700;
	box-shadow: 0 4px 10px rgba(22, 78, 120, 0.1);
}

.rosukh-pill-icon {
	font-size: 1.3rem;
}

/* Custom Checkbox Grid */
.rosukh-checkbox-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 10px;
}

.rosukh-checkbox-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 14px;
	border: 1.5px solid #E2E8F0;
	border-radius: var(--rosukh-radius-md);
	background: #FFFFFF;
	cursor: pointer;
	transition: all 0.2s ease;
	margin-bottom: 0 !important;
}

.rosukh-checkbox-item:hover {
	border-color: var(--rosukh-primary-border);
	background: #F8FAFC;
}

.rosukh-checkbox-item input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.rosukh-checkbox-box {
	width: 20px;
	height: 20px;
	border: 2px solid #94A3B8;
	border-radius: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-top: 2px;
	transition: all 0.2s ease;
	background: #FFFFFF;
}

.rosukh-checkbox-item input[type="checkbox"]:checked ~ .rosukh-checkbox-box {
	background: var(--rosukh-primary);
	border-color: var(--rosukh-primary);
}

.rosukh-checkbox-item input[type="checkbox"]:checked ~ .rosukh-checkbox-box::after {
	content: "✓";
	color: #FFFFFF;
	font-size: 14px;
	font-weight: 900;
}

.rosukh-checkbox-item input[type="checkbox"]:checked {
	border-color: var(--rosukh-primary);
}

/* Radio Items Inline */
.rosukh-radio-inline {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
}

.rosukh-radio-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	padding: 10px 16px;
	border: 1.5px solid #E2E8F0;
	border-radius: var(--rosukh-radius-md);
	background: #FFFFFF;
	transition: all 0.2s ease;
	margin-bottom: 0 !important;
}

.rosukh-radio-item:hover {
	border-color: var(--rosukh-primary-border);
}

.rosukh-radio-item input[type="radio"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.rosukh-radio-circle {
	width: 18px;
	height: 18px;
	border: 2px solid #94A3B8;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: all 0.2s ease;
}

.rosukh-radio-item input[type="radio"]:checked ~ .rosukh-radio-circle {
	border-color: var(--rosukh-primary);
	background: var(--rosukh-primary);
}

.rosukh-radio-item input[type="radio"]:checked ~ .rosukh-radio-circle::after {
	content: "";
	width: 6px;
	height: 6px;
	background: #FFFFFF;
	border-radius: 50%;
}

.rosukh-radio-item input[type="radio"]:checked ~ .rosukh-radio-text {
	font-weight: 700;
	color: var(--rosukh-primary);
}

/* Agreement Boxes */
.rosukh-agreement-box {
	background: #F8FAFC;
	padding: 14px 18px;
	border: 1.5px solid #E2E8F0;
	border-radius: var(--rosukh-radius-md);
	margin-bottom: 16px;
	transition: border-color 0.2s ease;
}

.rosukh-agreement-box:hover {
	border-color: var(--rosukh-primary-border);
}

.rosukh-rules-card {
	background: #FEF3C7;
	border: 1px solid #FCD34D;
	border-radius: var(--rosukh-radius-md);
	padding: 18px;
	margin-bottom: 24px;
	color: #78350F;
}

.rosukh-rules-card-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}

.rosukh-rules-card-title h3 {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 800;
	color: #78350F;
}

.rosukh-rules-card-content p {
	margin: 6px 0;
	font-size: 0.92rem;
	line-height: 1.6;
}

/* Step Actions Buttons */
.rosukh-step-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid var(--rosukh-border);
}

.rosukh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 26px;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	border-radius: var(--rosukh-radius-md);
	border: none;
	cursor: pointer;
	transition: all 0.25s ease;
	text-decoration: none;
}

.rosukh-btn-primary {
	background: var(--rosukh-primary);
	color: #FFFFFF;
}

.rosukh-btn-primary:hover {
	background: var(--rosukh-primary-hover);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(22, 78, 120, 0.25);
	color: #FFFFFF;
}

.rosukh-btn-secondary {
	background: #F1F5F9;
	color: #475569;
}

.rosukh-btn-secondary:hover {
	background: #E2E8F0;
	color: #1E293B;
}

.rosukh-btn-submit {
	background: linear-gradient(135deg, var(--rosukh-accent) 0%, #E59500 100%);
	color: #FFFFFF;
	font-size: 1.1rem;
	padding: 15px 34px;
	box-shadow: 0 6px 18px rgba(245, 166, 35, 0.35);
}

.rosukh-btn-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(245, 166, 35, 0.45);
	color: #FFFFFF;
}

.rosukh-btn-outline {
	background: transparent;
	border: 1.5px solid var(--rosukh-primary);
	color: var(--rosukh-primary);
}

.rosukh-btn-outline:hover {
	background: var(--rosukh-primary);
	color: #FFFFFF;
}

/* Spinner */
.rosukh-spinner-circle {
	width: 18px;
	height: 18px;
	border: 3px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: #FFFFFF;
	animation: rosukhSpin 0.8s linear infinite;
	display: inline-block;
}

@keyframes rosukhSpin {
	to { transform: rotate(360deg); }
}

/* Alerts */
.rosukh-alert-box {
	padding: 16px 20px;
	border-radius: var(--rosukh-radius-md);
	margin-bottom: 25px;
	font-size: 0.95rem;
	line-height: 1.6;
}

.rosukh-alert-error {
	background: var(--rosukh-danger-light);
	border: 1px solid #FECACA;
	color: var(--rosukh-danger);
}

/* Success Screen & Telegram Action */
.rosukh-success-screen {
	animation: rosukhFadeIn 0.4s ease;
	text-align: center;
	padding: 20px 0;
}

.rosukh-success-card {
	background: #FFFFFF;
	border-radius: var(--rosukh-radius-lg);
	padding: 20px;
}

.rosukh-success-icon-wrap {
	margin-bottom: 20px;
}

.rosukh-checkmark {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	display: block;
	stroke-width: 3;
	stroke: var(--rosukh-success);
	stroke-miterlimit: 10;
	margin: 0 auto;
	box-shadow: inset 0px 0px 0px var(--rosukh-success);
	animation: rosukhFill 0.4s ease-in-out 0.4s forwards, rosukhScale 0.3s ease-in-out 0.9s both;
}

.rosukh-checkmark__circle {
	stroke-dasharray: 166;
	stroke-dashoffset: 166;
	stroke-width: 3;
	stroke-miterlimit: 10;
	stroke: var(--rosukh-success);
	fill: none;
	animation: rosukhStroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.rosukh-checkmark__check {
	transform-origin: 50% 50%;
	stroke-dasharray: 48;
	stroke-dashoffset: 48;
	animation: rosukhStroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes rosukhStroke { 100% { stroke-dashoffset: 0; } }
@keyframes rosukhScale { 0%, 100% { transform: none; } 50% { transform: scale3d(1.1, 1.1, 1); } }
@keyframes rosukhFill { 100% { box-shadow: inset 0px 0px 0px 40px rgba(5, 150, 105, 0.1); } }

.rosukh-success-title {
	font-size: 1.55rem;
	font-weight: 800;
	color: var(--rosukh-primary);
	margin: 0 0 10px 0;
	line-height: 1.4;
}

.rosukh-success-greeting {
	font-size: 1.15rem;
	color: var(--rosukh-text);
	margin-bottom: 12px;
}

.rosukh-success-greeting strong {
	color: var(--rosukh-primary);
}

.rosukh-success-message {
	font-size: 1rem;
	color: var(--rosukh-text-muted);
	line-height: 1.7;
	max-width: 650px;
	margin: 0 auto 30px auto;
}

/* Telegram Action Card */
.rosukh-telegram-action-card {
	background: linear-gradient(135deg, #0088cc 0%, #179cde 100%);
	color: #FFFFFF;
	padding: 30px 25px;
	border-radius: var(--rosukh-radius-lg);
	box-shadow: 0 15px 30px rgba(0, 136, 204, 0.3);
	margin: 25px auto 35px auto;
	max-width: 620px;
	position: relative;
	overflow: hidden;
	animation: rosukhPulseGlow 3s infinite alternate;
}

@keyframes rosukhPulseGlow {
	from { box-shadow: 0 12px 25px rgba(0, 136, 204, 0.25); }
	to   { box-shadow: 0 18px 40px rgba(0, 136, 204, 0.45); }
}

.rosukh-tg-icon-circle {
	width: 70px;
	height: 70px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 16px auto;
	color: #FFFFFF;
}

.rosukh-tg-text h3 {
	font-size: 1.4rem;
	font-weight: 800;
	color: #FFFFFF;
	margin: 0 0 8px 0;
}

.rosukh-tg-text p {
	font-size: 0.98rem;
	color: rgba(255, 255, 255, 0.9);
	margin: 0 0 20px 0;
}

.rosukh-btn-telegram {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: #FFFFFF;
	color: #0088cc;
	font-size: 1.15rem;
	font-weight: 800;
	padding: 16px 36px;
	border-radius: 50px;
	text-decoration: none;
	box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
	transition: all 0.3s ease;
}

.rosukh-btn-telegram:hover {
	background: #F0F9FF;
	transform: scale(1.04);
	color: #0077b5;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* Success Footer Action Buttons */
.rosukh-success-footer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: 28px;
}

.rosukh-btn-account {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 28px;
	font-size: 1.05rem;
	font-weight: 700;
	border-radius: var(--rosukh-radius-md);
	background: var(--rosukh-primary);
	color: #FFFFFF !important;
	text-decoration: none;
	transition: all 0.25s ease;
	box-shadow: 0 4px 14px rgba(22, 78, 120, 0.25);
}

.rosukh-btn-account:hover {
	background: var(--rosukh-primary-dark);
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(22, 78, 120, 0.35);
	color: #FFFFFF !important;
}

.rosukh-btn-account .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
}

/* Closed / Registered Notices */
.rosukh-closed-notice,
.rosukh-registered-notice {
	max-width: 600px;
	margin: 40px auto;
	padding: 35px 25px;
	background: #FFFFFF;
	border-radius: var(--rosukh-radius-lg);
	box-shadow: var(--rosukh-shadow);
	text-align: center;
	border: 1px solid var(--rosukh-border);
}

.rosukh-closed-icon,
.rosukh-registered-icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 15px auto;
}

.rosukh-closed-icon {
	background: #FEE2E2;
	color: var(--rosukh-danger);
}

.rosukh-registered-icon {
	background: var(--rosukh-success-light);
	color: var(--rosukh-success);
}

.rosukh-closed-icon .dashicons,
.rosukh-registered-icon .dashicons {
	font-size: 32px;
	width: 32px;
	height: 32px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
	.rosukh-form-container {
		padding: 20px 14px;
		margin: 10px auto;
		border-radius: var(--rosukh-radius-md);
		overflow: hidden;
		width: 100%;
		max-width: 100%;
	}

	.rosukh-header-brand {
		margin-bottom: 12px;
	}

	.rosukh-brand-logo {
		max-height: 52px;
	}

	.rosukh-form-title {
		font-size: 1.25rem !important; /* Fixed: Perfectly scaled title on mobile */
		line-height: 1.35;
		margin: 0 0 6px 0;
	}

	.rosukh-form-subtitle {
		font-size: 0.88rem;
		line-height: 1.45;
		margin: 0 0 16px 0;
	}

	.rosukh-intro-card {
		margin-bottom: 20px;
	}

	.rosukh-intro-card-header {
		padding: 12px 14px;
	}

	.rosukh-intro-title-wrap {
		font-size: 0.9rem;
	}

	.rosukh-intro-grid {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	/* Responsive Stepper Navigation: 100% width, zero horizontal scrolling */
	.rosukh-steps-nav {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 6px;
		margin-bottom: 14px;
		width: 100%;
		max-width: 100%;
		overflow: hidden;
	}

	.rosukh-step-item {
		flex: 0 0 auto;
		display: flex;
		align-items: center;
		gap: 6px;
		padding: 4px;
		border-radius: 50%;
		min-width: 0;
		background: transparent;
		border: none;
		box-shadow: none;
	}

	.rosukh-step-item:not(.is-active) .rosukh-step-details {
		display: none;
	}

	.rosukh-step-number {
		width: 32px;
		height: 32px;
		font-size: 0.85rem;
		flex-shrink: 0;
	}

	/* Active step on mobile expands with title pill */
	.rosukh-step-item.is-active {
		flex: 1 1 auto;
		background: var(--rosukh-primary-light);
		border: 1.5px solid var(--rosukh-primary);
		padding: 4px 10px 4px 8px;
		border-radius: 30px;
		box-shadow: 0 2px 8px rgba(22, 78, 120, 0.08);
	}

	.rosukh-step-item.is-active .rosukh-step-details {
		display: block;
		min-width: 0;
		flex: 1;
		overflow: hidden;
	}

	.rosukh-step-item.is-active .rosukh-step-title {
		font-size: 0.82rem;
		font-weight: 800;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		display: block;
		color: var(--rosukh-primary);
	}

	.rosukh-grid-2 {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.rosukh-step-heading {
		gap: 10px;
		margin-bottom: 18px;
		padding-bottom: 12px;
	}

	.rosukh-step-icon {
		font-size: 26px;
		width: 26px;
		height: 26px;
		flex-shrink: 0;
	}

	.rosukh-step-heading h2 {
		font-size: 1.15rem;
		line-height: 1.35;
		margin-bottom: 3px;
	}

	.rosukh-step-heading p {
		font-size: 0.85rem;
		line-height: 1.4;
	}

	.rosukh-input,
	.rosukh-select,
	.rosukh-textarea {
		padding: 11px 14px;
		font-size: 0.94rem;
	}

	.rosukh-checkbox-grid {
		grid-template-columns: 1fr;
	}

	.rosukh-radio-pills {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}

	.rosukh-step-actions {
		flex-direction: column-reverse;
		gap: 10px;
		margin-top: 22px;
		padding-top: 16px;
	}

	.rosukh-step-actions .rosukh-btn {
		width: 100%;
		padding: 12px 18px;
		font-size: 0.96rem;
	}

	.rosukh-btn-telegram {
		width: 100%;
		padding: 14px 20px;
		font-size: 1rem;
	}

	.rosukh-telegram-action-card {
		padding: 22px 14px;
		margin: 18px auto;
	}

	.rosukh-tg-text h3 {
		font-size: 1.15rem;
	}

	.rosukh-success-card {
		padding: 20px 14px;
	}

	.rosukh-success-title {
		font-size: 1.22rem !important;
		line-height: 1.4 !important;
		margin-bottom: 8px;
	}

	.rosukh-success-greeting {
		font-size: 0.98rem;
		margin-bottom: 10px;
	}

	.rosukh-success-message {
		font-size: 0.88rem;
		line-height: 1.6;
		margin-bottom: 20px;
	}

	.rosukh-success-footer {
		flex-direction: column;
		gap: 10px;
		width: 100%;
		margin-top: 22px;
	}

	.rosukh-success-footer .rosukh-btn,
	.rosukh-success-footer .rosukh-btn-account {
		width: 100%;
		justify-content: center;
		padding: 12px 18px;
		font-size: 0.96rem;
	}
}

@media (max-width: 480px) {
	.rosukh-form-container {
		padding: 15px 10px;
	}

	.rosukh-form-title {
		font-size: 1.12rem !important; /* ~18px for small screens */
		line-height: 1.35;
		margin-bottom: 4px;
	}

	.rosukh-form-subtitle {
		font-size: 0.8rem;
		margin-bottom: 12px;
	}

	.rosukh-step-number {
		width: 28px;
		height: 28px;
		font-size: 0.8rem;
	}

	.rosukh-step-item.is-active {
		padding: 3px 8px 3px 6px;
	}

	.rosukh-step-item.is-active .rosukh-step-title {
		font-size: 0.76rem;
	}

	.rosukh-success-title {
		font-size: 1.12rem !important;
		line-height: 1.38 !important;
	}

	.rosukh-checkmark {
		width: 62px;
		height: 62px;
	}

	.rosukh-success-card {
		padding: 16px 10px;
	}
}

/* Telegram Account Card & Linking Widget */
.rosukh-tg-account-card {
	background: #FFFFFF;
	border: 1px solid #E2E8F0;
	border-radius: var(--rosukh-radius-md, 12px);
	padding: 20px;
	margin: 20px 0;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
	direction: rtl;
	text-align: right;
}

.rosukh-tg-linked-status {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.rosukh-tg-linked-status.is-linked {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.rosukh-tg-status-icon {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #D1FAE5;
	color: #059669;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.rosukh-tg-status-icon .dashicons {
	font-size: 24px;
	width: 24px;
	height: 24px;
}

.rosukh-tg-status-info h4 {
	margin: 0 0 4px 0;
	font-size: 1.05rem;
	font-weight: 800;
	color: #164E78;
}

.rosukh-tg-status-info p {
	margin: 0 0 4px 0;
	font-size: 0.92rem;
	color: #4A5568;
}

.rosukh-linked-date {
	font-size: 0.82rem;
	color: #718096;
}

.rosukh-tg-link-action {
	flex-shrink: 0;
}

.rosukh-telegram-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: #2AABEE;
	color: #FFFFFF !important;
	text-decoration: none !important;
	padding: 12px 22px;
	border-radius: 10px;
	font-weight: 700;
	font-size: 0.96rem;
	transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
	box-shadow: 0 4px 10px rgba(42, 171, 238, 0.25);
}

.rosukh-telegram-btn:hover {
	background: #229ED9;
	color: #FFFFFF !important;
	transform: translateY(-2px);
	box-shadow: 0 6px 14px rgba(42, 171, 238, 0.35);
}

.rosukh-telegram-btn:active {
	transform: translateY(0);
}

.rosukh-tg-icon {
	display: flex;
	align-items: center;
}

/* Anti-Spam Honeypot (Invisible to humans, accessible to bots) */
.rosukh-hp-wrap {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

/* Cloudflare Turnstile Widget Container */
.rosukh-turnstile-wrap {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 22px 0 10px 0;
	padding: 14px;
	background: #F8FAFC;
	border: 1.5px solid #E2E8F0;
	border-radius: var(--rosukh-radius-md);
}
