/**
 * Shared form base styles — Agent Driven Development
 *
 * Common styling for all ADD forms (book-a-call, website-communication, etc.).
 * Individual form files only need overrides and unique rules.
 *
 * @package add
 */

/* ---- Form Shell ---- */

.add-form {
	max-width: 760px;
	margin: 0 auto;
	padding: 1.25rem;
	border: 1px solid #dbe3ef;
	border-radius: 12px;
	background: #fff;
}

/* ---- Field ---- */

.add-form-field {
	margin-bottom: 1rem;
}

.add-form-field label {
	display: block;
	margin-bottom: 0.45rem;
	font-weight: 600;
	color: #0f172a;
}

.add-form-field input,
.add-form-field select,
.add-form-field textarea {
	width: 100%;
	padding: 0.75rem 0.85rem;
	border: 1px solid #c8d3e5;
	border-radius: 8px;
	font-size: 1rem;
	line-height: 1.5;
	background: #fff;
	color: #0f172a;
}

.add-form-field input:focus,
.add-form-field select:focus,
.add-form-field textarea:focus {
	border-color: #b8934a;
	outline: 2px solid rgb(184 147 74 / 22%);
	outline-offset: 1px;
}

.add-form-field small {
	display: block;
	margin-top: 0.4rem;
	font-size: 0.85rem;
	color: #475569;
}

/* ---- Submit Button ---- */

.add-form-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.72rem 1.1rem;
	border: 1px solid #0f172a;
	border-radius: 9px;
	background: #0f172a;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.add-form-submit:hover {
	background: #b8934a;
	border-color: #b8934a;
	transform: translateY(-1px);
}

.add-form-submit:disabled {
	opacity: 0.65;
	cursor: wait;
	transform: none;
}

/* ---- Feedback ---- */

.add-form-feedback {
	margin-top: 0.85rem;
	font-size: 0.95rem;
	color: #334155;
}

.add-form-feedback.is-success {
	color: #166534;
}

.add-form-feedback.is-error {
	color: #b91c1c;
}

/* ---- Honeypot (accessible hide) ---- */

.add-form-honeypot {
	position: absolute !important;
	left: -9999px !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

/* ---- Dark Mode ---- */

html[data-theme="dark"] .add-form {
	background: #000;
	border-color: #2e2e2e;
}

html[data-theme="dark"] .add-form-field label {
	color: #fff;
}

html[data-theme="dark"] .add-form-field input,
html[data-theme="dark"] .add-form-field select,
html[data-theme="dark"] .add-form-field textarea {
	background: #111;
	border-color: #2e2e2e;
	color: #ccc;
}

html[data-theme="dark"] .add-form-field input:focus,
html[data-theme="dark"] .add-form-field select:focus,
html[data-theme="dark"] .add-form-field textarea:focus {
	outline: 2px solid rgb(201 164 93 / 30%);
}

html[data-theme="dark"] .add-form-field small {
	color: #555;
}

html[data-theme="dark"] .add-form-feedback {
	color: #ccc;
}

html[data-theme="dark"] .add-form-feedback.is-success {
	color: #4ade80;
}

html[data-theme="dark"] .add-form-feedback.is-error {
	color: #f87171;
}

/* ---- Mobile ---- */

@media (width <= 782px) {
	.add-form {
		padding: 1rem;
	}

	.add-form-submit {
		width: 100%;
	}
}
