/* TG WhatsApp Quote Form — Public Styles v2.0 */

.tgwqf-wrapper {
	width: 100%;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, sans-serif;
}

/* Card */
.tgwqf-card {
	background: #ffffff;
	border-radius: 14px;
	padding: 26px 26px 20px;
	max-width: 540px;
	width: 100%;
	box-sizing: border-box;
	box-shadow: 0 6px 28px rgba(0, 0, 0, 0.13);
}

/* Title */
.tgwqf-title {
	margin: 0 0 3px !important;
	font-size: 1.2rem !important;
	font-weight: 700 !important;
	color: #111827 !important;
	line-height: 1.3 !important;
}

/* Subtitle */
.tgwqf-subtitle {
	margin: 0 0 14px !important;
	font-size: 0.78rem !important;
	color: #6B7280 !important;
	line-height: 1.4;
}

/* Form */
#tgwqf-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Two-column row */
.tgwqf-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

/* Field wrapper */
.tgwqf-field {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.tgwqf-field--full {
	grid-column: 1 / -1;
}

/* Label */
.tgwqf-label {
	display: block;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: #374151;
}

.tgwqf-required {
	color: #DC2626;
	margin-left: 2px;
}

/* Input / Select / Textarea */
.tgwqf-input,
.tgwqf-select,
.tgwqf-textarea {
	width: 100%;
	box-sizing: border-box;
	background: #F3F4F6;
	border: 1px solid #E5E7EB;
	border-radius: 8px;
	padding: 9px 12px;
	font-size: 0.875rem;
	color: #111827;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
	font-family: inherit;
	-webkit-appearance: none;
	appearance: none;
}

.tgwqf-input::placeholder,
.tgwqf-textarea::placeholder {
	color: #9CA3AF;
}

.tgwqf-input:focus,
.tgwqf-select:focus,
.tgwqf-textarea:focus {
	border-color: #3B82F6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
	background: #fff;
}

/* Error state on inputs */
.tgwqf-input--error {
	border-color: #DC2626 !important;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.10) !important;
}

/* Select wrapper */
.tgwqf-select-wrapper {
	position: relative;
}

.tgwqf-select-wrapper .tgwqf-select {
	padding-right: 34px;
	cursor: pointer;
}

.tgwqf-select-arrow {
	position: absolute;
	right: 11px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	display: flex;
	align-items: center;
}

/* Textarea */
.tgwqf-textarea {
	resize: vertical;
	min-height: 78px;
	max-height: 150px;
	line-height: 1.5;
}

/* Inline error message */
.tgwqf-error {
	display: block;
	font-size: 0.72rem;
	color: #DC2626;
	min-height: 1em;
	line-height: 1.4;
}

/* Button */
.tgwqf-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	background: #25D366;
	color: #ffffff;
	border: none;
	border-radius: 9px;
	padding: 13px 20px;
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease;
	font-family: inherit;
	margin-top: 2px;
}

.tgwqf-btn:hover {
	background: #1ebe5d;
}

.tgwqf-btn:active {
	transform: scale(0.985);
}

.tgwqf-btn:focus-visible {
	outline: 3px solid #25D366;
	outline-offset: 2px;
}

/* WhatsApp icon inside button */
.tgwqf-btn-icon {
	width: 20px;
	height: 20px;
	fill: #ffffff;
	flex-shrink: 0;
}

/* Helper text */
.tgwqf-helper {
	margin: 4px 0 0 !important;
	font-size: 0.7rem !important;
	color: #9CA3AF !important;
	text-align: center;
	line-height: 1.4;
}

/* Responsive - labels aligned left on mobile/tablet */
@media (max-width: 768px) {
	.tgwqf-label {
		display: flex;
		align-items: flex-start;
		justify-content: flex-start;
		width: 100%;
		text-align: left;
	}
}

/* Responsive — single column on small screens */
@media (max-width: 480px) {
	.tgwqf-card {
		padding: 18px 14px 14px;
		border-radius: 10px;
	}

	.tgwqf-row {
		grid-template-columns: 1fr;
	}

	.tgwqf-btn {
		font-size: 0.875rem;
		padding: 12px 16px;
		gap: 8px;
	}

	.tgwqf-btn-icon {
		width: 18px;
		height: 18px;
	}
}
