/**
 * Tour Tirana Booking Form Styles
 *
 * Follows theme design tokens from tt-theme.css:
 *   --fontFamily: "Poppins", sans-serif
 *   --mainColor: #D60F90
 *   --secondaryColor: #FFCD2B
 *   --optionalColor: #0098DA
 *   --titleColor: #2a2a2a
 *   --paragraphColor: #8c8c8c
 *
 * @package TourTiranaBooking
 */

:root {
	--iti-path-flags-1x: url("https://cdn.jsdelivr.net/npm/intl-tel-input@25.12.3/build/img/flags.webp");
	--iti-path-flags-2x: url("https://cdn.jsdelivr.net/npm/intl-tel-input@25.12.3/build/img/flags@2x.webp");
	--iti-path-globe-1x: url("https://cdn.jsdelivr.net/npm/intl-tel-input@25.12.3/build/img/globe.webp");
	--iti-path-globe-2x: url("https://cdn.jsdelivr.net/npm/intl-tel-input@25.12.3/build/img/globe@2x.webp");
}

/* ── Schedule (inside booking widget) ─────────────── */
.tt-booking-schedule {
	border-bottom: 1px solid #ededed;
	padding: 0 20px 16px;
	margin-bottom: 4px;
}

.tt-schedule-times {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	color: var(--titleColor, #2a2a2a);
	line-height: 1.5;
}

.tt-schedule-times i {
	font-size: 20px;
	color: var(--mainColor, #D60F90);
	flex-shrink: 0;
}

.tt-schedule-note {
	font-size: 13px;
	color: var(--paragraphColor, #8c8c8c);
	margin: 8px 0 0;
	line-height: 1.4;
}

/* ── Step titles ──────────────────────────────────── */
.tt-booking-step-title {
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 18px;
	text-align: center;
	color: var(--titleColor, #2a2a2a);
	margin: 0 0 16px;
	padding: 0;
}

/* ── Date Picker ──────────────────────────────────── */
.tt-date-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.tt-date-nav-btn {
	background: #f5f5f5;
	border: 1px solid #ddd;
	border-radius: 6px;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 20px;
	color: var(--mainColor, #D60F90);
	transition: background 0.2s, color 0.2s;
}

.tt-date-nav-btn:hover {
	background: var(--mainColor, #D60F90);
	color: #fff;
}

.tt-date-range-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--titleColor, #2a2a2a);
}

.tt-date-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 6px;
	margin-bottom: 16px;
}

.tt-date-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 8px 4px;
	border: 2px solid #e8e8e8;
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	transition: all 0.2s;
	position: relative;
	min-height: 70px;
}

.tt-date-btn:hover:not(:disabled) {
	border-color: var(--mainColor, #D60F90);
	background: #fdf0f7;
}

.tt-date-btn:not(:disabled)>.tt-date-num {
	border-bottom: 3px solid var(--mainColor, #D60F90);
}

.tt-date-btn.tt-date-selected {
	border-color: var(--mainColor, #D60F90);
	background: var(--mainColor, #D60F90);
	color: #fff;
}

.tt-date-btn.tt-date-selected .tt-date-day,
.tt-date-btn.tt-date-selected .tt-date-num,
.tt-date-btn.tt-date-selected .tt-date-month {
	color: #fff;
}

.tt-date-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.tt-date-btn.tt-date-full {
	opacity: 0.5;
}

.tt-date-day {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--paragraphColor, #8c8c8c);
	line-height: 1;
}

.tt-date-num {
	font-size: 20px;
	font-weight: 700;
	color: var(--titleColor, #2a2a2a);
	line-height: 1.2;
}

.tt-date-month {
	font-size: 11px;
	color: var(--paragraphColor, #8c8c8c);
}

.tt-date-badge {
	position: absolute;
	bottom: 2px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 8px;
	font-weight: 600;
	padding: 1px 4px;
	border-radius: 3px;
	white-space: nowrap;
}

.tt-date-badge-full {
	background: #f0f0f0;
	color: #999;
}

/* ── Loading / Empty states ───────────────────────── */
.tt-dates-loading {
	text-align: center;
	padding: 20px 0;
	color: #888;
	font-size: 14px;
}

.tt-dates-loading .spinner {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 2px solid #e8e8e8;
	border-top-color: var(--mainColor, #D60F90);
	border-radius: 50%;
	animation: tt-spin 0.7s linear infinite;
	vertical-align: middle;
	margin-right: 8px;
}

.tt-dates-empty {
	text-align: center;
	padding: 20px 0;
	color: #999;
	font-size: 14px;
}

/* ── Time Slots ───────────────────────────────────── */
.tt-time-slots h5 {
	font-size: 15px;
	font-weight: 600;
	color: #333;
	margin: 0 0 10px;
}

.tt-time-slots-grid {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 16px;
}

.tt-time-btn {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border: 2px solid #e8e8e8;
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	transition: all 0.2s;
	text-align: left;
	width: 100%;
}

.tt-time-btn:hover:not(:disabled) {
	border-color: var(--mainColor, #D60F90);
	background: #fdf0f7;
}

.tt-time-btn.tt-time-selected {
	border-color: var(--mainColor, #D60F90);
	background: var(--mainColor, #D60F90);
	color: #fff;
}

.tt-time-btn.tt-time-selected .tt-time-label,
.tt-time-btn.tt-time-selected .tt-time-spots,
.tt-time-btn.tt-time-selected .tt-time-guide {
	color: #fff;
}

.tt-time-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.tt-time-label {
	font-weight: 600;
	font-size: 15px;
	color: var(--titleColor, #2a2a2a);
}

.tt-time-spots {
	font-size: 13px;
	color: var(--mainColor, #D60F90);
}

.tt-time-guide {
	font-size: 12px;
	color: var(--paragraphColor, #8c8c8c);
	margin-left: auto;
}

.tt-time-guide i {
	vertical-align: middle;
	margin-right: 2px;
}

/* ── Form ─────────────────────────────────────────── */
.tt-booking-details-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.tt-form-row {
	display: flex;
	gap: 12px;
}

.tt-form-group {
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 100%;
}

.tt-form-half {
	flex: 1;
}

.tt-booking-details-form label {
	font-size: 13px;
	font-weight: 600;
	color: var(--titleColor, #2a2a2a);
}

.tt-required {
	color: #d63638;
}

.tt-booking-details-form input[type="text"],
.tt-booking-details-form input[type="email"],
.tt-booking-details-form input[type="tel"],
.tt-booking-details-form input[type="number"],
.tt-booking-details-form select,
.tt-booking-details-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	font-family: inherit;
	color: var(--titleColor, #2a2a2a);
	transition: border-color 0.2s;
	box-sizing: border-box;
}

.tt-booking-details-form .iti {
	width: 100%;
	display: block;
}

.tt-booking-details-form .iti input[type="tel"] {
	width: 100%;
}

.tt-booking-details-form .iti__tel-input {
	padding: 10px 12px;
	padding-left: 50px;
	min-height: 44px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	font-family: inherit;
	color: var(--titleColor, #2a2a2a);
	transition: border-color 0.2s;
	box-sizing: border-box;
}

.tt-booking-details-form .iti__tel-input:focus {
	outline: none;
	border-color: var(--mainColor, #D60F90);
	box-shadow: 0 0 0 3px rgba(214, 15, 144, 0.1);
}

.tt-booking-details-form .iti__tel-input.tt-field-error {
	border-color: #d63638;
}

.tt-booking-details-form input:focus,
.tt-booking-details-form select:focus,
.tt-booking-details-form textarea:focus {
	outline: none;
	border-color: var(--mainColor, #D60F90);
	box-shadow: 0 0 0 3px rgba(214, 15, 144, 0.1);
}

.tt-booking-details-form input.tt-field-error,
.tt-booking-details-form select.tt-field-error,
.tt-booking-details-form textarea.tt-field-error {
	border-color: #d63638;
}

.tt-field-error-msg {
	font-size: 12px;
	color: #d63638;
	margin-top: 2px;
}

.tt-spots-info {
	font-size: 12px;
	color: var(--mainColor, #D60F90);
	margin-top: 2px;
}

/* ── Group size notice ────────────────────────────── */
.tt-group-notice {
	background: #fff8e1;
	border: 1px solid #ffe082;
	border-left: 4px solid var(--secondaryColor, #FFCD2B);
	border-radius: 6px;
	padding: 12px 14px;
}

.tt-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	font-weight: 500;
	color: var(--titleColor, #2a2a2a);
	cursor: pointer;
	line-height: 1.5;
}

.tt-checkbox-label input[type="checkbox"] {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	margin-top: 2px;
	accent-color: var(--mainColor, #D60F90);
	cursor: pointer;
}

.tt-group-notice.tt-field-error {
	border-color: #d63638;
	border-left-color: #d63638;
	background: #fef2f2;
}

/* ── Form actions ─────────────────────────────────── */
.tt-form-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-top: 6px;
}

.tt-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 12px 24px;
	border: none;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: all 0.2s;
}

.tt-btn-back {
	background: #f5f5f5;
	color: #555;
	border: 1px solid #ddd;
}

.tt-btn-back:hover {
	background: #e8e8e8;
}

.tt-btn-submit {
	background: var(--mainColor, #D60F90);
	color: #fef2f2;
	flex: 1;
	justify-content: center;
}

.tt-btn-submit:hover {
	background: #a8056f;
}

.tt-btn-submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.tt-btn-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(42, 42, 42, 0.3);
	border-top-color: var(--titleColor, #2a2a2a);
	border-radius: 50%;
	animation: tt-spin 0.7s linear infinite;
}

/* ── Form errors container ────────────────────────── */
.tt-form-errors {
	background: #fef2f2;
	border: 1px solid #fca5a5;
	border-radius: 6px;
	padding: 12px 16px;
}

.tt-error-general {
	color: #d63638;
	font-size: 14px;
	font-weight: 600;
	margin: 0;
}

/* ── Confirmation ─────────────────────────────────── */
.tt-booking-step-confirmation {
	text-align: center;
}

.tt-confirmation-icon {
	font-size: 56px;
	color: #22c55e;
	margin-bottom: 8px;
}

.tt-confirmation-icon i {
	display: inline-block;
}

.tt-booking-step-confirmation .tt-booking-step-title {
	color: #22c55e;
	font-size: 22px;
}

.tt-confirm-reference {
	font-size: 16px;
	font-weight: 700;
	color: var(--mainColor, #D60F90);
	margin: 12px 0 16px;
}

.tt-confirm-summary {
	list-style: none;
	padding: 0;
	margin: 0 0 16px;
	text-align: left;
}

.tt-confirm-summary li {
	padding: 8px 0;
	border-bottom: 1px solid #f0f0f0;
	font-size: 14px;
	color: #555;
	display: flex;
	align-items: center;
	gap: 8px;
}

.tt-confirm-summary li i {
	color: var(--mainColor, #D60F90);
	font-size: 18px;
	flex-shrink: 0;
}

.tt-confirm-email-note {
	font-size: 13px;
	color: #888;
	font-style: italic;
	margin: 12px 0 16px;
}

.tt-btn-new-booking {
	background: #f5f5f5;
	color: #555;
	border: 1px solid #ddd;
}

.tt-btn-new-booking:hover {
	background: #e8e8e8;
}

/* ── Animation ────────────────────────────────────── */
@keyframes tt-spin {
	to { transform: rotate(360deg); }
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 480px) {
	.tt-date-grid {
		grid-template-columns: repeat(5, 1fr);
	}

	.tt-form-row {
		flex-direction: column;
		gap: 14px;
	}

	.tt-form-actions {
		flex-direction: column;
	}

	.tt-btn-back,
	.tt-btn-submit {
		width: 100%;
		justify-content: center;
	}
}

@media (max-width: 360px) {
	.tt-date-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}
