@import "@wordpress/base-styles/breakpoints";
@import "@wordpress/base-styles/mixins";
@import "@wordpress/base-styles/variables";

.migration-contact-support-form {
	width: 827px;
	max-height: 100%;
	margin: 0;
	@include body-large;
	color: var(--color-neutral-100);

	@include breakpoint-deprecated( "<660px" ) {
		width: 100%;
	}

	.components-modal__content {
		padding: 0;

		> div {
			display: flex;
			flex-direction: column;
			justify-content: space-between;
			height: 100%;
		}
	}

	.components-text-control__input {
		padding: 7px 14px;
	}

	.reviews-ratings-stars__star:focus {
		outline: none;
	}

	.reviews-ratings-stars__star:focus-within {
		border-color: var(--color-primary);
		box-shadow: 0 0 0 2px var(--color-primary-10);
		border-radius: 4px;
	}

	@include break-medium {
		margin: auto;
	}
}

.migration-contact-support-form .form-fieldset {
	margin: 0;
}

.migration-contact-support-form__main {
	padding: 40px;
	gap: 24px;
	display: flex;
	flex-direction: column;
}

.migration-contact-support-form__title {
	@include heading-x-large;
	margin: 0;
	padding: 0;
}

.migration-contact-support-form__footer {
	padding: 24px 40px;
	text-align: right;
	background-color: var(--color-neutral-0);
	border-radius: 4px;
}

.migration-contact-support-form__close-button {
	position: absolute;
	inset-inline-end: 1rem;
	inset-block-start: 1rem;
	cursor: pointer;
	transition: scale 0.2s ease-in;
	max-height: 24px;

	&:hover {
		scale: 1.2;
	}

	&:focus-visible {
		border-color: var(--color-primary);
		outline: none;
		box-shadow: 0 0 0 2px var(--color-primary-10);
		border-radius: 4px;
	}
}

.button.is-primary.migration-contact-support-form__footer-submit:disabled {
	color: var(--color-neutral-20);
	background-color: var(--color-surface);
	border-color: var(--color-neutral-5);
}
