/* Adamit Forms — calendar + form polish. Inherits the theme tokens when present. */

/* Clean single-column layout so labels never crowd. */
form.adamit-form { display: grid; grid-template-columns: 1fr; gap: 1.35rem; }
form.adamit-form .field,
form.adamit-form .field--half { grid-column: 1 / -1; }
.adamit-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Date field + trigger icon */
.adamit-date { position: relative; }
.adamit-date__input {
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2346532F' stroke-width='1.4' stroke-linecap='round'%3E%3Crect x='3' y='4.5' width='12' height='11' rx='1.5'/%3E%3Cpath d='M3 7.5h12M6 2.5v3M12 2.5v3'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 2px center; padding-right: 26px !important;
}

/* Calendar popup */
.adamit-cal {
	position: absolute; z-index: 60; top: calc(100% + 10px); left: 0;
	width: 300px; max-width: 100%;
	background: var(--bg, #F7F6F0); border: 1px solid var(--line, #DBD6C6); border-radius: 10px;
	box-shadow: 0 20px 46px rgba(20, 20, 12, .2); padding: 14px;
}
.adamit-cal[hidden] { display: none; }
.adamit-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.adamit-cal__title { font-family: var(--serif, Georgia, "Times New Roman", serif); font-size: 1.05rem; font-weight: 400; color: var(--ink, #23251E); }
.adamit-cal__nav {
	background: none; border: 0; cursor: pointer; width: 34px; height: 34px; border-radius: 50%;
	font-size: 1.35rem; line-height: 1; color: var(--accent-ink, #46532F); transition: background .2s;
}
.adamit-cal__nav:hover { background: var(--bg-alt, #ECE9DD); }
.adamit-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.adamit-cal__wd {
	font-family: var(--sans, Arial, Helvetica, sans-serif); font-size: .6rem; letter-spacing: .1em;
	text-transform: uppercase; color: var(--ink-soft, #565A4C); text-align: center; padding: 4px 0;
}
.adamit-cal__day {
	background: none; border: 0; cursor: pointer; aspect-ratio: 1; border-radius: 50%;
	font-family: var(--sans, Arial, Helvetica, sans-serif); font-size: .88rem; color: var(--ink, #23251E);
	transition: background .15s, color .15s;
}
.adamit-cal__day:hover { background: var(--accent, #5E6B45); color: #fff; }
.adamit-cal__day.is-disabled { color: #c3c0b4; cursor: default; }
.adamit-cal__day.is-disabled:hover { background: none; color: #c3c0b4; }

.adamit-form.is-sent .field:not(.adamit-date) ,
.adamit-form.is-sent .adamit-date { opacity: .5; }

@media (max-width: 420px) {
	.adamit-cal { width: 280px; }
}

/* location autocomplete */
.adamit-ac { position: relative; }
.adamit-ac__list {
	position: absolute; z-index: 50; top: 100%; left: 0; right: 0; margin: 5px 0 0; padding: 4px 0;
	list-style: none; background: var(--bg, #F7F6F0); border: 1px solid var(--line, #DBD6C6); border-radius: 8px;
	box-shadow: 0 14px 34px rgba(20,20,12,.18); max-height: 240px; overflow-y: auto;
}
.adamit-ac__list[hidden] { display: none; }
.adamit-ac__opt { padding: .6rem 1rem; cursor: pointer; font-size: .95rem; color: var(--ink, #23251E); }
.adamit-ac__opt:hover, .adamit-ac__opt.is-active { background: var(--bg-alt, #ECE9DD); color: var(--accent-ink, #46532F); }

/* Turnstile widget spacing */
.adamit-turnstile{margin:.25rem 0 1.1rem;}
