/**
 * Car Rental WhatsApp — frontend styles.
 */

.crw-car-list {
	display: grid;
	gap: 1.5rem;
}

.crw-car-list--cols-1 { grid-template-columns: 1fr; }
.crw-car-list--cols-2 { grid-template-columns: repeat(2, 1fr); }
.crw-car-list--cols-3 { grid-template-columns: repeat(3, 1fr); }
.crw-car-list--cols-4 { grid-template-columns: repeat(4, 1fr); }

.crw-car-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
	display: flex;
	flex-direction: column;
}

.crw-car-card__media img {
	display: block;
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.crw-car-card__body {
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	flex: 1;
}

.crw-car-card__title {
	margin: 0;
	font-size: 1.15rem;
}

.crw-car-card__excerpt {
	margin: 0;
	color: #64748b;
	font-size: 0.95rem;
}

.crw-car-card__price {
	margin: 0;
	font-weight: 700;
	color: #0f4c81;
}

.crw-car-card__action {
	margin-top: auto;
}

.crw-booking {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 1.25rem;
	position: relative;
}

.crw-booking__selected-car {
	margin: 0 0 1rem;
}

.crw-field {
	margin-bottom: 1rem;
}

.crw-field label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
	font-size: 0.9rem;
}

.crw-field input[type="date"].crw-date-input,
.crw-field select {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	font-size: 1rem;
	font-family: inherit;
	background: #fff;
	color: #1a1a2e;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	cursor: pointer;
	color-scheme: light;
}

.crw-field input[type="date"].crw-date-input {
	padding-right: 0.5rem;
	min-height: 48px;
}

.crw-field input[type="date"].crw-date-input:focus,
.crw-field select:focus {
	outline: none;
	border-color: #0f4c81;
	box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.12);
}

.crw-field input[type="date"].crw-date-input:hover {
	border-color: #94a3b8;
}

/* WebKit (Chrome, Safari, Edge) calendar icon */
.crw-field input[type="date"].crw-date-input::-webkit-calendar-picker-indicator {
	cursor: pointer;
	opacity: 0.7;
	padding: 4px;
	border-radius: 6px;
	transition: opacity 0.2s ease, background-color 0.2s ease;
}

.crw-field input[type="date"].crw-date-input::-webkit-calendar-picker-indicator:hover {
	opacity: 1;
	background-color: rgba(15, 76, 129, 0.08);
}

/* Firefox date field */
.crw-field input[type="date"].crw-date-input::-moz-focus-inner {
	border: 0;
}

.crw-field--date {
	position: relative;
}

.crw-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.crw-booking__error {
	color: #b91c1c;
	font-size: 0.9rem;
	margin: 0 0 0.75rem;
}

.crw-booking__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	padding: 0.85rem 1.25rem;
	border: none;
	border-radius: 8px;
	background: #25d366;
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.crw-booking__submit:hover {
	background: #1da851;
	transform: translateY(-1px);
}

.crw-booking__submit::before {
	content: "";
	display: inline-block;
	width: 18px;
	height: 18px;
	background-color: currentColor;
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.435 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E");
	mask-size: contain;
	mask-repeat: no-repeat;
	mask-position: center;
}

.crw-notice,
.crw-error {
	padding: 0.75rem 1rem;
	border-radius: 8px;
}

.crw-search {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	margin-bottom: 1.5rem;
}

.crw-search__input {
	flex: 1 1 220px;
	padding: 0.75rem 1rem;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 1rem;
}

.crw-search__submit {
	padding: 0.75rem 1.25rem;
	border: none;
	border-radius: 8px;
	background: #0f4c81;
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}

.crw-search__submit:hover {
	background: #0c3d66;
}

.crw-search__reset {
	color: #64748b;
	text-decoration: none;
	font-size: 0.9rem;
}

.crw-search__reset:hover {
	color: #0f4c81;
}

.crw-search-results {
	margin: 0 0 1rem;
	color: #64748b;
	font-size: 0.95rem;
}

.crw-car-card__media {
	display: block;
}

.crw-car-card__title a {
	color: inherit;
	text-decoration: none;
}

.crw-car-card__title a:hover {
	color: #0f4c81;
}

.crw-price-suffix {
	font-size: 0.85em;
	color: #64748b;
	font-weight: 400;
}

.crw-single-product-booking {
	margin-top: 1.5rem;
}

.crw-notice {
	background: #eff6ff;
	color: #1e40af;
}

.crw-error {
	background: #fef2f2;
	color: #b91c1c;
}

@media (max-width: 900px) {
	.crw-car-list--cols-3,
	.crw-car-list--cols-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.crw-car-list--cols-2,
	.crw-car-list--cols-3,
	.crw-car-list--cols-4 {
		grid-template-columns: 1fr;
	}

	.crw-field-row {
		grid-template-columns: 1fr;
	}
}
