body {
    font-family: 'Roboto', "Helvetica Neue", Helvetica, Roboto, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#form-container{
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 80px;
}

#dynamic-form .form-group {
    margin-bottom: 20px;
    width: 100%;
}

#dynamic-form .form-group label, #dynamic-form .form-group h6 {
    display: block;
    margin-bottom: 5px;
    margin-top: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

#dynamic-form .form-group input{
    box-sizing: border-box;
}

#dynamic-form .form-group input,
#dynamic-form .form-group select,
#dynamic-form .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-top: 5px;
    transition: border-color 0.3s;
    border: 1px solid #c5c5c5;
    font-size: 14px;
}

#dynamic-form .form-group input:focus,
#dynamic-form .form-group select:focus,
#dynamic-form .form-group textarea:focus {
    border-color: #4caf50;
    outline: none;
    box-shadow: 0 0 5px rgb(76, 175, 80);
}

#dynamic-form .form-group .error-message {
    color: red;
    margin-top: 5px;
    display: none;
    font-size: 0.875rem;
}

#dynamic-form .radio-group {
    display: flex;
    flex-direction: column;
}

#dynamic-form .checkbox-group {
    display: flex;
    flex-direction: column;
}

#dynamic-form .radio-group label {
    padding: 16px 10px;
    border: 2px solid #ccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    transition: background-color 0.3s, border-color 0.3s;
    font-size: 16px;
    border-radius: 4px;
    text-align: left;
    text-transform: none;
    box-sizing: border-box;
}

#dynamic-form .checkbox-group label {
    padding: 20px 10px;
    border: 2px solid #ccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    transition: background-color 0.3s, border-color 0.3s;
    font-size: 16px;
    border-radius: 4px;
    text-align: left;
    text-transform: none;
    box-sizing: border-box;
}

#dynamic-form .radio-group label:hover {
    background-color: #4caf502e;
    border-color: #4caf50;
}

#dynamic-form .radio-group label.selected {
    background-color: #4caf5024;
    color: #333;
    border-color: #4caf50;
    border: 2px solid #4caf50;
}

#dynamic-form .checkbox-group label.selected {
    background-color: #4caf5024;
    color: #333;
    border-color: #4caf50;
    border: 2px solid #4caf50;
}

#dynamic-form .radio-group label.selected .selected-badge{
    position: absolute;
    right: 0;
    top: 0;
    background: #4caf50;
    padding: 2px 8px;
    color: #fff;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    border-bottom-left-radius: 4px;
    line-height:1;
}

#dynamic-form .checkbox-group label.selected .selected-badge{
    position: absolute;
    right: 0;
    top: 0;
    background: #4caf50;
    padding: 2px 8px;
    color: #fff;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    border-bottom-left-radius: 4px;
    line-height:1;
}

#dynamic-form .radio-group input[type="radio"] {
    display: none;
}

#dynamic-form .general-error {
    color: red;
    margin-top: 20px;
    font-weight: bold;
    text-align: center;
    display: none;
}

#dynamic-form .confirmation-box {
    padding: 20px;
    background-color: #d4edda;
    color: #4caf50;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    text-align: center;
    font-size: 1.2rem;
    margin-top: 20px;
}

#dynamic-form #submit-button {
    padding: 0;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    width: 100%;
    transition: background-color 0.3s, transform 0.2s;
}

#dynamic-form #submit-button div {
    padding: 10px;
}

#dynamic-form #submit-button:hover {
    background-color: #439847;
    transform: translateY(-2px);
}

#dynamic-form .variations-group {
    display: flex;
    flex-direction: column;
}

#dynamic-form .variations-group .variations-wrapper{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

#dynamic-form #summary-container {
    background-color: #f8f8f8;
    border-top: 1px solid #000;
    margin-top: 5px;
    margin-bottom: 10px;
    width: 100%;
}

#dynamic-form .summary-title {
    text-align: left;
    width: 100%;
    display: block;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

#dynamic-form .summary-list {
    padding: 0!important;
    margin: 0;
}

#dynamic-form .summary-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 14px;
    color: #333;
    line-height: 1;
    width: 100%;
}

#dynamic-form .summary-item.with-border{
    padding-top: 7px;
}

#dynamic-form .summary-item-label {
    font-weight: 600;
    margin-left: 10px;
    font-size: 14px;
    color: #333;
    width: 80%;
}

#dynamic-form .summary-item-price {
    font-weight: 600;
    margin-right: 10px;
    width: 20%;
    text-align: right;
}

#dynamic-form .total-price {
    font-weight: 700;
    color: #4CAF50;
    font-size: 16px;
    border-top: 2px solid #4CAF50;
    padding: 10px 0;
    margin-top: 2px;
}

#dynamic-form .summary-total-price-label {
    color: #4CAF50;
    margin-left: 10px;
    font-size: 16px;
    font-weight: 600;
}

#dynamic-form .summary-total-price {
    font-weight: 600;
    color: #4CAF50;
    margin-right: 10px;
    font-size: 16px;
}

#dynamic-form .variations-group label {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    background-color: #fff;
    transition: background-color 0.3s, border-color 0.3s;
    position: relative;
    flex-direction: column;
    align-items: center;
}

#dynamic-form .variations-group label img {
    max-width: 100px;
    max-height: 100px;
    object-fit: cover;
}

#dynamic-form .variations-group label span {
    margin-top: 5px;
}

#dynamic-form .variations-group label.selected {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

#dynamic-form .variations-group input[type="radio"] {
    display: none;
}

#dynamic-form .box-option-image{
    width: 100px;
    height: 100px;
    margin-right: 10px;
    border: 2px solid #ccc;
    border-radius: 4px;
    padding: 4px;
    background: #fff;
}

#dynamic-form .box-option-image .option-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

#dynamic-form .catch-phrase {
    font-size: 14px;
    margin-top: 5px;
    font-weight: 500;
    padding: 4px 6px;
    border-radius: 4px;
    color: #ffffff;
    background: #267eb7;
    width: fit-content;
    width: -moz-fit-content;
}

#dynamic-form .reduced-price {
    font-size: 1rem;
    color: red;
    margin-top: 5px;
}

#dynamic-form .reduced-price .current-price {
    font-size: 1.2rem;
    color: #000;
    margin-left: 5px;
}

#dynamic-form .variations-group .variation-box{
    height: 150px;
    width: 45%;
    border: 2px solid #c5c5c5;
    overflow: hidden;
    border-radius: 15px;
    position: relative;
    cursor: pointer;
}

#dynamic-form .variations-group .variation-box img{
    width: 100%;
    height: 100%;
    -o-object-fit: contain;
    object-fit: contain;
}

#dynamic-form .variations-group .variation-box .selected-size{
    position: absolute;
    left: 10px;
    top: 10px;
    background: #4caf50;
    border: 1px solid #c5c5c5;
    color: #ffffff;
    border-radius: 50px;
    width: 24px;
    height: 24px;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

#dynamic-form .variations-group .variation-box .selected-color{
    position: absolute;
    left: 10px;
    top: 10px;
    background: #4caf50;
    border: 1px solid #c5c5c5;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    line-height: 1;
}

#dynamic-form .variation-box.selected .selected-badge {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    color: white;
    background-color: #4caf50;
    padding: 2px 8px;
    position: absolute;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    z-index: 1;
    margin: auto;
    left: 50%;
    transform: translate(-50%, 0);
    border: 1px solid #c5c5c5;
    border-bottom: none;
    line-height: 1;
}

#dynamic-form{
    width: 100%;
    margin: auto;
    padding: 20px;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-sizing: border-box;
}

#dynamic-form .labels-wrapper{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

#dynamic-form .labels-wrapper label{
    width: 100%;
    position: relative;
    margin-bottom: 0;
}

#dynamic-form .radio-group label .option-name{
    font-weight: 600;
    line-height: 1;
}

#dynamic-form .checkbox-group label .option-name{
    font-weight: 600;
    line-height: 1;
}

#dynamic-form .form-group p{
    margin-top: 0;
    margin-bottom: 5px;
    line-height: 1;
}

#dynamic-form .radio-group .labels-wrapper label:first-child{
    margin-top: 0;
}

#dynamic-form .checkbox-group .labels-wrapper label:first-child{
    margin-top: 0;
}

#dynamic-form .radio-group .labels-wrapper label{
    margin-top: 10px;
}

#dynamic-form .checkbox-group .labels-wrapper label{
    margin-top: 10px;
}

#dynamic-form .box-contain{
    display: flex;
    flex-direction: column;
}

#dynamic-form .product-details{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 5px;
}

#dynamic-form .box-prices{
    display: flex;
    flex-direction: column-reverse;
    align-items: end;
    text-wrap: nowrap;
}

#dynamic-form ul{
    padding-left: 20px;
    margin: 0;
}

#dynamic-form li::marker {
    content: "🔸";
}

#dynamic-form .shipping-box{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 600;
}

#dynamic-form .old-price{
    font-size: 14px;
}

#dynamic-form .current-price{
    font-size: 16px;
    font-weight: 600;
}

#dynamic-form .box-prices .price{
    font-size: 16px;
    font-weight: 600;
    text-align: right;
    text-wrap: nowrap;
}

#dynamic-form .radio-group label.shipping{
    padding: 12px 10px;
}

#dynamic-form .checkbox-group label.shipping{
    padding: 12px 10px;
}

.confirmation-box{
    background-color: #E6F4E6;
    padding: 30px 15px;
    border: 2px solid #4caf50;
    border-radius: 10px;
}

.confirmation-box p:first-child{
    font-size: 30px;
    font-weight: 600;
    text-align: center;
    margin:0;
}

.confirmation-box p{
    font-size: 24px;
    font-weight: 500;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 0;
}

#dynamic-form .variations-group .variation-box.selected {
    border: 2px solid #4caf50;
}

#dynamic-form .checkbox-group .labels-wrapper label.upsell-option {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 4px 10px!important;
}

#dynamic-form .upsell-option .box-option-image {
    width: 20%;
    height: auto;
    margin-right: 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#dynamic-form .upsell-option .product-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 70%;
    gap: 5px;
}

#dynamic-form .box-color-select{
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 10px;
    justify-content: space-between;
}

#dynamic-form .box-color-select:last-child{
    margin-bottom: 0;
}

#dynamic-form .color-select{
    width: 100%;
}

#dynamic-form .box-color-select select{
    margin-top: 0;
    padding: 5px 10px!important;
    height: 35px;
    width: 85%;
}

#dynamic-form .box-color-select span{
    width: 10%;
}

#dynamic-form .radio-group .labels-wrapper label {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    gap: 10px;
}

#dynamic-form .checkbox-group{
    padding: 12px 10px!important;
    background-color: #E8F3E7;
    background-image: linear-gradient(90deg, #4CAF50 50%, transparent 50%), linear-gradient(90deg, #4CAF50 50%, transparent 50%), linear-gradient(0deg, #4CAF50 50%, transparent 50%), linear-gradient(0deg, #4CAF50 50%, transparent 50%);
    background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
    background-size: 15px 2px, 15px 2px, 2px 15px, 2px 15px;
    background-position: left top, right bottom, left bottom, right top;
    animation: 0.3s linear 0s infinite normal none running border-dance;
    border-radius: 4px;
}

@keyframes border-dance {
    0% {
        background-position: left top, right bottom, left bottom, right top;
    }
    100% {
        background-position: left 15px top, right 15px bottom, left bottom 15px, right top 15px;
    }
}

#dynamic-form .checkbox-group .labels-wrapper {
    background: #fff;
}

#dynamic-form .checkbox-group label.selected {
    background-color: transparent!important;
}

@media (max-width: 576px) {
    #dynamic-form .form-group p {
        font-size: 14px;
    }

    #dynamic-form .form-group label, #dynamic-form .form-group h6 {
        font-size: 14px;
        font-weight: 600;
    }

    #dynamic-form .product-details {
        gap: 20px;
    }

    #dynamic-form .catch-phrase {
        font-size: 12px;
        line-height: 1;
    }

    #dynamic-form .radio-group label.selected .selected-badge {
        font-size: 10px;
    }

    #dynamic-form .checkbox-group label.selected .selected-badge {
        font-size: 10px;
    }

    #dynamic-form {
        padding: 10px;
    }

    #dynamic-form .shipping-box {
        font-size: 14px;
    }

    .price-shipping{
        text-wrap: nowrap;
    }

    .confirmation-box p:first-child{
        font-size: 24px;
    }

    .confirmation-box p{
        font-size: 18px;
    }

    #dynamic-form .checkbox-group .labels-wrapper label {
        display: flex;
        flex-direction: column;
        justify-content: start;
        align-items: start;
        gap: 10px;
    }

    #dynamic-form .box-option-image {
        margin-right: 0;
    }

    #dynamic-form #summary-container {
        background-color: #f8f8f8;
        border-top: 1px solid #000;
        margin-top: 5px;
        margin-bottom: 20px;
        width: 100%;
    }

    #dynamic-form .summary-title {
        font-size: 14px;
    }

    #dynamic-form .summary-list {
        padding: 0!important;
        margin: 0;
    }

    #dynamic-form .summary-item {
        display: flex;
        justify-content: space-between;
        padding: 5px 0;
        font-size: 14px;
    }

    #dynamic-form .summary-item-price {
        font-weight: 600;
        margin-right: 10px;
    }

    #dynamic-form .total-price {
        font-weight: 700;
        color: #4CAF50;
        font-size: 14px;
        border-top: 2px solid #4CAF50;
        padding: 10px 0;
    }

    #dynamic-form .summary-total-price-label {
        font-weight: 600;
        color: #4CAF50;
        margin-left: 10px;
        font-size: 14px;
    }

    #dynamic-form .summary-total-price {
        font-weight: 600;
        color: #4CAF50;
        margin-right: 10px;
        font-size: 14px;
    }
}
