/* Moduł wypożyczalni – karty kamperów + formularz zapytania */

.rental-module {
	background: #fff;
	color: #000;
	padding: 56px 0;
}

.rental-module-container {
	max-width: 1092px;
	margin: 0 auto;
	padding: 0 24px;
}

.rental-module-head {
	margin-bottom: 32px;
}

.rental-module-kicker {
	margin: 0 0 8px;
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(0, 0, 0, 0.7);
}

.rental-module-title {
	margin: 0 0 12px;
	font-size: clamp(1.5rem, 2.5vw, 2.2rem);
	font-weight: 900;
	line-height: 1.15;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #000;
}

.rental-module-intro {
	margin: 0;
	font-size: 1rem;
	line-height: 1.6;
	color: rgba(0, 0, 0, 0.85);
}

/* Karty kamperów */
.rental-module-cards {
	margin-bottom: 36px;
}

.rental-module-cards-title {
	margin: 0 0 16px;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #000;
}

.rental-module-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 20px;
}

.rental-module-card {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	padding: 0;
	margin: 0;
	border: 2px solid rgba(0, 0, 0, 0.12);
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	font-family: inherit;
	text-align: left;
	overflow: hidden;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.rental-module-card:hover {
	border-color: rgba(0, 0, 0, 0.3);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.rental-module-card[aria-pressed="true"],
.rental-module-card.is-selected {
	border-color: #000;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.rental-module-card-media {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f0f0f0;
}

.rental-module-card-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rental-module-card-img--placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.02) 100%);
}

.rental-module-card-title {
	display: block;
	padding: 12px 14px;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.3;
	color: #000;
}

/* Formularz */
.rental-module-form {
	border: 1px solid var(--morelo-border, rgba(0, 0, 0, 0.12));
	border-radius: 12px;
	padding: 28px 32px;
	background: #fafafa;
}

.rental-module-alert {
	margin-bottom: 20px;
	padding: 14px 18px;
	border-radius: 8px;
	font-size: 1rem;
	line-height: 1.5;
}

.rental-module-alert--success {
	background: rgba(0, 128, 0, 0.1);
	border: 1px solid rgba(0, 128, 0, 0.3);
	color: #0a5c0a;
}

.rental-module-alert--error {
	background: rgba(180, 0, 0, 0.08);
	border: 1px solid rgba(180, 0, 0, 0.25);
	color: #8b0000;
}

.rental-module-fields {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 20px 24px;
	margin-bottom: 20px;
}

.rental-module-field--select {
	grid-column: 1 / -1;
}

.rental-module-contact-fields {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px 24px;
	margin-bottom: 24px;
}

.rental-module-field--full {
	grid-column: 1 / -1;
}

.rental-module-required {
	color: rgba(0, 0, 0, 0.6);
}

/* Honeypot – niewidoczny dla użytkownika */
.rental-module-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.rental-module-field {
	margin: 0;
}

.rental-module-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.9rem;
	font-weight: 600;
	color: #000;
}

.rental-module-field input,
.rental-module-field select,
.rental-module-field textarea {
	width: 100%;
	padding: 10px 12px;
	font-size: 1rem;
	font-family: inherit;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 6px;
	background: #fff;
	color: #000;
}

.rental-module-field textarea {
	min-height: 80px;
	resize: vertical;
}

.rental-module-field input:focus,
.rental-module-field select:focus,
.rental-module-field textarea:focus {
	outline: none;
	border-color: #000;
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.rental-module-summary {
	min-height: 1.5em;
	font-size: 1rem;
	font-weight: 600;
	color: #000;
	padding: 12px 0;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.rental-module-summary-text {
	font-weight: 500;
	color: rgba(0, 0, 0, 0.65);
}

.rental-module-cta {
	margin: 16px 0 0;
}

.rental-module-button {
	display: inline-block;
	padding: 14px 22px;
	font-size: 1rem;
	font-weight: 800;
	color: #000;
	text-decoration: none;
	border: 2px solid #000;
	border-radius: 6px;
	background: transparent;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.2s, color 0.2s;
}

.rental-module-button:hover {
	background: #000;
	color: #fff;
	text-decoration: none;
}

@media (max-width: 640px) {
	.rental-module {
		padding: 40px 0;
	}
	.rental-module-container {
		padding: 0 16px;
	}
	.rental-module-form {
		padding: 20px;
	}
	.rental-module-cards-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
	.rental-module-card-title {
		padding: 10px;
		font-size: 0.85rem;
	}
	.rental-module-fields {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.rental-module-contact-fields {
		grid-template-columns: 1fr;
	}
}
