/* Price Feedback Block Styles */
.price-feedback {
    margin-bottom: 20px;
    min-height: 120px; /* Fixed container height to prevent layout shifts */
}

.price-feedback .title-small {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
    padding: 0 10px;
    line-height: 1.4;
}

.price-feedback .feedback-option {
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
}

.price-feedback .feedback-option svg {
    margin-bottom: 8px;
    color: #666;
}

.price-feedback .feedback-option p {
    margin: 0;
    font-size: 13px;
    color: #333;
}

/* Smaller feedback buttons for stages 2 and 3 (when proposed price is shown) */
.price-feedback .feedback-stage-2 .feedback-option,
.price-feedback .feedback-stage-3 .feedback-option {
    padding: 8px !important; /* Smaller padding than default p-3 */
}

.price-feedback .feedback-stage-2 .feedback-option svg,
.price-feedback .feedback-stage-3 .feedback-option svg {
    width: 18px;
    height: 18px;
    margin-bottom: 4px;
}

.price-feedback .feedback-stage-2 .feedback-option p,
.price-feedback .feedback-stage-3 .feedback-option p {
    font-size: 11px;
    line-height: 1.2;
}

/* Selected state */
.price-feedback .feedback-option.selected {
    background-color: #e3f2fd;
    border-color: #2196f3;
}

.price-feedback .feedback-option.selected svg,
.price-feedback .feedback-option.selected p {
    color: #2196f3;
}

/* Disabled state */
.price-feedback .feedback-option[style*="pointer-events: none"] {
    cursor: default;
}

.price-feedback .feedback-option[style*="opacity: 0.5"] {
    background-color: #f5f5f5;
    border-color: #e0e0e0;
}

.price-feedback .feedback-option[style*="opacity: 0.5"] svg,
.price-feedback .feedback-option[style*="opacity: 0.5"] p {
    color: #999;
}

/* Proposed price section */
.price-feedback .proposed-price-section,
.price-feedback .final-confirmation {
    margin-top: 15px;
}

.price-feedback .proposed-price-input,
.price-feedback .final-price-display {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.price-feedback .proposed-price-input:focus {
    border-color: #2196f3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

.price-feedback .final-price-display {
    background-color: #e3f2fd !important;
    color: #1976d2;
    font-weight: 500;
}

/* Price unit styling */
.price-feedback .position-relative {
    position: relative;
}

.price-feedback .price-unit {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 14px;
    pointer-events: none;
    background: transparent;
    z-index: 10;
    line-height: 1;
}

.price-feedback .btn-sm {
    font-size: 12px;
    padding: 6px 12px;
    min-width: 50px;
    white-space: nowrap;
}

.price-feedback .proposed-price-section .col-4,
.price-feedback .final-confirmation .col-4 {
    padding-left: 8px;
}

/* Success Popup Styles */
.feedback-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-popup {
    background: #FFF;
    border-radius: 8px;
    padding: 24px;
    width: 427px;
    height: 221px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: popupSlideIn 0.3s ease-out;
}

.feedback-popup .popup-close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 6px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
}

.feedback-popup .popup-close-btn img {
    width: 12px;
    height: 12px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.feedback-popup .popup-close-btn:hover {
    background-color: #f5f5f5;
}

.feedback-popup .popup-close-btn:hover img {
    opacity: 1;
}

.feedback-popup .popup-close-btn:active {
    transform: scale(0.95);
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.popup-animation {
    margin-bottom: 12px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.popup-animation > div {
    width: 100px;
    height: 100px;
}

.popup-title {
    color: #3086F3;
    text-align: center;
    font-family: Roboto, sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin-bottom: 10px;
    margin-top: 0;
    flex-shrink: 0;
}

.popup-message {
    color: #333;
    text-align: center;
    font-family: Roboto, sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 0;
    flex-shrink: 0;
}

/* Responsive adjustments for popup */
@media (max-width: 768px) and (min-width: 481px) {
    .feedback-popup {
        width: 380px;
        height: 200px;
        padding: 22px;
    }
}

@media (max-width: 480px) {
    .feedback-popup {
        width: 320px;
        height: 180px;
        padding: 20px;
    }
    
    .popup-animation {
        height: 80px;
        margin-bottom: 12px;
    }
    
    .popup-animation > div {
        width: 80px;
        height: 80px;
    }
    
    .popup-title {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .popup-message {
        font-size: 16px;
    }
}

@media (max-width: 360px) {
    .feedback-popup {
        width: 280px;
        height: 160px;
        padding: 16px;
    }
    
    .popup-animation {
        height: 70px;
        margin-bottom: 10px;
    }
    
    .popup-animation > div {
        width: 70px;
        height: 70px;
    }
    
    .popup-title {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .popup-message {
        font-size: 14px;
    }
} 