/* ================================
   QUIZ PAGE STYLING
================================ */

/* Page Background */
.page-template-quiz-page {
	background: #d4fbff;
}

#ndp-progress-container {
	width: 100%;
	height: 15px;
	background: #d4fbff;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 9999;
}

.admin-bar #ndp-progress-container {
	top: 0;
}

#ndp-progress-bar {
	height: 100%;
	width: 0%;
	background: #FFE7A0;
	transition: width 0.3s ease;
}

.logged-in .ndp-step[data-step="4"] input[type="email"][readonly] {
    cursor: not-allowed;
}
/* Quiz Wrapper */
.ndp-quiz {
	max-width: 485px;
	width: 100%;
	margin: auto;
	height: 100vh;
	display: flex;
	align-items: center;
	flex-direction: column;
	justify-content: center;
	text-align: center;
}

.ndp-quiz form {
	width: 100%;
}

/* -------------------------------
     Logo
  -------------------------------- */
.ndp-quiz .site-logo-img img {
	display: block;
	max-width: 260px;
	margin: 55px auto 80px;
}

/* -------------------------------
     Headings
  -------------------------------- */
.ndp-quiz h4 {
	color: var(--ast-global-color-0);
}

.ndp-quiz h3 {
	margin-bottom: 30px;
}

/* -------------------------------
     Input Fields
  -------------------------------- */
.ndp-quiz .ndp-field {
	margin-bottom: 20px;
}

.ndp-quiz [data-step="1"] .ndp-field,
.ndp-quiz [data-step="5"] .ndp-field {
	max-width: 280px;
	margin-left: auto;
	margin-right: auto;
}

.ndp-quiz [data-step="2"] .ndp-field {
	max-width: 380px;
	margin-left: auto;
	margin-right: auto;
}

.ndp-quiz input[type="text"],
.ndp-quiz input[type="number"],
.ndp-quiz input[type="email"],
.ndp-quiz input[type="tel"] {
	max-width: 280px;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	padding: 14px 16px;
	font-size: 16px;
	color: #000;
	border: 1px solid transparent;
	border-radius: 12px;
	transition: border 0.3s ease;
}

.ndp-quiz input:focus {
	border-color: var(--ast-global-color-0);
	outline: none;
}

.ndp-quiz .ndp-error-text {
	color: red;
	font-size: 14px;
	text-align: left;
	padding: 5px 0 0 5px;
}

.ndp-quiz .ndp-error-text {
	max-width: 380px;
	margin-left: auto;
	margin-right: auto;
}

.ndp-quiz .ndp-step[data-step="4"] .ndp-error-text {
	max-width: 280px;
}

/* Target autofilled inputs */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
	-webkit-box-shadow: 0 0 0px 1000px white inset !important;
	/* Change 'white' to your desired background */
	-webkit-text-fill-color: #000 !important;
	/* Set text color */
	transition: background-color 5000s ease-in-out 0s;
	/* Prevent flashing on autofill */
}

/* -------------------------------
     Radio & Checkbox
  -------------------------------- */
.ndp-quiz label {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 11.5px 15px 11.5px 50px;
	margin-bottom: 12px;
	font-size: 18px;
	font-weight: 400;
	border: 1px solid transparent;
	border-radius: 12px;
	max-width: 380px;
	margin-left: auto;
	margin-right: auto;
	cursor: pointer;
	background: #fff;
	transition: all 0.3s ease-in-out;
	-o-transition: all 0.3s ease-in-out;
	-ms-transition: all 0.3s ease-in-out;
	-moz-transition: all 0.3s ease-in-out;
	-webkit-transition: all 0.3s ease-in-out;
}

.ndp-quiz label.checkbox {
	background: transparent;
	padding-left: 70px;
	line-height: 36px;
	justify-content: flex-start;
	width: max-content;
	margin-bottom: 0;
	padding-top: 0;
	padding-bottom: 0;
	padding-right: 0;
}

.ndp-quiz label.checkbox:hover {
	background: transparent;
	border-color: transparent;
	outline: none;
}

.ndp-quiz label.checkbox span {
	min-width: 60px;
	text-align: left;
}


/* Hide native radios/checkboxes */
.ndp-quiz input[type="radio"],
.ndp-quiz input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	cursor: pointer;
	height: 0;
	width: 0;
}

/* -------------------------------
     RADIO STYLING
  -------------------------------- */
.ndp-quiz label.radio::before {
	content: "";
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 1px solid #000;
	background: #fff;
	transition: border-color 0.2s, background 0.2s;
}

.ndp-quiz label.radio::after {
	content: "";
	position: absolute;
	left: 26px;
	top: 50%;
	transform: translate(-50%, -50%) scale(0);
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #000;
	border: 1px solid #fff;
	transition: transform 0.2s ease-out;
}

.ndp-quiz label.radio:has(input[type="radio"]:checked)::after {
	transform: translate(-50%, -50%) scale(1);
}

/* -------------------------------
     CHECKBOX STYLING
  -------------------------------- */
.ndp-quiz label.checkbox::before {
	content: "";
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	border-radius: 8px;
	border: 1px solid transparent;
	background: #fff;
	transition: border-color 0.2s, background 0.2s;
}

.ndp-quiz label.checkbox::after {
	content: "✔";
	position: absolute;
	left: 33px;
	top: 50%;
	transform: translate(-50%, -50%) scale(0);
	font-size: 18px;
	color: #000;
	transition: transform 0.2s ease-out;
}

.ndp-quiz label.checkbox:has(input[type="checkbox"]:checked)::after {
	transform: translate(-50%, -50%) scale(1);
}

/* -------------------------------
     Common Hover / Focus / Disabled
  -------------------------------- */
.ndp-quiz label:hover {
	background: var(--ast-global-color-5);
	border-color: #fff;
}

.ndp-quiz label:has(input:focus-visible) {
	outline: 3px solid #8ee6da;
	outline-offset: 3px;
}

.ndp-quiz label:has(input[disabled]) {
	opacity: 0.5;
	cursor: not-allowed;
}

/* -------------------------------
     Buttons
  -------------------------------- */
.ndp-quiz .button-block {
	margin-top: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ndp-quiz button {
	padding-left: 36px;
	padding-right: 36px;
	cursor: pointer;
	border: 1.5px solid transparent;
	transition: all 0.3s ease-in-out;
}

.ndp-quiz button.ndp-prev {
	border: 1.5px solid #000000;
	background: transparent;
	max-height: 48px;
	padding-left: 19px;
	padding-right: 19px;
}

.ndp-quiz button.ndp-prev:hover {
	background-color: var(--ast-global-color-0);
	border-color: var(--ast-global-color-0);
}

.ndp-quiz button:focus,
.ndp-quiz button:focus-within,
.ndp-quiz button:focus-visible {
	background-color: var(--ast-global-color-0);
	border-color: var(--ast-global-color-0);
}

.ndp-quiz .button-block button:not(:last-child) {
	margin-right: 20px;
}

/* -------------------------------
     Step Transition
  -------------------------------- */
.ndp-step {
	animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(15px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* -------------------------------
     Loading State
  -------------------------------- */
#ndp-loading {
	padding: 40px 20px;
	color: #000;
	text-align: center;
}

@media (max-width: 991px) {
	.ndp-quiz .site-logo-img img {
		max-width: 200px;
		margin: 30px auto 50px;
	}

	.ndp-quiz h3 {
		margin-bottom: 20px;
	}

	.ndp-quiz .ndp-field {
		margin-bottom: 10px;
	}

	.ndp-quiz input[type="text"],
	.ndp-quiz input[type="number"],
	.ndp-quiz input[type="email"],
	.ndp-quiz input[type="tel"] {
		font-size: 14px;
	}

	.ndp-quiz label {
		font-size: 14px;
		max-width: 300px;
	}

	.ndp-quiz label.checkbox {
		padding-left: 50px;
		line-height: 25px;
	}

	.ndp-quiz input[type="text"],
	.ndp-quiz input[type="number"],
	.ndp-quiz input[type="email"],
	.ndp-quiz input[type="tel"] {
		padding-top: 10px;
		padding-bottom: 10px;
		border-radius: 8px;
	}

	.ndp-quiz label.checkbox::before {
		width: 25px;
		height: 25px;
		border-radius: 5px;
	}

	.ndp-quiz label.checkbox::after {
		left: 28px;
	}

	.ndp-quiz button {
		padding: 12px 25px;
		line-height: normal;
	}

	.ndp-quiz .button-block button:not(:last-child) {
		margin-right: 10px;
	}
}



/* tej   Plan Review Styles */
.page-template-quiz-page .site-content .ast-container {
	justify-content: center;
}

.ndp-review-header {
	text-align: center;
	padding-top: 50px;
}

.ndp-review-header .site-logo-img {
	display: inline-block;
	vertical-align: top;
}
.ndp-review-header .site-logo-img img {
	max-width: 260px;
}
.ndp-review-header .ndp-dog-info {
	margin: 20px 0;
	font-size: 24px;
	font-weight: 400;
}

.ndp-daily-price {
	font-size: 24px;
	font-weight: 700;
}

.ndp-protein-card .ndp-protein-image {
	text-align: center;
    position: relative;
    display: inline-block;
    vertical-align: top;
    margin: -65px auto 0;
}

.ndp-protein-card .ndp-protein-image img {
	max-width: 200px;
	/* border-radius: 100%; */
	object-fit: cover;
	filter: drop-shadow(0 0 0.75rem rgba(0, 0, 0, 0.1));
}

.ndp-protein-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	column-gap: 40px;
	margin-top: 100px;
	align-items: stretch;
}

.ndp-protein-grid .ndp-protein-card {
	background: #fff;
	border-radius: 25px;
	display: flex;
	flex-direction: column;
}

.ndp-checkbox-container {
	padding: 20px 30px 0;
	text-align: center;
	display: flex;
    align-items: center;
    justify-content: center;
}

.ndp-protein-grid .ndp-protein-card .ndp-our-pick-badge {
	background: #334B4F;
	color: #fff;
	border-radius: 3px;
	display: inline-block;
	vertical-align: top;
	padding: 5px 7px;
	font-size: 14px;
	line-height: normal;
	position: absolute;
	left: -20px;
	top: 15px;
	z-index: 1;
}

.ndp-protein-description {
	line-height: 24px;
	font-size: 16px;
	color: #333;
}

.ndp-protein-info h3 {
	margin-bottom: 15px;
	font-size: 20px;
}

.ndp-bag-count {
	margin: 80px 0 0;
}

.ndp-checkbox-container {
	border-top: 2px solid #ddd;
	padding: 20px 30px 20px;
}

.ndp-protein-info {
	flex-grow: 1;
	padding: 30px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.ndp-protein-info-wrapper {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	flex-grow: 1;
}
footer .footer-widget-area.footer-widget-area-inner a:hover {
	color: #334B4F !important;
}
/* Custom Checkbox Start */
.ndp-protein-checkbox {
	display: none;
}

.ndp-checkbox-label {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	font-size: 16px;
}

.ndp-checkbox-label::before {
	content: "";
	display: inline-block;
	width: 30px;
	height: 30px;
	border: 2px solid #cdcdcd;
	border-radius: 4px;
	background: #fff;
	transition: all 0.2s ease-in-out;
	position: relative;
}

.ndp-protein-checkbox:checked+.ndp-checkbox-label::before {
	background-color: #334B4F;
	border-color: #334B4F;
	background-image: url("data:image/svg+xml,%3Csvg fill='white' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.173 12.727L2.1 8.654l1.414-1.414 2.659 2.658 6.364-6.364 1.414 1.414z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 20px;
}

.ndp-checkbox-label .ndp-checkbox-text {
	display: inline-block;
    vertical-align: middle;
    font-size: 20px;
    margin-left: 10px;
}

.ndp-checkbox-label .ndp-checkbox-added {
	display: none;
}

.ndp-protein-checkbox:checked+.ndp-checkbox-label .ndp-checkbox-text {
	display: none;
}

.ndp-protein-checkbox:checked+.ndp-checkbox-label .ndp-checkbox-added {
	display: inline-block;
	color: #334B4F;
	font-size: 20px;
	margin-left: 10px;
}

/* Custom Checkbox End */

/* Buttons */
.ndp-plan-actions {
	text-align: center;
	margin-top: 40px;
	margin-bottom: 40px;
}

.ndp-button {
	display: inline-block;
	padding: 15px 30px;
	margin: 8px;
	border-radius: 100px;
	text-decoration: none;
	font-weight: 600;
	font-size: 16px;
	transition: all 0.3s;
}

.ndp-button-primary {
	background: #fff;
	color: #000;
	border: 2px solid #000;
}

.ndp-button-primary:hover,
.ndp-button-primary:focus {
	background: #334B4F;
	color: #fff;
	border-color: #334B4F;
}

.ndp-button-secondary {
	background: #FFE7A0;
	color: #000;
	border: 2px solid #FFE7A0;
}

.ndp-button-secondary:hover {
	background: #334B4F;
	color: #fff;
	border-color: #334B4F;
}

.ndp-product-image {
	position: relative;
	padding-bottom: 100%;
}

.ndp-product-image img {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Responsive Styles */
@media (max-width: 1200px) {
	.ndp-protein-grid {
		column-gap: 20px;
	}
	.ndp-protein-checkbox:checked+.ndp-checkbox-label .ndp-checkbox-added, .ndp-checkbox-label .ndp-checkbox-text {
		font-size: 18px;
	}
}
@media (max-width: 991px) {
	.ndp-protein-grid {
		grid-template-columns: repeat(3, 1fr);
		row-gap: 100px;
	}
}
@media (max-width: 800px) {
	.ndp-protein-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 575px) {
	.ndp-plan-header h2 {
		font-size: 26px;
	}

	.ndp-plan-summary {
		font-size: 18px;
	}

	.ndp-plan-section {
		padding: 18px;
	}

	.ndp-product-overview {
		grid-template-columns: 1fr;
	}

	.ndp-protein-edit-grid {
		grid-template-columns: 1fr 1fr;
	}

	.ndp-plan-section h3 {
		font-size: 18px;
	}

	.ndp-product-info p,
	.ndp-plan-section li,
	.ndp-plan-section p,
	.ndp-protein-edit-item input {
		font-size: 14px;
	}
	.ndp-protein-grid {
        row-gap: 80px;
    }
	.ndp-review-header .site-logo-img img{
		max-width: 200px;
	}
	.ndp-protein-info {
		padding: 20px;
	}
	.ndp-protein-card .ndp-protein-image {
		margin: -50px auto 0;
	}
	.ndp-protein-card .ndp-protein-image img {
		max-width: 150px;
	}
	.ndp-review-header .ndp-dog-info {
		font-size: 20px;
	}
	.ndp-daily-price {
		font-size: 18px;
	}
	.ndp-protein-grid .ndp-protein-card .ndp-our-pick-badge {
		font-size: 12px;
	}
	.ndp-checkbox-label .ndp-checkbox-text,
	.ndp-protein-checkbox:checked+.ndp-checkbox-label .ndp-checkbox-added {
		font-size: 16px;
	}
	.ndp-protein-checkbox:checked+.ndp-checkbox-label::before {
		background-size: 16px;
	}
	.ndp-checkbox-label::before {
		width: 25px;
		height: 25px;
	}
	.ndp-checkbox-container {
		padding: 15px;
	}
	.ndp-protein-grid .ndp-protein-card {
		border-radius: 10px;
	}
}

@media (max-width: 480px) {
	.ndp-protein-grid {
        grid-template-columns: 1fr;
    }

	.ndp-plan-header h2 {
		font-size: 22px;
	}

	.ndp-plan-summary {
		font-size: 16px;
	}

	.ndp-button {
		display: block;
		width: 100%;
		margin: 10px 0;
		text-align: center
	}
	.ndp-protein-selection {
		padding: 0 30px;
	}
	.ndp-review-header .ndp-dog-info {
        font-size: 16px;
    }
    .ndp-daily-price {
        font-size: 16px;
        margin-bottom: 0;
    }	
	.ndp-protein-description {
		line-height: 20px;
		font-size: 14px;
	}
}

@media (max-width: 360px) {
	.ndp-protein-edit-grid {
		grid-template-columns: 1fr;
	}
	.ndp-protein-selection {
		padding: 0;
	}
}