/**
 * Autohadi frontend order form styles.
 */

.autohadi-order-form {
	--ah-primary: #0f766e;
	--ah-bg: #f7faf9;
	--ah-border: #d5e2de;
	--ah-text: #14352f;
	--ah-muted: #5f746e;
	--ah-danger: #b42318;
	--ah-ok: #027a48;
	box-sizing: border-box;
	width: 100%;
	margin: 0 auto;
	padding: 1.5rem;
	background:
		radial-gradient(120% 80% at 0% 0%, rgba(15, 118, 110, 0.08), transparent 55%),
		linear-gradient(180deg, #ffffff 0%, var(--ah-bg) 100%);
	border: 1px solid var(--ah-border);
	border-radius: 16px;
	color: var(--ah-text);
	font-family: "Peyda", sans-serif;
	direction: rtl;
}

.autohadi-order-form *,
.autohadi-order-form *::before,
.autohadi-order-form *::after {
	box-sizing: border-box;
	font-family: "Peyda", sans-serif;
}

.autohadi-order-form__title {
	margin: 0 0 0.35rem;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.35;
}

.autohadi-order-form__desc {
	margin: 0 0 1.25rem;
	color: var(--ah-muted);
	font-size: 0.95rem;
	line-height: 1.7;
}

.autohadi-order-form__fields {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.autohadi-field label {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 0.9rem;
	font-weight: 600;
}

.autohadi-field input[type="text"],
.autohadi-field input[type="tel"],
.autohadi-field input[type="file"] {
	width: 100%;
	padding: 0.75rem 0.9rem;
	border: 1px solid var(--ah-border);
	border-radius: 10px;
	background: #fff;
	color: var(--ah-text);
	font-size: 1rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.autohadi-field input[type="text"]:focus,
.autohadi-field input[type="tel"]:focus,
.autohadi-field input[type="file"]:focus {
	outline: none;
	border-color: var(--ah-primary);
	box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18);
}

.autohadi-field__hint {
	margin: 0.35rem 0 0;
	color: var(--ah-muted);
	font-size: 0.8rem;
}

.autohadi-preview {
	margin-top: 0.75rem;
	border-radius: 12px;
	overflow: hidden;
	border: 1px dashed var(--ah-border);
	background: #fff;
}

.autohadi-preview img {
	display: block;
	width: 100%;
	max-height: 220px;
	object-fit: cover;
}

.autohadi-order-form__submit {
	appearance: none;
	border: 0;
	border-radius: 12px;
	padding: 0.85rem 1.2rem;
	background: var(--ah-primary);
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.15s ease, opacity 0.15s ease, filter 0.15s ease;
}

.autohadi-order-form__submit:hover:not(:disabled) {
	filter: brightness(1.05);
	transform: translateY(-1px);
}

.autohadi-order-form__submit:disabled {
	opacity: 0.7;
	cursor: wait;
}

.autohadi-order-form__message {
	padding: 0.75rem 0.9rem;
	border-radius: 10px;
	font-size: 0.92rem;
	line-height: 1.6;
}

.autohadi-order-form__message.is-success {
	background: #ecfdf3;
	color: var(--ah-ok);
	border: 1px solid #abefc6;
}

.autohadi-order-form__message.is-error {
	background: #fef3f2;
	color: var(--ah-danger);
	border: 1px solid #fecdca;
}

.autohadi-hp {
	position: absolute !important;
	left: -10000px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}
