/* ===== WashDrop Order Form ===== */

/* --- Reset & Base --- */
.wd-order-page {
	font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: #1e2022;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.wd-order-page *,
.wd-order-page *::before,
.wd-order-page *::after {
	box-sizing: border-box;
}

.wd-order-container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 2rem 1rem;
}

/* --- Progress Bar --- */
.wd-progress-bar {
	margin-bottom: 2rem;
}

.wd-progress-steps {
	display: flex;
	justify-content: space-between;
	margin-bottom: 8px;
}

.wd-progress-step {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #adb5bd;
	transition: color 0.3s;
}

.wd-progress-step.active {
	color: #35498a;
	font-weight: 600;
}

.wd-progress-step.completed {
	color: #ec4489;
}

.wd-step-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #e9ecef;
	color: #adb5bd;
	font-weight: 700;
	font-size: 12px;
	transition: all 0.3s;
}

.wd-progress-step.active .wd-step-number {
	background: #35498a;
	color: #fff;
}

.wd-progress-step.completed .wd-step-number {
	background: #ec4489;
	color: #fff;
}

.wd-step-label {
	display: none;
}

@media (min-width: 768px) {
	.wd-step-label {
		display: inline;
	}
}

.wd-progress-track {
	height: 4px;
	background: #e9ecef;
	border-radius: 2px;
	overflow: hidden;
}

.wd-progress-fill {
	height: 100%;
	background: #35498a;
	border-radius: 2px;
	transition: width 0.4s ease;
}

/* --- Layout --- */
.wd-order-layout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 2rem;
	align-items: start;
}

@media (max-width: 960px) {
	.wd-order-layout {
		grid-template-columns: 1fr;
	}
}

.wd-order-main {
	min-width: 0;
}

/* --- Step --- */
.wd-step {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 2rem;
}

.wd-step-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0 0 0.25rem;
	color: #1e2022;
}

.wd-step-subtitle {
	color: #677788;
	font-size: 0.9375rem;
	margin: 0 0 1.5rem;
}

/* --- City Toggle --- */
.wd-city-toggle {
	display: flex;
	gap: 0;
	background: #f0f2f5;
	border-radius: 8px;
	padding: 4px;
	margin-bottom: 1.5rem;
}

.wd-city-toggle-btn {
	flex: 1;
	text-align: center;
	padding: 10px 16px;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
	color: #677788;
	transition: all 0.2s;
}

.wd-city-toggle-btn.active {
	background: #fff;
	color: #35498a;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.wd-city-toggle-btn input {
	display: none;
}

/* --- Service Cards --- */
.wd-service-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.wd-service-card {
	cursor: pointer;
}

.wd-service-card input {
	display: none;
}

.wd-service-card-inner {
	border: 2px solid #e5e7eb;
	border-radius: 12px;
	padding: 1.5rem;
	text-align: center;
	transition: all 0.2s;
	position: relative;
}

.wd-service-card input:checked + .wd-service-card-inner {
	border-color: #35498a;
	box-shadow: 0 0 0 1px #35498a;
	background: #eef3fa;
}

.wd-service-card-inner:hover {
	border-color: #35498a;
}

.wd-service-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	color: #fff;
	margin-bottom: 8px;
}

.wd-service-badge:empty {
	display: none;
}

.wd-service-name {
	font-size: 1.125rem;
	font-weight: 700;
	margin: 0 0 4px;
}

.wd-service-price {
	margin: 8px 0;
}

.wd-price-amount {
	font-size: 1.75rem;
	font-weight: 700;
	color: #35498a;
}

.wd-price-unit {
	font-size: 0.875rem;
	color: #677788;
}

.wd-service-turnaround {
	color: #677788;
	font-size: 0.8125rem;
	margin-bottom: 12px;
}

.wd-service-features {
	list-style: none;
	padding: 0;
	margin: 0;
	font-size: 0.8125rem;
	color: #677788;
	text-align: left;
}

.wd-service-features li {
	padding: 2px 0;
}

.wd-service-features li::before {
	content: '✓ ';
	color: #ec4489;
	font-weight: 700;
}

/* --- Times grid --- */
.wd-times-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
}

@media (max-width: 640px) {
	.wd-times-grid {
		grid-template-columns: 1fr;
	}
}

.wd-time-section h3 {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 1rem;
	font-weight: 700;
	margin: 0 0 1rem;
	color: #35498a;
}

/* --- Date Picker --- */
.wd-date-picker {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 1rem;
}

.wd-date-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 10px 14px;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s;
	background: #fff;
	min-width: 60px;
}

.wd-date-btn:hover {
	border-color: #35498a;
}

.wd-date-btn.active {
	border-color: #35498a;
	background: #35498a;
	color: #fff;
}

.wd-date-btn .wd-date-day {
	font-size: 11px;
	text-transform: uppercase;
	font-weight: 600;
}

.wd-date-btn .wd-date-num {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
}

.wd-date-btn .wd-date-month {
	font-size: 10px;
	opacity: 0.8;
}

/* --- Time Slots --- */
.wd-time-slots {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 1rem;
}

.wd-time-slot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s;
	font-size: 14px;
}

.wd-time-slot:hover {
	border-color: #35498a;
}

.wd-time-slot.active {
	border-color: #35498a;
	background: #eef3fa;
}

.wd-time-slot.unavailable {
	opacity: 0.4;
	cursor: not-allowed;
}

.wd-time-slot .wd-slot-label {
	font-weight: 600;
}

.wd-time-slot .wd-slot-avail {
	font-size: 12px;
	color: #677788;
}

/* --- Buttons --- */
.wd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 28px;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	text-decoration: none;
	line-height: 1.4;
}

.wd-btn-next,
.wd-btn-submit {
	background: #ec4489;
	color: #fff;
}

.wd-btn-next:hover,
.wd-btn-submit:hover {
	background: #d63a7a;
}

.wd-btn-back {
	background: transparent;
	color: #677788;
	border: 1px solid #dee2e6;
}

.wd-btn-back:hover {
	background: #f8f9fa;
	color: #1e2022;
}

.wd-btn-outline {
	background: transparent;
	color: #ec4489;
	border: 1px solid #ec4489;
	padding: 10px 20px;
}

.wd-btn-outline:hover {
	background: #ec4489;
	color: #fff;
}

.wd-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* --- Step Navigation --- */
.wd-step-nav {
	display: flex;
	justify-content: space-between;
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e5e7eb;
}

/* --- Form Elements --- */
.wd-field-label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 6px;
	color: #1e2022;
}

.wd-required {
	color: #ec4489;
}

.wd-input {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
	color: #1e2022;
	transition: border-color 0.2s;
	background: #fff;
}

.wd-input:focus {
	outline: none;
	border-color: #35498a;
	box-shadow: 0 0 0 3px rgba(53,73,138,0.1);
}

.wd-input.error {
	border-color: #ec4489;
}

.wd-field-error {
	color: #ec4489;
	font-size: 12px;
	margin-top: 4px;
	min-height: 18px;
}

.wd-hint {
	color: #677788;
	font-size: 12px;
	margin-top: 4px;
}

.wd-form-group {
	margin-bottom: 1.25rem;
}

.wd-form-row {
	margin-bottom: 1rem;
}

/* --- Radio Cards --- */
.wd-radio-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.wd-radio-group-horizontal {
	flex-direction: row;
	flex-wrap: wrap;
}

.wd-radio-card {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s;
	font-size: 14px;
}

.wd-radio-group-horizontal .wd-radio-card {
	flex: 1;
	min-width: 140px;
}

.wd-radio-card.compact {
	padding: 10px 14px;
	font-size: 13px;
}

.wd-radio-card:hover {
	border-color: #35498a;
}

.wd-radio-card input:checked ~ span,
.wd-radio-card input:checked ~ .wd-radio-card-body {
	color: #35498a;
}

.wd-radio-card:has(input:checked) {
	border-color: #35498a;
	background: #eef3fa;
}

.wd-radio-card-body {
	display: flex;
	flex-direction: column;
}

.wd-radio-card-body strong {
	font-size: 14px;
}

.wd-radio-card-body span {
	font-size: 12px;
	color: #677788;
}

/* --- Weight Control --- */
.wd-weight-control {
	display: flex;
	align-items: center;
	gap: 0;
	max-width: 200px;
}

.wd-weight-btn {
	width: 44px;
	height: 44px;
	border: 1px solid #dee2e6;
	background: #f8f9fa;
	font-size: 20px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
	color: #1e2022;
}

.wd-weight-minus {
	border-radius: 8px 0 0 8px;
}

.wd-weight-plus {
	border-radius: 0 8px 8px 0;
}

.wd-weight-btn:hover {
	background: #e9ecef;
}

.wd-weight-display {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 0 12px;
	height: 44px;
	border-top: 1px solid #dee2e6;
	border-bottom: 1px solid #dee2e6;
	min-width: 80px;
}

.wd-weight-input {
	width: 40px;
	border: none;
	text-align: center;
	font-size: 18px;
	font-weight: 700;
	font-family: inherit;
	color: #1e2022;
	background: transparent;
	-moz-appearance: textfield;
}

.wd-weight-input::-webkit-inner-spin-button,
.wd-weight-input::-webkit-outer-spin-button {
	-webkit-appearance: none;
}

.wd-weight-unit {
	font-size: 14px;
	color: #677788;
}

/* --- Toggle Switch --- */
.wd-toggle-label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	cursor: pointer;
	font-size: 14px;
	padding: 8px 0;
}

.wd-toggle {
	position: relative;
	flex-shrink: 0;
	width: 44px;
	height: 24px;
}

.wd-toggle input {
	opacity: 0;
	width: 0;
	height: 0;
	position: absolute;
}

.wd-toggle-slider {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: #ccc;
	border-radius: 24px;
	transition: 0.3s;
}

.wd-toggle-slider::before {
	content: '';
	position: absolute;
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background: #fff;
	border-radius: 50%;
	transition: 0.3s;
}

.wd-toggle input:checked + .wd-toggle-slider {
	background: #35498a;
}

.wd-toggle input:checked + .wd-toggle-slider::before {
	transform: translateX(20px);
}

/* --- Phone Input --- */
.wd-phone-input {
	display: flex;
	gap: 0;
}

.wd-country-code {
	width: 110px;
	padding: 10px 8px;
	border: 1px solid #dee2e6;
	border-right: none;
	border-radius: 8px 0 0 8px;
	font-size: 14px;
	background: #f8f9fa;
}

.wd-phone-input .wd-input {
	border-radius: 0 8px 8px 0;
}

/* --- Checkbox --- */
.wd-checkbox-label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 14px;
}

/* --- Payment Methods --- */
.wd-payment-methods {
	display: flex;
	gap: 12px;
	margin-bottom: 1.5rem;
	flex-wrap: wrap;
}

.wd-payment-method-card {
	flex: 1;
	min-width: 140px;
	cursor: pointer;
}

.wd-payment-method-card input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.wd-payment-method-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 20px 16px;
	border: 2px solid #e5e7eb;
	border-radius: 12px;
	transition: all 0.2s;
	font-weight: 600;
	font-size: 14px;
	color: #677788;
}

.wd-payment-method-card.active .wd-payment-method-inner,
.wd-payment-method-card:has(input:checked) .wd-payment-method-inner {
	border-color: #35498a;
	background: #eef3fa;
	color: #35498a;
}

.wd-payment-method-inner:hover {
	border-color: #35498a;
}

/* --- Stripe Element --- */
.wd-stripe-element {
	padding: 12px 14px;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	background: #fff;
	min-height: 44px;
}

.wd-stripe-card {
	margin-bottom: 1rem;
}

/* --- Payment Panel --- */
.wd-payment-panel {
	margin-bottom: 1.5rem;
}

/* --- Info Box --- */
.wd-info-box {
	background: #eef3fa;
	border: 1px solid #d0d8e8;
	border-radius: 8px;
	padding: 16px 20px;
	font-size: 14px;
}

.wd-info-box h4 {
	margin: 0 0 8px;
	font-size: 15px;
}

.wd-info-box p {
	margin: 4px 0;
}

.wd-bank-details {
	width: 100%;
	margin: 12px 0;
}

.wd-bank-details th {
	text-align: left;
	font-weight: 600;
	padding: 4px 12px 4px 0;
	white-space: nowrap;
}

.wd-bank-details td {
	padding: 4px 0;
}

/* --- Discount Input --- */
.wd-discount-input {
	display: flex;
	gap: 8px;
}

.wd-discount-input .wd-input {
	flex: 1;
}

.wd-discount-result {
	margin-top: 8px;
	font-size: 13px;
}

.wd-discount-result.success {
	color: #ec4489;
}

.wd-discount-result.error {
	color: #ec4489;
}

/* --- Terms Section --- */
.wd-terms-section {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 1rem;
}

/* --- Review Summary --- */
.wd-review-summary {
	background: #f8f9fa;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 1.5rem;
	font-size: 14px;
}

.wd-review-row {
	display: flex;
	justify-content: space-between;
	padding: 6px 0;
}

.wd-review-row span:first-child {
	color: #677788;
}

.wd-review-section-title {
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #35498a;
	margin-top: 12px;
	margin-bottom: 6px;
	padding-top: 10px;
	border-top: 1px solid #e5e7eb;
}

.wd-review-section-title:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: none;
}

/* --- Sidebar --- */
.wd-order-sidebar {
	position: sticky;
	top: 100px;
}

.wd-sidebar-inner {
	background: #35498a;
	border-radius: 12px;
	padding: 24px;
	color: #fff;
}

.wd-sidebar-title {
	font-size: 1.125rem;
	font-weight: 700;
	margin: 0 0 16px;
}

.wd-sidebar-dates {
	margin-bottom: 4px;
}

.wd-sidebar-date-row {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	padding: 4px 0;
}

.wd-sidebar-date-label {
	opacity: 0.8;
}

.wd-sidebar-date-value {
	font-weight: 600;
}

.wd-sidebar-divider {
	border-top: 1px solid rgba(255,255,255,0.2);
	margin: 12px 0;
}

.wd-sidebar-row {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	padding: 3px 0;
}

.wd-sidebar-row span:first-child {
	opacity: 0.8;
}

.wd-sidebar-addon span:first-child {
	padding-left: 8px;
}

.wd-sidebar-discount {
	color: #c5e4f7;
}

.wd-sidebar-total {
	display: flex;
	justify-content: space-between;
	font-size: 18px;
	font-weight: 700;
	padding: 4px 0;
}

.wd-sidebar-minimum {
	font-size: 11px;
	opacity: 0.7;
	margin-top: 4px;
}

.wd-sidebar-note {
	font-size: 11px;
	opacity: 0.6;
	margin-top: 12px;
	line-height: 1.4;
}

/* --- Loading --- */
.wd-loading {
	text-align: center;
	color: #677788;
	padding: 2rem;
}

.wd-spinner {
	animation: wd-spin 1s linear infinite;
}

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

/* --- Confirmation Page --- */
.wd-confirmation-page {
	max-width: 600px;
	margin: 2rem auto;
	padding: 0 1rem;
}

.wd-confirmation-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 2.5rem;
	text-align: center;
}

.wd-confirmation-icon {
	margin-bottom: 1rem;
}

.wd-confirmation-card h1 {
	font-size: 1.75rem;
	margin: 0 0 0.5rem;
}

.wd-confirmation-number {
	font-size: 1.125rem;
	color: #35498a;
	margin-bottom: 1rem;
}

.wd-confirmation-details {
	text-align: left;
	background: #f8f9fa;
	border-radius: 8px;
	padding: 16px 20px;
	margin-top: 1.5rem;
}

.wd-confirmation-row {
	display: flex;
	justify-content: space-between;
	padding: 6px 0;
	font-size: 14px;
}

.wd-confirmation-row span:first-child {
	color: #677788;
}

/* --- Responsive --- */
@media (max-width: 640px) {
	.wd-step {
		padding: 1.25rem;
	}

	.wd-radio-group-horizontal {
		flex-direction: column;
	}

	.wd-payment-methods {
		flex-direction: column;
	}

	.wd-order-sidebar {
		position: static;
	}
}
