.cc-reviews-section,
.cc-reviews-section * {
    box-sizing: border-box;
}

.cc-reviews-section {
    background: #000;
    color: #fff;
    font-family: "Manrope", sans-serif;
    padding: 60px 16px;
    width: 100%;
}

.cc-reviews-wrap {
    max-width: 1350px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    padding: 0 16px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.cc-summary {
    flex: 0 0 100%;
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.cc-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.cc-score-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.cc-score-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.cc-score {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.cc-stars {
    display: flex;
    gap: 3px;
}

.cc-reviews-count {
    font-size: 13px;
    color: #9a9a9a;
}

.cc-bars {
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.cc-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.cc-bar-label {
    width: 14px;
    text-align: right;
    color: #bdbdbd;
}

.cc-bar-bg {
    flex: 1;
    height: 6px;
    background: #1a1a1a;
    border-radius: 6px;
    overflow: hidden;
}

.cc-bar-fill {
    height: 100%;
    background: #ffd100;
    border-radius: 6px;
}

.cc-write-btn {
    margin-top: 24px;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    width: 100%;
    max-width: 300px;
    transition: all 0.2s ease;
    display: inline-block; /* Ensure it behaves like a button */
}

.cc-write-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.cc-list {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cc-card {
    background: #000;
    border-radius: 12px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    color: #ddd;
}

.cc-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.cc-head-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cc-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.cc-name {
    font-weight: 700;
    font-size: 18px;
    color: #e9e9e9;
}

.cc-rating {
    display: flex;
    gap: 2px;
}

.cc-text {
    color: #86868b;
    font-size: 16px;
    line-height: 1.55;
    margin: 0 0 12px;
}

.cc-meta {
    font-size: 14px;
    color: #999;
    font-weight: 600;
}

.cc-dot {
    margin: 0 6px;
    color: #666;
}

/* Tablet & Mobile Adjustments */
@media (min-width: 768px) {
    .cc-reviews-wrap {
        flex-wrap: nowrap;
        gap: 50px;
        padding: 0 32px;
    }

    .cc-summary {
        flex: 0 0 340px;
        max-width: none;
        text-align: left;
        margin: 0;
    }

    .cc-score-flex {
        flex-direction: row;
        align-items: flex-start;
        gap: 24px;
    }

    .cc-score {
        font-size: 54px;
    }

    .cc-bars {
        max-width: none;
        margin-top: 6px;
    }

    .cc-write-btn {
        width: auto;
        padding: 10px 20px;
        font-size: 14px;
    }

    .cc-card {
        padding: 20px 22px;
    }

    .cc-name {
        font-size: 21px;
    }

    .cc-text {
        font-size: 17px;
    }

    .cc-meta {
        font-size: 15px;
    }
}

@media (min-width: 1024px) {
    .cc-reviews-section {
        padding: 80px 0;
    }

    .cc-reviews-wrap {
        gap: 60px;
        padding: 0 40px;
    }

    .cc-summary {
        flex: 0 0 370px;
    }
}

/* --- Dynamic Form Styles --- */
.cc-review-form-container {
    display: none;
    margin-top: 24px;
    background: #111;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cc-review-form-container.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.cc-form-group {
    margin-bottom: 16px;
}

.cc-form-label {
    display: block;
    margin-bottom: 8px;
    color: #ddd;
    font-size: 14px;
    font-weight: 600;
}

.cc-form-input, .cc-form-textarea {
    width: 100%;
    padding: 12px;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.cc-form-input:focus, .cc-form-textarea:focus {
    border-color: #ffd100;
}

.cc-form-textarea {
    min-height: 100px;
    resize: vertical;
}

.cc-submit-btn {
    background: #ffd100;
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    width: 100%;
    transition: background 0.2s;
}

.cc-submit-btn:hover {
    background: #e6bc00;
}

.cc-submit-btn:disabled {
    background: #555;
    cursor: not-allowed;
}

/* Star Rating Input */
.cc-star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.cc-star-rating-input input {
    display: none;
}

.cc-star-rating-input label {
    cursor: pointer;
    width: 24px;
    height: 24px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23444" viewBox="0 0 24 24"><path d="M12 .587l3.668 7.431 8.2 1.193-5.934 5.787 1.402 8.168L12 18.896l-7.336 3.87 1.402-8.168L.132 9.211l8.2-1.193z"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 0.1s;
}

.cc-star-rating-input input:checked ~ label,
.cc-star-rating-input label:hover,
.cc-star-rating-input label:hover ~ label {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23ffd100" viewBox="0 0 24 24"><path d="M12 .587l3.668 7.431 8.2 1.193-5.934 5.787 1.402 8.168L12 18.896l-7.336 3.87 1.402-8.168L.132 9.211l8.2-1.193z"/></svg>');
}

.cc-star-rating-input label:hover {
    transform: scale(1.1);
}
