/* Base Styles */
.msf-container {
    margin: 30px auto;
    padding: 30px 20px;
    background: #faebd7;
    border-radius: 12px;
}

/* Step Management */
.msf-step {
    display: none !important;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: relative;
    z-index: 1;
}
.msf-step.msf-active {
    display: block !important;
    opacity: 1;
}

/* Category Headings */
.msf-container .category-heading {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d2d2d;
    margin: 25px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0d0b7;
}

/* Product List Layout */
.product-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-bottom: 20px;
}

.product-item {
    background: #fff;
    border: 1px solid #e0d0b7;
    border-radius: 8px;
    margin-bottom: 15px;
    margin-right: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    width: calc(50% - 15px);
    position: relative;
}
.product-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Hide checkbox but keep it accessible */
.product-selection input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    margin: 0;
    cursor: pointer;
    z-index: 2;
}

/* Selected state styling */
.product-selection input[type="checkbox"]:checked + .product-content {
    background-color: #e38b29;
    color: white;
}

.product-selection input[type="checkbox"]:checked + .product-content .product-title {
    color: white;
}

/* Add a visual indicator for selection */


.product-selection input[type="checkbox"] + .product-content::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18px;
    color: white;
    background: #f3f3f3;
    border-radius: 2px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cc9134;
}

.product-selection input[type="checkbox"]:checked + .product-content::after {
    content: "✓";
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18px;
    color: white;
    background: #2d2d2d;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-selection {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    cursor: pointer;
    display: block;
    width: 100%;
}

.product-content {
    display: flex;
    align-items: center;
    padding: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.product-image {
    flex: 0 0 80px;
    margin-right: 15px;
}
.product-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.product-details {
    flex: 1;
}

.product-title {
    font-size: 16px !important;
    font-weight: 500;
    margin: 0;
    color: #2d2d2d;
    text-transform: capitalize;
}

/* Form Elements */
.form-columns {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}
.form-fields {
    flex: 2;
    min-width: 280px;
}
.selected-products {
    flex: 1;
    min-width: 220px;
    background: #fff9f0;
    padding: 24px 18px;
    border-radius: 10px;
    border: 1px solid #f3e7d7;
    height: fit-content;
    margin-top: 16px;
}
.selected-products h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #a67c52;
}
.product-summary .product-item {
    font-size: 1rem;
    margin-bottom: 8px;
    border-bottom: 1px solid #f3e7d7;
    padding-bottom: 6px;
    background: transparent;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    box-shadow: none;
    width: 100%;
}

.form-group {
    margin-bottom: 18px;
}
input, textarea {
    width: 100%;
    padding: 13px 12px;
    border: 1px solid #d1bfa3;
    border-radius: 6px;
    font-size: 1rem;
    background: #fff;
    color: #2d2d2d;
    transition: border 0.2s;
}
input:focus, textarea:focus {
    border-color: #e38b29;
    outline: none;
}
textarea {
    min-height: 85px;
    resize: vertical;
}

.step-actions {
    margin-top: 25px;
    display: flex;
    gap: 12px;
}
.msf-btn {
    padding: 12px 28px;
    border: 1.5px solid #2d2d2d;
    border-radius: 6px;
    background: #fff;
    color: #2d2d2d;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border 0.2s;
}
.msf-btn:hover, .msf-btn:focus {
    background: #e38b29;
    color: #fff;
    border-color: #e38b29;
}
.msf-submit {
    background: #2d2d2d;
    color: #fff;
    border-color: #2d2d2d;
}
.msf-submit:hover, .msf-submit:focus {
    background: #e38b29;
    color: #fff;
    border-color: #e38b29;
}

@media (max-width: 768px) {
    .product-item {
        width: 100%;
        margin-right: 0;
    }
    .form-columns {
        flex-direction: column;
    }
    .selected-products {
        margin-top: 28px;
    }
}

/*success*/
.msf-success-message {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

