/* Container Layout */
.new-quote {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0 auto;
}
.new-quote .quote-left {
    flex: 1;
    min-width: 60%;
    padding: 0;
    background: #fff;
    padding:40px;
    border-radius: 20px;
    border: 1px solid #00000017;
}
.new-quote .quote-right {
    width: 350px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Rows Layout */
.new-quote .quote-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    flex-wrap: wrap;
}
.new-quote .quote-label {
    width: 150px;
    font-size: 16px;
    font-weight: bold;
    color: #4a90e2; /* Blue color */
    padding-top: 25px; /* Align with input */
}
.new-quote .quote-label .moq {
    font-size: 12px;
    font-weight: normal;
    color: #666;
    display: block;
    margin-top: 4px;
}
.new-quote .quote-inputs {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex: 1;
}
.new-quote .input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.new-quote .input-label {
    font-size: 13px;
    color: #333;
    margin-bottom: 8px;
}
.new-quote .quote-row .times {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1;
}

/* Dimensions & Quantity inputs */
.new-quote .quote-input, .new-quote .quote-select {
    height: 40px;
    border: 2px solid #7EAB50; /* Green border */
    border-radius: 6px;
    padding: 0 10px;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
    color: #333;
    background-color: #fff;
    border: 2px solid #7EAB50; /* Green border */
}
#new-quote .quote-input {
    width: 100%;
    text-align: center;
    border: 2px solid #7EAB50; /* Green border */
    font-size: 16px;
    padding:10px;
    border-radius: 6px;
}
.new-quote .quote-select {
    width: auto;
    min-width: 80px;
    padding-right: 35px;
    appearance: none;
    background: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20fill%3D%22%238cc63f%22%20d%3D%22M5%207l5%205%205-5z%22%2F%3E%3C%2Fsvg%3E") no-repeat right 10px center;
    background-size: 20px;
    background-color: white;
    cursor: pointer;
}
.new-quote .unit-group .quote-select {
    width: 80px;
}

/* Image List Layout */
.new-quote .quote-image-list {
    flex: 1;
}

/* Quote Group Layout */
.new-quote .items {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.new-quote .items .item{
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.new-quote .items .item-after {
    font-size: 20px;
    color: #333;
    line-height: 1;
    margin: 0 5px;
}
.new-quote .items .quote-select {
    width: auto;
}
.new-quote .quote-image-select, .new-quote .quote-image-checkbox, .new-quote .quote-select-box, .new-quote .quote-input-box, .new-quote .quote-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}
.new-quote .quote-image-select .field-title, .new-quote .quote-image-checkbox .field-title, .new-quote .quote-select-box .field-title, .new-quote .quote-input-box .field-title, .new-quote .quote-group .field-title {
    font-size: 16px;
    font-weight: 600;
    color: #3C78AA;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.new-quote .column {
    flex-direction: column;
}

.new-quote .quote-image-select .item, .new-quote .quote-image-checkbox .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
    position: relative;
    cursor: pointer;
    border: 3px solid #FFFFFF;
    border-radius: 6px;
    overflow: hidden;
    padding-bottom:5px;
}
.new-quote .quote-image-select .item:hover,
.new-quote .quote-image-select .item.checked,
.new-quote .quote-image-checkbox .item:hover,
.new-quote .quote-image-checkbox .item.checked {
    border-color: #3C78AA;
}
.new-quote .quote-image-select .item-img, .new-quote .quote-image-checkbox .item-img {
    width: 100%;
    min-height: 120px;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}
.new-quote .quote-image-select .item-img img, .new-quote .quote-image-checkbox .item-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.new-quote .quote-image-select .item-text, .new-quote .quote-image-checkbox .item-text {
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    line-height: 1.3;
    color: #333;
}

/* Disabled Styles */
.new-quote .quote-image-select .item.disabled,
.new-quote .quote-image-select .item.rule-disabled,
.new-quote .quote-image-checkbox .item.disabled,
.new-quote .quote-image-checkbox .item.rule-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    border-color: #eee;
    background-color: #f5f5f5;
}
.new-quote .quote-image-select .item.disabled .item-img,
.new-quote .quote-image-select .item.rule-disabled .item-img,
.new-quote .quote-image-checkbox .item.disabled .item-img,
.new-quote .quote-image-checkbox .item.rule-disabled .item-img {
    filter: grayscale(100%);
}

.new-quote .help-icon {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #4a90e2;
    color: #4a90e2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    background: white;
}
.new-quote .item-label {
    font-size: 12px;
    text-align: center;
    line-height: 1.3;
    color: #333;
}

/* Selected state for image items */
.new-quote .quote-image-select .item:has(img[checked]) .img-wrap, 
.new-quote .quote-image-checkbox .item:has(img[checked]) .img-wrap {
    border: 2px solid #4a90e2;
    box-sizing: border-box;
}
.new-quote .quote-image-select .item:hover .img-wrap, 
.new-quote .quote-image-checkbox .item:hover .img-wrap {
    border: 2px solid #8cc63f;
    box-sizing: border-box;
}

/* Right Side Styles */
.new-quote .quote-preview {
    background-color: #2b5c8f;
    color: white;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.new-quote .preview-text h2 {
    margin: 15px 0;
    font-weight: normal;
    font-size: 24px;
    color: #fff;
}

.new-quote .quote-summary {
    background-color: #252125;
    color: white;
    padding: 20px;
    font-family: Arial, Helvetica, sans-serif;
}
.new-quote .summary-title {
    font-size: 16px;
    margin-bottom: 15px;
}
.new-quote .summary-prices {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.new-quote .price-box {
    flex: 1;
    background-color: #689f38;
    text-align: center;
    border-radius: 6px;
    overflow: hidden;
}
.new-quote .price-box .qty {
    padding: 8px 0;
    font-size: 14px;
    background: rgba(0,0,0,0.1);
}
.new-quote .price-box .total {
    font-size: 22px;
    font-weight: bold;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}
.new-quote .price-box .unit {
    padding: 8px 0;
    font-size: 12px;
}
.new-quote .summary-note {
    font-size: 11px;
    color: #ccc;
    margin-bottom: 5px;
}
.new-quote .summary-weight {
    font-size: 14px;
    margin-bottom: 20px;
}
.new-quote .summary-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.new-quote .summary-buttons button {
    flex: 1;
    height: 40px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
}
.new-quote .btn-save {
    background-color: #8cc63f;
    color: white;
}
.new-quote .btn-save:hover {
    background-color: #7ab32e;
}
.new-quote .btn-download {
    background-color: white;
    color: #333;
}
.new-quote .btn-download:hover {
    background-color: #f0f0f0;
}
.new-quote .btn-shipping {
    width: 100%;
    height: 45px;
    background-color: #d85d00;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
}
.new-quote .btn-shipping:hover {
    background-color: #c05000;
}

@media (max-width: 768px) {
    .new-quote .quote-right {
        width: 100%;
    }
    .new-quote .quote-label {
        width: 100%;
        padding-top: 0;
        margin-bottom: 10px;
    }
}