/**
 * Aisthetic Contact Form Widget Styles
 */

.aisth-contact-form-wrap {
	position: relative;
	box-sizing: border-box;
	width: 100%;
}

.aisth-contact-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
	box-sizing: border-box;
}

.aisth-form-grid-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

@media (max-width: 767px) {
	.aisth-form-grid-row {
		grid-template-columns: 1fr;
	}
}

.aisth-form-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
	position: relative;
}

.aisth-form-label {
	font-size: 14px;
	font-weight: 600;
	color: #1e293b;
	line-height: 1.4;
	display: flex;
	align-items: center;
	gap: 4px;
}

.aisth-form-required {
	color: #ef4444;
}

.aisth-form-input,
.aisth-form-textarea,
.aisth-form-select {
	width: 100%;
	padding: 14px 18px;
	font-size: 15px;
	line-height: 1.5;
	color: #0f172a;
	background-color: #f8fafc;
	border: 1.5px solid #e2e8f0;
	border-radius: 10px;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	box-sizing: border-box;
	outline: none;
	font-family: inherit;
}

.aisth-form-input::placeholder,
.aisth-form-textarea::placeholder {
	color: #94a3b8;
}

.aisth-form-input:hover,
.aisth-form-textarea:hover {
	border-color: #cbd5e1;
	background-color: #ffffff;
}

.aisth-form-input:focus,
.aisth-form-textarea:focus {
	border-color: var(--aisth-color-primary, #6366f1);
	background-color: #ffffff;
	box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.aisth-form-textarea {
	min-height: 130px;
	resize: vertical;
}

.aisth-form-btn-wrap {
	display: flex;
	margin-top: 4px;
}

.aisth-form-btn-wrap.align-left {
	justify-content: flex-start;
}
.aisth-form-btn-wrap.align-center {
	justify-content: center;
}
.aisth-form-btn-wrap.align-right {
	justify-content: flex-end;
}
.aisth-form-btn-wrap.align-justify .aisth-form-submit-btn {
	width: 100%;
}

.aisth-form-submit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 32px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	color: #ffffff;
	background: var(--aisth-color-primary, #6366f1);
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.25s ease;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}

.aisth-form-submit-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
	filter: brightness(1.08);
}

.aisth-form-submit-btn:active {
	transform: translateY(0);
}

.aisth-form-submit-btn[disabled] {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

.aisth-form-status {
	display: none;
	padding: 14px 18px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	margin-top: 10px;
	box-sizing: border-box;
}

.aisth-form-status.success {
	display: block;
	background-color: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.aisth-form-status.error {
	display: block;
	background-color: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.aisth-form-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: #ffffff;
	animation: aisth-spin 0.8s linear infinite;
}

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