/* ═══════════════════════════════════════════════════════════════
 *  Dream Tour Wizard — Stylesheet
 *  Base: white + #005A8B  |  Mobile-first responsive
 * ═══════════════════════════════════════════════════════════════ */

/* ── Reset & Base ──────────────────────────────────────────── */
.dtw-wizard-body {
	margin: 0;
	padding: 0;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	background: #f5f7fa;
	color: #333;
	-webkit-font-smoothing: antialiased;
}

.dtw-wizard {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
}

/* ── Header ────────────────────────────────────────────────── */
.dtw-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	border-bottom: 1px solid #e0e4e8;
	padding: 10px 16px 0;
}

.dtw-back-link {
	display: inline-block;
	color: #005A8B;
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	margin-bottom: 8px;
}
.dtw-back-link:hover { text-decoration: underline; }

/* Progress bar */
.dtw-progress {
	height: 4px;
	background: #e0e4e8;
	border-radius: 2px;
	overflow: hidden;
	margin-bottom: 10px;
}
.dtw-progress-bar {
	height: 100%;
	background: #005A8B;
	border-radius: 2px;
	transition: width .4s ease;
}

/* Step labels */
.dtw-step-labels {
	display: flex;
	justify-content: space-between;
	padding-bottom: 10px;
}
.dtw-step-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: #aab2bd;
	flex: 1;
	text-align: center;
	padding: 4px 0;
	border-bottom: 2px solid transparent;
	transition: color .3s, border-color .3s;
}
.dtw-step-label.active {
	color: #005A8B;
	border-bottom-color: #005A8B;
}
.dtw-step-label.completed {
	color: #2ecc71;
	border-bottom-color: #2ecc71;
}

/* ── Steps Container ───────────────────────────────────────── */
.dtw-steps-container {
	flex: 1;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 90px; /* space for fixed nav */
}

.dtw-step {
	display: none;
}
.dtw-step.active {
	display: block;
	animation: dtwFadeIn .35s ease;
}
@keyframes dtwFadeIn {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: translateY(0); }
}

.dtw-step-content {
	max-width: 640px;
	margin: 0 auto;
	padding: 24px 16px;
}

.dtw-step-title {
	font-size: 22px;
	font-weight: 700;
	color: #005A8B;
	margin: 0 0 6px;
}
.dtw-step-subtitle {
	font-size: 14px;
	color: #666;
	margin: 0 0 20px;
	line-height: 1.5;
}
.dtw-step-note {
	font-size: 12px;
	color: #7a7a7a;
	margin: -8px 0 16px;
	line-height: 1.5;
}

/* ── Navigation ────────────────────────────────────────────── */
.dtw-nav {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: #fff;
	border-top: 1px solid #e0e4e8;
	padding: 12px 16px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

/* ── Buttons ───────────────────────────────────────────────── */
.dtw-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 46px;
	padding: 0 28px;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s, opacity .2s, transform .15s;
	text-decoration: none;
}
.dtw-btn:active { transform: scale(.97); }

.dtw-btn-primary {
	background: #005A8B;
	color: #fff;
}
.dtw-btn-primary:hover { background: #004a73; }
.dtw-btn-primary:disabled {
	background: #b0c4d8;
	cursor: not-allowed;
}

.dtw-btn-outline {
	background: transparent;
	color: #005A8B;
	border: 2px solid #005A8B;
}
.dtw-btn-outline:hover { background: rgba(0,90,139,.06); }

.dtw-btn-full {
	width: 100%;
	margin-top: 8px;
}

.dtw-link-btn {
	background: none;
	border: none;
	color: #005A8B;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	padding: 4px 0;
	text-decoration: underline;
}

/* ── Calendar (Step 1) ─────────────────────────────────────── */
.dtw-calendar-wrap {
	display: flex;
	justify-content: center;
	margin-bottom: 16px;
	overflow-x: auto;
}
.dtw-calendar-wrap .flatpickr-calendar {
	box-shadow: 0 2px 12px rgba(0,0,0,.08);
	border-radius: 12px;
	border: 1px solid #e0e4e8;
	font-size: 14px;
	max-width: 100%;
}

/* Theme flatpickr selection to match #005A8B */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
	background: #005A8B !important;
	border-color: #005A8B !important;
	color: #fff !important;
}
.flatpickr-day.inRange {
	background: rgba(0,90,139,.12) !important;
	border-color: transparent !important;
	box-shadow: none !important;
}
.flatpickr-day.today:not(.selected) {
	border-color: #005A8B !important;
}

.dtw-date-info {
	text-align: center;
	padding: 8px 0;
	min-height: 40px;
}
.dtw-date-info p { margin: 4px 0; }
.dtw-date-info .dtw-date-hint {
	font-size: 13px;
	color: #888;
}

/* ── Spots Grid (Step 2) ───────────────────────────────────── */
.dtw-spots-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.dtw-spot-card {
	border: 2px solid #e0e4e8;
	border-radius: 12px;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	background: #fff;
	transition: border-color .2s, box-shadow .2s;
}
.dtw-spot-card:hover {
	border-color: #90b4d0;
}
.dtw-spot-card.selected {
	border-color: #005A8B;
	box-shadow: 0 0 0 1px #005A8B;
}
.dtw-spot-card.disabled {
	opacity: .45;
	cursor: not-allowed;
	pointer-events: none;
}

.dtw-spot-choice-card {
	padding: 16px;
}

.dtw-spot-card-head {
	margin-bottom: 12px;
	padding-right: 36px;
}

.dtw-spot-card-label {
	font-size: 19px;
	font-weight: 700;
	color: #005A8B;
	line-height: 1.2;
}

/* Check badge */
.dtw-spot-check {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #005A8B;
	color: #fff;
	display: none;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	font-weight: 700;
	z-index: 2;
}
.dtw-spot-card.selected .dtw-spot-check {
	display: flex;
}

/* Image grid (used in Step 4 itinerary per-day display) */
.dtw-spot-images {
	display: grid;
	gap: 6px;
	border-radius: 8px;
	overflow: hidden;
}
.dtw-spot-images.grid-2x2 { grid-template-columns: 1fr 1fr; }
.dtw-spot-images.grid-1x2 { grid-template-columns: 1fr 1fr; }

.dtw-spot-img-slot {
	position: relative;
	background: #e8ecf0;
	aspect-ratio: 4/3;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #aab2bd;
	font-size: 12px;
	font-weight: 500;
	text-align: center;
	overflow: hidden;
	border-radius: 4px;
}
.dtw-spot-img-slot.has-image::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,.58) 0%, rgba(0,0,0,0) 52%);
}
.dtw-spot-img-slot img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.dtw-spot-img-caption {
	position: absolute;
	left: 8px;
	right: 8px;
	bottom: 8px;
	z-index: 1;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.25;
	color: #fff;
	text-shadow: 0 1px 3px rgba(0,0,0,.35);
}
.dtw-spot-img-slot.is-placeholder {
	padding: 12px;
	background: linear-gradient(135deg, #eef5fb 0%, #dce8f3 100%);
}
.dtw-spot-img-placeholder {
	color: #587289;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
}

.dtw-spots-counter {
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	color: #005A8B;
	margin-bottom: 8px;
	padding: 8px;
	background: rgba(0,90,139,.06);
	border-radius: 8px;
}
.dtw-spots-hint {
	display: block;
	text-align: center;
	font-size: 13px;
	color: #666;
	margin-bottom: 12px;
}
.dtw-spots-warn {
	color: #c0392b;
	font-weight: 600;
}

/* ── Options List (Step 3) ─────────────────────────────────── */
.dtw-options-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

/* Option cards share .dtw-spot-card base but have auto height & padding */
.dtw-option-card {
	height: auto !important;
	min-height: 80px;
	padding: 18px 52px 18px 20px;
	display: flex;
	align-items: center;
	background: #fff;
}
.dtw-option-card-inner {
	flex: 1;
}
.dtw-option-card-label {
	font-size: 17px;
	font-weight: 700;
	color: #005A8B;
	margin-bottom: 4px;
}
.dtw-option-card-desc {
	font-size: 13px;
	color: #888;
	line-height: 1.4;
}
.dtw-option-card-price {
	font-size: 13px;
	font-weight: 700;
	color: #005A8B;
	margin-top: 10px;
}

/* ── Estimation (Step 4) ───────────────────────────────────── */
.dtw-estimation-header {
	text-align: center;
	margin-bottom: 28px;
}
.dtw-estimation-icon {
	display: none;
}
.dtw-estimation-title {
	font-size: 22px;
	font-weight: 700;
	color: #005A8B;
	margin: 0 0 4px;
}
.dtw-estimation-subtitle {
	font-size: 14px;
	color: #888;
	margin: 0;
}

/* Per-day itinerary entries */
.dtw-itin-day {
	margin-bottom: 20px;
}
.dtw-itin-day .dtw-spot-images {
	margin-top: 8px;
}
.dtw-itin-day-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}
.dtw-itin-date {
	font-size: 13px;
	color: #888;
	flex-shrink: 0;
}
.dtw-itin-daynum {
	background: #005A8B;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 20px;
	flex-shrink: 0;
}
.dtw-itin-spotname {
	font-size: 18px;
	font-weight: 700;
	color: #222;
}
.dtw-itin-free {
	color: #aaa;
	font-style: italic;
	font-weight: 400;
	font-size: 15px;
}

/* Total row */
.dtw-itin-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 0;
	border-top: 2px solid #005A8B;
	margin-top: 8px;
	font-size: 16px;
	font-weight: 700;
	color: #333;
}
.dtw-itin-total-price {
	font-size: 28px;
	font-weight: 800;
	color: #005A8B;
}
.dtw-itin-summary {
	margin: 0 0 12px;
	text-align: center;
	font-size: 13px;
	color: #666;
}
.dtw-itin-disclaimer {
	font-size: 12px;
	color: #888;
	text-align: center;
	margin: 8px 0 0;
	line-height: 1.5;
}

/* ── Form (Step 5) ─────────────────────────────────────────── */
.dtw-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.dtw-form-group {
	margin-bottom: 16px;
}
.dtw-form-group label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #555;
	margin-bottom: 6px;
}

.dtw-req { color: #e74c3c; }

.dtw-form-group input,
.dtw-form-group select,
.dtw-form-group textarea {
	width: 100%;
	padding: 10px 12px;
	border: 2px solid #e0e4e8;
	border-radius: 8px;
	font-size: 15px;
	font-family: inherit;
	color: #333;
	background: #fff;
	transition: border-color .2s;
	box-sizing: border-box;
}
.dtw-form-group input:focus,
.dtw-form-group select:focus,
.dtw-form-group textarea:focus {
	outline: none;
	border-color: #005A8B;
}
.dtw-form-group textarea { resize: vertical; }

.dtw-form-dates-display {
	padding: 10px 12px;
	background: #f8f9fa;
	border: 2px solid #e0e4e8;
	border-radius: 8px;
	font-size: 14px;
	color: #333;
	margin-bottom: 4px;
}

.dtw-recaptcha-wrap {
	margin: 16px 0;
	display: flex;
	justify-content: center;
}

.dtw-form-message {
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
	margin-bottom: 12px;
	display: none;
}
.dtw-form-message.error {
	display: block;
	background: #fef2f2;
	color: #c0392b;
	border: 1px solid #f5c6cb;
}
.dtw-form-message.success {
	display: block;
	background: #eafaf1;
	color: #27ae60;
	border: 1px solid #a3d9a5;
}

.dtw-field-error {
	color: #c0392b;
	font-size: 13px;
	text-align: center;
	padding: 4px 0;
	min-height: 20px;
}

/* ── Success Screen ────────────────────────────────────────── */
.dtw-success-screen {
	text-align: center;
	padding-top: 48px !important;
}
.dtw-success-icon {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: #2ecc71;
	color: #fff;
	font-size: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
}
.dtw-success-screen .dtw-btn {
	margin-top: 24px;
}

/* ── Spinner on submit button ──────────────────────────────── */
.dtw-btn.loading {
	pointer-events: none;
	position: relative;
	color: transparent;
}
.dtw-btn.loading::after {
	content: '';
	position: absolute;
	width: 20px;
	height: 20px;
	border: 3px solid rgba(255,255,255,.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: dtwSpin .6s linear infinite;
}
@keyframes dtwSpin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════════
 *  Responsive — Tablet & Desktop
 * ═══════════════════════════════════════════════════════════════ */

@media (min-width: 480px) {
	.dtw-step-content {
		padding: 32px 24px;
	}
	.dtw-step-title {
		font-size: 26px;
	}
	.dtw-spots-grid {
		grid-template-columns: 1fr 1fr;
	}
	.dtw-options-list {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 768px) {
	.dtw-step-content {
		padding: 40px 32px;
	}
	.dtw-step-label {
		font-size: 12px;
	}
	.dtw-header {
		padding: 12px 32px 0;
	}
	.dtw-nav {
		padding: 12px 32px;
	}
	.dtw-itin-total-price {
		font-size: 34px;
	}
}
