/**
 * TelecomRoute Contact Page
 */

/* =========================================================
   CONTACT PAGE
   ========================================================= */

.tr-contact-page {
	padding: 70px 0;
}

.tr-contact-header {
	margin-bottom: 40px;
	text-align: center;
}

.tr-contact-header h1 {
	margin: 0;
	font-size: 42px;
	line-height: 1.2;
}

.tr-contact-content {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
}


/* =========================================================
   CONTACT FORM WRAPPER
   ========================================================= */

.tr-contact-form-wrap {
	width: 100%;
	padding: 40px;
	box-sizing: border-box;

	border: 1px solid #e5e7eb;
	border-radius: 16px;

	background: #ffffff;

	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}


/* =========================================================
   FORM HEADER
   ========================================================= */

.tr-contact-form-header {
	margin-bottom: 32px;
}

.tr-contact-form-header h2 {
	margin: 0 0 10px;
	font-size: 30px;
	line-height: 1.3;
}

.tr-contact-form-header p {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
}


/* =========================================================
   FORM GRID
   ========================================================= */

.tr-form-grid {
	display: grid !important;

	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

	column-gap: 24px !important;
	row-gap: 22px !important;

	width: 100%;
}


/* =========================================================
   FORM FIELDS
   ========================================================= */

.tr-form-field {
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}


/*
 * Full-width fields:
 * Service
 * Number of Agents / Users
 * Requirement
 */

.tr-form-field-full {
	grid-column: 1 / -1 !important;
	width: 100%;
}


/* =========================================================
   LABELS
   ========================================================= */

.tr-form-field label {
	display: block;

	margin: 0 0 8px;

	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}

.tr-form-field label span {
	margin-left: 3px;
}


/* =========================================================
   INPUTS / SELECT / TEXTAREA
   ========================================================= */

.tr-form-field input,
.tr-form-field select,
.tr-form-field textarea {
	display: block;

	width: 100%;
	max-width: 100%;

	box-sizing: border-box;

	padding: 13px 15px;

	border: 1px solid #d1d5db;
	border-radius: 8px;

	background: #ffffff;

	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;

	color: #17365f;

	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}


/* =========================================================
   INPUT PLACEHOLDER
   ========================================================= */

.tr-form-field input::placeholder,
.tr-form-field textarea::placeholder {
	color: #94a3b8;
	opacity: 1;
}


/* =========================================================
   INPUT FOCUS
   ========================================================= */

.tr-form-field input:focus,
.tr-form-field select:focus,
.tr-form-field textarea:focus {
	outline: none;

	border-color: #2563eb;

	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}


/* =========================================================
   SELECT
   ========================================================= */

.tr-form-field select {
	display: block;
	width: 100%;
	height: 48px;
	min-height: 48px;
	padding: 0 42px 0 15px;

	cursor: pointer;

	line-height: 48px;
	vertical-align: middle;

	box-sizing: border-box;
}


/* =========================================================
   TEXTAREA
   ========================================================= */

.tr-form-field textarea {
	min-height: 160px;

	resize: vertical;
}


/* =========================================================
   SUBMIT AREA
   ========================================================= */

.tr-form-actions {
	margin-top: 30px;
}


/* =========================================================
   SUBMIT BUTTON
   ========================================================= */

.tr-contact-submit {
	display: inline-flex;

	align-items: center;
	justify-content: center;

	min-height: 48px;

	padding: 12px 30px;

	border: 0;
	border-radius: 8px;

	background: #2563eb;

	color: #ffffff;

	font-family: inherit;
	font-size: 16px;
	font-weight: 600;

	cursor: pointer;

	transition:
		background 0.2s ease,
		transform 0.2s ease,
		opacity 0.2s ease;
}

.tr-contact-submit:hover {
	opacity: 0.92;

	transform: translateY(-1px);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

	.tr-contact-content {
		max-width: 100%;
	}

	.tr-contact-form-wrap {
		padding: 30px;
	}

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

	.tr-contact-page {
		padding: 45px 0;
	}

	.tr-contact-header {
		margin-bottom: 30px;
		text-align: left;
	}

	.tr-contact-header h1 {
		font-size: 32px;
	}

	.tr-contact-form-wrap {
		padding: 25px 20px;

		border-radius: 12px;
	}

	.tr-contact-form-header {
		margin-bottom: 25px;
	}

	.tr-contact-form-header h2 {
		font-size: 25px;
	}

	.tr-form-grid {
		grid-template-columns: 1fr !important;

		column-gap: 0 !important;
		row-gap: 20px !important;
	}

	.tr-form-field-full {
		grid-column: auto !important;
	}

	.tr-contact-submit {
		width: 100%;
	}

}

/* Force normal contact fields into the desktop grid */
.tr-form-grid .tr-form-field:not(.tr-form-field-full) {
	grid-column: auto !important;
	width: 100% !important;
}

/* Keep only designated fields full width */
.tr-form-grid .tr-form-field-full {
	grid-column: 1 / -1 !important;
	width: 100% !important;
}

@media (max-width: 767px) {

	.tr-form-grid .tr-form-field:not(.tr-form-field-full) {
		grid-column: auto !important;
		width: 100% !important;
	}

	.tr-form-grid .tr-form-field-full {
		grid-column: auto !important;
		width: 100% !important;
	}

}

/* =========================================================
   CONTACT FORM MESSAGES
   ========================================================= */

.tr-contact-message {
	margin-bottom: 30px;
	padding: 16px 20px;
	border-radius: 8px;
	font-size: 15px;
	line-height: 1.6;
}

.tr-contact-message ul {
	margin: 10px 0 0 20px;
	padding: 0;
}

.tr-contact-message p {
	margin: 12px 0 0;
}

.tr-contact-message a {
	font-weight: 600;
	text-decoration: none;
}

.tr-contact-message-success {
	border: 1px solid #b7e4c7;
	background: #f0fff4;
	color: #166534;
}

.tr-contact-message-success a {
	color: #166534;
}

.tr-contact-message-error {
	border: 1px solid #fecaca;
	background: #fef2f2;
	color: #991b1b;
}

.tr-contact-message-error a {
	color: #991b1b;
}

/* =========================================================
   CONTACT FORM HONEYPOT
   ========================================================= */

.tr-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.tr-honeypot input {
	position: absolute !important;
	left: -9999px !important;
}