/* ==========================================================================
   Formulario de reserva de LatePoint con la identidad de la marca (fase 5).
   Solo se carga junto con LatePoint (ver inc/latepoint.php). No se toca el plugin:
   se redefinen sus variables y se sobrescriben sus estilos con más especificidad.
   ========================================================================== */

/* --- Variables de LatePoint --- */

:root {
	/* Terracota oscura: el oro no llega a 4,5:1 sobre fondo claro. */
	--latepoint-brand-primary: #964a2a;
	--latepoint-body-color: #2a2019;
	--latepoint-headings-color: #2a2019;
	--latepoint-color-text-faded: #4a3d31;
	--latepoint-timeslot-selected-color: #964a2a;
	--latepoint-calendar-weekday-label-color: #4a3d31;
	--latepoint-calendar-weekday-label-bg: #f4ecdd;
	--latepoint-side-panel-bg: #e9dcc6;
	--latepoint-summary-panel-bg: #e9dcc6;
	--latepoint-border-radius: 12px;
	--latepoint-border-radius-sm: 8px;
	--latepoint-border-radius-md: 16px;
	--latepoint-border-radius-lg: 24px;
}

/* --- Tipografía y colores base dentro de LatePoint (anula lo que hereda del tema oscuro) --- */

.latepoint-w,
.latepoint-lightbox-w,
.latepoint-w input,
.latepoint-w select,
.latepoint-w textarea,
.latepoint-w button {
	font-family: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif !important;
}

.latepoint-w {
	color: #2a2019;
	font-variant-numeric: lining-nums;
}

.latepoint-w h1,
.latepoint-w h2,
.latepoint-w h3,
.latepoint-w h4,
.latepoint-w h5,
.latepoint-w .latepoint-step-desc-title,
.latepoint-w .os-heading-text,
.latepoint-w .os-month-title,
.latepoint-w .latepoint-summary-w h3 {
	font-family: "Cormorant Garamond", Georgia, serif !important;
	font-weight: 500;
	color: #2a2019;
	letter-spacing: 0;
}

/* Las reglas base del tema (svg en bloque, enlaces dorados) no aplican dentro de LatePoint. */
.latepoint-w svg {
	display: inline-block;
}
.latepoint-w a {
	color: #964a2a;
}
.latepoint-w a:hover {
	color: #2a2019;
}

.latepoint-w :focus-visible {
	outline: 2px solid #964a2a;
	outline-offset: 2px;
}

/* --- Ventana y paneles --- */

.latepoint-lightbox-w.latepoint-lightbox-active,
.latepoint-lightbox-shadow {
	background-color: rgb(11 19 15 / 0.82);
}

.latepoint-lightbox-w .latepoint-lightbox-i,
.latepoint-w .latepoint-booking-form-element,
.latepoint-w .latepoint-form-w,
.latepoint-w form.latepoint-form,
.latepoint-w .latepoint-heading-w,
.latepoint-w .latepoint-footer,
.latepoint-w .summary-header-label {
	background-color: #f4ecdd;
}

/* Texto secundario: LatePoint usa un gris azulado fijo (#7c85a3) que no encaja ni llega a 4,5:1. */
.latepoint-w .latepoint-step-desc-w,
.latepoint-w .latepoint-step-desc,
.latepoint-w .latepoint-desc-content,
.latepoint-w .latepoint-questions,
.latepoint-w .step-datepicker-w,
.latepoint-w .os-dates-and-times-w,
.latepoint-w .summary-box-content,
.latepoint-w .latepoint-summary-w .summary-box .sbc-subtitle,
.latepoint-w .os-monthly-calendar-days {
	color: #4a3d31;
}
.latepoint-w .latepoint-questions h5 {
	font-size: 1.125rem;
}

.latepoint-w .latepoint-side-panel,
.latepoint-w .latepoint-summary-w {
	background-color: #e9dcc6;
}

.latepoint-w .latepoint-heading-w,
.latepoint-w .latepoint-footer,
.latepoint-w .latepoint-side-panel,
.latepoint-w .latepoint-summary-w {
	border-color: rgb(74 61 49 / 0.18);
}

/* --- Botones en forma de píldora --- */

.latepoint-w .latepoint-btn {
	border-radius: 999px;
	font-weight: 500;
	letter-spacing: 0.04em;
}

.latepoint-w .latepoint-btn.latepoint-btn-primary,
.latepoint-w .latepoint-next-btn {
	background-color: #964a2a;
	border-color: #964a2a;
	color: #f4ecdd;
}
.latepoint-w .latepoint-btn.latepoint-btn-primary:hover,
.latepoint-w .latepoint-next-btn:hover {
	background-color: #2a2019;
	border-color: #2a2019;
	color: #f4ecdd;
}

/* --- Formularios --- */

.latepoint-w .os-form-group .os-form-control,
.latepoint-w input.os-form-control,
.latepoint-w textarea.os-form-control,
.latepoint-w select.os-form-control {
	background-color: #fffaf1;
	border-color: rgb(74 61 49 / 0.35);
	color: #2a2019;
}
.latepoint-w .os-form-group label,
.latepoint-w .os-form-group .os-form-label {
	color: #4a3d31;
}

/* --- Calendario --- */

.latepoint-w .os-weekdays .weekday {
	background-color: #e9dcc6;
	color: #4a3d31;
}
.latepoint-w .os-day .os-day-status {
	background-color: rgb(74 61 49 / 0.12);
}
.latepoint-w .os-day .os-day-status .day-available {
	background-color: #964a2a;
}
.latepoint-w .os-day.selected .os-day-box,
.latepoint-w .os-day.os-day-current.selected .os-day-box {
	background-color: #964a2a;
	color: #f4ecdd;
}

/* Horas disponibles: píldoras claras con borde terracota en lugar del verde de LatePoint. */
.latepoint-w .dp-timepicker-trigger.dp-timebox {
	background-color: #fffaf1;
	border: 1px solid rgb(150 74 42 / 0.45);
	border-radius: 999px;
	color: #2a2019;
	box-shadow: none;
}
.latepoint-w .dp-timepicker-trigger.dp-timebox:hover,
.latepoint-w .dp-timepicker-trigger.dp-timebox.selected {
	background-color: #964a2a;
	border-color: #964a2a;
	color: #f4ecdd;
}
.latepoint-w .dp-timepicker-trigger.dp-timebox.is-booked,
.latepoint-w .dp-timepicker-trigger.dp-timebox.is-off {
	background-color: transparent;
	border-color: rgb(74 61 49 / 0.15);
	color: rgb(74 61 49 / 0.55);
}
.latepoint-w .pbh-line {
	background-color: rgb(74 61 49 / 0.15);
}

/* --- Ajustes donde LatePoint fija el color con más especificidad (comprobados en navegador) --- */

.latepoint-w .latepoint-booking-form-element,
.latepoint-w .latepoint-booking-form-element .latepoint-form-w,
.latepoint-w .latepoint-booking-form-element form.latepoint-form,
.latepoint-w .latepoint-booking-form-element .latepoint-heading-w,
.latepoint-w .latepoint-booking-form-element .latepoint-footer,
.latepoint-w .latepoint-footer .latepoint-btn.latepoint-btn-white,
.latepoint-w .summary-header .summary-header-label {
	background-color: #f4ecdd !important;
}
.latepoint-w .latepoint-booking-form-element .latepoint-side-panel {
	background-color: #e9dcc6 !important;
}
.latepoint-w .os-form-group .os-form-control,
.latepoint-w .os-form-group.os-form-textfield-group .os-form-control {
	background-color: #fffaf1 !important;
}

.latepoint-w .latepoint-questions p,
.latepoint-w .sbc-highlighted-item,
.latepoint-w .pbh-label,
.latepoint-w .sbh-item,
.latepoint-w .os-step-tab,
.latepoint-w .os-form-group > label,
.latepoint-w .os-form-group.os-form-textfield-group > label,
.latepoint-w .summary-box-booking-date-month {
	color: #4a3d31 !important;
}
.latepoint-w .os-step-tab.active {
	color: #2a2019 !important;
}

/* En móvil, el bloque de fecha y horas tiene un margen negativo y las horas tocan el borde. */
@media (max-width: 767px) {
	.latepoint-w .os-dates-and-times-w {
		margin-inline: 0 !important;
	}
	.latepoint-w .timeslots {
		padding-inline: 4px;
	}
}

/* --- Talleres (pasos del evento) --- */

.latepoint-w .event-step-summary,
.latepoint-w .event-step-meta,
.latepoint-w .event-step-meta-cell {
	background-color: #fffaf1 !important;
	border-color: rgb(74 61 49 / 0.18) !important;
}
.latepoint-w .event-step-desc,
.latepoint-w .event-step-meta-label,
.latepoint-w .event-step-qty-sublabel {
	color: #4a3d31 !important;
}
.latepoint-w .event-ticket-qty-btn {
	background-color: #e9dcc6 !important;
	color: #2a2019;
	border-radius: 999px;
}
.latepoint-w .event-ticket-qty-btn:hover {
	background-color: #964a2a !important;
	color: #f4ecdd;
}

/* --- Aceptación de condiciones (mu-plugin va-latepoint-condiciones) --- */

.latepoint-w .va-condiciones {
	margin-top: 1rem;
}
.latepoint-w .va-condiciones__etiqueta {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: #2a2019;
	cursor: pointer;
}
.latepoint-w .va-condiciones__etiqueta input {
	flex-shrink: 0;
	width: 1.25rem;
	height: 1.25rem;
	margin: 0.125rem 0 0;
	accent-color: #964a2a;
}

/* --- Accesibilidad (fase 8): contraste de días no disponibles y del año --- */

.latepoint-w .os-day .os-day-number,
.latepoint-w .os-current-month-label .current-year {
	color: #73645a !important; /* 4,8:1 sobre el fondo del formulario; LatePoint fija #adadae */
}
.latepoint-w .os-day:not(.os-not-available):not(.os-day-passed) .os-day-number {
	color: #2a2019 !important;
	font-weight: 600;
}
.latepoint-w .os-day.selected .os-day-number {
	color: #f4ecdd !important;
}
