/*
 * Copyright (c) 2022 Ford Motor Company
 * All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@use '../../../../../Styles/main';

.feedback-form {
	@include main.breakpoint-medium {
		width: 450px;
	}

	.section {
		width: 100%;
		margin-top: 12px;
	}

	.label {
		font-weight: bold;
		text-transform: capitalize;
	}

	.required-field {
		color: main.$red;
		font-weight: bold;
		font-size: 1.5rem;
	}

	.comments-section {
		padding: 0 12px;
		cursor: default;

		.comments-textarea {
			width: 100%;
			height: 125px;
			margin: 12px 0 0;
			padding: 12px;

			color: inherit;
			font-family: inherit;
			font-weight: bold;
			font-size: 0.9rem;

			background-color: inherit;
			border: 5px main.$blue solid;
			border-radius: 6px;
			outline: none;

			resize: none;

			@media only screen and (max-width: 610px) {
				height: 85px;
				margin-top: 6px;

				font-size: 1rem;
			}
		}
	}

	.feedback-email-section {
		margin: 1.5rem 0;
		padding: 0 12px;

		cursor: default;

		.label {
			color: rgba(main.$asphalt, 0.4);
		}

		.email-input {
			width: 100%;
			margin: 12px 0 0;
			padding: 0 0 3px;

			color: inherit;
			font-family: inherit;
			font-weight: bold;
			font-size: 0.9rem;

			background-color: inherit;
			border: 0;
			border-bottom: 4px rgba(main.$asphalt, 0.15) solid;
			outline: none;

			@media only screen and (max-width: 610px) {
				margin-top: 6px;
				font-size: 1rem;
			}
		}
	}
}

@include main.dark-theme {
	.feedback-form {
		.comments-section {
			.label {
				color: main.$off-white;
			}

			.comments-textarea {
				color: main.$off-white;
			}
		}

		.feedback-email-section {
			.label {
				color: rgba(main.$off-white, 0.4);
			}

			.email-input {
				color: main.$off-white;
				border-bottom-color: rgba(main.$off-white, 0.15);
			}
		}
	}
}
