/* Formulario de reservas con la paleta Brasa Noir del tema (con valores de
 * respaldo por si se usa con otro tema). */

.rio-res {
	--rio-res-base: var(--wp--preset--color--base, #110d0a);
	--rio-res-surface: var(--wp--preset--color--surface, #231b15);
	--rio-res-ink: var(--wp--preset--color--contrast, #f3ebe0);
	--rio-res-muted: var(--wp--preset--color--muted, #b9ac9c);
	--rio-res-primary: var(--wp--preset--color--primary, #e8763a);
	--rio-res-gold: var(--wp--preset--color--secondary, #e3b25a);
	--rio-res-on-primary: var(--wp--preset--color--on-primary, #140d08);
	--rio-res-line: var(--wp--custom--hairline, rgba(243, 235, 224, 0.12));
	--rio-res-radius: var(--wp--custom--radius--md, 20px);
	display: grid;
	gap: 18px;
	max-width: 760px;
	color: var(--rio-res-ink);
}
.rio-res *, .rio-res *::before, .rio-res *::after { box-sizing: border-box; }
.rio-res [hidden] { display: none !important; }

.rio-res__preview {
	justify-self: start; margin: 0; padding: 6px 14px; border: 1px dashed var(--rio-res-gold); border-radius: 999px;
	color: var(--rio-res-gold); font-size: 13px; letter-spacing: 0.04em;
}

.rio-res__form { display: grid; gap: 18px; margin: 0; }
.rio-res__group {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 22px;
	border: 1px solid var(--rio-res-line); border-radius: var(--rio-res-radius); background: var(--rio-res-surface);
}
.rio-res__group legend { padding: 0 8px; color: var(--rio-res-gold); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.rio-res__field { display: grid; gap: 6px; font-size: 13px; color: var(--rio-res-muted); letter-spacing: 0.04em; text-transform: uppercase; }
.rio-res__field--wide { grid-column: 1 / -1; }
.rio-res__field input, .rio-res__field select, .rio-res__field textarea {
	width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--rio-res-line); border-radius: 12px;
	background: var(--rio-res-base); color: var(--rio-res-ink); font: inherit; font-size: 16px; text-transform: none; letter-spacing: 0;
	color-scheme: dark;
}
.rio-res__field textarea { min-height: 96px; resize: vertical; }
.rio-res__field input:focus-visible, .rio-res__field select:focus-visible, .rio-res__field textarea:focus-visible { outline: 2px solid var(--rio-res-gold); outline-offset: 2px; }
.rio-res__field select:disabled { opacity: 0.6; }
.rio-res__big-party { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--rio-res-base); color: var(--rio-res-gold); }
.rio-res__full { padding: 14px; border-radius: 12px; background: var(--rio-res-base); border: 1px dashed var(--rio-res-gold); }
.rio-res__full-text { margin: 0 0 10px; color: var(--rio-res-gold); }
.rio-res__alts { display: flex; flex-wrap: wrap; gap: 8px; }
.rio-res__alt { min-height: 44px; padding: 0 18px; border: 1px solid var(--rio-res-gold); border-radius: 999px; background: transparent; color: var(--rio-res-ink); font: inherit; font-weight: 600; cursor: pointer; }
.rio-res__alt:hover, .rio-res__alt:focus-visible { background: var(--rio-res-gold); color: var(--rio-res-on-primary); outline: none; }
.rio-res__check { display: flex; gap: 12px; align-items: flex-start; color: var(--rio-res-ink); font-size: 15px; cursor: pointer; }
.rio-res__check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--rio-res-primary); flex: none; }
.rio-res__done.is-waitlist { border-color: rgba(227, 178, 90, 0.5); }
.rio-res__done.is-waitlist .rio-res__done-title { color: var(--rio-res-gold); }
.rio-res__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.rio-res__submit, .rio-res__call {
	display: inline-flex; justify-content: center; align-items: center; width: 100%; min-height: 54px; padding: 0 24px;
	border: 0; border-radius: 999px; background: var(--rio-res-primary); color: var(--rio-res-on-primary);
	font: inherit; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer;
}
.rio-res__submit[disabled] { opacity: 0.55; cursor: default; }
.rio-res__submit:focus-visible, .rio-res__call:focus-visible { outline: 2px solid var(--rio-res-ink); outline-offset: 3px; }
.rio-res__note { margin: 0; color: var(--rio-res-muted); font-size: 14px; }
.rio-res__status { margin: 0; color: #ff9b85; font-weight: 600; }
.rio-res__status:empty { display: none; }

.rio-res__done {
	display: grid; gap: 16px; padding: 30px 24px; border: 1px solid rgba(127, 181, 154, 0.5); border-radius: var(--rio-res-radius);
	background: var(--rio-res-surface); text-align: center;
}
.rio-res__done:focus { outline: none; }
.rio-res__done-title { margin: 0; color: var(--wp--preset--color--accent-green-ink, #7fb59a); font-size: clamp(26px, 3vw, 34px); }
.rio-res__lead { margin: 0; }
.rio-res__summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; text-align: left; }
.rio-res__summary div { padding: 10px 12px; border-radius: 12px; background: var(--rio-res-base); }
.rio-res__summary dt { color: var(--rio-res-muted); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.rio-res__summary dd { margin: 2px 0 0; font-weight: 600; }
.rio-res__link { justify-self: center; padding: 8px; border: 0; background: none; color: var(--rio-res-muted); font: inherit; font-size: 15px; text-decoration: underline; cursor: pointer; }
.rio-res__empty { padding: 24px; border: 1px solid var(--rio-res-line); border-radius: var(--rio-res-radius); text-align: center; }

@media (max-width: 640px) {
	.rio-res__group { grid-template-columns: minmax(0, 1fr); padding: 18px 16px; }
	.rio-res__summary { grid-template-columns: minmax(0, 1fr); }
}
