/* Quote Calculator Styles */

.ukc-quote-calculator {
    max-width: unset !important;
    margin: 0 200px !important;
    padding: unset !important;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

/* Calculator Introduction */
.ukc-calculator-intro {
    padding: 0;
    grid-column: 1 / -1;
}

.ukc-intro-title {
    font-size: 36px;
    font-weight: 700;
    color: #1e428b !important;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.ukc-intro-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.ukc-calculator-steps {
    max-width: 100%;
    margin: 0;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.ukc-quote-results {
    max-width: 100%;
    margin: 0;
    position: sticky;
    top: 20px;
}

.ukc-calculator-step {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.ukc-calculator-step[data-conditional-field] {
    display: none;
}

.ukc-calculator-step:last-of-type {
    border-bottom: none;
}

.ukc-calculator-step .step-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e428b;
    margin: 0 0 15px 0;
}

.ukc-step-image {
    margin-bottom: 20px;
}

.ukc-step-image img {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
}

/* Select Dropdown */
.ukc-calc-field[type="select"],
.ukc-calculator-step select.ukc-calc-field {
    width: 100%;
    max-width: 500px;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    transition: border-color 0.3s;
}

.ukc-calc-field:focus {
    outline: none;
    border-color: #1e428b;
}

/* Radio Buttons */
.ukc-radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.ukc-radio-option {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: #fff;
}

.ukc-radio-option:hover {
    border-color: #1e428b;
    box-shadow: 0 2px 8px rgba(30,66,139,0.1);
}

.ukc-radio-option input[type="radio"] {
    margin-right: 15px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.ukc-radio-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.ukc-radio-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.ukc-radio-label {
    flex: 1;
}

.ukc-radio-option input[type="radio"]:checked + .ukc-radio-content .ukc-radio-label {
    color: #1e428b;
    font-weight: 600;
}

.ukc-radio-option:has(input:checked) {
    border-color: #1e428b;
    background-color: #f0f4ff;
}

/* Number Input */
.ukc-calc-field[type="number"] {
    width: 100%;
    max-width: 200px;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s;
}

/* Number Group */
.ukc-number-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.ukc-dimension-field {
    display: flex;
    flex-direction: column;
}

.ukc-dimension-field label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 15px;
}

.ukc-dimension-field input[type="number"] {
    width: 100%;
    max-width: none;
}

/* Checkbox Group */
.ukc-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ukc-checkbox-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    background: #fff;
}

.ukc-checkbox-option:hover {
    border-color: #1e428b;
}

.ukc-checkbox-option input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.ukc-checkbox-option:has(input:checked) {
    border-color: #1e428b;
    background-color: #f0f4ff;
}

/* Calculate Button */
.ukc-calculate-btn {
    background-color: #1e428b;
    color: #fff;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.ukc-calculate-btn:hover {
    background-color: #2655a8;
}

/* Quote Results */
.ukc-quote-results {
    background: #fff;
    padding: 40px;
    margin-top: 0px !important;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.ukc-quote-results h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1e428b;
    margin: 0 0 20px 0;
}

.ukc-quote-breakdown {
    margin-bottom: 20px;
}

.ukc-breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.ukc-breakdown-item:last-child {
    border-bottom: none;
}

.ukc-item-name {
    font-weight: 600;
    color: #333;
}

.ukc-item-price {
    font-size: 18px;
    color: #c92a2a;
    font-weight: 700;
}

.ukc-quote-total {
    padding: 20px;
    background-color: #f6f6f6;
    border-radius: 8px;
    margin-bottom: 20px;
}

.ukc-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ukc-total-label {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.ukc-total-amount {
    font-size: 32px;
    font-weight: 700;
    color: #1e428b;
}

.ukc-add-to-cart-btn {
    background-color: #1e428b;
    color: #fff;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.ukc-add-to-cart-btn:hover {
    background-color: #2655a8;
}

/* Loading State */
.ukc-loading {
    opacity: 0.6;
    pointer-events: none;
}

.ukc-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1e428b;
    border-radius: 50%;
    animation: ukc-spin 1s linear infinite;
}

@keyframes ukc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 1400px) {
    .ukc-quote-calculator {
        margin: 0 60px;
    }
}

@media (max-width: 1024px) {
    .ukc-quote-calculator {
        margin: 0 40px;
    }
}

@media (max-width: 1024px) {
    .ukc-quote-calculator {
        grid-template-columns: 1fr;
    }
    
    .ukc-quote-results {
        position: static;
    }
}

@media (max-width: 768px) {
    .ukc-quote-calculator {
        margin: 0 20px !important;
        grid-template-columns: 1fr;
    }
    
    .ukc-intro-title {
        font-size: 24px;
    }
    
    .ukc-intro-description {
        font-size: 14px;
    }
    
    .ukc-quote-results {
        position: static;
    }
    
    .ukc-calculator-steps,
    .ukc-quote-results {
        padding: 25px 20px;
    }
    
    .ukc-radio-group {
        grid-template-columns: 1fr;
    }
    
    .ukc-calculate-btn,
    .ukc-add-to-cart-btn {
        width: 100%;
        padding: 15px 20px;
    }
    
    .ukc-breakdown-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .ukc-total-amount {
        font-size: 24px;
    }
}
