/* Zip check — outer section with decorative images */
.dtec-step--zip {
	position: relative;
	overflow: visible;
	padding: var(--space-4xl) var(--space-xl);
	max-width: 900px;
	margin: 0 auto;
}

.dtec-step__decor {
	position: absolute;
	pointer-events: none;
	z-index: 0;
	max-width: 260px;
	height: auto;
}

.dtec-step__decor--left {
	left: -24%;
	bottom: 17%;
	max-width: 45%;
}

.dtec-step__decor--right {
	right: -12%;
	top: 12%;
	max-width: 260px;
}

/* Zip card — the inner white card with form */
.dtec-zip-card {
	position: relative;
	overflow: hidden;
	background: var(--dtec-bg);
	border: 2px solid var(--dtec-primary);
	border-radius: 24px;
	padding: var(--space-3xl) var(--space-2xl);
	box-shadow: 0 0 40px 0 #FEE6F1;
	text-align: center;
	z-index: 1;
}

.dtec-zip-card__decor {
	position: absolute;
	pointer-events: none;
	z-index: 0;
	max-width: 180px;
	height: auto;
}

.dtec-zip-card__decor--left {
	left: -9.5%;
	bottom: -17%;
	max-width: 37%;
}

.dtec-zip-card__decor--right {
	right: -7%;
	bottom: -6%;
	max-width: 27%;
}

.dtec-zip-card h2 {
	font-family: var(--heading-2-family, var(--dtec-font-family));
	font-size: var(--text-xl);
	font-weight: var(--heading-2-weight, var(--dtec-font-semibold));
	position: relative;
	z-index: 1;
}

.dtec-zip-card p,
.dtec-zip-input {
	position: relative;
	z-index: 1;
}

.dtec-zip-card p {
	font-family: var(--body-family, var(--dtec-font-family));
	font-weight: var(--heading-2-weight, var(--dtec-font-semibold));
}

.dtec-zip-input {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-xl);
	max-width: 480px;
	margin: 0 auto var(--space-m);
}

.dtec-zip-input__field-wrap {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
}

.dtec-zip-input__search-icon {
	position: absolute;
	left: 16px;
	width: 22px;
	height: 22px;
	pointer-events: none;
}

.dtec-zip-input__field {
	font-family: var(--body-family, var(--dtec-font-family));
	width: 100%;
	padding: var(--space-s) 48px var(--space-s) 48px !important;
	border: 1px solid rgba(46, 40, 38, 0.3) !important;
	border-radius: 4px !important;
	font-size: 1.125rem !important;
	text-align: left;
	background: #fff !important;
	transition: border-color var(--dtec-duration-fast);
}

.dtec-zip-input__field::placeholder {
	color: rgba(46, 40, 38, 0.75);
}

.dtec-zip-input__field:focus { border-color: var(--dtec-primary); outline: none; }
.dtec-zip-input__field:focus-visible { outline: 2px solid var(--dtec-primary); outline-offset: 2px; }

.dtec-zip-input__btn {
	display: flex;
	width: 100%;
	max-width: 268px;
	height: 64px;
	padding: 10px 20px;
	justify-content: center;
	align-items: center;
	gap: 10px;
	border-radius: 5px;
	background: var(--lime-500, #A0BA18);
	color: var(--white, #FFF);
	border: none;
	font-size: 20px;
	font-weight: 700;
	line-height: normal;
	cursor: pointer;
	white-space: nowrap;
	overflow: hidden;
	max-height: 80px;
	opacity: 1;
	transition: max-height 300ms cubic-bezier(0.4, 0, 0.2, 1),
	            opacity 200ms ease,
	            margin 300ms cubic-bezier(0.4, 0, 0.2, 1),
	            padding 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.dtec-zip-input__btn:hover {
	background: var(--lime-600, #8FA516);
}

.dtec-zip-input__btn.is-hidden {
	max-height: 0;
	opacity: 0;
	padding-top: 0;
	padding-bottom: 0;
	margin: 0;
	pointer-events: none;
}

/* --- Zip input status indicator (spinner → checkmark) --- */

.dtec-zip-input__status {
	position: absolute;
	right: 14px;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.dtec-zip-input__spinner,
.dtec-zip-input__check {
	width: 24px;
	height: 24px;
	position: absolute;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.dtec-zip-input__spinner { color: var(--dtec-primary); }
.dtec-zip-input__check { color: var(--dtec-cta); }

/* Loading: show spinner, spin it */
.dtec-zip-input__field-wrap.is-loading .dtec-zip-input__spinner {
	opacity: 1;
	animation: dtec-spin 0.6s linear infinite;
}

.dtec-zip-input__field-wrap.is-loading .dtec-zip-input__field {
	border-color: var(--dtec-primary) !important;
}

/* Success: spinner fades, checkmark draws in */
.dtec-zip-input__field-wrap.is-success .dtec-zip-input__check {
	opacity: 1;
}

.dtec-zip-input__field-wrap.is-success .dtec-zip-input__check-path {
	stroke-dasharray: 30;
	stroke-dashoffset: 30;
	animation: dtec-zip-draw 0.4s ease forwards;
}

.dtec-zip-input__field-wrap.is-success .dtec-zip-input__field {
	border-color: var(--dtec-cta) !important;
}

/* Error: shake the input */
.dtec-zip-input__field-wrap.is-error .dtec-zip-input__field {
	border-color: var(--dtec-error, #e53e3e) !important;
	animation: dtec-shake 0.35s ease;
}

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



@keyframes dtec-pop-in {
	from { transform: scale(0.3); opacity: 0; }
	to   { transform: scale(1); opacity: 1; }
}

@keyframes dtec-zip-draw {
	to { stroke-dashoffset: 0; }
}

@keyframes dtec-shake {
	0%, 100% { transform: translateX(0); }
	20%      { transform: translateX(-6px); }
	40%      { transform: translateX(5px); }
	60%      { transform: translateX(-4px); }
	80%      { transform: translateX(2px); }
}

/* --- Result slide-down --- */

.dtec-zip-input__result {
	margin-top: 0;
	position: relative;
	z-index: 1;
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.dtec-zip-input__result.is-visible {
	max-height: 80px;
	opacity: 1;
	margin-top: var(--space-s);
}

/* Hide decorative images on small screens for performance */
@media (max-width: 639px) {
	.dtec-step__decor,
	.dtec-zip-card__decor { display: none; }
}

/* Toggle (frequency) */
.dtec-toggle {
	display: flex;
	gap: var(--space-m);
	justify-content: center;
	flex-wrap: wrap;
}

.dtec-toggle__btn {
	padding: var(--space-m) var(--space-xl);
	border: 2px solid var(--dtec-border);
	border-radius: var(--dtec-radius-sm);
	background: var(--dtec-bg);
	font-size: 1rem;
	font-weight: var(--dtec-font-semibold);
	cursor: pointer;
	transition: border-color var(--dtec-duration-fast), background var(--dtec-duration-fast);
}

.dtec-toggle__btn--active { border-color: var(--dtec-primary); background: var(--dtec-primary-light); }

/* Meal count grid */
.dtec-meal-count-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	gap: var(--space-2xs);
	max-width: 600px;
	margin: 0 auto;
}

.dtec-meal-count__btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: var(--space-m);
	border: 2px solid var(--dtec-border);
	border-radius: var(--dtec-radius-sm);
	background: var(--dtec-bg);
	cursor: pointer;
	transition: border-color var(--dtec-duration-fast);
}

.dtec-meal-count__btn--active { border-color: var(--dtec-primary); background: var(--dtec-primary-light); }

.dtec-meal-count__num {
	font-size: 1.5rem;
	font-weight: var(--dtec-font-bold);
}

.dtec-meal-count__label {
	font-size: 0.75rem;
	color: var(--dtec-text-muted);
}

.dtec-meal-count__price {
	font-size: 0.75rem;
	color: var(--dtec-cta);
	font-weight: var(--dtec-font-semibold);
}

/* Day picker */
.dtec-day-grid {
	display: flex;
	gap: var(--space-2xs);
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: var(--space-xl);
}

.dtec-day__btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: var(--space-m) var(--space-xl);
	border: 2px solid var(--dtec-border);
	border-radius: var(--dtec-radius-sm);
	background: var(--dtec-bg);
	cursor: pointer;
	transition: border-color var(--dtec-duration-fast);
}

.dtec-day__btn--active { border-color: var(--dtec-primary); background: var(--dtec-primary-light); }

.dtec-day__name { font-weight: var(--dtec-font-semibold); }
.dtec-day__date { font-size: 0.875rem; color: var(--dtec-text-muted); }

/* Plan cards — header */
.dtec-plans__eyebrow {
	color: var(--dtec-primary) !important;
	font-size: 16px !important;
	font-weight: 600;
	text-align: center;
	margin-bottom: var(--space-2xs) !important;
	letter-spacing: 0.02em;
}

.dtec-plans__heading {
	font-size: clamp(2rem, 4vw, 3rem) !important;
	text-align: center;
	margin-bottom: var(--space-m) !important;
}

.dtec-plans__subtext {
	text-align: center;
	max-width: 640px;
	margin: 0 auto var(--space-2xl) !important;
}

/* Plan cards — grid */
.dtec-plans-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--space-xl);
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
}

.dtec-plan-card {
	border: 1px solid var(--dtec-primary-dark);
	border-radius: 24px;
	overflow: hidden;
	transition: box-shadow var(--dtec-duration-normal), transform var(--dtec-duration-normal);
	display: flex;
	flex-direction: column;
}

.dtec-plan-card:hover {
	box-shadow: var(--dtec-shadow-xl);
	transform: translateY(-4px);
}

.dtec-plan-card--active {
	border-color: var(--dtec-primary);
	box-shadow: 0 0 0 3px var(--dtec-primary-ring);
}

/* Card image */
.dtec-plan-card__image {
	height: 340px;
	overflow: hidden;
}

.dtec-plan-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Labels bar */
.dtec-plan-card__labels {
	background: #6C2C47;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 17px;
	padding: var(--space-xs) var(--space-m);
}

.dtec-plan-card__badge {
	display: inline-flex;
	align-items: center;
	gap: var(--space-xs);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.dtec-plan-card__badge svg {
	flex-shrink: 0;
}

.dtec-plan-card__tag {
	display: inline-flex;
	align-items: center;
	gap: var(--space-xs);
	color: #fff;
	font-size: 14px;
	letter-spacing: 0.06em;
}

.dtec-plan-card__tag svg {
	flex-shrink: 0;
}

/* Card body */
.dtec-plan-card__body {
	background: #8F385D;
	padding: var(--space-2xl);
	text-align: center;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.dtec-plan-card__body h3 {
	font-family: var(--heading-3-family, var(--dtec-font-family));
	color: #fff !important;
	font-size: clamp(1.75rem, 2.5vw, 2.375rem);
	font-weight: var(--heading-3-weight, var(--dtec-font-semibold));
	margin-bottom: var(--space-l);
}

.dtec-plan-card__body p {
	font-family: var(--body-family, var(--dtec-font-family));
	color: #fff !important;
	font-size: 16px;
	line-height: 1.6;
	margin-bottom: 0;
}

.dtec-plan-card__body p strong {
	font-weight: 700;
}

/* Card actions */
.dtec-plan-card__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-s);
	margin-top: var(--space-xl);
}

.dtec-plan-card__cta {
	font-family: var(--body-family, var(--dtec-font-family));
	width: 100%;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #A0BA18;
	color: #fff;
	border: none;
	border-radius: 5px;
	font-size: 20px;
	font-weight: 700;
	cursor: pointer;
	transition: background var(--dtec-duration-fast);
}

.dtec-plan-card__cta:hover {
	background: #8FA516;
}

.dtec-plan-card__update {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2xs);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid #fff;
	padding-bottom: var(--space-xs);
}

.dtec-plan-card__update svg {
	flex-shrink: 0;
}

.dtec-plan-card__update:hover {
	opacity: 0.85;
}

/* Charity cards (inline — checkout) */
.dtec-charity-grid--inline {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-m);
}

.dtec-charity-card {
	border: 1px solid var(--dtec-border);
	border-radius: var(--dtec-radius-lg);
	padding: var(--space-m);
	cursor: pointer;
	text-align: center;
	transition: all var(--dtec-duration-fast);
}

.dtec-charity-card--active {
	border-color: var(--dtec-primary);
	box-shadow: 0 0 0 2px var(--dtec-primary-ring);
}

.dtec-charity-card input[type="radio"] {
	display: none;
}

.dtec-charity-card img {
	max-width: 60px;
	margin-bottom: var(--space-2xs);
}

.dtec-charity-card__name {
	display: block;
	font-weight: var(--dtec-font-semibold);
}

.dtec-charity-card__desc {
	display: block;
	font-size: var(--text-s);
	color: var(--dtec-text-muted);
}

/* Legacy charity selector */
.dtec-charity-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: var(--space-m);
	margin-bottom: var(--space-xl);
}

.dtec-charity__btn {
	border: 2px solid var(--dtec-border);
	border-radius: var(--dtec-radius-sm);
	padding: var(--space-m);
	background: var(--dtec-bg);
	cursor: pointer;
	text-align: center;
	transition: border-color var(--dtec-duration-fast);
}

.dtec-charity__btn--active { border-color: var(--dtec-primary); background: var(--dtec-primary-light); }

.dtec-charity__img {
	width: 80px;
	height: 80px;
	object-fit: contain;
	margin-bottom: var(--space-2xs);
}

/* Zip step — shared component spacing */
.dtec-zip__carousel {
	margin-top: var(--space-3xl);
}

.dtec-zip__countdown {
	margin-top: var(--space-2xl);
	text-align: center;
}

.dtec-zip__faq {
	margin-top: var(--space-3xl);
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

/* --- Meals step header (eyebrow / heading / subtitle) --- */

.dtec-meals-header {
	margin-bottom: var(--space-l);
}

.dtec-meals-header__eyebrow {
	display: block;
	font-size: 13px;
	font-weight: var(--dtec-font-bold);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--dtec-primary);
	margin-bottom: var(--space-2xs);
}

.dtec-meals-header__title {
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: var(--dtec-font-bold);
	color: var(--dtec-text);
	margin: 0 0 var(--space-2xs);
	line-height: var(--dtec-leading-tight);
}

.dtec-meals-header__subtitle {
	font-size: var(--text-m);
	color: var(--dtec-text-muted-75, rgba(46, 40, 38, 0.75));
	margin: 0 0 var(--space-3xs);
	max-width: 560px;
	line-height: var(--dtec-leading-normal);
}

/* Responsive */
@media (max-width: 768px) {
	.dtec-plans-grid { grid-template-columns: 1fr; max-width: 480px; }
	.dtec-sticky-bar { padding: var(--space-s) var(--space-m); }
	.dtec-sticky-bar__info { gap: var(--space-m); }
	.dtec-sticky-bar__label { font-size: var(--text-s); }
	.dtec-sticky-bar__price { font-size: var(--text-l); }
	.dtec-plan-card__labels {
		flex-wrap: wrap;
		row-gap: var(--space-2xs);
		column-gap: var(--space-s);
	}
	.dtec-plan-card__badge {
		width: 100%;
		justify-content: center;
	}
}

@media (max-width: 480px) {
	.dtec-meal-count-grid { grid-template-columns: repeat(3, 1fr); }
}
