#step2, #step3 {
    display: none;
}

fieldset {
    border: none;
}

.error-message {
    color: red;
    font-size: 0.9rem;
    margin-top: 5px;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Adding a class to trigger the visibility transition */
.show-error {
    opacity: 1;
}

.imgGroup-container {
    display: grid;
    text-align: center;
    align-items: baseline;
    /* grid-template-columns: 150px auto auto auto; */
}

.imgGroup {
    margin: 5px;
}

.imgGroup input[type="radio"] {
    display: none;
}

.imgGroup label {
    cursor: pointer;
}

.imgGroup label img {
    width: auto;
    height: 50px;
}

.imgGroup br {
    display: none;
}

.imgGroup input[type="radio"] {
    display: none; /* Hide the actual radio buttons */
}

.imgGroup label {
    position: relative;
    cursor: pointer;
}

.imgGroup label img {
    width: auto; /* Adjust as necessary */
    height: 50px; /* Adjust as necessary */
    display: block;
    text-align: center;
    margin: 0 auto;
}



/* Style for the check icon */
.imgGroup input[type="radio"]:checked + label::after {
    content: '';
    position: absolute;
    top: 50%;   /* Center the icon vertically */
    left: 50%;  /* Center the icon horizontally */
    transform: translate(-50%, -50%);
    width: 24px; /* Adjust based on your icon size */
    height: 24px; /* Adjust based on your icon size */
    background-image: url('../img/check-icon.svg');
    background-size: cover;
}

.imgGroup span {
    text-align: center;
    margin-top: 7px !important;
    display: block;
}

.question-n-answers {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px; /* Adjust as needed */
}

.question-line {
    flex-basis: 100%; /* Takes full width */
    margin-bottom: 10px; /* Spacing below the question */
}

.fieldset {
    flex-basis: 100%; /* Adjust width as needed */
    margin-left: auto; Pushes the fieldset to the right
}

.wizard-image {
    flex-grow: 1; /* Takes up remaining space */
    display: flex;
    justify-content: center; /* Center the image if needed */
    align-items: center; /* Center the image vertically if needed */
}

.wizard-image img {
    max-width: 100%; /* Ensure the image doesn't overflow its container */
    height: auto;
}

/* Hide wizard-image if no image is present */
.wizard-image:empty {
    display: none;
}

/* .fieldset that is parent of imgGroup-Container */
.fieldset:has(> #group-1 > div.imgGroup-container ) {
    display: flex;
    flex-basis: auto;
}

fieldset:has(> div.imgGroup-container) {
    display: grid;
    flex-wrap: wrap;
    justify-content: center;
    grid-template-columns: 3fr,2fr;
    grid-template-columns: repeat(3,1fr);
    row-gap: 30px;
}

#results {
    display: none;
}

.product-grid {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap to the next line if there's not enough space */
    gap: 20px; /* Spacing between items */
    justify-content: center; /* Center items horizontally */
    align-items: stretch; /* Stretch items to fill the container height */
}

.product-results {
    flex: 1; /* Allows items to grow and shrink as needed */
    max-width: calc(33.333% - 20px); /* Three items per row, minus the gap */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* A subtle shadow for some depth */
    border-radius: 4px; /* Rounded corners */
    overflow: hidden; /* Ensures the content respects the border radius */
    background: #fff; /* White background */
    display: flex;
    flex-direction: column; /* Stack children vertically */
}

.product-results a {
    color: inherit; /* Inherit text color from parent */
    text-decoration: none; /* No underlines on the link */
}

.product-results img {
    width: 100%; /* Full width of the container */
    height: auto; /* Maintain aspect ratio */
    object-fit: contain;
}

.product-results h3 {
    font-size: 1rem; /* Reasonable default font size */
    margin: 0.5em; /* Spacing around the heading */
}

.product-results .price {
    font-weight: bold; /* Make the price stand out */
    margin: 0.5em; /* Consistent spacing */
    color: #333; /* Slightly darker text for contrast */
}

.product-results .add_to_cart_button {
    background-color: #F1B6AF;
    color: #231F20;
    font-size: 100%;
    line-height: 1;
    cursor: pointer;
    position: relative;
    overflow: visible;
    padding: 0.618em 1em;
    border-radius: 3px;
    right: auto;
    border: 0;
    background-image: none;
    box-shadow: none;
    text-shadow: none;
    width: 118px;
    text-align: center;
    margin: 1em auto;
}

/* General Styles for the Form */
.wizard-step {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
}

.wizard-step h2 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    color: #666;
    margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-group input[type="radio"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-group input[type="radio"] {
    width: auto; /* Keep original width for radio buttons */
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="number"]:focus,
.form-group select:focus,
.form-group input[type="tel"]:focus {
    border-color: #EDC7C5;
    outline: none;
}

.form-group input[type="radio"] {
    margin-right: 5px;
}

.imgGroup-container {
    display: flex;
    justify-content: start;
    align-items: center;
}

.imgGroup img {
    max-width: 100px;
    height: auto;
    margin-right: 10px;
}

.wizard-image {
    margin-top: 10px;
    text-align: center;
}

/* Navigation Buttons */
.wizard-navigation {
    text-align: center;
    margin-top: 20px;
}

.wizard-navigation button,
.wizard-navigation input[type="submit"] {
    background-color: #EDC7C5;
    color: #000;
    border: none;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.wizard-navigation button:hover,
.wizard-navigation input[type="submit"]:hover {
    background-color: #0056b3;
}

.product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    margin-top: 20px;
}

.product-results {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: calc(50% - 10px);
    text-align: center;
    padding: 15px;
}

.product-results a {
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.product-results img {
    max-width: 100%;
    height: auto;
    max-height: 200px; /* Adjust the height as needed */
    margin-bottom: 10px;
}

.product-results h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.product-results .price {
    font-weight: bold;
    color: #000;
    margin-bottom: 15px;
}

.product-results .add_to_cart_button {
    background-color: #EDC7C5;
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.product-results .add_to_cart_button:hover {
    background-color: #0056b3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-grid {
        flex-direction: column;
    }

    .product-results {
        width: 100%;
    }
}

.product-results {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* This ensures the space is distributed evenly inside the card */
}

.product-results img {
    height: 200px; /* Fixed height */
}

.product-results h3 {
    height: 4em; /* Adjust this based on your needs, ensures consistent height */
    overflow: hidden;
    text-overflow: ellipsis;
}

.add_to_cart_button_container {
    margin-top: auto; /* Pushes the button to the bottom */
}

/* Hide the default radio button */
input[type="radio"] {
    opacity: 0;
    position: absolute;
}

/* Create a custom radio button */
input[type="radio"] + label::before {
    content: '';
    display: inline-block;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #EDC7C5;
    margin-left: 10px;
    transition: background-color 0.2s;
}

/* Change style when the radio button is checked */
input[type="radio"]:checked + label::before {
    background-color: #EDC7C5;
}

/* Optional: Add a smaller circle inside the custom radio when checked */
input[type="radio"]:checked + label::after {
    content: '';
    display: inline-block;
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: white;
    left: 5px; /* Adjust this value based on the size of your custom radio button */
    top: 5px; /* Adjust this value based on the size of your custom radio button */
}

/* General Styles for the Results Section */
#results {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.result-content {
    margin-top: 20px;
}

.result-text {
    margin-bottom: 20px;
}

.skinType, .skinColor {
    font-size: 18px;
    margin-bottom: 10px;
}

.skinColor img {
    width: 100px;
    vertical-align: middle;
    margin-right: 10px;
}

.skinType {
    font-size: 22px;
}

.skinColor {
    font-size: 22px;
}

.skinColor img {
    margin-left: 15px;
}

.skinColor {
    display: flex;
    flex-flow: wrap;
    align-items: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wizard-step {
        width: 90%;
        padding: 15px;
    }

    .imgGroup img {
        max-width: 80px; /* Smaller images on mobile */
    }

    h3.prodResults {
        font-size: 1.40rem;
        background: #EDC7C5;
        text-align: center;
        padding: 8px;
    }

    .product-results h3 {
        font-size: 1.5rem;
        height: 3em !important;
    }

    .product-results span.woocommerce-Price-amount.amount bdi {
        font-size: 25px;
    }
}



/* Responsive adjustments */
@media (max-width: 768px) {
    .product-results {
        max-width: calc(50% - 20px); /* Two items per row on smaller screens */
    }
}

@media (max-width: 480px) {
    .product-results {
        max-width: 100%; /* One item per row on very small screens */
    }
}

#promotions {
    vertical-align: middle;
    margin-left: 10px; /* Adjust the spacing between the checkbox and the label */
}

#promotions + label {
    vertical-align: middle;
    display: inline-block;
    margin: 0; /* Remove default margins */
}
/* Style for the notice */
#notice {
    margin-top: 10px;
    font-size: 0.9em;
    color: #555; /* Optional: change the color to something lighter */
	text-align: center;
}