/* ── Floating Feedback Button ─────────────────────────────────────────────── */

#cqc-feedback-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
}

#cqc-feedback-btn button {
    background-color: transparent;
    color: var(--primary-green);
    border: 1px solid var(--primary-green);
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease;
}
#cqc-feedback-btn:hover button {
    background-color: var(--primary-green);
    color: #fff;
    border: 1px solid var(--hard-green);
}
#cqc-feedback-btn button svg{
    transform: rotate(90deg);
}

#cqc-feedback-btn.cqc-feedback-btn-right {
    right: 10px;
    transform-origin: bottom right;
    transform: translateY(-50%) rotate(-90deg);
}

#cqc-feedback-btn.cqc-feedback-btn-left {
    left: 2px;
    transform-origin: bottom left;
    transform: translateY(-50%) rotate(90deg);
}

/* ── Modal Overlay ────────────────────────────────────────────────────────── */

.cqc-feedback-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
}

.cqc-feedback-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cqc-feedback-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

/* ── Modal Container ──────────────────────────────────────────────────────── */

.cqc-feedback-modal-container {
    background: #fff;
    width: 90%;
    max-width: 540px;
    border-radius: 12px;
    position: relative;
    z-index: 10001;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.cqc-feedback-modal.is-open .cqc-feedback-modal-container {
    transform: scale(1);
    opacity: 1;
}

/* ── Close Button ─────────────────────────────────────────────────────────── */

.cqc-feedback-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 1;
}

.cqc-feedback-modal-close:hover {
    color: #333;
}

/* ── Modal Header ─────────────────────────────────────────────────────────── */

.cqc-feedback-modal-header {
    background-color: #f8f9fa;
    padding: 25px 25px 15px;
    border-bottom: 1px solid #eee;
}

.cqc-feedback-modal-header h2 {
    margin: 0 0 8px;
    font-size: 20px;
    color: #0b3464;
    padding-right: 30px; /* avoid overlap with close button */
}

.cqc-feedback-modal-header p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* ── Modal Content ────────────────────────────────────────────────────────── */

.cqc-feedback-modal-content {
    padding: 20px 20px 24px;
    max-height: 65vh;
    overflow-y: auto;
}

/* ── Feedback Types Grid ──────────────────────────────────────────────────── */

.cqc-feedback-types-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 480px) {
    .cqc-feedback-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Feedback Type Card ───────────────────────────────────────────────────── */

.cqc-feedback-type-card {
    border: 1px solid #e0e4ea;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.cqc-feedback-type-card:hover {
    border-color: #0b3464;
    box-shadow: 0 4px 12px rgba(11, 52, 100, 0.1);
}

.cqc-feedback-type-card-body {
    padding: 16px 16px 12px;
    flex-grow: 1;
}

.cqc-feedback-type-title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: #0b3464;
    line-height: 1.3;
}

.cqc-feedback-type-summary {
    margin: 0;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.cqc-feedback-type-card-footer {
    padding: 10px 16px;
    border-top: 1px solid #f0f0f0;
    background-color: #f8f9fb;
}

.cqc-feedback-type-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #e51e25; /* Camair-Co red */
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cqc-feedback-type-link:hover {
    color: #0b3464;
    text-decoration: underline;
}

/* Inactive link (URL not yet set) */
.cqc-feedback-type-link--inactive {
    color: #aaa;
    cursor: default;
}

.cqc-feedback-type-link--inactive:hover {
    color: #aaa;
    text-decoration: none;
}

/* ── Empty State ──────────────────────────────────────────────────────────── */

.cqc-no-types {
    text-align: center;
    color: #888;
    font-size: 14px;
    padding: 20px 0;
}
