/* ----------------------------------------------------
   CIRCULAR PROGRESS BAR
---------------------------------------------------- */
.circular-chart {
    display: block;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.circle-bg {
    fill: none;
    stroke: #e5e7eb;
    stroke-width: 3.5;
}
.circle-progress {
    fill: none;
    stroke-width: 3.5;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease-in-out;
}
.percentage {
    fill: var(--color-dark);
    text-anchor: middle;
    font-size: 7px;
    font-weight: 700;
    transform: rotate(90deg);
}
#progress-bar-grid > div {
    flex-grow: 1;
    flex-basis: 0;
    padding: 4px;
}

/* Wizard Steps */
.wizard-step {
    width: 115px;
    height: 4px;
    background: #dcdcdc;
}
.wizard-step.active {
    background: #0d6efd;
}

/* ----------------------------------------------------
   POPUP: OVERLAY + CARD
---------------------------------------------------- */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.popup-card {
    width: 820px;
    background: #fff;
    border-radius: 18px;
    padding: 26px 30px;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.15);
    max-height: 190vh;
    overflow-y: auto;
    position: relative;
}

/* ----------------------------------------------------
   HEADER
---------------------------------------------------- */
.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
}
.popup-title {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin: 0;
}
.popup-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
}

/* ----------------------------------------------------
   SORT DROPDOWN
---------------------------------------------------- */
.sort-dropdown {
    height: 38px;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #dcdcdc;
}

/* ----------------------------------------------------
   WRITE REVIEW BUTTON (Final Optimized Version)
---------------------------------------------------- */
.review-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    background: #02A7F0;
    color: white;

    padding: 10px 22px;
    min-width: 180px;
    height: 42px;

    border-radius: 28px;
    border: none;

    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;

    box-shadow: 0px 3px 8px rgba(0,0,0,0.15);
    cursor: pointer;
}
.review-btn-icon {
    width: 20px;
    height: 20px;
}

/* ----------------------------------------------------
   SEARCH BAR
---------------------------------------------------- */
.popup-search input {
    margin: 18px 0;
    padding-left: 40px;
    height: 42px;
    border-radius: 25px;
    background-size: 16px;
    background-repeat: no-repeat;
    background-position: 14px center;
}

/* ----------------------------------------------------
   CATEGORY TABS
---------------------------------------------------- */
.popup-tabs {
    display: flex;
    gap: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}
.popup-tabs .tab {
    padding: 6px 16px;
    background: #f3f4f6;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    color: #555;
}
.popup-tabs .tab.active {
    background: #e9f2ff;
    color: #0061fe;
}

/* ----------------------------------------------------
   IMAGES + DESCRIPTION
---------------------------------------------------- */
.popup-section-title {
    font-weight: 600;
    font-size: 16px;
    margin: 12px 0 10px;
    color: #004E7E;
}
.popup-images {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.popup-images img {
    width: 160px;
    height: 100px;
    border-radius: 10px;
    object-fit: cover;
}
.popup-description {
    color: #555;
    font-size: 14px;
}
.show-more {
    color: #0061fe;
    cursor: pointer;
}

/* ----------------------------------------------------
   REVIEWS LIST
---------------------------------------------------- */
.popup-review-count {
    font-weight: 600;
    margin-top: 15px;
    font-size: 18px;
}
.review-item {
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
}
.review-item img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}
.review-user {
    font-weight: 700;
}
.review-date {
    font-size: 12px;
    color: #777;
}
.review-stars {
    color: #fbbf24;
    margin-bottom: 4px;
}

/* Review Tabs with Underline */
.review-tabs {
    display: flex;
    gap: 30px;
    border-bottom: 1.5px solid #e5e5e5;
    padding-bottom: 5px;
    margin-bottom: 18px;
}
.review-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 6px;
    cursor: pointer;
    font-weight: 500 !important;
    color: #777;
    position: relative;
    transition: 0.2s ease;
}
.review-tab .tab-icon {
    width: 18px;
    height: 18px;
    opacity: 0.6;
    transition: 0.3s ease;
}
.review-tab.active {
    color: #000;
}
.review-tab.active .tab-icon {
    opacity: 1;
    filter: brightness(1.2);
}
.review-tab.active::after {
    content: "";
    height: 3px;
    width: 100%;
    background: #02A7F0;
    position: absolute;
    bottom: -6px;
    left: 0;
    border-radius: 10px;
}

/* FULL OVERLAY INSIDE POPUP */
.popup-loader {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    border-radius: 18px;
    display: none; /* hidden by default */
}

/* Spinner */
.popup-loader .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #bdeaff;
    border-top-color: #02A7F0;
    border-radius: 50%;
    animation: spinLoader 0.8s linear infinite;
}

@keyframes spinLoader {
    to { transform: rotate(360deg); }
}
.popup-card.loading > *:not(#popupLoader) {
    opacity: 0;
    pointer-events: none;
}
.review-photos {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.review-photo {
    width: 85px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
}
.popup-review-card {
    background: #fff;
    padding: 18px 20px;
    margin-bottom: 18px;
}

.popup-review-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.popup-review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.popup-review-user {
    font-weight: 500;
    font-size: 15px;
    color: rgb(51, 51, 51);
}

.popup-review-meta {
    font-size: 12px;
    color: #777;
}

.popup-review-stars-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
}

.popup-review-stars {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 16px;
}

.popup-review-content {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
    margin-top: 4px;
    padding-right: 20px;
}

.popup-review-star-icon {
    width: 18px;
    height: 18px;
}

.qr-modal {
    padding: 18px;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.18);
}

.qr-close-btn {
    position: absolute;
    right: 18px;
    top: 15px;
    background: none;
}

.qr-textarea {
    background: #f1f7ff;
    border-radius: 10px;
    padding: 14px;
    font-size: 15px;
    border: 1px solid #d6e6ff;
}

.qr-submit-btn {
    height: 45px;
    background: #03A9F4;
    color: white;
    font-weight: 600;
    border-radius: 10px;
}
.qr-submit-btn:hover {
    background: #0289c5;
}
.qr-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qr-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    cursor: pointer;
}

.qr-radio input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #03A9F4; /* Modern blue check style */
    cursor: pointer;
}

/* Vertical Review Summary List */
.review-summary-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 10px;
}

.review-summary-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eaeaea;
    cursor: pointer;
}

.review-summary-left {
    position: relative;
    width: 55px;
    height: 55px;
}

.review-summary-left svg {
    width: 55px;
    height: 55px;
    transform: rotate(-90deg);
}

.review-summary-left img {
    width: 28px;
    height: 28px;
    position: absolute;
    top: 51%;
    left: 51%;
    transform: translate(-50%, -50%);
}

.review-summary-right {
    flex: 1;
}

.review-summary-title {
    margin-bottom: 3px;
    font-size: small;
    text-align: center;
}

.review-summary-text {
    font-size: 14px;
    color: #444;
    line-height: 1.4;
    white-space: normal !important;   /* allow wrapping */
    overflow: visible !important;     /* show full text */
    word-wrap: break-word;            /* break long words if needed */
    max-width: 100%;
    cursor: pointer !important;
}

.problem-modal {
    border-radius: 20px;
    padding-bottom: 15px;
    position: relative;
}

.problem-close-btn {
    position: absolute;
    right: 15px;
    top: 15px;
}

.problem-header {
    padding-top: 10px;
}

.problem-drag {
    width: 60px;
    height: 5px;
    background: #ccc;
    border-radius: 5px;
    margin: 0 auto 10px auto;
}

.problem-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.problem-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.problem-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.problem-radio input {
    width: 18px;
    height: 18px;
    accent-color: #0096ff;
}

.problem-text {
    background: #f4f7fa;
    border: 1px solid #e2e6ea;
    border-radius: 10px;
    padding: 12px;
    min-height: 80px;
}

.upload-box {
    width: 70px;
    height: 70px;
    background: #eef7ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    color: #0096ff;
    border: 1px solid #d5e9ff;
}

.problem-submit-btn {
    background: #0096ff;
    color: white;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    border: none;
}

.problem-modal-dialog {
    max-width: 550px !important;
    width: 550px !important;
}

#problem-dynamic-fields {
    margin-top: 20px;
}
.preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.preview-image-box {
    position: relative;
    width: 70px;
    height: 70px;
}

.preview-image-box img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #dcdcdc;
}

.preview-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ff4d4d;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}



