/* ==========================================================================
   QTSC Quick Contact Form - Frontend Styles (Laravel)
   ========================================================================== */

.qtsc-contact-wrap {
	position: relative;
	background-color: var(--qtsc-bg, #e8f5e9);
	border: 2px dashed var(--qtsc-border, #4CAF50);
	border-radius: 8px;
	padding: 24px 28px;
	margin: 20px 0;
	max-width: 100%;
	box-sizing: border-box;
}

.article-default .article-content h3.qtsc-title {
	margin-top: 0 !important;
}

.qtsc-title {
	color: var(--qtsc-title-color, #333);
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 6px;
	line-height: 1.4;
}

.qtsc-subtitle {
	margin: 0 0 16px;
	font-size: 14px;
	color: var(--qtsc-subtitle-color, #555);
	line-height: 1.5;
}

.qtsc-subtitle a {
	color: var(--qtsc-link-color, #d32f2f);
	font-weight: 600;
	text-decoration: none;
	margin-left: 5px;
}

.qtsc-subtitle a:hover {
	text-decoration: underline;
	color: var(--qtsc-link-hover-color, #212121);
}

.qtsc-row {
	display: flex;
	gap: 16px;
	margin-bottom: 0;
}

.qtsc-col {
	flex: 1;
	min-width: 0;
}

.qtsc-col-full {
	flex: 0 0 100%;
}

.qtsc-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--qtsc-text-color);
	margin-bottom: 5px;
}

.qtsc-required {
	color: #d32f2f;
}

.qtsc-input,
.qtsc-textarea {
	width: 100%;
	padding: 10px 12px;
	font-size: 14px;
	color: #333;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
	transition: border-color 0.2s ease;
	outline: none;
	font-family: inherit;
}

.qtsc-input:focus,
.qtsc-textarea:focus {
	border-color: var(--qtsc-border, #4CAF50);
	box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.15);
}

.qtsc-input.qtsc-field-invalid,
.qtsc-textarea.qtsc-field-invalid {
	border-color: #d32f2f;
}

.qtsc-textarea {
	resize: vertical;
	min-height: 80px;
}

.qtsc-field-error {
	display: block;
	font-size: 12px;
	color: #d32f2f;
	margin-top: 3px;
	min-height: 16px;
}

.qtsc-hp-wrap {
	position: absolute;
	left: -9999px;
	opacity: 0;
	height: 0;
	width: 0;
	overflow: hidden;
}

.qtsc-submit-row {
	margin-top: 6px;
}

.qtsc-btn-submit {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 24px;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	background-color: var(--qtsc-btn-color, #4CAF50);
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.2s ease, opacity 0.2s ease;
	line-height: 1.4;
}

.qtsc-btn-submit:hover {
	background-color: var(--qtsc-btn-hover, #388E3C);
}

.qtsc-btn-submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.qtsc-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: qtsc-spin 0.6s linear infinite;
}

@keyframes qtsc-spin {
	to { transform: rotate(360deg); }
}

.qtsc-message {
	margin-top: 12px;
	padding: 10px 14px;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1.5;
}

.qtsc-message--success {
	background-color: #c8e6c9;
	color: #2e7d32;
	border: 1px solid #a5d6a7;
}

.qtsc-message--error {
	background-color: #ffcdd2;
	color: #c62828;
	border: 1px solid #ef9a9a;
}

/* Toast */
.qtsc-toast {
	position: fixed;
	top: 24px;
	right: 24px;
	z-index: 999999;
	display: none;
	align-items: center;
	gap: 10px;
	min-width: 280px;
	max-width: 420px;
	padding: 14px 20px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
	pointer-events: auto;
}

.qtsc-toast--success {
	background: #2e7d32;
	color: #fff;
}

.qtsc-toast--error {
	background: #c62828;
	color: #fff;
}

.qtsc-toast-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	font-size: 14px;
	font-weight: 700;
	flex-shrink: 0;
}

.qtsc-toast-text {
	flex: 1;
}

.qtsc-toast-show {
	animation: qtsc-toast-slide-in 0.35s ease forwards;
}

.qtsc-toast-hide {
	animation: qtsc-toast-slide-out 0.3s ease forwards;
}

@keyframes qtsc-toast-slide-in {
	from { opacity: 0; transform: translateX(80px) scale(0.95); }
	to   { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes qtsc-toast-slide-out {
	from { opacity: 1; transform: translateX(0) scale(1); }
	to   { opacity: 0; transform: translateX(80px) scale(0.95); }
}

@media (max-width: 600px) {
	.qtsc-contact-wrap {
		padding: 16px;
	}

	.qtsc-row {
		flex-direction: column;
		gap: 0;
	}

	.qtsc-col {
		margin-bottom: 10px;
	}

	.qtsc-title {
		font-size: 16px;
	}

	.qtsc-btn-submit {
		width: 100%;
		justify-content: center;
	}

	.qtsc-toast {
		left: 12px;
		right: 12px;
		min-width: auto;
		max-width: none;
	}
}
