/* wawp-signup.css */
/* IBM Plex Sans Arabic – loaded from Google Fonts CDN (WOFF2, sanitizer-safe) */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;700&display=swap');


.rtl, [dir="rtl"] {
	font-family: 'IBM Plex Sans Arabic', sans-serif !important;
}

#wawp-signup-container {
	margin: auto;
}

#wawp-signup-branding {
	text-align: center;
	margin-bottom: 24px;
}

.wawp-signup-logo-container {
	text-align: center;
}

.wawp-signup-logo {
	width: auto;
	max-height: 80px;
	transition: transform 0.3s;
}

.wawp-signup-title {
	font-size: 30px;
	color: #141b38;
	line-height: 1.6;
	font-weight: bold;
	font-family: inherit;
	margin: 0;
}

.wawp-description {
	font-size: 16px;
	color: #434960;
	line-height: 1.6;
	margin: 0;
}


.wawp-form-group {
	margin-bottom: 0px;
	position: relative;
	display: flex;
	flex-direction: column;
}

.wawp-form-group .wawp-form-control,
.wawp-form-group input[type="text"],
.wawp-form-group input[type="email"],
.wawp-form-group input[type="password"],
.wawp-form-group input[type="tel"],
.wawp-form-group .iti input[type="tel"],
.wawp-form-group textarea {
	padding: 0 1rem !important;
	border: 1px solid #ccc !important;
	border-radius: 8px !important;
	font-size: 14px !important;
	transition: border-color 0.3s !important;
	background-color: #fff !important;
	font-family: inherit !important;
	min-height: 48px !important;
	max-height: 48px !important;
	flex: 1 !important;
	width: 100% !important;
	margin-bottom: 10px !important;
	box-sizing: border-box !important;
}

.wawp-form-group .iti input[type="tel"] {
	padding-left: 50px !important;
}

.wawp-form-group .wawp-form-control:focus,
.wawp-form-group input:focus,
.wawp-form-group textarea:focus {
	border-color: #004444 !important;
	outline: none !important;
	box-shadow: 0 0 5px rgba(0, 68, 68, 0.2) !important;
}

.iti {
	width: 100% !important;
	height: 48px !important;
	display: block !important;
}

.iti__country-container {
	height: 100% !important;
	display: flex !important;
	align-items: center !important;
}

.iti__selected-country {
	height: 100% !important;
	display: flex !important;
	align-items: center !important;
}

.wawp-form-group label {
	display: block;
	margin-bottom: 6px;
	font-weight: 500;
	color: #434960;
	font-size: 12px;
	text-transform: capitalize;
}

.wawp-required {
	color: #e74c3c;
	margin-left: 5px;
}

@media (max-width: 1024px) {

	.wawp-form-group .wawp-form-control,
	.wawp-form-group input[type="text"],
	.wawp-form-group input[type="email"],
	.wawp-form-group input[type="password"],
	.wawp-form-group input[type="tel"],
	.wawp-form-group .iti input[type="tel"],
	.wawp-form-group textarea {
		min-height: 48px !important;
		max-height: 48px !important;
		border-radius: 8px !important;
		font-size: 14px !important;
		padding: 0 1rem !important;
	}

	.wawp-form-group .iti input[type="tel"] {
		padding-left: 50px !important;
	}
}

.wawp-error-message {
	color: #dc2626;
	font-size: 13px;
	margin-top: 4px;
	display: none;
	margin-bottom: 12px;
	font-weight: 600;
}

.wawp-success-message {
	box-sizing: border-box;
	width: 100%;
}


.ri-loader-5-line {
	font-size: 28px;
	animation: spin 1s ease-in-out infinite;
}

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


.wawp-toggle-password {
	position: absolute;
	inset-inline-end: 16px;
	top: 50%;
	transform: translateY(-50%);
	cursor: pointer;
	font-size: 20px;
	color: #555;
}

.wawp-toggle-password:hover {
	color: #000;
}


.wawp-password-container {
	position: relative;
	display: flex;
	flex-direction: column;
}

#password-strength-bar {
	width: 100%;
	position: relative;
	background-color: #ededed;
	height: 6px;
	border-radius: 4px;
	margin-top: 8px;
}

.wawp-password-strength-text {
	font-size: 12px;
	margin-top: 8px;
	text-transform: capitalize;
	font-weight: 600;
	line-height: 1;
	transition: opacity 0.3s ease;
}

#password-requirements {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	list-style-type: none;
	padding: 12px;
	font-size: 12px;
	line-height: 1.1;
	color: #434960;
	margin-top: 16px;
	margin-bottom: 0;
	font-weight: 500;
	background: #f1f1f1;
	border-radius: 8px;
	border: 1px solid #ddd;
}

.wawp-password-requirements .wawp-requirement {
	display: flex;
	align-items: center;
	gap: 4px;
	white-space: nowrap;
	width: calc((100% - 16px)/2);
}

.wawp-password-requirements .wawp-requirement .wawp-check {
	font-size: 18px;
	text-align: center;
	height: 18px;
}

.text-success {
	color: #16a34a;
}

.text-danger {
	color: #b3b3b3;
}

.wawp-submit-button.wawp-btn:hover {
	opacity: 1 !important;
}

.wawp-password-container input[type="password"] {
	font-size: 11px !important;
	letter-spacing: .1rem;
}

/* OTP Section Styles */
#wawp-otp-section {
	max-width: 400px;
	margin: 0 auto;
	display: none;
}

.wawp-otp-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 24px;
}

.wawp-otp-header b {
	color: #141b38;
}

.wawp-otp-resend {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	font-size: 14px;
	line-height: 1.6;
	white-space: nowrap;
	color: #434960;
	margin: 0;
	margin-top: 16px;
	margin-bottom: 0;
}

.wawp-icon-wrapper {
	display: flex;
	padding: 8px;
	border-radius: 999px;
	background: linear-gradient(180deg, #e2e8f0, transparent);
	margin-bottom: 8px;
}

.wawp-otp-header #otp-icon {
	font-size: 52px;
	line-height: 1;
	padding: 12px;
	background: linear-gradient(180deg, #fff, transparent);
	border-radius: 999px;
	box-shadow: 0 -4px 2px 0 rgba(0, 0, 0, 0.05);
	color: #475569;
}

.wawp-otp-header .ri-whatsapp-line {
	color: #22c55e !important;
}

#wawp-otp-sent-heading {
	font-size: 30px;
	color: #141b38;
	line-height: 1.6;
	font-weight: bold;
	font-family: inherit;
	margin: 0;
}

#wawp-otp-sent-message {
	font-size: 16px;
	color: #434960;
	line-height: 1.6;
	margin: 0;
	text-align: center;
}

/* Button Styles */
.wawp-edit-contact-btn {
	cursor: pointer;
	font-weight: 500;
	color: #4a33fa;
	text-decoration: none;
	transition: opacity .5s ease;
}

.wawp-edit-contact-btn:hover {
	opacity: .7;
}

.wawp-resend-otp-btn {
	background: #f1f1f1;
	color: #141b38 !important;
	border: 1px solid #ddd !important;
	margin-top: 0px;
}

.wawp-resend-otp-btn:hover {
	background: #f4f4f4;
}

/* Switch Button Styles */
.switch-button {
	display: flex;
	align-items: center;
	margin-bottom: 10px;
}

.switch-button input[type="checkbox"] {
	display: none;
}

.switch-button label {
	position: relative;
	display: inline-block;
	width: 60px;
	height: 34px;
	cursor: pointer;
}

.switch-button label i {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	transition: opacity 0.2s;
	font-size: 1.2em;
	pointer-events: none;
}

.switch-button input[type="checkbox"]:checked+label i.bi-toggle-on {
	opacity: 1;
}

.switch-button input[type="checkbox"]:checked+label i.bi-toggle-off {
	opacity: 0;
}

.switch-button label i.bi-toggle-off {
	opacity: 1;
}

.switch-button label i.bi-toggle-on {
	opacity: 0;
}

.switch-button label::after {
	content: "";
	position: absolute;
	display: block;
	width: 26px;
	height: 26px;
	inset-inline-start: 4px;
	top: 4px;
	background-color: white;
	border-radius: 50%;
	transition: transform 0.2s, inset-inline-start 0.2s;
	box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
}

.switch-button input[type="checkbox"]:checked+label::after {
	transform: translateX(26px);
}

.rtl .switch-button input[type="checkbox"]:checked+label::after {
	transform: translateX(-26px);
}

/* Admin Settings Page Styles */
.wawp-admin-page .wawp-fields-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 15px;
}

.wawp-admin-page .wawp-fields-table th,
.wawp-admin-page .wawp-fields-table td {
	border: 1px solid #dddddd;
	padding: 10px;
	text-align: left;
}

.wawp-admin-page .wawp-fields-table th {
	background-color: #f1f1f1;
}

.wawp-admin-page .wawp-fields-table td {
	vertical-align: middle;
}

.wawp-admin-page .wawp-admin-select,
.wawp-admin-page .wawp-admin-textarea {
	width: 100%;
	max-width: 400px;
	padding: 8px;
	border: 1px solid #cccccc;
	border-radius: 4px;
	box-sizing: border-box;
}

.wawp-admin-page .wawp-admin-textarea {
	resize: vertical;
}

.wawp-admin-page .description {
	font-size: 0.9em;
	color: #555555;
	margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 600px) {
	.wawp-form {
		padding: 15px;
	}

	.wawp-toggle-password {
		top: 50%;
		right: 10px;
		transform: translateY(-50%);
	}

	.switch-button label {
		width: 50px;
		height: 28px;
	}

	.switch-button label::after {
		width: 22px;
		height: 22px;
		left: 3px;
		top: 3px;
	}

	.switch-button label i.bi-toggle-on,
	.switch-button label i.bi-toggle-off {
		font-size: 1em;
	}

	.wawp-admin-page .wawp-fields-table th,
	.wawp-admin-page .wawp-fields-table td {
		padding: 8px;
	}
}

/* wawp-admin.css */

/* Style for the drag handle */
.wawp-drag-handle {
	width: 30px;
	text-align: center;
	cursor: move;
}

/* Optional: Highlight row on hover */
.wawp-fields-table tbody tr:hover {
	background-color: #f9f9f9;
}

/* Form state helpers (moved from inline PHP) */
.disabled-method {
	opacity: 0.5;
	cursor: not-allowed !important;
	pointer-events: none;
}

.method-error {
	color: #d63638;
	font-size: 11px;
	display: block;
	margin-top: 4px;
	font-weight: normal;
}

.wawp-field-error {
	border-color: #dc2626 !important;
	background-color: #fffafb !important;
}

.wawp-checking {
	border-color: #3b82f6 !important;
	animation: wawp-pulse 1.5s infinite;
}

@keyframes wawp-pulse {
	0% { opacity: 1; }
	50% { opacity: 0.6; }
	100% { opacity: 1; }
}