/* Cinderella Motel & Campground: the Reservation Requests, one step at a time (assets/js/reservation-steps.js; round 31).
   Beach Rose RV Park's stylesheet in Cinderella's colours and fonts: sage for progress and the current step, Next and
   Send in the site's gold button (buttons.css .cc-btn), Back in its white one (.cc-btn-line).
   Everything is scoped to #theForm.rsv-on, which the script adds only once it has set the steps up,
   so the library's plain form is untouched whenever the script doesn't run. */

:root { --rsv-css: 1; }

#theForm:not(.rsv-on) .rsv-head, #theForm:not(.rsv-on) .rsv-lower, #theForm:not(.rsv-on) .rsv-nav,
#theForm:not(.rsv-on) .rsv-stepper, #theForm:not(.rsv-on) .rsv-date, #theForm:not(.rsv-on) .rsv-note-row,
#theForm:not(.rsv-on) .rsv-summary-row, #theForm:not(.rsv-on) .rsv-optional, #theForm:not(.rsv-on) .rsv-agree-more { display: none !important; }

#theForm.rsv-on {
	--rsv-maroon: #3E5A48;        /* the accent: Cinderella's deep sage (7.3:1 on white) */
	--rsv-maroon-hi: #4E705A;
	--rsv-navy: #2E4537;
	--rsv-gold: #B29033;
	--rsv-line: rgba(95, 127, 107, .3);
	--rsv-field: #93A89A;
	--rsv-cream: #F6F2EA;
	--rsv-text: #2F2F2F;
	--rsv-soft: #4A4A4A;
	--rsv-error: #B3261E;
	max-width: 1000px;
	margin: 0 auto !important;
	font-family: "Open Sans", Arial, sans-serif;
	color: var(--rsv-text);
	text-align: left;
	text-wrap: pretty;
	border-radius: 12px;
	background: #fff;
	border: 1px solid rgba(95, 127, 107, .22);
	box-shadow: 0 8px 26px rgba(40, 60, 45, .1);
	overflow: clip;
}
#theForm.rsv-on button { -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }

/* The header: title, progress, steps */
#theForm.rsv-on .rsv-head {
	padding: 26px 40px 22px;
	background: linear-gradient(to bottom, #FAFAF7 0%, #E7EEE8 100%);
	border-bottom: 1px solid var(--rsv-line);
}
#theForm.rsv-on .rsv-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
#theForm.rsv-on .rsv-heading { margin: 0; font: 600 22px/1.2 "Poppins", Arial, sans-serif; color: var(--rsv-maroon); text-transform: none; }
#theForm.rsv-on .rsv-count { font-size: 17px; font-weight: 700; color: var(--rsv-navy); white-space: nowrap; }
#theForm.rsv-on .rsv-bar-row { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
#theForm.rsv-on .rsv-bar {
	position: relative; flex: 1; height: 12px; border-radius: 99px; overflow: hidden;
	background: #fff; box-shadow: inset 0 1px 2px rgba(40, 60, 45, .3);
}
#theForm.rsv-on .rsv-bar-fill {
	position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 99px;
	background: linear-gradient(to right, #6E9079, var(--rsv-maroon));
	transition: width .45s cubic-bezier(.2, .8, .2, 1);
}
#theForm.rsv-on .rsv-pct { min-width: 5.6em; text-align: right; font-size: 16.5px; font-weight: 700; color: var(--rsv-maroon); font-variant-numeric: tabular-nums; }

#theForm.rsv-on .rsv-chips { display: flex; gap: 6px; margin: 18px 0 0; padding: 0; list-style: none; }
#theForm.rsv-on .rsv-chips li { flex: 1; margin: 0; padding: 0; list-style: none; }
#theForm.rsv-on .rsv-chips li::before { content: none; }
#theForm.rsv-on .rsv-chip {
	display: flex; flex-direction: column; align-items: center; gap: 7px; width: 100%;
	margin: 0; padding: 4px 2px; border: 0; background: none; cursor: pointer;
	font: 700 15.5px/1.2 "Open Sans", Arial, sans-serif; color: var(--rsv-navy);
}
#theForm.rsv-on .rsv-chip:disabled { cursor: default; color: #6b6b6b; }
#theForm.rsv-on .rsv-dot {
	position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
	background: #fff; border: 2px solid #A9BBAE; color: #4A4A4A; font-size: 16px;
	transition: background .25s, border-color .25s, color .25s, transform .25s;
}
#theForm.rsv-on .rsv-chip:not(:disabled):hover .rsv-dot { transform: scale(1.07); }
#theForm.rsv-on .rsv-chip.is-done .rsv-dot { background: var(--rsv-navy); border-color: var(--rsv-navy); color: #fff; }
#theForm.rsv-on .rsv-chip.is-done .rsv-num { font-size: 0; }
#theForm.rsv-on .rsv-chip.is-done .rsv-num::before { content: ""; display: block; width: 13px; height: 7px; margin-top: -3px; border: solid #fff; border-width: 0 0 3px 3px; transform: rotate(-45deg); }
#theForm.rsv-on .rsv-chip.is-current .rsv-dot { background: var(--rsv-maroon); border-color: var(--rsv-maroon); color: #fff; box-shadow: 0 0 0 4px rgba(62, 90, 72, .18); }
#theForm.rsv-on .rsv-chip.is-current { color: var(--rsv-maroon); }
#theForm.rsv-on .rsv-chip.is-flagged .rsv-dot::after { content: "!"; position: absolute; top: -6px; right: -8px; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--rsv-error); color: #fff; font-size: 13px; line-height: 1; border: 2px solid #fff; }
#theForm.rsv-on .rsv-chip:focus-visible { outline: 3px solid var(--rsv-maroon); outline-offset: 2px; border-radius: 8px; }

/* The step's own heading and its errors */
#theForm.rsv-on .rsv-lower { padding: 28px 40px 0; }
#theForm.rsv-on .rsv-step-title { margin: 0; font: 700 26px/1.2 "Poppins", Arial, sans-serif; color: var(--rsv-navy); outline: 0; text-transform: none; }
#theForm.rsv-on .rsv-step-text { margin: 6px 0 0; font-size: 19px; line-height: 1.45; color: var(--rsv-soft); }
#theForm.rsv-on .rsv-error {
	margin: 18px 0 0; padding: 13px 16px; border-radius: 8px;
	background: #fff0f1; border: 1px solid #f1b9c0; border-left: 5px solid var(--rsv-error);
	font-size: 18px; line-height: 1.45; color: #5a0010;
}
#theForm.rsv-on .rsv-error[hidden] { display: none; }

/* The library's table, as a simple stack of fields */
#theForm.rsv-on #theTable { display: block; width: auto !important; margin: 0; padding: 10px 40px 4px; background: none !important; box-shadow: none !important; border: 0 !important; }
#theForm.rsv-on #theTable > tbody { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 20px; }
#theForm.rsv-on #theTable > tbody > tr:not(.ns) { display: block; grid-column: 1 / -1; }
#theForm.rsv-on #theTable > tbody > tr > td,
#theForm.rsv-on #theTable > tbody > tr > th { display: block; width: auto !important; padding: 0 !important; border: 0 !important; background: none !important; text-align: left !important; font-family: inherit !important; font-size: 18px !important; color: var(--rsv-text) !important; }
#theForm.rsv-on .rsv-title, #theForm.rsv-on .rsv-spacer, #theForm.rsv-on .rsv-gone, #theForm.rsv-on .rsv-empty { display: none !important; }
#theForm.rsv-on #theTable > tbody > tr.rsv-off { display: none !important; }
#theForm.rsv-on #theTable > tbody > tr.rsv-row { padding: 12px 0; }
#theForm.rsv-on .rsv-half { grid-column: span 3 !important; }
#theForm.rsv-on .rsv-city { grid-column: span 3 !important; }
#theForm.rsv-on .rsv-state { grid-column: span 1 !important; }
#theForm.rsv-on .rsv-zip { grid-column: span 2 !important; }
#theForm.rsv-on #top_mailer_error td, #theForm.rsv-on #bottom_mailer_error td { padding: 12px 0 0 !important; color: var(--rsv-error) !important; font-weight: 700; }

#theForm.rsv-on tr.rsv-row > td.mailer_leftCol { margin-bottom: 8px; }
#theForm.rsv-on tr.rsv-row > td.mailer_leftCol label { font-weight: 700; color: var(--rsv-navy); font-size: 18px; line-height: 1.3; }
#theForm.rsv-on .rsv-ast { display: none !important; }
#theForm.rsv-on .rsv-relabel > :not(.rsv-label) { display: none !important; }
#theForm.rsv-on .rsv-sub { display: block; margin-top: 2px; font-weight: 400; font-size: 16.5px; color: #4f4f4f; }
#theForm.rsv-on .rsv-optional { font-weight: 400; color: #5c5c5c; font-size: 16.5px; }

#theForm.rsv-on tr.rsv-row input[type=text],
#theForm.rsv-on tr.rsv-row input[type=date],
#theForm.rsv-on tr.rsv-row select,
#theForm.rsv-on tr.rsv-row textarea {
	box-sizing: border-box; width: 100% !important; max-width: 100%; min-height: 50px; margin: 0;
	padding: 10px 13px; border: 1px solid var(--rsv-field); border-radius: 8px; background: #fff;
	font: 18px/1.35 "Open Sans", Arial, sans-serif; color: var(--rsv-text); vertical-align: middle !important;
	box-shadow: inset 0 1px 2px rgba(40, 60, 45, .1);
	transition: border-color .15s, box-shadow .15s;
}
#theForm.rsv-on tr.rsv-row textarea { min-height: 120px; resize: vertical; }
#theForm.rsv-on tr.rsv-row input[type=date] { cursor: pointer; }
#theForm.rsv-on tr.rsv-row input::placeholder { color: #8a8a8a; }
#theForm.rsv-on tr.rsv-row input[type=text]:focus,
#theForm.rsv-on tr.rsv-row input[type=date]:focus,
#theForm.rsv-on tr.rsv-row select:focus,
#theForm.rsv-on tr.rsv-row textarea:focus { outline: 0; border-color: var(--rsv-maroon); box-shadow: 0 0 0 3px rgba(62, 90, 72, .2); }
#theForm.rsv-on tr.rsv-invalid input[type=text],
#theForm.rsv-on tr.rsv-invalid input[type=date],
#theForm.rsv-on tr.rsv-invalid select,
#theForm.rsv-on tr.rsv-invalid textarea { border-color: var(--rsv-error); box-shadow: 0 0 0 3px rgba(179, 0, 27, .14); }
#theForm.rsv-on tr.rsv-invalid > td.mailer_leftCol label { color: var(--rsv-error); }
#theForm.rsv-on .rsv-hidden-select { display: none !important; }

/* Label on the left, control on the right: nights, guests, slide-outs */
#theForm.rsv-on tr.rsv-inline { display: flex !important; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid rgba(95, 127, 107, .18); }
#theForm.rsv-on tr.rsv-inline > td.mailer_leftCol { margin: 0; }
#theForm.rsv-on tr.rsv-inline > td:last-child { flex: none; }

#theForm.rsv-on .rsv-stepper { display: inline-flex; align-items: center; border: 1px solid var(--rsv-field); border-radius: 99px; background: #fff; overflow: hidden; }
#theForm.rsv-on .rsv-step-btn {
	display: grid; place-items: center; width: 48px; height: 46px; margin: 0; padding: 0 0 2px; border: 0;
	background: #EDF2EE; color: var(--rsv-maroon); font: 700 26px/1 Arial, sans-serif; cursor: pointer;
	transition: background .15s;
}
#theForm.rsv-on .rsv-step-btn:hover:not(:disabled) { background: #DCE6DF; }
#theForm.rsv-on .rsv-step-btn:active:not(:disabled) { background: #C9D8CE; }
#theForm.rsv-on .rsv-step-btn:disabled { color: #A6B2AA; cursor: default; }
#theForm.rsv-on .rsv-step-btn:focus-visible { outline: 3px solid var(--rsv-maroon); outline-offset: -3px; }
#theForm.rsv-on .rsv-step-val { min-width: 56px; text-align: center; font-size: 20px; font-weight: 700; color: var(--rsv-navy); font-variant-numeric: tabular-nums; }

#theForm.rsv-on #theTable > tbody > tr.rsv-note-row { padding: 4px 0 6px; }
#theForm.rsv-on .rsv-nights-note { margin: 0; font-size: 17.5px; color: var(--rsv-navy); }
#theForm.rsv-on .rsv-hint { margin: 0; padding: 10px 14px; border-radius: 8px; background: var(--rsv-cream); font-size: 17px; color: #3A3A3A; }

/* Type of RV: tappable cards */
#theForm.rsv-on tr.rsv-row > td:last-child:has(> table.radioTable) { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; box-sizing: border-box; min-width: 0; }
#theForm.rsv-on tr.rsv-row > td:last-child:has(> table.radioTable) > br { display: none; }
#theForm.rsv-on table.radioTable { position: relative; display: block; box-sizing: border-box; width: 100% !important; min-width: 0; margin: 0; border: 1px solid var(--rsv-field) !important; border-radius: 10px; background: #fff; transition: border-color .15s, background .15s, box-shadow .15s; }
#theForm.rsv-on table.radioTable tbody, #theForm.rsv-on table.radioTable tr { display: flex; align-items: center; width: 100%; }
#theForm.rsv-on table.radioTable td { display: block; padding: 0 !important; border: 0 !important; font: inherit !important; background: transparent !important; }   /* the form's own #theTable td { background: white } covered the card's corners and tint */
#theForm.rsv-on table.radioTable td:first-child { padding: 0 0 0 14px !important; }
#theForm.rsv-on table.radioTable td:last-child { flex: 1; }
#theForm.rsv-on table.radioTable input[type=radio] { width: 20px; height: 20px; margin: 0 !important; accent-color: var(--rsv-maroon); vertical-align: middle !important; }
#theForm.rsv-on table.radioTable label { display: block; padding: 14px 14px 14px 10px; font: 18px/1.3 "Open Sans", Arial, sans-serif; color: var(--rsv-text); cursor: pointer; }
#theForm.rsv-on table.radioTable label::after { content: ""; position: absolute; inset: 0; }
#theForm.rsv-on table.radioTable:hover { border-color: var(--rsv-maroon); }
#theForm.rsv-on table.radioTable:has(input:checked) { border-color: var(--rsv-maroon); background: #EEF3EF; box-shadow: inset 0 0 0 1px var(--rsv-maroon); }
#theForm.rsv-on table.radioTable:has(input:checked) label { font-weight: 700; color: var(--rsv-maroon); }
#theForm.rsv-on table.radioTable:has(input:focus-visible) { outline: 3px solid var(--rsv-maroon); outline-offset: 2px; }
#theForm.rsv-on tr.rsv-invalid table.radioTable { border-color: var(--rsv-error) !important; }

/* Last step: summary, policies, I Agree */
#theForm.rsv-on #theTable > tbody > tr.rsv-summary-row > td { padding: 18px 20px !important; border: 1px solid var(--rsv-line) !important; border-radius: 10px; background: #F7F9F7 !important; }
#theForm.rsv-on .rsv-sum-title { margin: 0 0 8px; font: 700 21px/1.25 "Poppins", Arial, sans-serif; color: var(--rsv-navy); }
#theForm.rsv-on .rsv-sum { margin: 0; }
#theForm.rsv-on .rsv-sum-row { display: grid; grid-template-columns: 100px 1fr auto; gap: 4px 14px; align-items: baseline; padding: 9px 0; border-top: 1px solid rgba(95, 127, 107, .18); }
#theForm.rsv-on .rsv-sum-row:first-child { border-top: 0; }
#theForm.rsv-on .rsv-sum dt { font-weight: 700; color: var(--rsv-navy); font-size: 17px; }
#theForm.rsv-on .rsv-sum dd { margin: 0; font-size: 17.5px; line-height: 1.4; overflow-wrap: anywhere; }
#theForm.rsv-on .rsv-sum-edit { margin: 0; padding: 2px 4px; border: 0; background: none; color: var(--rsv-maroon); font: 700 16.5px/1.3 "Open Sans", Arial, sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#theForm.rsv-on .rsv-sum-edit:hover { color: var(--rsv-maroon-hi); }

#theForm.rsv-on #theTable > tbody > tr.rsv-note > td { padding: 16px 18px !important; border-radius: 10px; background: var(--rsv-cream) !important; font-size: 17px !important; line-height: 1.5; color: #333 !important; }
#theForm.rsv-on tr.rsv-agree { display: flex !important; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 14px; }
#theForm.rsv-on tr.rsv-agree > td.mailer_leftCol { margin: 0; }
#theForm.rsv-on tr.rsv-agree > td:last-child { flex: none; }
#theForm.rsv-on tr.rsv-agree label { cursor: pointer; }
#theForm.rsv-on tr.rsv-agree .rsv-agree-more { font-weight: 400; }
#theForm.rsv-on tr.rsv-agree input[type=checkbox] { transform: none !important; width: 28px; height: 28px; margin: 0 !important; accent-color: var(--rsv-maroon); cursor: pointer; vertical-align: middle !important; }
#theForm.rsv-on tr.rsv-invalid.rsv-agree input[type=checkbox] { outline: 3px solid var(--rsv-error); outline-offset: 2px; }
#theForm.rsv-on #theTable > tbody > tr.rsv-privacy > td { text-align: center !important; font-size: 16px !important; }

/* Back / Next / Send */
#theForm.rsv-on .rsv-nav { display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 22px 40px 30px; }
#theForm.rsv-on .rsv-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; margin: 0; padding: 0 28px;
	border: 0; border-radius: 10px; font: 700 19px/1 "Poppins", Arial, sans-serif; letter-spacing: .01em; white-space: nowrap; cursor: pointer;
	transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
#theForm.rsv-on .rsv-btn[hidden] { display: none; }
/* Back: the site's white button (like the current menu tile) */
#theForm.rsv-on .rsv-back { margin-right: auto; background: #FAFAF7; color: #3E5A48;
	box-shadow: 0 1px 2px rgba(60, 45, 10, .28), 0 3px 9px rgba(60, 45, 10, .24), inset 0 0 0 1px rgba(255, 255, 255, .7); }
#theForm.rsv-on .rsv-back:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 2px 3px rgba(60, 45, 10, .26), 0 6px 14px rgba(60, 45, 10, .24); }
#theForm.rsv-on .rsv-back::before, #theForm.rsv-on .rsv-arrow { content: ""; display: block; flex: none; width: 9px; height: 9px; border: solid currentColor; border-width: 2.5px 2.5px 0 0; }
#theForm.rsv-on .rsv-back::before { transform: rotate(-135deg); margin-left: 3px; }
#theForm.rsv-on .rsv-arrow { transform: rotate(45deg); margin-right: 3px; }
/* Next and Send: the site's gold button (like the menu bar): bold white 19px on #B29033 (3.0:1, large text) */
#theForm.rsv-on .rsv-next, #theForm.rsv-on .rsv-send { background: #B29033; color: #fff;
	box-shadow: inset 0 0 0 3px #B29033, inset 0 0 0 4px rgba(255, 240, 200, .5); }
#theForm.rsv-on .rsv-next:hover, #theForm.rsv-on .rsv-send:hover { background: #A98830;
	box-shadow: inset 0 0 0 1px rgba(255, 240, 200, .5), inset 0 3px 6px rgba(70, 48, 5, .38), inset 0 -2px 3px rgba(255, 240, 200, .22); }
#theForm.rsv-on .rsv-next:active, #theForm.rsv-on .rsv-send:active { box-shadow: inset 0 0 0 1px rgba(255, 240, 200, .5), inset 0 4px 8px rgba(70, 48, 5, .48); }
#theForm.rsv-on .rsv-send:disabled { opacity: .75; cursor: progress; }
#theForm.rsv-on .rsv-btn:focus-visible { outline: 3px solid var(--rsv-navy); outline-offset: 3px; }

/* Moving between steps */
@keyframes rsv-in-fwd { from { opacity: 0; transform: translateX(22px); } }
@keyframes rsv-in-back { from { opacity: 0; transform: translateX(-22px); } }
#theForm.rsv-on tr.rsv-enter-fwd { animation: rsv-in-fwd .32s cubic-bezier(.2, .8, .2, 1) both; }
#theForm.rsv-on tr.rsv-enter-back { animation: rsv-in-back .32s cubic-bezier(.2, .8, .2, 1) both; }
@media (prefers-reduced-motion: reduce) {
	@keyframes rsv-fade { from { opacity: 0; } }
	#theForm.rsv-on tr.rsv-enter-fwd, #theForm.rsv-on tr.rsv-enter-back { animation: rsv-fade .2s both; }
	#theForm.rsv-on .rsv-bar-fill, #theForm.rsv-on .rsv-dot { transition: none; }
}

/* Phones */
@media (max-width: 640px) {
	#theForm.rsv-on { border-radius: 12px; margin: 0 !important; }
	#theForm.rsv-on .rsv-head { padding: 20px 16px 16px; }
	#theForm.rsv-on .rsv-heading { font-size: 24px; }
	#theForm.rsv-on .rsv-count { font-size: 16px; }
	#theForm.rsv-on .rsv-chips { gap: 2px; margin-top: 14px; }
	#theForm.rsv-on .rsv-chip-label { display: none; }
	#theForm.rsv-on .rsv-dot { width: 34px; height: 34px; }
	#theForm.rsv-on .rsv-lower { padding: 22px 16px 0; }
	#theForm.rsv-on .rsv-step-title { font-size: 23px; }
	#theForm.rsv-on .rsv-step-text { font-size: 18px; }
	#theForm.rsv-on #theTable { padding: 6px 16px 2px; }
	#theForm.rsv-on tr.rsv-inline { gap: 12px; }
	#theForm.rsv-on .rsv-step-btn { width: 42px; height: 44px; }
	#theForm.rsv-on .rsv-step-val { min-width: 44px; }
	#theForm.rsv-on .rsv-next-name, #theForm.rsv-on .rsv-send-my { display: none; }
	#theForm.rsv-on #theTable > tbody { column-gap: 12px; }
	#theForm.rsv-on .rsv-half, #theForm.rsv-on .rsv-city { grid-column: 1 / -1 !important; }
	#theForm.rsv-on .rsv-state { grid-column: span 3 !important; }
	#theForm.rsv-on .rsv-zip { grid-column: span 3 !important; }
	#theForm.rsv-on tr.rsv-row > td:last-child:has(> table.radioTable) { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	#theForm.rsv-on table.radioTable label { padding: 12px 12px 12px 10px; }
	#theForm.rsv-on .rsv-sum-row { grid-template-columns: 1fr auto; }
	#theForm.rsv-on .rsv-sum dd { grid-column: 1 / -1; grid-row: 2; }
	#theForm.rsv-on .rsv-nav { padding: 18px 16px 22px; gap: 10px; }
	#theForm.rsv-on .rsv-btn { height: 52px; padding: 0 18px; font-size: 19px; }
	#theForm.rsv-on .rsv-next, #theForm.rsv-on .rsv-send { flex: 1; }
}
