/* ============================================================
   Alma Tours - Reservas y Front
   Formulario de reserva (circuito + tour de 1 día)
   ============================================================ */

.almatours-reserva-box {
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.08);
	border: 1px solid #e6e6e6;
	overflow: hidden;
	font-family: 'Hind Siliguri', sans-serif;
}

/* En escritorio la caja vive en una columna sticky. Cuando el formulario
   crece (varias habitaciones + fechas de nacimiento) puede quedar mas alto
   que la pantalla y el boton de abajo queda inalcanzable. Con max-height +
   scroll interno siempre se puede llegar al final sin desanclar el sticky.
   --almatours-sticky-offset debe ser aprox. el "top" del sticky de Elementor
   (subelo si tu header fijo es mas alto y el boton sigue cortado). */
@media (min-width: 1025px) {
	.almatours-reserva-box {
		--almatours-sticky-offset: 40px;
		max-height: calc(100vh - var(--almatours-sticky-offset));
		overflow-y: auto;
		overflow-x: hidden;
		overscroll-behavior: contain;
	}
	.almatours-reserva-box::-webkit-scrollbar {
		width: 8px;
	}
	.almatours-reserva-box::-webkit-scrollbar-thumb {
		background: #d9d9d9;
		border-radius: 8px;
	}
	.almatours-reserva-box::-webkit-scrollbar-thumb:hover {
		background: #bdbdbd;
	}
}

/* --- Price Box (cabecera verde como el cotizador del sitio original) --- */
.almatours-price-box {
	text-align: left;
	padding: 26px 28px 28px;
	background-color: #018E4A;
	background-image: url('/wp-content/uploads/2019/04/calendario-02-min-1.png');
	background-size: cover;
	background-position: center;
	color: #fff;
}
.almatours-price-label {
	display: block;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	margin-bottom: 4px;
}
.almatours-discount-badge {
	display: inline-block;
	background: #D61562;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 3px 12px;
	border-radius: 20px;
	margin-bottom: 8px;
}
.almatours-price-regular {
	display: block;
	font-size: 16px;
	color: rgba(255,255,255,0.75);
	text-decoration: line-through;
	margin-bottom: 2px;
}
.almatours-price-current {
	display: block;
	font-size: 38px;
	font-weight: 700;
	line-height: 1.1;
	color: #fff;
}
.almatours-price-cur {
	font-size: 26px;
	font-weight: 600;
	margin-left: 6px;
}
.almatours-price-note {
	display: block;
	font-size: 13px;
	color: rgba(255,255,255,0.85);
	margin-top: 6px;
}

/* --- Form Tabs --- */
.almatours-form-tabs {
	display: flex;
	gap: 26px;
	background: #fff;
	padding: 0 28px;
	border-bottom: 1px solid #eee;
}
.almatours-form-tab {
	padding: 16px 2px 12px;
	cursor: pointer;
	font-weight: 600;
	font-size: 15px;
	color: #9a9a9a;
	border-bottom: 2px solid transparent;
	transition: all 0.2s;
	user-select: none;
}
.almatours-form-tab.active {
	color: #222;
	border-bottom-color: #222;
}
.almatours-form-tab i {
	display: none;
}

/* --- Form Content --- */
.almatours-form-content {
	display: none;
	padding: 24px;
}
.almatours-form-content.active {
	display: block;
}

/* --- Fields --- */
.almatours-field-group {
	margin-bottom: 16px;
}
.almatours-field-group label {
	display: block;
	font-weight: 600;
	margin-bottom: 5px;
	font-size: 12px;
	color: #555;
}
.almatours-field-group label .required {
	color: #D61562;
}
.almatours-field-group select,
.almatours-field-group input[type="text"],
.almatours-field-group input[type="email"],
.almatours-field-group input[type="number"],
.almatours-field-group textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1.5px solid #e0e0e0;
	border-radius: 8px;
	font-family: 'Hind Siliguri', sans-serif;
	font-size: 14px;
	transition: border-color 0.3s;
	background: #fff;
}
.almatours-field-group select:focus,
.almatours-field-group input:focus,
.almatours-field-group textarea:focus {
	outline: none;
	border-color: #018E4A;
	box-shadow: 0 0 0 3px rgba(1,142,74,0.1);
}
.almatours-field-row {
	display: flex;
	gap: 12px;
}
.almatours-field-row .almatours-field-group {
	flex: 1;
}

/* --- Room Block --- */
.almatours-room-block {
	background: #f9f9f9;
	border: 1px solid #e8e8e8;
	border-radius: 10px;
	padding: 16px;
	margin-bottom: 12px;
}
.almatours-room-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}
.almatours-room-header h4 {
	font-size: 13px;
	font-weight: 600;
	color: #333;
	margin: 0;
}
.almatours-btn-remove-room {
	background: none;
	border: none;
	color: #D61562;
	font-size: 14px;
	cursor: pointer;
	padding: 2px 4px;
}
.almatours-child-age-row {
	display: flex;
	gap: 8px;
	align-items: end;
	margin-top: 8px;
	padding: 8px 10px;
	background: #fff;
	border-radius: 6px;
	border: 1px solid #eee;
}
.almatours-child-age-row .almatours-field-group {
	margin-bottom: 0;
}
.almatours-child-age-row .almatours-field-group label {
	font-size: 11px;
}
.almatours-child-age-row select {
	font-size: 12px;
	padding: 6px 8px;
}
.almatours-date-selects {
	display: flex;
	gap: 8px;
}
.almatours-date-selects select {
	flex: 1;
	min-width: 0;
}
.almatours-child-price-note {
	font-size: 11px;
	font-weight: 600;
	margin-top: 2px;
	white-space: nowrap;
}

/* --- Checkbox --- */
.almatours-checkbox-group {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 0;
}
.almatours-checkbox-group input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: #018E4A;
}
.almatours-checkbox-group label {
	font-size: 13px;
	margin-bottom: 0;
	cursor: pointer;
}

/* --- Price Summary --- */
.almatours-price-summary {
	background: #f0faf4;
	border: 1px solid #018E4A;
	border-radius: 8px;
	padding: 16px;
	margin-top: 16px;
}
.almatours-price-row {
	display: flex;
	justify-content: space-between;
	padding: 4px 0;
	font-size: 13px;
}
.almatours-price-row.almatours-total {
	font-weight: 700;
	font-size: 16px;
	color: #D61562;
	border-top: 1px solid #018E4A;
	margin-top: 8px;
	padding-top: 10px;
}
.almatours-price {
	font-weight: 600;
}
.almatours-price-breakdown {
	display: none;
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px dashed #ccc;
}
.almatours-price-breakdown.open {
	display: block;
}
.almatours-toggle-breakdown {
	background: none;
	border: none;
	color: #018E4A;
	font-size: 11px;
	cursor: pointer;
	text-decoration: underline;
	padding: 4px 0 0;
}

/* Leyenda: el desglose por pasajero se ve al continuar (no se muestra el
   detalle de precios en la ficha para no saturar la caja). */
.almatours-desglose-legend {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin: 10px 0 0;
	font-size: 11px;
	line-height: 1.35;
	color: #018E4A;
}
.almatours-desglose-legend i {
	margin-top: 1px;
}

/* Destello sutil del total cuando el precio se recalcula. */
@keyframes almatours-price-pulse {
	0%   { transform: scale(1); }
	30%  { transform: scale(1.08); color: #018E4A; }
	100% { transform: scale(1); }
}
.almatours-price-pulse {
	display: inline-block;
	animation: almatours-price-pulse 0.45s ease;
}

/* --- Submit Button (efecto llamativo al pasar el cursor) --- */
.almatours-btn-submit {
	position: relative;
	display: block;
	width: 100%;
	padding: 14px;
	background: linear-gradient(135deg, #D61562 0%, #ff4d8d 100%);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-family: 'Hind Siliguri', sans-serif;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.3px;
	cursor: pointer;
	margin-top: 16px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(214, 21, 98, 0.25);
	transition: transform 0.25s ease, box-shadow 0.25s ease, background-position 0.4s ease;
	background-size: 160% 100%;
}
/* Barrido de brillo que cruza el boton. */
.almatours-btn-submit::after {
	content: "";
	position: absolute;
	top: 0;
	left: -80%;
	width: 50%;
	height: 100%;
	background: linear-gradient(120deg, transparent, rgba(255,255,255,0.45), transparent);
	transform: skewX(-20deg);
	transition: none;
}
.almatours-btn-submit:hover:not(:disabled) {
	transform: translateY(-3px) scale(1.02);
	background-position: 100% 0;
	box-shadow: 0 10px 22px rgba(214, 21, 98, 0.45);
}
.almatours-btn-submit:hover:not(:disabled)::after {
	left: 130%;
	transition: left 0.7s ease;
}
.almatours-btn-submit:hover:not(:disabled) i {
	animation: almatours-btn-wiggle 0.5s ease;
}
.almatours-btn-submit:active:not(:disabled) {
	transform: translateY(0) scale(0.99);
	box-shadow: 0 3px 8px rgba(214, 21, 98, 0.35);
}
.almatours-btn-submit:focus-visible {
	outline: 3px solid rgba(214, 21, 98, 0.35);
	outline-offset: 2px;
}
.almatours-btn-submit:disabled {
	background: #ccc;
	box-shadow: none;
	cursor: not-allowed;
}
@keyframes almatours-btn-wiggle {
	0%, 100% { transform: rotate(0) scale(1); }
	30% { transform: rotate(-14deg) scale(1.2); }
	60% { transform: rotate(10deg) scale(1.2); }
}
@media (prefers-reduced-motion: reduce) {
	.almatours-btn-submit,
	.almatours-btn-submit::after { transition: none; }
	.almatours-btn-submit:hover:not(:disabled) { transform: none; }
	.almatours-btn-submit:hover:not(:disabled) i { animation: none; }
}

/* --- Fila inferior: favoritos (izquierda) + vistas (derecha), misma tipografia --- */
.almatours-meta-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 24px;
	border-top: 1px solid #f0f0f0;
	font-family: 'Hind Siliguri', sans-serif;
	font-size: 14px !important;
	line-height: 1.2;
	color: #222 !important;
}
.almatours-meta-row .almatours-meta-wishlist,
.almatours-meta-row .almatours-view-counter {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	font-size: 14px !important;
	line-height: 1.2;
	color: #222 !important;
}
.almatours-meta-row .yith-wcwl-add-to-wishlist {
	margin: 0;
	padding: 0;
}
.almatours-meta-row .yith-wcwl-add-to-wishlist a,
.almatours-meta-row .yith-wcwl-add-to-wishlist span,
.almatours-meta-row .yith-wcwl-add-to-wishlist .feedback {
	font-size: 14px !important;
	line-height: 1.2;
	color: #222 !important;
	font-weight: 500 !important;
}
.almatours-meta-row .almatours-view-counter i { color: #D61562; }
.almatours-meta-row .almatours-view-counter strong { font-weight: 500 !important; color: #222 !important; font-size: 14px !important; }
.almatours-meta-row a, .almatours-meta-row span, .almatours-meta-row strong { font-family: inherit; color: #222 !important; font-size: 14px !important; }
.almatours-meta-row i, .almatours-meta-row svg { color: #D61562; }

/* --- Thank You Notice --- */
.almatours-thankyou-notice {
	font-family: 'Hind Siliguri', sans-serif;
}

/* --- Dudas Form --- */
.almatours-form-dudas .almatours-field-group {
	margin-bottom: 14px;
}
.almatours-field-hint {
	display: block;
	font-size: 11px;
	color: #018E4A;
	margin-top: 5px;
	font-style: italic;
}
.almatours-duda-exito {
	background: #f0faf4;
	border: 2px solid #018E4A;
	border-radius: 10px;
	padding: 24px 20px;
	text-align: center;
	font-family: 'Hind Siliguri', sans-serif;
}
.almatours-duda-exito i {
	color: #018E4A;
	font-size: 40px;
	display: block;
	margin-bottom: 10px;
}
.almatours-duda-exito p {
	margin: 0;
	font-size: 15px;
	color: #333;
}

/* ===== Compacto: menos espacio vertical, campos en 2 columnas ===== */
.almatours-price-box { padding: 28px 22px 28px; }
.almatours-price-current { font-size: 44px; line-height: 1.1; }
.almatours-price-cur { font-size: 24px; margin-left: 6px; }
.almatours-price-label { font-size: 15px; margin-bottom: 2px; }
.almatours-price-note { margin-top: 2px; font-size: 12.5px; }
.almatours-form-tabs { padding: 0 22px; gap: 20px; }
.almatours-form-tab { padding: 11px 2px 9px; font-size: 14px; }
.almatours-form-content { padding: 14px 22px 16px; }
.almatours-field-group { margin-bottom: 9px; }
.almatours-field-group label { margin-bottom: 3px; font-size: 12px; }
.almatours-field-group select,
.almatours-field-group input[type="text"],
.almatours-field-group input[type="email"],
.almatours-field-group input[type="number"] { padding: 7px 10px; font-size: 14px; line-height: 1.3; height: 38px; box-sizing: border-box; }
.almatours-field-group textarea { padding: 7px 10px; font-size: 14px; min-height: 58px; resize: vertical; box-sizing: border-box; }
.almatours-field-row { display: flex; gap: 10px; }
.almatours-field-row > .almatours-field-group { flex: 1 1 0; min-width: 0; }
.almatours-field-hint { margin-top: 3px; font-size: 11px; }
.almatours-room-block { padding: 9px 12px 10px; margin-bottom: 8px; border-radius: 8px; }
.almatours-room-header { margin-bottom: 6px; }
.almatours-child-age-row { margin-top: 6px; padding: 6px 8px; }
.almatours-child-age-row select { height: 32px; padding: 4px 8px; }
.almatours-checkbox-group { padding: 4px 0; }
.almatours-price-summary { padding: 10px 12px; margin-top: 8px; }
.almatours-price-row { padding: 2px 0; }
.almatours-price-row.almatours-total { margin-top: 5px; padding-top: 6px; }
.almatours-desglose-legend { margin-top: 6px; font-size: 12px; }
.almatours-btn-submit { margin-top: 10px; padding-top: 12px; padding-bottom: 12px; }
.almatours-form-dudas .almatours-field-group { margin-bottom: 9px; }
.almatours-meta-row { padding: 8px 22px; }
@media (min-width: 1025px) {
	.almatours-reserva-box { --almatours-sticky-offset: 16px; }
}
@media (max-width: 480px) {
	.almatours-field-row { flex-direction: column; gap: 0; }
}

/* Nota superior del cotizador */
.almatours-nota-top { background: linear-gradient(100deg, #5C3DB2, #8C0295); color: #fff; text-align: center; font-weight: 700; font-size: 14px; letter-spacing: .3px; padding: 11px 16px; }
/* Campos un poco mas altos */
.almatours-field-group select,
.almatours-field-group input[type="text"],
.almatours-field-group input[type="email"],
.almatours-field-group input[type="number"] { height: 44px; padding: 9px 12px; }
.almatours-field-group textarea { min-height: 70px; padding: 9px 12px; }
.almatours-child-age-row select { height: 36px; }
.almatours-field-group label small { font-weight: 500; color: #888; }


/* ====== Calendario y pasajeros: estados deshabilitados (gris opaco) y compatibilidad ====== */
.almatours-field-group.almatours-is-disabled { opacity: .45; }
.almatours-field-group.almatours-is-disabled label { cursor: not-allowed; }
.almatours-reserva-box select:disabled, .almatours-reserva-box input:disabled, .almatours-reserva-box textarea:disabled {
	background-color: #eceeed !important; color: #8a928d !important; border-color: #d9dedb !important; cursor: not-allowed !important; -webkit-text-fill-color: #8a928d; opacity: 1;
}
.almatours-reserva-box .almatours-btn-submit:disabled, .almatours-reserva-box .almatours-btn-submit[disabled] {
	opacity: .45; cursor: not-allowed; filter: grayscale(.5); box-shadow: none; transform: none;
}
.almatours-field-hint--dyn { display: block; margin-top: 6px; min-height: 0; font-size: 12px; line-height: 1.35; color: #6b766f; }
.almatours-field-hint--dyn:empty { display: none; }
.almatours-field-hint--error { color: #b3261e; font-weight: 700; }
#almatours-circ-fecha, #almatours-tour-fecha, .almatours-reserva-box input.flatpickr-input { cursor: pointer; }
/* El calendario siempre por encima de la columna fija, del header y del buscador */
.flatpickr-calendar { z-index: 2147483000 !important; }
.flatpickr-calendar.open { max-width: calc(100vw - 16px); }
@media (max-width: 480px) { .flatpickr-calendar { width: calc(100vw - 16px) !important; } .flatpickr-calendar .flatpickr-days, .flatpickr-calendar .dayContainer { width: 100% !important; min-width: 0 !important; max-width: none !important; } .flatpickr-day { max-width: none; } }
