/* TerraVault Quote & Contact Forms — front-end styling
   Palette follows the TerraVault Logistics theme: navy & gold */

:root {
	--tvqc-navy: var(--navy, #0B1D33);
	--tvqc-navy-light: var(--navy-mid, #14304D);
	--tvqc-gold: var(--gold, #C9A227);
	--tvqc-gold-light: var(--gold-light, #E6C567);
	--tvqc-text: var(--ink, #16181B);
	--tvqc-border: var(--line, rgba(201, 162, 39, 0.35));
	--tvqc-error: #b3261e;
	--tvqc-success: #1e6b3c;
	--tvqc-radius: var(--radius, 2px);
}

.tvqc-form-wrap {
	background: #ffffff;
	border: 1px solid var(--tvqc-border);
	border-radius: var(--tvqc-radius);
	padding: 28px 26px;
	max-width: 640px;
	box-shadow: 0 2px 14px rgba(10, 26, 51, 0.06);
	font-family: inherit;
}

.tvqc-form-title {
	margin: 0 0 6px;
	color: var(--tvqc-navy);
	font-size: 22px;
	font-weight: 700;
	border-left: 4px solid var(--tvqc-gold);
	padding-left: 12px;
}

.tvqc-form-sub {
	margin: 0 0 20px;
	color: #555;
	font-size: 14.5px;
	line-height: 1.5;
}

.tvqc-form .tvqc-row {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.tvqc-form .tvqc-field {
	flex: 1 1 240px;
	margin-bottom: 16px;
	display: flex;
	flex-direction: column;
}

.tvqc-form label {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--tvqc-navy);
	margin-bottom: 6px;
}

.tvqc-form label .req {
	color: var(--tvqc-error);
}

.tvqc-form input[type="text"],
.tvqc-form input[type="email"],
.tvqc-form input[type="tel"],
.tvqc-form select,
.tvqc-form textarea {
	border: 1px solid var(--tvqc-border);
	border-radius: 6px;
	padding: 10px 12px;
	font-size: 14.5px;
	color: var(--tvqc-text);
	background: #fbfbfc;
	font-family: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	width: 100%;
	box-sizing: border-box;
}

.tvqc-form input:focus,
.tvqc-form select:focus,
.tvqc-form textarea:focus {
	outline: none;
	border-color: var(--tvqc-gold);
	box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
	background: #fff;
}

.tvqc-form textarea {
	resize: vertical;
	min-height: 90px;
}

.tvqc-hp {
	position: absolute;
	left: -9999px;
	top: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.tvqc-submit-btn {
	background: var(--tvqc-navy);
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 13px 28px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.2px;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease;
}

.tvqc-submit-btn:hover {
	background: var(--tvqc-navy-light);
}

.tvqc-submit-btn:active {
	transform: translateY(1px);
}

.tvqc-submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.tvqc-submit-btn::after {
	content: "";
}

.tvqc-status {
	display: none;
	border-radius: 6px;
	padding: 11px 14px;
	font-size: 14px;
	margin-bottom: 16px;
	line-height: 1.4;
}

.tvqc-status.is-visible {
	display: block;
}

.tvqc-status.is-success {
	background: #eaf6ee;
	color: var(--tvqc-success);
	border: 1px solid #bfe4cb;
}

.tvqc-status.is-error {
	background: #fbeceb;
	color: var(--tvqc-error);
	border: 1px solid #f0c4c1;
}

.tvqc-field.has-error input,
.tvqc-field.has-error select,
.tvqc-field.has-error textarea {
	border-color: var(--tvqc-error);
}

/* ---------------------------------------------------------------- *
 *  Floating launcher button
 * ---------------------------------------------------------------- */

.tvqc-floating-launcher {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 9998;
}

.tvqc-fab {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--tvqc-navy);
	color: #fff;
	border: 2px solid var(--tvqc-gold);
	border-radius: 999px;
	padding: 13px 20px;
	font-size: 14.5px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(10, 26, 51, 0.3);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tvqc-fab:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 26px rgba(10, 26, 51, 0.38);
}

.tvqc-fab-icon {
	color: var(--tvqc-gold);
	font-size: 16px;
}

@media (max-width: 480px) {
	.tvqc-fab-label {
		display: none;
	}
	.tvqc-fab {
		padding: 14px;
		border-radius: 50%;
	}
	.tvqc-fab-icon {
		font-size: 20px;
	}
}

/* ---------------------------------------------------------------- *
 *  Modal
 * ---------------------------------------------------------------- */

.tvqc-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(10, 26, 51, 0.55);
	z-index: 9999;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 40px 16px;
	overflow-y: auto;
}

.tvqc-modal-overlay[hidden] {
	display: none;
}

.tvqc-modal {
	background: #fff;
	border-radius: 12px;
	max-width: 680px;
	width: 100%;
	position: relative;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	overflow: hidden;
}

.tvqc-modal-close {
	position: absolute;
	top: 14px;
	right: 16px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	color: #888;
	cursor: pointer;
	z-index: 2;
}

.tvqc-modal-close:hover {
	color: var(--tvqc-navy);
}

.tvqc-modal-tabs {
	display: flex;
	background: var(--tvqc-navy);
}

.tvqc-tab-btn {
	flex: 1;
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.65);
	padding: 16px 12px;
	font-size: 14.5px;
	font-weight: 700;
	cursor: pointer;
	border-bottom: 3px solid transparent;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.tvqc-tab-btn.is-active {
	color: #fff;
	border-bottom-color: var(--tvqc-gold);
}

.tvqc-modal-body {
	padding: 6px;
	max-height: 78vh;
	overflow-y: auto;
}

.tvqc-tab-panel {
	display: none;
}

.tvqc-tab-panel.is-active {
	display: block;
}

.tvqc-modal .tvqc-form-wrap {
	border: none;
	box-shadow: none;
	max-width: 100%;
}
