/*
 * Altima Web Core — plugin styles.
 *
 * Intentionally small. The theme owns the design system; this file only styles
 * the pieces the plugin itself outputs, and uses the same custom properties
 * with sane fallbacks so the shortcodes still look deliberate under a
 * different theme.
 */

.aw-form-wrap {
	--awc-blue: var(--aw-blue, #0d5be1);
	--awc-ink: var(--aw-ink, #0a1628);
	--awc-slate: var(--aw-slate, #4a5b73);
	--awc-line: var(--aw-line, #e1e8f2);
	--awc-mist: var(--aw-mist, #f4f7fc);
}

.aw-notice {
	padding: 1rem 1.25rem;
	border-radius: 14px;
	border: 1px solid;
	font-size: 0.9375rem;
	margin-bottom: 1.5rem;
	line-height: 1.6;
}

.aw-notice--ok {
	background: #e9fbf4;
	border-color: #9fe3c9;
	color: #0a5c43;
}

.aw-notice--err {
	background: #fdecea;
	border-color: #f3b7b0;
	color: #8e2b20;
}

.aw-notice a {
	color: inherit;
	font-weight: 600;
}

/* Honeypot must be invisible but still present for bots to fill in. */
.aw-field--hp {
	position: absolute !important;
	left: -9999px !important;
	height: 0 !important;
	width: 0 !important;
	overflow: hidden !important;
	opacity: 0 !important;
}

.aw-form__check {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	margin-bottom: 1rem;
}

.aw-form__check input[type="checkbox"] {
	width: auto;
	margin-top: 0.3rem;
	flex: none;
}

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

/* Side-by-side fields when the active theme does not provide this layout. */
.aw-form__row {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.aw-form-wrap label {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 0.9375rem;
	font-weight: 650;
	color: var(--awc-ink);
}

.aw-form-wrap .aw-required {
	color: #c0392b;
}

.aw-form-wrap input[type="text"],
.aw-form-wrap input[type="email"],
.aw-form-wrap input[type="tel"],
.aw-form-wrap select,
.aw-form-wrap textarea {
	width: 100%;
	padding: 0.8rem 1rem;
	border: 1.5px solid var(--awc-line);
	border-radius: 8px;
	font-size: 1.0625rem;
	font-family: inherit;
	background: #fff;
	color: var(--awc-ink);
}

.aw-form-wrap textarea {
	min-height: 150px;
	resize: vertical;
}

.aw-form-wrap input:focus,
.aw-form-wrap select:focus,
.aw-form-wrap textarea:focus {
	outline: none;
	border-color: var(--awc-blue);
	box-shadow: 0 0 0 3px rgba(13, 91, 225, 0.18);
}

.aw-form-wrap .aw-field--invalid input,
.aw-form-wrap .aw-field--invalid textarea,
.aw-form-wrap .aw-field--invalid select {
	border-color: #c0392b;
}

.aw-form-wrap .aw-btn,
.aw-form-wrap button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 1.05em 2em;
	border: 2px solid transparent;
	border-radius: 999px;
	background: var(--awc-blue);
	color: #fff;
	font-family: inherit;
	font-size: 1.0625rem;
	font-weight: 650;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 180ms ease, transform 180ms ease;
}

.aw-form-wrap .aw-btn:hover,
.aw-form-wrap button[type="submit"]:hover {
	background: var(--aw-blue-dark, #0a46b4);
	color: #fff;
	transform: translateY(-1px);
}

.aw-form-wrap .aw-btn[disabled] {
	opacity: 0.7;
	cursor: progress;
	transform: none;
}

.aw-form-wrap .aw-muted {
	color: var(--aw-ink-60, rgba(10, 22, 40, 0.6));
	font-size: 0.9375rem;
}

/* Project facts box appended to single project pages. */
.aw-project-facts {
	margin-top: 2.5rem;
	padding: 1.5rem;
	border: 1px solid var(--awc-line);
	border-radius: 14px;
	background: var(--awc-mist);
}

.aw-project-facts p:last-child {
	margin-bottom: 0;
}

/* Screen-reader text, in case the active theme does not define it. */
.aw-form-wrap .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
