/**
 * AshikhaSoft Contact Form 7 Styler – frontend styles.
 */

.ahst-cf7-styler {
	--ahst-cf7-label: #374151;
	--ahst-cf7-input-bg: #ffffff;
	--ahst-cf7-input-border: #d1d5db;
	--ahst-cf7-input-text: #111827;
	--ahst-cf7-input-focus: #6366f1;
	--ahst-cf7-btn-bg: #6366f1;
	--ahst-cf7-btn-text: #ffffff;
	--ahst-cf7-radius: 8px;
	--ahst-cf7-gap: 16px;
	width: 100%;
}

.ahst-cf7-styler .wpcf7-form {
	display: flex;
	flex-direction: column;
	gap: var(--ahst-cf7-gap);
}

.ahst-cf7-styler .wpcf7-form p {
	margin: 0;
}

.ahst-cf7-styler label {
	color: var(--ahst-cf7-label);
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 6px;
}

.ahst-cf7-styler .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

.ahst-cf7-styler input[type="text"],
.ahst-cf7-styler input[type="email"],
.ahst-cf7-styler input[type="tel"],
.ahst-cf7-styler input[type="url"],
.ahst-cf7-styler input[type="number"],
.ahst-cf7-styler input[type="date"],
.ahst-cf7-styler select,
.ahst-cf7-styler textarea {
	background: var(--ahst-cf7-input-bg);
	border: 1px solid var(--ahst-cf7-input-border);
	border-radius: var(--ahst-cf7-radius);
	box-shadow: none;
	color: var(--ahst-cf7-input-text);
	font-size: 15px;
	line-height: 1.5;
	padding: 12px 14px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	width: 100%;
}

.ahst-cf7-styler textarea {
	min-height: 120px;
	resize: vertical;
}

.ahst-cf7-styler input:focus,
.ahst-cf7-styler select:focus,
.ahst-cf7-styler textarea:focus {
	border-color: var(--ahst-cf7-input-focus);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
	outline: none;
}

.ahst-cf7-styler input[type="submit"],
.ahst-cf7-styler button[type="submit"],
.ahst-cf7-styler .wpcf7-submit {
	background: var(--ahst-cf7-btn-bg);
	border: none;
	border-radius: var(--ahst-cf7-radius);
	color: var(--ahst-cf7-btn-text);
	cursor: pointer;
	display: inline-flex;
	font-size: 15px;
	font-weight: 600;
	padding: 12px 24px;
	transition: filter 0.2s ease, transform 0.2s ease;
	width: auto;
}

.ahst-cf7-styler input[type="submit"]:hover,
.ahst-cf7-styler button[type="submit"]:hover,
.ahst-cf7-styler .wpcf7-submit:hover {
	filter: brightness(1.08);
	transform: translateY(-1px);
}

.ahst-cf7-styler .wpcf7-not-valid-tip {
	color: #dc2626;
	font-size: 13px;
	margin-top: 4px;
}

.ahst-cf7-styler .wpcf7-response-output {
	border-radius: var(--ahst-cf7-radius);
	font-size: 14px;
	margin: 16px 0 0;
	padding: 12px 16px;
}

.ahst-cf7-styler .wpcf7-spinner {
	margin-left: 8px;
}

.ahst-cf7-styler-empty {
	color: #6b7280;
	font-style: italic;
	text-align: center;
}

.ahst-cf7-styler--inline .wpcf7-form {
	display: grid;
	gap: var(--ahst-cf7-gap);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ahst-cf7-styler--inline .wpcf7-form p:last-child {
	grid-column: 1 / -1;
}

@media (max-width: 767px) {
	.ahst-cf7-styler--inline .wpcf7-form {
		grid-template-columns: 1fr;
	}
}
