/* AeroPark Rezervări */
.aero-bk {
	--aero-accent: #62D9F5;
	--aero-dark: #0E1014;
	--aero-text: #15171c;
	--aero-muted: #6b7280;
	--aero-line: #e3e6eb;
	--aero-soft: #f5f7f9;
	--aero-err: #d92d20;
	--aero-radius: 14px;
	--aero-tint: #ecfafe;
	color: var(--aero-text);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	max-width: 1180px;
	margin: 0 auto;
	text-align: left;
	width: 100%;
}
.aero-form, .aero-bk-search { container-type: inline-size; container-name: aero; }
@supports (background: color-mix(in srgb, red 10%, white)) {
	.aero-bk { --aero-tint: color-mix(in srgb, var(--aero-accent) 13%, #fff); }
}
.aero-bk *, .aero-bk *::before, .aero-bk *::after { box-sizing: border-box; }
.aero-bk [hidden] { display: none !important; }
.aero-bk svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.aero-bk h2, .aero-bk h3 { font-family: inherit; color: var(--aero-text); margin: 0; letter-spacing: -0.01em; }

/* ---------- grid ---------- */
.aero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 28px; align-items: start; }
.aero-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.aero-sec {
	background: #fff;
	border: 1px solid var(--aero-line);
	border-radius: var(--aero-radius);
	padding: 24px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .03), 0 8px 24px rgba(16, 24, 40, .04);
}
.aero-sec-h { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.aero-sec-h h3 { font-size: 19px; font-weight: 600; line-height: 1.2; }
.aero-num {
	width: 30px; height: 30px; border-radius: 50%;
	background: var(--aero-dark); color: #fff;
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 14px; font-weight: 600; flex-shrink: 0;
}

/* ---------- vehicul ---------- */
.aero-vehicles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.aero-veh { position: relative; cursor: pointer; margin: 0; display: block; }
.aero-veh input { position: absolute; opacity: 0; pointer-events: none; }
.aero-veh-box {
	display: flex; align-items: center; gap: 14px;
	border: 1.5px solid var(--aero-line); border-radius: 12px;
	padding: 14px 16px; background: #fff;
	transition: border-color .15s, background .15s, box-shadow .15s;
}
.aero-veh:hover .aero-veh-box { border-color: #c5cad3; }
.aero-veh-ic { width: 58px; height: 40px; display: inline-flex; align-items: center; justify-content: center; color: var(--aero-dark); }
.aero-veh-ic svg { width: 58px; height: 36px; stroke-width: 2.2; }
.aero-veh-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.aero-veh-txt strong { font-size: 16px; font-weight: 600; }
.aero-veh-txt small { font-size: 13px; color: var(--aero-muted); }
.aero-veh-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #c5cad3; flex-shrink: 0; position: relative; transition: border-color .15s; }
.aero-veh input:checked + .aero-veh-box { border-color: var(--aero-dark); background: var(--aero-tint); box-shadow: 0 0 0 1px var(--aero-dark) inset; }
.aero-veh input:checked + .aero-veh-box .aero-veh-dot { border-color: var(--aero-dark); }
.aero-veh input:checked + .aero-veh-box .aero-veh-dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--aero-dark); }
.aero-veh input:focus-visible + .aero-veh-box { outline: 3px solid var(--aero-accent); outline-offset: 2px; }

/* ---------- câmpuri ---------- */
.aero-label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 7px; color: var(--aero-text); }
.aero-label span { font-weight: 400; color: var(--aero-muted); font-size: 13px; }
.aero-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 16px; }
.aero-f { margin: 0; min-width: 0; }
.aero-sec > .aero-f { margin-top: 16px; }
.aero-field { position: relative; }
.aero-field > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--aero-muted); pointer-events: none; z-index: 1; width: 19px; height: 19px; }

.aero-bk .aero-input,
.aero-bk input.aero-input,
.aero-bk select.aero-input,
.aero-bk textarea.aero-input {
	display: block !important;
	width: 100% !important;
	height: 50px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 14px !important;
	border: 1px solid #d7dbe1 !important;
	border-radius: 10px !important;
	background-color: #fff !important;
	color: var(--aero-text) !important;
	font: inherit !important;
	font-size: 15px !important;
	line-height: 1.3 !important;
	box-shadow: none !important;
	outline: none !important;
	transition: border-color .15s, box-shadow .15s !important;
	-webkit-appearance: none;
	appearance: none;
}
.aero-bk textarea.aero-input { height: auto !important; min-height: 88px !important; padding: 12px 14px !important; resize: vertical; }
.aero-bk .aero-has-icon .aero-input { padding-left: 42px !important; }
.aero-bk select.aero-input {
	cursor: pointer;
	padding-right: 34px !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 12px center !important;
	background-size: 16px !important;
}
.aero-bk select.aero-input option:disabled { color: #c3c7ce; }
.aero-bk .aero-input::placeholder { color: #9aa1ab; opacity: 1; }
.aero-bk .aero-input.aero-alt { cursor: pointer; }
.aero-bk .aero-input:hover { border-color: #b9bfc8 !important; }
.aero-bk .aero-input:focus,
.aero-bk .aero-input.active {
	border-color: var(--aero-dark) !important;
	box-shadow: 0 0 0 3px var(--aero-tint), 0 0 0 1px var(--aero-dark) inset !important;
}
.aero-bk .is-invalid .aero-input { border-color: var(--aero-err) !important; }
.aero-bk .is-invalid .aero-input:focus { box-shadow: 0 0 0 3px #fde4e2 !important; }

.aero-err { color: var(--aero-err); font-size: 13px; line-height: 1.4; margin-top: 6px; }
.aero-err:empty { display: none; }

.aero-pulse .aero-input { animation: aero-pulse 1s ease-out 1; }
@keyframes aero-pulse {
	0% { box-shadow: 0 0 0 0 var(--aero-accent); }
	100% { box-shadow: 0 0 0 10px rgba(98, 217, 245, 0); }
}

/* ---------- perioada ---------- */
.aero-period { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.aero-dt { min-width: 0; }
.aero-dt-row { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 8px; }
.aero-duration {
	margin-top: 16px; padding: 12px 14px; border-radius: 10px;
	background: var(--aero-tint); font-size: 14px; color: var(--aero-text);
}
.aero-duration strong { font-weight: 600; }

/* ---------- comutator factură ---------- */
.aero-switch { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; margin: 0; }
.aero-switch input { position: absolute; opacity: 0; pointer-events: none; }
.aero-switch-ui {
	width: 44px; height: 26px; border-radius: 20px; background: #d5d9df; position: relative; flex-shrink: 0;
	transition: background .2s; margin-top: 1px;
}
.aero-switch-ui::after {
	content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
	background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s;
}
.aero-switch input:checked + .aero-switch-ui { background: var(--aero-dark); }
.aero-switch input:checked + .aero-switch-ui::after { transform: translateX(18px); }
.aero-switch input:focus-visible + .aero-switch-ui { outline: 3px solid var(--aero-accent); outline-offset: 2px; }
.aero-switch-txt { display: flex; flex-direction: column; }
.aero-switch-txt strong { font-weight: 600; font-size: 15px; }
.aero-switch-txt small { color: var(--aero-muted); font-size: 13px; }
.aero-invoice { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--aero-line); }

/* ---------- acord ---------- */
.aero-consent { padding: 2px 4px; }
.aero-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14px; color: var(--aero-muted); margin: 0; }
.aero-check input { position: absolute; opacity: 0; pointer-events: none; }
.aero-check-ui {
	width: 22px; height: 22px; border: 1.5px solid #bfc5cd; border-radius: 6px; flex-shrink: 0;
	display: inline-flex; align-items: center; justify-content: center; background: #fff; margin-top: 1px;
	transition: background .15s, border-color .15s;
}
.aero-check-ui svg { width: 15px; height: 15px; stroke: #fff; stroke-width: 3; opacity: 0; }
.aero-check input:checked + .aero-check-ui { background: var(--aero-dark); border-color: var(--aero-dark); }
.aero-check input:checked + .aero-check-ui svg { opacity: 1; }
.aero-check input:focus-visible + .aero-check-ui { outline: 3px solid var(--aero-accent); outline-offset: 2px; }
.aero-check a { color: var(--aero-text); text-decoration: underline; }
.aero-consent.is-invalid .aero-check-ui { border-color: var(--aero-err); }
.aero-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- rezumat ---------- */
.aero-summary { position: sticky; top: 100px; }
.aero-sum-card {
	background: var(--aero-dark); color: #fff; border-radius: 18px; padding: 26px;
	box-shadow: 0 20px 40px rgba(14, 16, 20, .18);
}
.aero-sum-title { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: rgba(255, 255, 255, .6); margin-bottom: 14px; font-weight: 600; }
.aero-sum-list { margin: 0; padding: 0; }
.aero-sum-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .09); font-size: 14px; }
.aero-sum-list dt { color: rgba(255, 255, 255, .6); margin: 0; font-weight: 400; }
.aero-sum-list dd { margin: 0; text-align: right; font-weight: 500; color: #fff; }
.aero-sum-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; }
.aero-sum-total span { color: rgba(255, 255, 255, .7); font-size: 15px; }
.aero-sum-total strong { font-size: 34px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; color: #fff; }
.aero-sum-sub { text-align: right; color: rgba(255, 255, 255, .55); font-size: 13px; margin-top: 2px; }
.aero-perks { list-style: none; margin: 20px 0 22px; padding: 16px 0 0; border-top: 1px solid rgba(255, 255, 255, .09); }
.aero-perks li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, .88); padding: 4px 0; margin: 0; }
.aero-perks li::before { display: none; }
.aero-perks svg { width: 18px; height: 18px; stroke: var(--aero-accent); stroke-width: 2.6; }
.aero-sum-note { font-size: 12.5px; color: rgba(255, 255, 255, .55); margin: 14px 0 0; line-height: 1.5; }

/* ---------- butoane ---------- */
.aero-bk .aero-btn {
	display: inline-flex !important; align-items: center; justify-content: center; gap: 10px;
	height: 54px; padding: 0 22px !important; margin: 0;
	border: 0 !important; border-radius: 10px !important;
	background: var(--aero-accent) !important; color: var(--aero-dark) !important;
	font: inherit; font-size: 14px !important; font-weight: 700 !important; letter-spacing: .06em; text-transform: uppercase;
	text-decoration: none !important; cursor: pointer; position: relative; line-height: 1 !important;
	transition: filter .15s, transform .15s; box-shadow: none !important;
}
.aero-bk .aero-btn:hover { filter: brightness(1.06); }
.aero-bk .aero-btn:active { transform: translateY(1px); }
.aero-bk .aero-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.aero-bk .aero-submit { width: 100%; }
.aero-btn-ic { display: inline-flex; }
.aero-btn-ic svg { stroke-width: 2.4; width: 18px; height: 18px; }
.aero-spinner {
	display: none; width: 20px; height: 20px; border-radius: 50%;
	border: 2.5px solid rgba(14, 16, 20, .25); border-top-color: var(--aero-dark);
	animation: aero-spin .7s linear infinite;
}
.aero-bk .aero-btn.is-busy { cursor: progress; }
.aero-btn.is-busy .aero-btn-txt, .aero-btn.is-busy .aero-btn-ic { visibility: hidden; }
.aero-btn.is-busy .aero-spinner { display: block; position: absolute; }
@keyframes aero-spin { to { transform: rotate(360deg); } }
.aero-bk .aero-btn-ghost { background: #fff !important; border: 1px solid var(--aero-line) !important; }
.aero-bk .aero-btn-link { background: transparent !important; text-transform: none; letter-spacing: 0; font-weight: 600 !important; text-decoration: underline !important; }

.aero-form-msg { display: none; margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: rgba(217, 45, 32, .14); color: #ffb4ab; font-size: 13.5px; }
.aero-form-msg.is-on { display: block; }

/* ---------- bara de jos pe mobil ---------- */
.aero-mbar { display: none; }

/* ---------- confirmare ---------- */
.aero-success {
	max-width: 640px; margin: 0 auto; text-align: center; background: #fff;
	border: 1px solid var(--aero-line); border-radius: 18px; padding: 40px 32px 32px;
	box-shadow: 0 20px 40px rgba(16, 24, 40, .07); outline: none;
}
.aero-ok-ic {
	width: 68px; height: 68px; border-radius: 50%; background: var(--aero-accent); color: var(--aero-dark);
	display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px;
	animation: aero-pop .45s cubic-bezier(.2, 1.4, .4, 1) both;
}
.aero-ok-ic svg { width: 34px; height: 34px; stroke-width: 2.8; }
@keyframes aero-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.aero-ok-kicker { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--aero-muted); margin: 0 0 6px; }
.aero-bk .aero-ok-title { font-size: 28px; font-weight: 600; margin: 0 0 20px; line-height: 1.2; }
.aero-ok-num {
	display: inline-flex; flex-direction: column; gap: 2px; padding: 14px 28px; border-radius: 12px;
	background: var(--aero-dark); color: #fff; margin-bottom: 18px;
}
.aero-ok-num span { font-size: 12px; color: rgba(255, 255, 255, .6); text-transform: uppercase; letter-spacing: .1em; }
.aero-ok-num strong { font-size: 26px; font-weight: 600; letter-spacing: .04em; color: var(--aero-accent); }
.aero-ok-text { color: var(--aero-muted); font-size: 14.5px; max-width: 460px; margin: 0 auto 22px; }
.aero-ok-text strong { color: var(--aero-text); }
.aero-ok-list { text-align: left; margin: 0 0 24px; padding: 0; border-top: 1px solid var(--aero-line); }
.aero-ok-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--aero-line); font-size: 14.5px; }
.aero-ok-list dt { color: var(--aero-muted); margin: 0; font-weight: 400; }
.aero-ok-list dd { margin: 0; text-align: right; font-weight: 500; }
.aero-ok-list > div:last-child dd { font-weight: 700; font-size: 17px; }
.aero-ok-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.aero-ok-actions .aero-btn { height: 48px; }

/* ---------- bara scurtă (hero) ---------- */
.aero-bk-search { max-width: 1000px; }
.aero-search {
	display: grid; grid-template-columns: 1fr 1fr auto; gap: 0; align-items: stretch;
	background: #fff; border-radius: 14px; padding: 8px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}
.aero-search .aero-dt { padding: 6px 10px 6px 12px; border-right: 1px solid var(--aero-line); }
.aero-search .aero-dt:nth-child(2) { border-right: 0; }
.aero-search .aero-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--aero-muted); font-weight: 600; margin-bottom: 4px; }
.aero-bk-search .aero-input { height: 44px !important; border-color: transparent !important; background-color: var(--aero-soft) !important; }
.aero-bk-search .aero-input:focus, .aero-bk-search .aero-input.active { background-color: #fff !important; }
.aero-search .aero-btn { height: auto; min-height: 56px; margin: 4px 4px 4px 8px; padding: 0 28px !important; }
.aero-search-foot { display: none; text-align: center; margin-top: 12px; font-size: 14px; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.aero-search-foot.is-on { display: block; }
.aero-search .aero-err { font-size: 12px; }

/* ---------- calendar (flatpickr) ---------- */
.flatpickr-calendar.aero-cal {
	font-family: inherit; border-radius: 14px; border: 1px solid #e3e6eb;
	box-shadow: 0 18px 40px rgba(16, 24, 40, .16); padding: 6px; width: 320px;
}
.flatpickr-calendar.aero-cal::before, .flatpickr-calendar.aero-cal::after { display: none; }
.aero-cal .flatpickr-months { padding: 4px 0 6px; }
.aero-cal .flatpickr-months .flatpickr-month { height: 40px; }
.aero-cal .flatpickr-current-month { font-size: 15px; font-weight: 600; padding-top: 10px; }
.aero-cal .flatpickr-current-month .numInputWrapper { width: 6ch; }
.aero-cal .flatpickr-current-month input.cur-year { font-weight: 600; }
.aero-cal .flatpickr-months .flatpickr-prev-month, .aero-cal .flatpickr-months .flatpickr-next-month { top: 8px; padding: 8px; border-radius: 8px; height: auto; }
.aero-cal .flatpickr-months .flatpickr-prev-month:hover, .aero-cal .flatpickr-months .flatpickr-next-month:hover { background: #f1f3f5; }
.aero-cal .flatpickr-months svg { width: 18px; height: 18px; fill: none; stroke: #15171c; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.aero-cal .flatpickr-prev-month.flatpickr-disabled, .aero-cal .flatpickr-next-month.flatpickr-disabled { display: block; opacity: .25; cursor: default; }
.aero-cal span.flatpickr-weekday { font-size: 12px; color: #8a919c; font-weight: 600; }
.aero-cal .flatpickr-days, .aero-cal .dayContainer { width: 306px; min-width: 306px; max-width: 306px; }
.aero-cal .flatpickr-day { border-radius: 10px; max-width: 42px; height: 40px; line-height: 40px; font-size: 14px; color: #15171c; border: 0; margin: 1px 0; }
.aero-cal .flatpickr-day:hover { background: #eef1f4; }
.aero-cal .flatpickr-day.today { box-shadow: inset 0 0 0 1.5px var(--aero-accent, #62D9F5); }
.aero-cal .flatpickr-day.selected, .aero-cal .flatpickr-day.selected:hover { background: #0E1014; color: #fff; box-shadow: none; }
.aero-cal .flatpickr-day.flatpickr-disabled, .aero-cal .flatpickr-day.flatpickr-disabled:hover { color: #cfd3d9; background: transparent; text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .12); }
.aero-cal .flatpickr-day.prevMonthDay, .aero-cal .flatpickr-day.nextMonthDay { color: #b7bdc6; }

/* ---------- responsive ---------- */
@container aero (max-width: 900px) {
	.aero-grid { grid-template-columns: 1fr; }
	.aero-summary { position: static; }
}
@media (max-width: 900px) {
	.aero-mbar {
		display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990;
		align-items: center; justify-content: space-between; gap: 14px;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
		background: #fff; border-top: 1px solid var(--aero-line); box-shadow: 0 -8px 24px rgba(16, 24, 40, .08);
		transform: translateY(110%); transition: transform .25s ease;
	}
	.aero-mbar.is-on { transform: none; }
	.aero-mbar small { display: block; color: var(--aero-muted); font-size: 12px; line-height: 1.2; }
	.aero-mbar strong { font-size: 20px; font-weight: 600; }
	.aero-bk .aero-mbar .aero-btn { width: auto; height: 48px; padding: 0 22px !important; }
}
@container aero (max-width: 620px) {
	.aero-sec { padding: 18px 16px; border-radius: 12px; }
	.aero-sec-h h3 { font-size: 17px; }
	.aero-period, .aero-cols { grid-template-columns: 1fr; }
	.aero-vehicles { grid-template-columns: 1fr; gap: 10px; }
	.aero-veh-box { padding: 12px 14px; }
	.aero-sum-card { padding: 22px 18px; border-radius: 14px; }
	.aero-search { grid-template-columns: 1fr; padding: 10px; }
	.aero-search .aero-dt { border-right: 0; border-bottom: 1px solid var(--aero-line); padding: 6px 4px 12px; }
	.aero-search .aero-dt:nth-child(2) { border-bottom: 0; }
	.aero-search .aero-btn { margin: 6px 0 0; min-height: 52px; }
}
@media (max-width: 720px) {
	.aero-success { padding: 30px 18px 22px; }
	.aero-bk .aero-ok-title { font-size: 23px; }
	.aero-ok-num strong { font-size: 22px; }
	.aero-ok-list > div { flex-direction: column; gap: 2px; }
	.aero-ok-list dd { text-align: left; }
	.aero-ok-actions .aero-btn { width: 100%; }
	.aero-bk .aero-input { font-size: 16px !important; } /* evită zoom-ul pe iPhone */
}

/* ascunde select2 aplicat de temă peste selecturile formularului */
.aero-bk .select2-container, .aero-search .select2-container { display: none !important; }

/* spațiu sub formular, ca să nu lipească de footer */
.aero-bk:not(.aero-bk-search) { padding-bottom: 70px; }
@media (max-width: 767px) { .aero-bk:not(.aero-bk-search) { padding-bottom: 40px; } }

/* butonul din bara scurtă: rămâne în interiorul casetei albe */
.aero-bk-search .aero-search .aero-btn { width: auto !important; max-width: none; justify-self: stretch; align-self: stretch; box-sizing: border-box; }
