/* Croosswood Itinerary Tab Form Section — Frontend Styles */

.cw-itfs {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	background: #fff;
	border: 1px solid #e5e8ec;
	border-radius: 8px;
	padding: 32px;
}
.cw-itfs *, .cw-itfs *::before, .cw-itfs *::after { box-sizing: border-box; }

/* ---------- Tabs ---------- */
.cw-tabs {
	display: flex;
	gap: 28px;
	border-bottom: 1px solid #e5e8ec;
	margin-bottom: 24px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.cw-tab-btn {
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	padding: 8px 2px 14px;
	font-size: 16px;
	font-weight: 500;
	color: #6b7280;
	cursor: pointer;
	white-space: nowrap;
}
.cw-tab-btn.is-active { color: #1a91c2; border-bottom-color: #1a91c2; }

.cw-panel { display: none; }
.cw-panel.is-active { display: block; }

/* ---------- Overview ---------- */
.cw-overview-heading {
	font-size: 32px;
	font-weight: 700;
	color: #13293d;
	margin: 0 0 16px;
}
.cw-overview-desc {
	font-size: 15px;
	line-height: 1.7;
	color: #4b5563;
	margin-bottom: 24px;
}
.cw-overview-desc p { margin: 0 0 16px; }
.cw-highlights-heading {
	font-size: 22px;
	font-weight: 700;
	color: #13293d;
	margin: 0 0 14px;
}
.cw-highlights-list { list-style: none; margin: 0; padding: 0; }
.cw-highlight-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 8px 0;
	font-size: 15px;
	color: #374151;
}
.cw-highlight-item i, .cw-highlight-item svg {
	color: #1a91c2;
	font-size: 18px;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	margin-top: 2px;
}

/* ---------- Itinerary ---------- */
.cw-itinerary-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
}
.cw-itinerary-title { font-size: 26px; font-weight: 700; color: #13293d; margin: 0; }
.cw-expand-all { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #6b7280; cursor: pointer; user-select: none; }
.cw-toggle-switch {
	position: relative;
	width: 38px; height: 20px;
	border-radius: 999px;
	background: #d1d5db;
	display: inline-block;
	transition: background .2s ease;
}
.cw-toggle-switch.is-on { background: #1a91c2; }
.cw-toggle-dot {
	position: absolute; top: 2px; left: 2px;
	width: 16px; height: 16px; border-radius: 50%;
	background: #fff; transition: left .2s ease;
}
.cw-toggle-switch.is-on .cw-toggle-dot { left: 20px; }

.cw-accordion { border-top: 1px solid #eef0f2; }
.cw-day { border-bottom: 1px solid #eef0f2; position: relative; }
.cw-day-header {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 14px;
	background: #fff;
	border: none;
	padding: 18px 4px;
	cursor: pointer;
	text-align: left;
}
.cw-day-marker {
	width: 14px; height: 14px;
	border-radius: 50%;
	border: 3px solid #1a91c2;
	background: #fff;
	flex-shrink: 0;
}
.cw-day.is-open .cw-day-marker { background: #1a91c2; }
.cw-day-title-text { flex: 1; font-size: 15px; font-weight: 600; color: #13293d; }
.cw-day-caret { display: inline-flex; align-items: center; justify-content: center; color: #9ca3af; flex-shrink: 0; transition: transform .2s ease; }
.cw-day-caret svg { display: block; width: 16px; height: 16px; }
.cw-day.is-open .cw-day-caret { transform: rotate(180deg); }

.cw-day-content {
	max-height: 0;
	overflow: hidden;
	padding: 0 4px;
	font-size: 14px;
	line-height: 1.7;
	color: #4b5563;
	transition: max-height .25s ease, padding .25s ease;
}
.cw-day.is-open .cw-day-content { max-height: 1200px; padding: 0 4px 20px; }

/* locked (not-yet-unlocked) hint cursor */
.cw-itfs:not(.is-unlocked) .cw-day-header,
.cw-itfs:not(.is-unlocked) .cw-toggle-switch { cursor: pointer; }

/* ---------- Cost ---------- */
.cw-cost-heading { font-size: 30px; font-weight: 700; color: #13293d; margin: 0 0 18px; }
.cw-cost-subheading { font-size: 18px; font-weight: 700; color: #13293d; margin: 22px 0 12px; }
.cw-cost-list { list-style: none; margin: 0; padding: 0; }
.cw-cost-item { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; font-size: 14px; }
.cw-cost-item span { color: #374151; }
.cw-cost-includes .cw-cost-item .cw-cost-icon { color: #16a34a; }
.cw-cost-excludes .cw-cost-item .cw-cost-icon { color: #dc2626; }
.cw-cost-icon { margin-top: 3px; flex-shrink: 0; display: block; }

/* ---------- Map ---------- */
.cw-map-embed { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; border-radius: 6px; overflow: hidden; }
.cw-map-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.cw-map-placeholder { color: #6b7280; font-size: 14px; }

/* ---------- Lead Form Modal ---------- */
.cw-modal-overlay {
	position: fixed; inset: 0;
	background: rgba(15,23,42,0.55);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	z-index: 999999;
}
.cw-modal-overlay.is-visible { display: flex; }
.cw-modal {
	background: #fff;
	width: 100%;
	max-width: 520px;
	max-height: 90vh;
	overflow-y: auto;
	border-radius: 10px;
	padding: 28px;
	position: relative;
	box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.cw-modal-close {
	position: absolute; top: 12px; right: 14px;
	background: none; border: none;
	font-size: 26px; line-height: 1; color: #6b7280;
	cursor: pointer;
}
.cw-form-title { font-size: 18px; font-weight: 700; color: #13293d; margin: 0 0 8px; padding-right: 20px; text-align: center; }
.cw-form-desc { font-size: 14px; color: #6b7280; margin: 0 0 20px; padding-right: 20px; text-align: center; }

.cw-field { margin-bottom: 16px; }
.cw-field-row { display: flex; gap: 16px; }
.cw-field-row .cw-field { flex: 1; min-width: 0; }
.cw-field label { display: block; font-size: 13px; font-weight: 600; color: #13293d; margin-bottom: 6px; }
.cw-req { color: #dc2626; }
.cw-field input, .cw-field select, .cw-field textarea {
	width: 100%;
	font-size: 14px;
	color: #13293d;
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	padding: 10px 12px;
	font-family: inherit;
}
.cw-field input:focus, .cw-field select:focus, .cw-field textarea:focus {
	outline: none;
	border-color: #1a91c2;
	box-shadow: 0 0 0 3px rgba(26,145,194,0.15);
}
.cw-field textarea { resize: vertical; }

.cw-contact-row { display: flex; gap: 8px; }
.cw-contact-row .cw-contact-number { flex: 1; min-width: 0; }

/* Custom country-code dropdown (replaces native <select> so flag emoji render
   consistently — Chrome on Windows silently fails to draw flag glyphs inside
   native <option> elements and falls back to plain ISO letters). */
.cw-cc-select { position: relative; flex: 0 0 auto; }
.cw-cc-toggle {
	display: flex; align-items: center; gap: 6px;
	height: 100%;
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	padding: 10px 10px;
	font-size: 14px;
	font-family: inherit;
	color: #13293d;
	cursor: pointer;
}
.cw-cc-toggle:focus, .cw-cc-select.is-open .cw-cc-toggle {
	outline: none;
	border-color: #1a91c2;
	box-shadow: 0 0 0 3px rgba(26,145,194,0.15);
}
.cw-cc-flag { font-size: 16px; line-height: 1; }
.cw-cc-arrow { font-size: 10px; color: #9ca3af; margin-left: 2px; }
.cw-cc-list {
	position: absolute; bottom: calc(100% + 4px); left: 0; top: auto;
	z-index: 20;
	margin: 0; padding: 4px;
	list-style: none;
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	box-shadow: 0 -8px 24px rgba(15,23,42,0.15);
	max-height: 220px;
	overflow-y: auto;
	min-width: 110px;
}
.cw-cc-option {
	display: flex; align-items: center; gap: 8px;
	padding: 7px 10px;
	font-size: 14px;
	color: #13293d;
	border-radius: 5px;
	cursor: pointer;
	white-space: nowrap;
}
.cw-cc-option:hover, .cw-cc-option.is-selected { background: #eef6fa; }

.cw-form-msg { font-size: 13px; min-height: 18px; margin: 0 0 12px; }
.cw-form-msg.is-error { color: #dc2626; }
.cw-form-msg.is-success { color: #16a34a; }

.cw-submit-btn {
	width: 100%;
	background: #1a91c2;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 13px 20px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s ease;
}
.cw-submit-btn:hover { background: #147aa6; }
.cw-submit-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ---------- Mobile responsive ---------- */
@media (max-width: 767px) {
	.cw-itfs { padding: 20px 16px; border-radius: 6px; }
	.cw-tabs { gap: 18px; margin-bottom: 18px; }
	.cw-tab-btn { font-size: 14px; padding: 6px 0 12px; }
	.cw-overview-heading { font-size: 24px; }
	.cw-highlights-heading { font-size: 18px; }
	.cw-itinerary-title { font-size: 20px; }
	.cw-cost-heading { font-size: 22px; }
	.cw-cost-subheading { font-size: 16px; }
	.cw-field-row { flex-direction: column; gap: 0; }
	.cw-modal { padding: 20px; }
	.cw-day-title-text { font-size: 14px; }
	.cw-day-header { padding: 14px 2px; gap: 10px; }
}

@media (max-width: 480px) {
	.cw-itfs { padding: 16px 12px; }
	.cw-tabs { gap: 12px; }
	.cw-overview-heading { font-size: 20px; }
	.cw-itinerary-title { font-size: 18px; }
}
