/**
 * Therapist registration form styles.
 */

.mhn-dir-registration {
	max-width: 48rem;
	margin: 0 auto;
}

.mhn-dir-form {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.mhn-dir-section {
	border: 1px solid #e2e8f0;
	border-radius: 0.5rem;
	padding: 1.25rem 1.5rem;
	margin: 0;
}

.mhn-dir-section legend {
	font-weight: 600;
	font-size: 1.125rem;
	padding: 0 0.25rem;
}

.mhn-dir-field {
	margin: 0 0 1rem;
}

.mhn-dir-conditional {
	overflow: hidden;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.mhn-dir-conditional[hidden]:not( .is-mhn-conditional-open ) {
	display: none;
}

.mhn-dir-conditional.is-mhn-conditional-open:not( .is-mhn-conditional-visible ) {
	opacity: 0;
	transform: translateY( -0.5rem );
}

.mhn-dir-conditional.is-mhn-conditional-open.is-mhn-conditional-visible {
	opacity: 1;
	transform: translateY( 0 );
}

@media ( prefers-reduced-motion: reduce ) {
	.mhn-dir-conditional {
		transition: none;
	}
}

.mhn-dir-field label,
.mhn-dir-field-label {
	display: block;
	font-weight: 500;
	margin-bottom: 0.35rem;
}

.mhn-dir-field input[type="text"],
.mhn-dir-field input[type="email"],
.mhn-dir-field input[type="url"],
.mhn-dir-field input[type="number"],
.mhn-dir-field input[type="file"],
.mhn-dir-field select,
.mhn-dir-field textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 0.5rem 0.65rem;
	border: 1px solid #cbd5e1;
	border-radius: 0.25rem;
}

.mhn-dir-field textarea {
	min-height: 8rem;
	resize: vertical;
}

.mhn-dir-field .required {
	color: #b91c1c;
}

.mhn-dir-help {
	margin: 0 0 0.75rem;
	color: #64748b;
	font-size: 0.9rem;
}

.mhn-dir-loading,
.mhn-dir-error {
	color: #64748b;
	font-size: 0.9rem;
}

.mhn-dir-error {
	color: #b91c1c;
}

select[data-mhn-location]:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.mhn-dir-checkbox-grid {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.mhn-dir-checkbox-grid--cols {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 14rem, 1fr ) );
	gap: 0.5rem 1rem;
}

.mhn-dir-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.4rem;
	font-weight: 400;
	cursor: pointer;
}

.mhn-dir-checkbox input {
	margin-top: 0.2rem;
	flex-shrink: 0;
}

.mhn-dir-specialty-group {
	margin-bottom: 1.25rem;
}

.mhn-dir-specialty-group__title {
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 0.5rem;
}

.mhn-dir-form-message {
	padding: 0.75rem 1rem;
	border-radius: 0.25rem;
	margin-bottom: 1rem;
}

.mhn-dir-form-message--error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.mhn-dir-form-message--success {
	background: #f0fdf4;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.mhn-dir-submit {
	margin: 0;
}

.mhn-dir-button {
	background: #1e40af;
	color: #fff;
	border: none;
	border-radius: 0.25rem;
	padding: 0.65rem 1.25rem;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
}

.mhn-dir-button:hover:not(:disabled) {
	background: #1d4ed8;
}

.mhn-dir-button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.mhn-dir-success {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 2rem 1.5rem;
	box-sizing: border-box;
}

.mhn-dir-success__title {
	margin: 0 0 1rem;
	font-size: clamp( 1.5rem, 4vw, 2rem );
	font-weight: 700;
	line-height: 1.25;
}

.mhn-dir-success__subtitle {
	margin: 0;
	max-width: 36rem;
	font-size: 1.0625rem;
	line-height: 1.6;
	color: #475569;
}

@media ( max-width: 640px ) {
	.mhn-dir-checkbox-grid--cols {
		grid-template-columns: 1fr;
	}
}
