/*
 * Travel Booking Pro – Frontend Styles
 * Brand: #82bd44 primary | #62b248 hover | 8px border-radius
 */

/* ── Reset & Base ─────────────────────────────────────────────────────────── */

.tbp-booking-wrap *,
.tbp-booking-wrap *::before,
.tbp-booking-wrap *::after {
	box-sizing: border-box;
}

.tbp-booking-wrap {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #000000;
	max-width: 760px;
	margin: 0 auto;
	padding: 20px 16px 40px;
}

/* ── Card ─────────────────────────────────────────────────────────────────── */

.tbp-booking-card {
	background: #ffffff;
	border: 1px solid #e8e8e8;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

/* ── Header ──────────────────────────────────────────────────────────────── */

.tbp-booking-header {
	background: linear-gradient(135deg, #82bd44 0%, #62b248 100%);
	padding: 32px 40px;
	text-align: center;
}

.tbp-booking-title {
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 700;
	color: #ffffff;
	letter-spacing: -0.3px;
}

.tbp-title-icon {
	margin-right: 8px;
}

.tbp-booking-subtitle {
	margin: 0;
	color: rgba(255, 255, 255, 0.85);
	font-size: 14px;
}

/* ── Form Sections ───────────────────────────────────────────────────────── */

.tbp-form-section {
	padding: 28px 40px;
	border-bottom: 1px solid #f0f0f0;
}

.tbp-form-section:last-child,
.tbp-customer-section {
	border-bottom: none;
}

.tbp-section-title {
	margin: 0 0 18px;
	font-size: 15px;
	font-weight: 700;
	color: #000000;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* ── Service Type Cards ──────────────────────────────────────────────────── */

.tbp-service-type-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.tbp-service-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	cursor: pointer;
	text-align: center;
	transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
	gap: 8px;
	position: relative;
}

.tbp-service-card:hover {
	border-color: #82bd44;
	background: #f7fdf0;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(130, 189, 68, 0.15);
}

.tbp-service-radio {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.tbp-service-radio:checked + .tbp-service-icon {
	/* Selected state handled by sibling selector via JS class */
}

.tbp-service-card.is-selected {
	border-color: #82bd44;
	background: #f0f9e8;
	box-shadow: 0 0 0 3px rgba(130, 189, 68, 0.2);
}

.tbp-service-icon {
	font-size: 36px;
	line-height: 1;
}

.tbp-service-label {
	font-size: 15px;
	font-weight: 700;
	color: #000;
}

.tbp-service-desc {
	font-size: 12px;
	color: #777;
}

/* ── Form Groups ──────────────────────────────────────────────────────────── */

.tbp-form-group {
	margin-bottom: 20px;
}

.tbp-form-group:last-child {
	margin-bottom: 0;
}

.tbp-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.tbp-form-group--half {
	margin-bottom: 0;
}

.tbp-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #333;
	margin-bottom: 6px;
}

.tbp-input,
.tbp-select {
	width: 100%;
	padding: 11px 14px;
	font-size: 14px;
	color: #000;
	background: #ffffff;
	border: 1.5px solid #ddd !important;
	border-radius: 8px !important;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
	font-family: inherit;
}

.tbp-input:focus,
.tbp-select:focus {
	border-color: #82bd44;
	box-shadow: 0 0 0 3px rgba(130, 189, 68, 0.15);
}

.tbp-input.tbp-input--error,
.tbp-select.tbp-select--error {
	border-color: #d9534f;
}

.tbp-select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%23555' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 36px;
}

/* ── Date Fields ─────────────────────────────────────────────────────────── */

.tbp-date-fields {
	margin-top: 16px;
}

.tbp-rental-summary {
	margin-top: 12px;
	padding: 10px 14px;
	background: #f0f9e8;
	border-radius: 8px;
	border-left: 3px solid #82bd44;
	font-size: 13px;
	color: #333;
}

.tbp-rental-days-text {
	font-weight: 600;
	color: #000;
}

/* ── Price Summary ───────────────────────────────────────────────────────── */

.tbp-price-summary {
	margin: 0 40px;
	padding: 20px 24px;
	background: linear-gradient(135deg, #f0f9e8, #e8f5d4);
	border-radius: 8px;
	border: 1px solid #c8e6a0;
	margin-bottom: 0;
}

.tbp-price-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.tbp-price-label {
	font-size: 15px;
	font-weight: 600;
	color: #333;
}

.tbp-price-value {
	font-size: 22px;
	font-weight: 800;
	color: #82bd44;
	letter-spacing: -0.5px;
}

.tbp-price-meta {
	font-size: 12px;
	color: #888;
	margin-top: 4px;
	display: block;
}

/* ── Error Messages ──────────────────────────────────────────────────────── */

.tbp-form-errors {
	margin: 0 40px;
	padding: 14px 18px;
	background: #fff2f2;
	border: 1px solid #f5c6cb;
	border-radius: 8px;
	color: #c0392b;
	font-size: 13px;
	line-height: 1.6;
}

/* ── Submit Section ──────────────────────────────────────────────────────── */

.tbp-submit-section {
	text-align: center;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.tbp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 36px;
	font-size: 15px;
	font-weight: 700;
	border-radius: 8px !important;
	border: none !important;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
	text-decoration: none;
	font-family: inherit;
}

.tbp-btn--primary {
	background: #82bd44 !important;
	color: #ffffff !important;
	box-shadow: 0 4px 12px rgba(130, 189, 68, 0.35) !important;
	width: 100%;
	max-width: 340px;
}

.tbp-btn--primary:hover:not(:disabled) {
	background: #62b248 !important;
	color: #ffffff !important;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(98, 178, 72, 0.4) !important;
}

.tbp-btn--primary:disabled {
	background: #b8d98a;
	cursor: not-allowed;
	box-shadow: none;
	transform: none;
}

.tbp-btn--primary:active:not(:disabled) {
	transform: translateY(0);
}

/* ── Spinner ──────────────────────────────────────────────────────────────── */

.tbp-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: tbp-spin 0.7s linear infinite;
}

@keyframes tbp-spin {
	to { transform: rotate(360deg); }
}

/* ── Secure Note ──────────────────────────────────────────────────────────── */

.tbp-secure-note {
	margin: 12px 0 0;
	font-size: 12px;
	color: #999;
}

/* ── My Account Bookings ──────────────────────────────────────────────────── */

.tbp-my-account-bookings {
	width: 100%;
}

.tbp-my-account-bookings h2 {
	margin-bottom: 20px;
}

.tbp-no-bookings {
	padding: 24px;
	text-align: center;
	color: #666;
}

.tbp-btn-link {
	color: #82bd44;
	font-weight: 600;
	text-decoration: none;
	margin-left: 6px;
}

.tbp-btn-link:hover {
	color: #62b248;
}

.tbp-bookings-table {
	width: 100%;
}

/* ── Status Badges ────────────────────────────────────────────────────────── */

.tbp-status {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
}

.tbp-status--pending    { background: #fff3cd; color: #856404; }
.tbp-status--confirmed  { background: #d4edda; color: #155724; }
.tbp-status--cancelled  { background: #f8d7da; color: #721c24; }
.tbp-status--completed  { background: #cce5ff; color: #004085; }

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
	.tbp-booking-header {
		padding: 24px 20px;
	}

	.tbp-form-section {
		padding: 20px;
	}

	.tbp-booking-title {
		font-size: 20px;
	}

	.tbp-service-type-grid {
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}

	.tbp-form-row {
		grid-template-columns: 1fr;
	}

	.tbp-price-summary,
	.tbp-form-errors {
		margin: 0 20px;
	}

	.tbp-price-value {
		font-size: 18px;
	}
}

@media (max-width: 380px) {
	.tbp-service-type-grid {
		grid-template-columns: 1fr;
	}
}
