/* ==========================================================================
   Booking form skin.

   The form itself is the plugin's [sym_vehicle_booking] card: its markup,
   script and class names are untouched. This file loads after the plugin's
   own assets/css/frontend.css and restyles the .sym-* classes to match the
   theme. If a plugin update renames a class, the form falls back to the
   plugin's styling for that part; nothing breaks.
   ========================================================================== */

.npcr .sym-booking {
	/* The plugin sets these inline from its settings; the theme owns the look. */
	--sym-accent: var(--brand) !important;
	--sym-radius: 22px !important;
	--sym-shadow: none !important;
	--sym-text: var(--ink);
	--sym-muted: var(--muted);
	--sym-border: var(--line);
	--sym-soft: var(--bg);

	padding: clamp(18px, 2.4vw, 24px);
	border: 0;
	border-radius: var(--r-lg);
	box-shadow: none;
	background: var(--surface);
	color: var(--ink);
	font-size: 1rem;
}

/* Header: price and car name */
.npcr .sym-card__header {
	margin-bottom: 18px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--line);
}
.npcr .sym-price {
	font-size: 1.5rem;
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.2;
}
.npcr .sym-card__header .sym-note {
	margin-top: 4px;
	font-size: 0.9375rem;
}

/* Steps (the theme script groups the plugin's fields; see main.js) */
.npcr-step__title,
.npcr .sym-section-title {
	display: block;
	margin: 0 0 14px;
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--ink);
}
.npcr .sym-section {
	margin: 22px 0 0;
	padding: 22px 0 0;
	border-bottom: 0;
	border-top: 1px solid var(--line);
}
.npcr .sym-booking > .sym-section:first-of-type {
	margin-top: 0;
}

/* Fields */
.npcr .sym-row {
	gap: 12px;
}
.npcr .sym-field {
	margin-bottom: 12px;
}
.npcr .sym-field label {
	margin-bottom: 6px;
	font-size: 0.875rem;
	color: #333;
}
.npcr .sym-field input[type="text"],
.npcr .sym-field input[type="email"],
.npcr .sym-field input[type="tel"],
.npcr .sym-field input[type="datetime-local"],
.npcr .sym-field select {
	width: 100%;
	min-height: 48px;
	padding: 11px 14px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--bg);
	color: var(--ink);
	font-size: 1rem;
}
.npcr .sym-field input:focus,
.npcr .sym-field select:focus {
	outline: 0;
	border-color: var(--ink);
	background: #fff;
}
.npcr .sym-field--invalid {
	border-color: var(--bad) !important;
	box-shadow: 0 0 0 1px var(--bad);
}
.npcr .sym-required {
	color: var(--brand-text);
}
.npcr .sym-note-label {
	color: var(--muted);
}

/* Date pickers inside the card */
.npcr .sym-booking .np-datepicker-trigger {
	min-height: 48px;
	padding: 11px 14px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--bg);
}
.npcr .sym-booking .np-datepicker-trigger--open,
.npcr .sym-booking .np-datepicker-trigger:hover {
	border-color: var(--ink);
}
.npcr .sym-booking .np-datepicker-trigger svg {
	flex: none;
	color: var(--muted);
}

/* Selects */
.npcr .np-select-wrap {
	position: relative;
}
.npcr .np-select-wrap select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 40px;
	cursor: pointer;
}
.npcr .np-select-wrap__chevron {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	color: var(--muted);
}

/* Checkbox rows (delivery) */
.npcr .sym-field > label > input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0 8px 0 0;
	vertical-align: -3px;
	accent-color: var(--brand);
}
.npcr .sym-delivery-details {
	margin: 0 0 12px;
	padding: 14px 14px 2px;
	border: 0;
	border-radius: 12px;
	background: var(--bg);
}
.npcr .sym-delivery-details input,
.npcr .sym-delivery-details select {
	background: #fff;
}

/* Extras */
.npcr .sym-extras {
	gap: 8px;
}
.npcr .sym-field label.sym-extra {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 14px;
	cursor: pointer;
	transition: border-color 0.15s ease;
}
.npcr .sym-field label.sym-extra:hover,
.npcr .sym-field label.sym-extra:has(input:checked) {
	border-color: var(--ink);
}
.npcr .sym-extra strong {
	font-weight: 500;
	font-size: 1rem;
	color: var(--ink);
}
.npcr .sym-extra .sym-note {
	margin: 0;
	font-size: 0.875rem;
}
.npcr .sym-extra__icon {
	flex: none;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--bg);
}
.npcr .sym-extra input[type="checkbox"] {
	flex: none;
	width: 20px;
	height: 20px;
	accent-color: var(--brand);
}

/* Phone with country code */
.npcr .sym-customer-info .sym-row > .sym-field:only-child {
	grid-column: 1 / -1;
}
.npcr .sym-phone-row input[name="sym_customer_phone"] {
	min-width: 0;
	border-left: 0;
	border-radius: 0 12px 12px 0;
}
.npcr .sym-country-picker__trigger {
	min-height: 48px;
	padding: 0 10px 0 14px;
	border-color: var(--line);
	background: var(--bg);
	color: var(--ink);
}
.npcr .sym-country-picker__code {
	font-size: 0.9375rem;
	font-weight: 500;
}
.npcr .sym-country-picker__dropdown {
	margin-top: 6px;
	border-radius: 14px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
	overflow: hidden;
}
.npcr .sym-country-picker__search {
	min-height: 44px !important;
	font-size: 1rem !important;
	background: #fff !important;
}
.npcr .sym-country-picker__option {
	padding: 10px 14px;
	font-size: 0.9375rem;
}

/* Document uploads */
.npcr-docs-hint {
	margin: -6px 0 14px;
	font-size: 0.875rem;
	color: var(--muted);
}
.npcr .sym-file-upload__placeholder {
	min-height: 84px;
	padding: 14px 10px;
	border: 1.5px dashed #bdbdbd;
	border-radius: 12px;
	background: var(--bg);
	font-size: 0.8125rem;
	line-height: 1.3;
}
.npcr .sym-file-upload:hover .sym-file-upload__placeholder,
.npcr .sym-file-upload:focus-within .sym-file-upload__placeholder {
	border-color: var(--ink);
	background: #fff;
	color: var(--ink);
}
.npcr .sym-file-upload__preview,
.npcr .sym-file-upload__preview img {
	border-radius: 12px;
}
.npcr .sym-file-upload__preview img {
	height: 84px;
}
.npcr .sym-file-upload__remove {
	width: 28px;
	height: 28px;
}

/* Promo code */
.npcr .sym-promo-field {
	margin-top: 4px;
}
.npcr .sym-promo-apply {
	right: 6px;
	min-height: 36px;
	padding: 0 16px;
	border-radius: 999px;
	background: var(--ink);
	font-size: 0.875rem;
	font-weight: 500;
}
.npcr .sym-promo-message {
	font-size: 0.875rem;
}
.npcr .sym-promo-message:empty {
	display: none;
}

/* Price breakdown */
.npcr .sym-breakdown {
	margin: 18px 0 0;
	padding: 14px 16px;
	border: 0;
	border-radius: 14px;
	background: var(--bg);
}
.npcr .sym-breakdown__row {
	padding: 5px 0;
	font-size: 0.9375rem;
	font-variant-numeric: tabular-nums;
}
.npcr .sym-breakdown__row > div:last-child {
	white-space: nowrap;
}
.npcr .sym-breakdown__row--strong {
	margin-top: 8px;
	padding-top: 12px;
	border-top: 1px solid var(--line);
	font-size: 1.0625rem;
	font-weight: 600;
}
.npcr .sym-upsell {
	margin-top: 10px;
	border-radius: 12px;
	background: #e7f3ec;
	color: #14532d;
	font-size: 0.9375rem;
}

/* Fine print */
.npcr .sym-deposit-fine-print {
	gap: 8px;
	margin: 14px 0 0;
	font-size: 0.8125rem;
	line-height: 1.45;
	color: var(--muted);
}
.npcr .sym-deposit-fine-print svg {
	width: 14px;
	height: 14px;
	margin-top: 2px;
}

/* Total echoed next to the button (added by the theme script) */
.npcr-total {
	display: grid;
	gap: 4px;
	margin: 18px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--line);
	font-variant-numeric: tabular-nums;
}
.npcr-total[hidden] {
	display: none;
}
.npcr-total__line {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	font-size: 1.125rem;
	font-weight: 600;
}
.npcr-total__line--later {
	font-size: 0.9375rem;
	font-weight: 400;
	color: var(--muted);
}

/* Buttons */
.npcr .sym-btn {
	min-height: 52px;
	padding: 12px 20px;
	border: 1px solid var(--ink);
	border-radius: 999px;
	background: transparent;
	color: var(--ink);
	font-size: 1.0625rem;
	font-weight: 500;
	text-decoration: none;
	transition: background-color 0.18s ease, color 0.18s ease;
}
.npcr .sym-btn:hover {
	background: var(--ink);
	color: #fff;
}
.npcr .sym-btn--dark,
.npcr .sym-btn--accent {
	border-color: var(--brand);
	background: var(--brand);
	color: var(--on-brand);
}
.npcr .sym-btn--dark:hover,
.npcr .sym-btn--accent:hover {
	border-color: var(--brand-dark);
	background: var(--brand-dark);
	color: var(--on-brand);
}
.npcr .sym-btn[disabled] {
	opacity: 0.7;
}

/* Messages */
.npcr .sym-error {
	margin-top: 12px;
	color: var(--bad);
	font-size: 0.9375rem;
	font-weight: 500;
}
.npcr .sym-error:empty {
	display: none;
}
.npcr .sym-notice {
	margin: 0 0 12px;
	padding: 14px 18px;
	border: 0;
	border-left: 4px solid var(--ink);
	border-radius: 14px;
	box-shadow: none;
	background: var(--surface);
	font-size: 0.9375rem;
}
.npcr .sym-notice--success {
	border-left-color: var(--ok);
}
.npcr .sym-notice--error {
	border-left-color: var(--bad);
}

/* Two columns collapse earlier than the plugin's breakpoint inside the
   narrow side column, and again on phones. */
@media (max-width: 1180px) and (min-width: 1001px) {
	.npcr .sym-booking .sym-row {
		grid-template-columns: 1fr;
	}
	.npcr .sym-documents .sym-row {
		grid-template-columns: 1fr 1fr;
	}
}
@media (max-width: 960px) {
	.npcr .sym-documents .sym-row {
		grid-template-columns: 1fr 1fr;
	}
}
@media (max-width: 420px) {
	.npcr .sym-documents .sym-row {
		grid-template-columns: 1fr;
	}
}
