/* TM Inquiry Form */
.tm-form {
	padding: 40px;
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-radius);
	background: var(--tm-white);
	box-shadow: var(--tm-shadow);
}

.tm-form__title {
	margin: 0;
	color: var(--tm-carbon);
	font-family: var(--tm-font-serif);
	font-size: 26px;
	font-weight: 700;
	text-transform: uppercase;
}

.tm-form__intro {
	margin: 10px 0 0;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--tm-line);
	color: var(--tm-steel);
	font-size: 13.5px;
	line-height: 1.6;
}

.tm-form__form {
	margin-top: 28px;
}

.tm-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 22px;
}

.tm-form__field--message,
.tm-form__field--attachment {
	grid-column: 1 / -1;
}

.tm-form__field--attachment {
	margin-top: 22px;
}

.tm-form__field label,
.tm-form__label {
	display: block;
	margin-bottom: 8px;
	color: var(--tm-carbon);
	font-family: var(--tm-font-cond);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.tm-form__label em {
	color: var(--tm-steel);
	font-style: normal;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}

.tm-form__req {
	color: var(--tm-red);
}

.tm-form .tm-form__field input[type="text"],
.tm-form .tm-form__field input[type="email"],
.tm-form .tm-form__field input[type="tel"],
.tm-form .tm-form__field textarea {
	width: 100%;
	min-height: 46px;
	padding: 12px 14px;
	border: 1px solid #D5DEE7;
	border-radius: var(--tm-radius-sm);
	background: #F8FAFC;
	box-shadow: none;
	color: var(--tm-carbon);
	font-family: var(--tm-font);
	font-size: 14px;
	line-height: 1.5;
	transition: border-color .2s, background-color .2s, box-shadow .2s;
}

.tm-form .tm-form__field textarea {
	min-height: 130px;
	resize: vertical;
}

.tm-form .tm-form__field input::placeholder,
.tm-form .tm-form__field textarea::placeholder {
	color: #94A3B8;
}

.tm-form .tm-form__field input:focus,
.tm-form .tm-form__field textarea:focus {
	border-color: var(--tm-red);
	background: var(--tm-white);
	outline: none;
	box-shadow: 0 0 0 3px rgba(144, 16, 16, .1);
}

.tm-form__field.has-error input,
.tm-form__field.has-error textarea,
.tm-form__field.has-error .tm-form__drop {
	border-color: var(--tm-red-bright);
	background: #FFF6F6;
}

.tm-form__error {
	min-height: 0;
	margin: 6px 0 0;
	color: var(--tm-red-bright);
	font-size: 12.5px;
}

.tm-form__error:empty {
	display: none;
}

/* Kéo thả file */
.tm-form .tm-form__drop {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 26px 20px;
	border: 1.5px dashed #CBD5E1;
	border-radius: var(--tm-radius-sm);
	background: #FAFBFC;
	color: var(--tm-carbon);
	text-align: center;
	cursor: pointer;
	transition: border-color .2s, background-color .2s;
	text-transform: none !important;
	letter-spacing: 0 !important;
}

.tm-form .tm-form__drop:hover,
.tm-form .tm-form__drop.is-dragover {
	border-color: var(--tm-red);
	background: #FFF8F8;
}

.tm-form__drop input[type="file"] {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.tm-form__drop:focus-within {
	outline: 2px solid var(--tm-brass);
	outline-offset: 2px;
}

.tm-form__drop-icon {
	width: 26px;
	height: 26px;
	color: var(--tm-steel);
}

.tm-form__drop-title {
	font-family: var(--tm-font);
	font-size: 13.5px;
	font-weight: 600;
}

.tm-form__drop-hint {
	color: var(--tm-steel);
	font-family: var(--tm-font);
	font-size: 12px;
	font-weight: 400;
}

.tm-form__drop-browse {
	margin-top: 4px;
	color: var(--tm-red);
	font-family: var(--tm-font-cond);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	text-decoration: underline;
	text-transform: uppercase;
}

.tm-form__file {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	padding: 6px 8px 6px 12px;
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-radius-sm);
	background: var(--tm-white);
	font-family: var(--tm-font);
	font-size: 13px;
	font-weight: 600;
}

.tm-form__file[hidden] {
	display: none;
}

.tm-form__file .tm-icon {
	width: 16px;
	height: 16px;
	color: var(--tm-red);
}

.tm-form__file-remove {
	display: inline-flex;
	padding: 4px;
	border: 0;
	background: transparent;
	color: var(--tm-steel);
	cursor: pointer;
}

.tm-form__file-remove:hover {
	background: transparent;
	color: var(--tm-red);
}

.tm-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.tm-form .tm-form__submit {
	width: 100%;
	min-height: 52px;
	margin-top: 26px;
	font-size: 14px;
}

.tm-form__submit.is-loading {
	pointer-events: none;
	opacity: .75;
}

.tm-form__submit.is-loading .tm-btn__icon {
	animation: tm-spin .8s linear infinite;
}

@keyframes tm-spin {
	to { transform: rotate(360deg); }
}

.tm-form__privacy {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 14px 0 0;
	color: var(--tm-steel);
	font-size: 12px;
	line-height: 1.5;
}

.tm-form__privacy .tm-icon {
	width: 16px;
	height: 16px;
	flex: none;
	color: var(--tm-brass);
}

.tm-form__status {
	margin-top: 18px;
	padding: 14px 16px;
	border-left: 3px solid var(--tm-red);
	border-radius: 2px;
	background: #FFF6F6;
	color: var(--tm-carbon);
	font-size: 14px;
	line-height: 1.5;
}

.tm-form__status.is-success {
	border-color: #16A34A;
	background: #F0FDF4;
}

@media (max-width: 767px) {
	.tm-form {
		padding: 24px 18px;
	}

	.tm-form__grid {
		grid-template-columns: 1fr;
	}
}
