.tcvi-feedback-launch {
    position: fixed;
    bottom: var(--tcvi-feedback-bottom, 1.5rem);
    right: 1.5rem;
    z-index: 9998;
}

.tcvi-feedback-button {
    background: #111827;
    border: none;
    border-radius: 999px;
    width: 3.25rem;
    height: 3.25rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.tcvi-feedback-button:hover,
.tcvi-feedback-button:focus {
    background: #1f2937;
}

.tcvi-feedback-button__icon {
    width: 1.5rem;
    height: 1.5rem;
    display: block;
    filter: brightness(0) invert(1);
}

.tcvi-feedback-button__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.tcvi-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
}

.tcvi-modal--visible {
    display: block;
}

.tcvi-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.tcvi-modal__panel {
    position: relative;
    max-width: 420px;
    width: calc(100% - 2rem);
    margin: 5vh auto;
    background: #fff;
    padding: 1.75rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.tcvi-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    border: none;
    background: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.tcvi-modal__form label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
}

.tcvi-modal__form select,
.tcvi-modal__form textarea {
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
}

.tcvi-modal__submit {
    width: 100%;
    padding: 0.85rem;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
}

.tcvi-modal__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.tcvi-modal__helper {
    color: #4b5563;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.tcvi-honeypot {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.tcvi-modal__messages {
    min-height: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.tcvi-modal__messages--success {
    color: #065f46;
}

.tcvi-modal__messages--error {
    color: #b91c1c;
}

@media (max-width: 600px) {
    .tcvi-feedback-launch {
        right: 1rem;
        bottom: var(--tcvi-feedback-bottom, 1rem);
    }

    .tcvi-modal__panel {
        margin: 10vh auto;
        padding: 1.25rem;
    }
}

body.tcvi-modal-open {
    overflow: hidden;
}
