/* ——— فرم حقوقی (حساب کاربری Studiare / WooCommerce) ——— */
.woocommerce-MyAccount-content .slb-form-wrap,
.woocommerce-account .woocommerce-MyAccount-content .slb-form-wrap {
	max-width: 38rem;
	width: 100%;
	margin: 0 0 1.75rem;
}

.woocommerce-MyAccount-content .slb-status {
	max-width: 38rem;
	margin: 0 0 1rem;
}

.slb-form-wrap {
	max-width: 38rem;
	margin: 0 auto 1.75rem;
	width: 100%;
	box-sizing: border-box;
}

.slb-form-title {
	margin: 0 0 1rem;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.4;
}

.slb-status {
	max-width: 38rem;
	margin: 0 auto 1rem;
}

.slb-legal-form {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 1.25rem 1.5rem 1.5rem;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	box-sizing: border-box;
}

.woocommerce-MyAccount-content .slb-legal-form .slb-form-grid,
.slb-form-wrap .slb-form-grid,
.slb-legal-form .slb-form-grid {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 1rem 1.125rem;
	width: 100%;
}

.slb-field--full {
	grid-column: 1 / -1;
}

.slb-field {
	margin: 0;
	min-width: 0;
	width: 100%;
	float: none !important;
}

.woocommerce-MyAccount-content .slb-field label,
.slb-field label {
	display: block;
	font-weight: 600;
	font-size: 0.875rem;
	margin-bottom: 0.4rem;
	color: #374151;
}

.slb-req {
	color: #dc2626;
	font-weight: 700;
}

.woocommerce-MyAccount-content .slb-field input[type="text"],
.woocommerce-MyAccount-content .slb-field textarea,
.slb-field input[type="text"],
.slb-field textarea {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
	padding: 0.55rem 0.75rem;
	font-size: 0.9375rem;
	line-height: 1.45;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.slb-field input[type="text"]:focus,
.slb-field textarea:focus {
	border-color: #6366f1;
	outline: none;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.slb-field textarea {
	resize: vertical;
	min-height: 5rem;
}

.slb-field-hint {
	margin: 0 0 0.5rem;
	font-size: 0.8125rem;
	color: #6b7280;
	line-height: 1.5;
}

.slb-file-input-visible {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	font-size: 0.875rem;
	padding: 0.35rem 0;
}

.slb-existing-docs-title {
	margin: 0.75rem 0 0.35rem;
	font-size: 0.8125rem;
	color: #4b5563;
}

.slb-form-actions {
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid #e5e7eb;
	text-align: right;
}

.slb-form-actions .slb-submit {
	min-width: 10rem;
	padding: 0.55rem 1.25rem !important;
	height: auto !important;
}

@media (max-width: 720px) {
	.woocommerce-MyAccount-content .slb-legal-form .slb-form-grid,
	.slb-form-wrap .slb-form-grid,
	.slb-legal-form .slb-form-grid {
		grid-template-columns: 1fr !important;
	}

	.slb-legal-form {
		padding: 1rem 1rem 1.25rem;
	}
}

.slb-notice {
	padding: 0.75rem 1rem;
	border-radius: 6px;
	margin-bottom: 1rem;
	border: 1px solid transparent;
	font-size: 0.9375rem;
	line-height: 1.55;
}

.slb-notice--info {
	background: #eef6ff;
	border-color: #b6d4fe;
}

.slb-notice--success {
	background: #ecfdf3;
	border-color: #a7f3d0;
}

.slb-notice--warning {
	background: #fffbeb;
	border-color: #fde68a;
}

.slb-notice--error {
	background: #fef2f2;
	border-color: #fecaca;
}

.slb-bookly-gate {
	max-width: 38rem;
	margin: 2rem auto;
	padding: 1.25rem 1.5rem;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	line-height: 1.7;
}

.slb-doc-list {
	list-style: none;
	margin: 0.65rem 0 0;
	padding: 0;
	font-size: 0.875rem;
}

.slb-doc-list li {
	margin: 0.35rem 0;
	padding: 0.35rem 0.5rem;
	background: #f3f4f6;
	border-radius: 4px;
}

.slb-doc-list .slb-remove-doc {
	margin-right: 0.5rem;
}
