/* Fleet Method Core: form, booking, consent banner. Uses theme.json variables with safe fallbacks. */

.tfm-form { --tfm-line: var(--wp--preset--color--line, #D9DDD5); --tfm-green: var(--wp--preset--color--green, #23483F); margin-top: 1.25rem; }
.tfm-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
.tfm-field { margin: 0 0 1.1rem; }
.tfm-field--full { grid-column: 1 / -1; }
@media (max-width: 640px) { .tfm-form__grid { grid-template-columns: 1fr; } }

.tfm-form label, .tfm-form legend { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .4rem; color: var(--wp--preset--color--charcoal, #343A39); }
.tfm-optional { font-weight: 400; color: var(--wp--preset--color--muted, #5B6462); }
.tfm-form input[type="text"], .tfm-form input[type="email"], .tfm-form input[type="tel"], .tfm-form input[type="password"], .tfm-form input[type="number"], .tfm-form input[type="date"], .tfm-form input[type="url"], .tfm-form select, .tfm-form textarea {
	width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; color: inherit;
	padding: .75rem .85rem; background: #fff; border: 1px solid #B9C0B8; border-radius: 4px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.tfm-form textarea { resize: vertical; min-height: 8rem; }
.tfm-form input:focus, .tfm-form select:focus, .tfm-form textarea:focus { outline: none; border-color: var(--tfm-green); box-shadow: 0 0 0 3px rgba(35, 72, 63, .18); }
.tfm-form [aria-invalid="true"] { border-color: #A3352B; }
.tfm-field-error { color: #A3352B; font-size: .8125rem; margin: .35rem 0 0; }

.tfm-checks { border: 0; padding: 0; margin: .25rem 0 1.25rem; }
.tfm-checks label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; margin: 0 0 .5rem; font-size: .9375rem; }
.tfm-checks input, .tfm-agree input { accent-color: var(--tfm-green); width: 1.05rem; height: 1.05rem; margin-top: .2rem; flex: none; }
.tfm-agree label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .875rem; color: var(--wp--preset--color--muted, #5B6462); }

.tfm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.tfm-form__submit { margin: 1.5rem 0 0; }
.tfm-form button[type="submit"] { cursor: pointer; }

.tfm-form-errors { border: 1px solid #E3B7B1; background: #FBEFED; color: #6E231C; border-radius: 4px; padding: .9rem 1.1rem; margin-bottom: 1.25rem; font-size: .9375rem; }
.tfm-form-errors p { margin: 0 0 .25rem; }
.tfm-form-errors p:last-child { margin: 0; }

.tfm-form-success, .tfm-booking-pending { border: 1px solid var(--wp--preset--color--sage, #B7C7BF); background: var(--wp--preset--color--sage-light, #E4EBE6); border-radius: 4px; padding: 1.5rem; margin-top: 1rem; }
.tfm-form-success__title, .tfm-booking-pending__title { font-family: var(--wp--preset--font-family--serif, Georgia, serif); font-size: 1.375rem; color: var(--wp--preset--color--green-dark, #1A3630); margin: 0 0 .5rem; }
.tfm-form-success:focus { outline: 2px solid var(--wp--preset--color--green, #23483F); outline-offset: 3px; }

.tfm-calendly { background: var(--wp--preset--color--paper, #FCFBF7); border: 1px solid var(--wp--preset--color--line, #D9DDD5); border-radius: 4px; overflow: hidden; }
.tfm-calendly__fallback { font-size: .8125rem; padding: .75rem 1rem; margin: 0; border-top: 1px solid var(--wp--preset--color--line, #D9DDD5); }

.tfm-contact-list { list-style: none; padding: 0; margin: 0; }
.tfm-contact-list li { margin: 0 0 .5rem; }
.tfm-contact-label { display: inline-block; min-width: 3.5rem; font-size: .9rem; color: var(--tfm-muted, #5B6462); }

.tfm-consent {
	position: fixed; z-index: 100; left: 1rem; right: 1rem; bottom: 1rem; max-width: 34rem;
	background: var(--wp--preset--color--paper, #FCFBF7); color: var(--wp--preset--color--charcoal, #343A39);
	border: 1px solid var(--wp--preset--color--line, #D9DDD5); border-radius: 6px;
	box-shadow: 0 18px 50px -20px rgba(26, 54, 48, .45); padding: 1.1rem 1.25rem; font-size: .875rem;
}
.tfm-consent[hidden] { display: none; }
.tfm-consent p { margin: 0 0 .9rem; }
.tfm-consent__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.tfm-consent__actions .wp-element-button { cursor: pointer; padding: .6rem 1rem; }
.tfm-consent__decline { background: transparent !important; color: var(--wp--preset--color--green, #23483F) !important; }

/* ---------- Photo slides (hero) ---------- */
.elementor-widget-tfm-hero-slides, .elementor-widget-tfm-hero-slides > .elementor-widget-container { width: 100%; }
.tfm-slides { position: relative; width: 100%; overflow: hidden; border-radius: 16px; background: #1A3630; box-shadow: 0 30px 60px -30px rgba(26,54,48,.5); isolation: isolate; }
.tfm-slides::after { content: ""; position: absolute; inset: auto 0 0 0; height: 34%; background: linear-gradient(180deg, rgba(26,54,48,0), rgba(26,54,48,.55)); z-index: 2; pointer-events: none; }
.tfm-slides__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s ease; }
.tfm-slides__slide.is-active { opacity: 1; z-index: 1; }
.tfm-slides .tfm-slides__slide img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transform: scale(1.02); }
.tfm-slides .tfm-slides__slide.is-active img { animation: tfm-kb calc(var(--tfm-slide-s, 6s) + 2s) ease-out forwards; }
@keyframes tfm-kb { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.tfm-slides__controls { position: absolute; left: 18px; bottom: 16px; z-index: 3; display: flex; align-items: center; gap: 12px; }
.tfm-slides__dots { display: flex; gap: 8px; }
.tfm-slides__dot { position: relative; appearance: none; border: 0; padding: 0; width: 26px; height: 4px; border-radius: 3px; background: rgba(255,255,255,.45); cursor: pointer; transition: background .2s ease, width .2s ease; }
.tfm-slides__dot::before { content: ""; position: absolute; inset: -10px -4px; }
.tfm-slides__dot:hover { background: rgba(255,255,255,.8); }
.tfm-slides__dot.is-active { background: #fff; width: 40px; }
.tfm-slides__toggle { appearance: none; border: 0; width: 30px; height: 30px; border-radius: 50%; background: rgba(26,54,48,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.tfm-slides__toggle span { display: block; width: 9px; height: 11px; border-left: 3px solid #fff; border-right: 3px solid #fff; box-sizing: border-box; }
.tfm-slides__toggle.is-paused span { width: 0; height: 0; border: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 10px solid #fff; margin-left: 2px; }
.tfm-slides__toggle:hover { background: rgba(26,54,48,.8); }
.tfm-slides__toggle:focus-visible, .tfm-slides__dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .tfm-slides__slide { transition: none; } .tfm-slides__slide.is-active img { animation: none; } }

/* ---------- Photo mosaic ---------- */
.elementor-widget-tfm-mosaic, .elementor-widget-tfm-mosaic > .elementor-widget-container { width: 100%; }
.tfm-mosaic { display: grid; gap: 12px; grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 6 / 5; }
.tfm-mosaic--right { grid-template-columns: 1fr 1.6fr; }
.tfm-mosaic__item { margin: 0; min-height: 0; overflow: hidden; border-radius: 14px; background: #E4EBE6; }
.tfm-mosaic .tfm-mosaic__item img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.tfm-mosaic:hover .tfm-mosaic__item img { transform: scale(1.04); }
.tfm-mosaic__item--1 { grid-row: 1 / span 2; grid-column: 1; }
.tfm-mosaic--right .tfm-mosaic__item--1 { grid-column: 2; }
.tfm-mosaic__item--2 { grid-row: 1; grid-column: 2; }
.tfm-mosaic__item--3 { grid-row: 2; grid-column: 2; }
.tfm-mosaic--right .tfm-mosaic__item--2, .tfm-mosaic--right .tfm-mosaic__item--3 { grid-column: 1; }
.tfm-mosaic--n2 .tfm-mosaic__item--2 { grid-row: 1 / span 2; }
.tfm-mosaic--n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.tfm-mosaic--n1 .tfm-mosaic__item--1 { grid-row: 1; grid-column: 1; }
@media (max-width: 560px) { .tfm-mosaic { gap: 8px; aspect-ratio: 1 / 1; } }
@media (prefers-reduced-motion: reduce) { .tfm-mosaic__item img { transition: none; } .tfm-mosaic:hover .tfm-mosaic__item img { transform: none; } }
