/*
Theme Name: Aitlas
Theme URI: https://example.com/aitlas
Author: Aitlas Team
Author URI: https://example.com
Description: A modern classic WordPress theme with a stunning hero section and responsive header, styled with Tailwind CSS.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aitlas
*/

/* Demo modal — must sit above everything including sticky header (z-50) */
#demo-modal {
	z-index: 9999;
}

/* ── Demo Modal layout ──────────────────────────────────────────────────── */
.aitlas-modal-panel {
	display: flex;
	flex-direction: column;
	max-height: 90vh;
}

@media (min-width: 600px) {
	.aitlas-modal-panel {
		flex-direction: row;
		max-height: 85vh;
	}
}

.aitlas-modal-rail {
	display: none;
}

@media (min-width: 600px) {
	.aitlas-modal-rail {
		display: flex;
		width: 220px;
		min-width: 220px;
	}
}

.aitlas-modal-body {
	max-height: 85vh;
	overflow-y: auto;
}

.aitlas-trust-line {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 11px;
	color: #a1a1aa;
}

/* ── Contact Form 7 — modal styles ─────────────────────────────────────── */
.aitlas-cf7-wrap .wpcf7 {
	margin: 0;
}

.aitlas-cf7-wrap .wpcf7-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

/* Name row — side by side (wraps the two name spans in CF7 form) */
.aitlas-cf7-wrap .wpcf7-form .grid,
.aitlas-cf7-wrap .name-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

/* Labels */
.aitlas-cf7-wrap label {
	display: block;
	margin-bottom: 0.25rem;
	font-size: 0.75rem;
	font-weight: 500;
	color: #52525b; /* zinc-600 */
}

/* All inputs, selects, textareas */
.aitlas-cf7-wrap input[type="text"],
.aitlas-cf7-wrap input[type="email"],
.aitlas-cf7-wrap input[type="url"],
.aitlas-cf7-wrap select,
.aitlas-cf7-wrap textarea {
	display: block;
	width: 100%;
	border-radius: 0.5rem;
	border: 1px solid #e4e4e7; /* zinc-200 */
	background-color: #fafafa; /* zinc-50 */
	padding: 0.625rem 0.875rem;
	font-size: 0.875rem;
	color: #09090b; /* zinc-950 */
	transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
	outline: none;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

.aitlas-cf7-wrap input[type="text"]:focus,
.aitlas-cf7-wrap input[type="email"]:focus,
.aitlas-cf7-wrap input[type="url"]:focus,
.aitlas-cf7-wrap select:focus,
.aitlas-cf7-wrap textarea:focus {
	border-color: #18181b; /* zinc-900 */
	background-color: #fff;
	box-shadow: 0 0 0 1px #18181b;
}

.aitlas-cf7-wrap input::placeholder,
.aitlas-cf7-wrap textarea::placeholder {
	color: #a1a1aa; /* zinc-400 */
}

/* Submit button */
.aitlas-cf7-wrap input[type="submit"],
.aitlas-cf7-wrap .wpcf7-submit {
	width: 100%;
	border-radius: 0.5rem;
	background-color: #09090b; /* zinc-950 */
	padding: 0.75rem 1.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #fff;
	border: none;
	cursor: pointer;
	transition: background-color 0.15s;
}

.aitlas-cf7-wrap input[type="submit"]:hover,
.aitlas-cf7-wrap .wpcf7-submit:hover {
	background-color: #27272a; /* zinc-800 */
}

/* Validation errors */
.aitlas-cf7-wrap .wpcf7-not-valid-tip {
	font-size: 0.75rem;
	color: #f43f5e; /* rose-500 */
	margin-top: 0.25rem;
}

.aitlas-cf7-wrap .wpcf7-not-valid {
	border-color: #f43f5e !important;
}

/* CF7 response output */
.aitlas-cf7-wrap .wpcf7-response-output {
	margin-top: 0.75rem;
	padding: 0.75rem 1rem;
	border-radius: 0.5rem;
	font-size: 0.8125rem;
	border: 1px solid #e4e4e7;
	color: #52525b;
}

.aitlas-cf7-wrap .wpcf7-mail-sent-ok {
	border-color: #6ee7b7;
	background-color: #f0fdf4;
	color: #065f46;
}

.aitlas-cf7-wrap .wpcf7-mail-sent-ng,
.aitlas-cf7-wrap .wpcf7-spam-blocked {
	border-color: #fca5a5;
	background-color: #fff1f2;
	color: #9f1239;
}

/* Spinner */
.aitlas-cf7-wrap .wpcf7-spinner {
	display: none;
}
