/* Formulário de contacto do tema — só carrega nas páginas com [hg_contacto]. */
.hg-cf { --cf-line: var(--wp--preset--color--line, rgba(255,255,255,.14)); --cf-acc: var(--wp--preset--color--accent); display: grid; gap: 1rem; }
.hg-cf [hidden] { display: none !important; }
.hg-cf__row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.hg-cf__field { display: grid; gap: .35rem; align-content: start; }
.hg-cf label { font-size: .9375rem; }
.hg-cf__req { color: var(--cf-acc); }
.hg-cf__help { margin: 0; font-size: .8125rem; color: var(--wp--preset--color--muted); }
.hg-cf input[type=text], .hg-cf input[type=email], .hg-cf input[type=tel], .hg-cf input[type=date], .hg-cf select, .hg-cf textarea {
	width: 100%; box-sizing: border-box; padding: .75rem .9rem; font: inherit; color: inherit; min-height: 48px;
	background: var(--wp--preset--color--surface, rgba(255,255,255,.04)); border: 1px solid var(--cf-line); border-radius: 6px;
}
.hg-cf input:focus, .hg-cf select:focus, .hg-cf textarea:focus { outline: 2px solid var(--cf-acc); outline-offset: 1px; border-color: transparent; }
.hg-cf input[readonly] { cursor: pointer; }
.hg-cf select { color-scheme: dark; }
.hg-cf__date { position: relative; }
.hg-cf__clear { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--wp--preset--color--muted); font-size: 1.2rem; cursor: pointer; }
.hg-cf__clear:hover { color: var(--cf-acc); }
.hg-cf__check { display: flex; gap: .6rem; align-items: flex-start; font-size: .875rem; }
.hg-cf__check input { margin-top: .2rem; accent-color: var(--cf-acc); width: 1.1rem; height: 1.1rem; }
.hg-cf__check a { color: var(--cf-acc); }
.hg-cf__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hg-cf__msg { margin: 0; min-height: 1.2em; }
.hg-cf__msg.is-error { color: #ff8a7a; }
.hg-cf__msg.is-ok { font-size: 1.125rem; padding: 1rem 1.25rem; border-left: 3px solid var(--cf-acc); background: color-mix(in srgb, var(--cf-acc) 8%, transparent); }
.hg-cf__send { justify-self: start; min-width: 12rem; }
.hg-cf__send:disabled { opacity: .6; cursor: wait; }

/* Calendário */
.hg-cal { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: min(320px, 92vw); padding: .75rem; background: var(--wp--preset--color--base, #111); border: 1px solid var(--cf-line); border-radius: 10px; box-shadow: 0 14px 40px rgba(0,0,0,.45); }
.hg-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.hg-cal__head strong { font-weight: 600; }
.hg-cal__head button { width: 36px; height: 36px; border: 1px solid var(--cf-line); border-radius: 50%; background: transparent; color: inherit; font-size: 1.2rem; cursor: pointer; }
.hg-cal__head button:disabled { opacity: .3; cursor: default; }
.hg-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.hg-cal__dow { font-size: .75rem; color: var(--wp--preset--color--muted); padding: .25rem 0; text-transform: uppercase; }
.hg-cal__grid button { aspect-ratio: 1; border: 0; border-radius: 6px; background: transparent; color: inherit; font: inherit; font-size: .9375rem; cursor: pointer; }
.hg-cal__grid button:hover:not(:disabled), .hg-cal__grid button:focus-visible { background: color-mix(in srgb, var(--cf-acc) 18%, transparent); outline: none; }
.hg-cal__grid button[data-today] { box-shadow: inset 0 0 0 1px var(--cf-line); }
.hg-cal__grid button[aria-pressed="true"] { background: var(--cf-acc); color: var(--wp--preset--color--on-accent, #111); font-weight: 600; }
.hg-cal__grid button:disabled { opacity: .3; cursor: default; }
.hg-cal__grid button.is-busy { opacity: .5; text-decoration: line-through; }

.hg-cf select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; height: 48px; }
.hg-cf__date input { padding-right: 2.75rem; text-overflow: ellipsis; }
.hg-cf [aria-invalid="true"] { border-color: #ff8a7a !important; outline: 2px solid #ff8a7a; outline-offset: 1px; }

.hg-cf__intro { margin: 0 0 1rem; opacity: .85; }
.hg-cf__dl { margin-top: .9rem; }
.hg-guide { border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 22%, transparent); border-radius: 10px; padding: 1.5rem; margin: 2rem 0; }
.hg-guide__title { font-weight: 600; font-size: 1.15rem; margin: 0 0 .4rem; }
.hg-cf--data, .hg-cf--guia { max-width: 640px; }
