/* Taxi Enquiry WhatsApp Plugin — mobile-first styles
 *
 * NOTE ON SPECIFICITY: every rule below is scoped under #tew-form-root and
 * many use !important on color/background/font/appearance. This is
 * deliberate: WordPress themes frequently apply global styles to <button>
 * elements (e.g. forcing white text, text-indent tricks for icon buttons,
 * uppercase/letter-spacing resets) that would otherwise make our button
 * labels invisible or misshapen. Scoping + !important keeps this form
 * looking the same on every theme.
 */

#tew-form-root {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 14px;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
	color: #ffffff !important;
	background: #000000 !important;
	text-align: left !important;
}

/* Compact mobile sizing: smaller type and controls so the form reads as
   a compact card rather than filling the whole viewport. */
@media (max-width: 640px) {
	#tew-form-root {
		width: 100%;
		max-width: 100%;
		max-height: 75vh;
		overflow-y: auto;
		padding: 12px;
		border-radius: 14px;
	}
}

#tew-form-root,
#tew-form-root * {
	box-sizing: border-box;
	text-transform: none !important;
	text-indent: 0 !important;
	letter-spacing: normal !important;
	line-height: normal;
	-webkit-appearance: none;
	appearance: none;
}

#tew-form-root .tew-progress {
	font-size: 11px !important;
	color: #FFC107 !important;
	margin-bottom: 4px;
	font-weight: 600 !important;
	letter-spacing: .02em !important;
	text-transform: uppercase !important;
}

#tew-form-root .tew-step-title {
	font-size: 17px !important;
	font-weight: 700 !important;
	color: #ffffff !important;
	margin: 0 0 12px;
}

#tew-form-root .tew-step {
	display: none;
	animation: tew-fade .15s ease-in;
}

#tew-form-root .tew-step.is-active {
	display: block;
}

@keyframes tew-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

#tew-form-root .tew-field {
	margin-bottom: 16px;
}

#tew-form-root .tew-label {
	display: block;
	font-size: 12px !important;
	font-weight: 600 !important;
	color: #ffffff !important;
	margin-bottom: 4px;
}

#tew-form-root .tew-input,
#tew-form-root .tew-select {
	display: block;
	width: 100%;
	padding: 9px 10px;
	font-size: 14px !important;
	font-weight: 400 !important;
	color: #ffffff !important;
	border: 1px solid #444444 !important;
	border-radius: 8px;
	background: #1a1a1a !important;
	box-shadow: none !important;
	min-height: 38px;
}

#tew-form-root .tew-input::placeholder,
#tew-form-root .tew-select::placeholder {
	color: #9ca3af !important;
}

#tew-form-root .tew-input:focus,
#tew-form-root .tew-select:focus {
	outline: none;
	border-color: #FFC107 !important;
	box-shadow: none !important;
}

#tew-form-root .tew-error {
	color: #b91c1c !important;
	font-size: 13px !important;
	margin-top: 6px;
	display: none;
}

#tew-form-root .tew-field.has-error .tew-error {
	display: block;
}

#tew-form-root .tew-field.has-error .tew-input,
#tew-form-root .tew-field.has-error .tew-select {
	border-color: #b91c1c !important;
}

#tew-form-root .tew-hp-field {
	position: absolute;
	left: -9999px;
	top: -9999px;
	opacity: 0;
	height: 0;
	width: 0;
}

/* Trip type / cab selection cards */
#tew-form-root .tew-option-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-bottom: 12px;
}

#tew-form-root .tew-option {
	display: block;
	border: 1.5px solid #FFC107 !important;
	border-radius: 8px;
	padding: 9px 10px !important;
	cursor: pointer;
	font-size: 13px !important;
	font-weight: 700 !important;
	font-family: inherit !important;
	color: #ffffff !important;
	background: #FFC107 !important;
	background-image: none !important;
	box-shadow: none !important;
	text-align: left !important;
	text-decoration: none !important;
	width: 100%;
	min-height: 38px;
	white-space: normal !important;
	overflow: visible !important;
	opacity: 1 !important;
}

#tew-form-root .tew-option.is-selected {
	border-color: #ffffff !important;
	background: #E0A800 !important;
	color: #ffffff !important;
}

/* Destinations */
#tew-form-root .tew-destination-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}

#tew-form-root .tew-destination-row .tew-input {
	flex: 1;
}

#tew-form-root .tew-remove-dest {
	flex-shrink: 0;
	border: none !important;
	background: #3a1a1a !important;
	color: #ff8080 !important;
	font-family: inherit !important;
	border-radius: 6px;
	padding: 8px 10px !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	cursor: pointer;
	box-shadow: none !important;
}

#tew-form-root .tew-add-dest {
	border: 1px dashed #FFC107 !important;
	background: none !important;
	color: #FFC107 !important;
	font-family: inherit !important;
	border-radius: 8px;
	padding: 9px !important;
	width: 100%;
	font-size: 13px !important;
	font-weight: 600 !important;
	cursor: pointer;
	margin-bottom: 12px;
	box-shadow: none !important;
}

/* Date/time pairs */
#tew-form-root .tew-row-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

/* Nav buttons */
#tew-form-root .tew-nav {
	display: flex;
	gap: 10px;
	margin-top: 24px;
}

#tew-form-root .tew-btn {
	flex: 1;
	padding: 10px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	font-family: inherit !important;
	border-radius: 8px;
	border: none !important;
	cursor: pointer;
	min-height: 40px;
	box-shadow: none !important;
	text-decoration: none !important;
	white-space: normal !important;
	overflow: visible !important;
}

#tew-form-root .tew-btn-primary {
	background: #FFC107 !important;
	color: #ffffff !important;
}

#tew-form-root .tew-btn-secondary {
	background: #1a1a1a !important;
	color: #ffffff !important;
	border: 1px solid #444444 !important;
}

#tew-form-root .tew-btn:disabled {
	opacity: .5 !important;
	cursor: not-allowed;
}

/* Review screen */
#tew-form-root .tew-review-list {
	border: 1px solid #333333;
	border-radius: 12px;
	padding: 14px 16px;
	margin-bottom: 16px;
	background: #111111;
}

#tew-form-root .tew-review-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 0;
	border-bottom: 1px solid #262626;
	font-size: 12px !important;
}

#tew-form-root .tew-review-row:last-child {
	border-bottom: none;
}

#tew-form-root .tew-review-label {
	color: #9ca3af !important;
}

#tew-form-root .tew-review-value {
	font-weight: 600 !important;
	color: #ffffff !important;
	text-align: right !important;
}

/* Success screen */
#tew-form-root .tew-success {
	text-align: center !important;
	padding: 24px 8px;
}

#tew-form-root .tew-success h2 {
	margin-top: 0;
	color: #ffffff !important;
}

#tew-form-root .tew-success .tew-success-sub {
	font-size: 18px !important;
	font-weight: 700 !important;
	color: #FFC107 !important;
	margin: 12px 0 20px;
}

#tew-form-root .tew-success-icon {
	color: #FFC107;
	font-size: 40px;
	line-height: 1;
	margin-bottom: 8px;
}

#tew-form-root .tew-whatsapp-btn {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	background: #000000 !important;
	color: #FFC107 !important;
	border: 1.5px solid #FFC107 !important;
	text-decoration: none !important;
	font-weight: 700 !important;
	font-family: inherit !important;
	padding: 14px 24px !important;
	border-radius: 10px;
	font-size: 16px !important;
	transition: background .15s ease;
}

#tew-form-root .tew-whatsapp-btn:hover,
#tew-form-root .tew-whatsapp-btn:focus {
	background: #1a1a1a !important;
	color: #FFC107 !important;
}

#tew-form-root .tew-whatsapp-btn .tew-whatsapp-icon {
	font-size: 18px;
	color: #FFC107 !important;
}

#tew-form-root .tew-submit-error {
	color: #b91c1c !important;
	font-size: 14px !important;
	margin-top: 12px;
	text-align: center;
}

/* Desktop */
@media (min-width: 640px) {
	#tew-form-root {
		padding: 24px;
		border: 1px solid #333333;
		border-radius: 16px;
		box-shadow: 0 2px 10px rgba(0,0,0,.4);
	}
}

/* Success screen call-to-action */
#tew-form-root .tew-cta-box {
	border: 1px solid #FFC107;
	background: #1a1500;
	border-radius: 10px;
	padding: 12px;
	margin: 0 0 16px;
	font-size: 13px !important;
	color: #ffffff !important;
	text-align: center;
}
#tew-form-root .tew-cta-box strong {
	display: block;
	font-size: 15px !important;
	color: #FFC107 !important;
	margin-bottom: 6px;
}
#tew-form-root .tew-cta-box span { display: block; color: #ffffff !important; }
#tew-form-root .tew-whatsapp-btn {
	width: 100%;
	justify-content: center;
	animation: tew-pulse 1.8s ease-in-out infinite;
}
#tew-form-root .tew-cta-foot {
	font-size: 12px !important;
	color: #9ca3af !important;
	margin: 10px 0 0;
}
@keyframes tew-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(255,193,7,.55); }
	50% { box-shadow: 0 0 0 8px rgba(255,193,7,0); }
}
@media (prefers-reduced-motion: reduce) {
	#tew-form-root .tew-whatsapp-btn { animation: none; }
}
