.survey-card-wrapper {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 950;
    max-width: 320px;
    width: 100%;
    background: #fff;
    border: 1px solid rgba(202, 123, 26, 0.22);
    border-left: 4px solid #ca7b1a;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(202, 123, 26, 0.08);
    transition: transform 0.35s ease, opacity 0.35s ease;
    transform: translateY(100px);
    opacity: 0;
    pointer-events: none;
    font-family: 'Poppins', sans-serif;
}

.survey-card-wrapper.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.survey-card-content {
    position: relative;
    padding: 16px 18px 14px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.survey-close-btn {
    position: absolute;
    top: 8px;
    right: 10px;
    background: #f5f5f5;
    border: none;
    font-size: 18px;
    color: #888;
    cursor: pointer;
    line-height: 1;
    padding: 2px 7px;
    border-radius: 50%;
    transition: color 0.2s, background 0.2s;
}

.survey-close-btn:hover {
    color: #333;
    background: rgba(202, 123, 26, 0.15);
}

.survey-icon-mini {
    background: rgba(14, 127, 127, 0.1);
    color: #0e7f7f;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    border: 1px solid rgba(14, 127, 127, 0.2);
}

.survey-text {
    flex-grow: 1;
    min-width: 0;
    padding-right: 18px;
}

.survey-text h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 700;
    color: #222;
    letter-spacing: 0.6px;
    line-height: 1.25;
    text-transform: uppercase;
}

.survey-text p {
    margin: 0;
    font-size: 12px;
    color: #666;
    line-height: 1.45;
}

.survey-buttons {
    display: flex;
    margin-top: 11px;
}

.survey-go-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 24px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
    background-color: #e84e0f;
    color: #fff;
    box-shadow: 0 4px 12px rgba(232, 78, 15, 0.25);
}

.survey-go-btn:hover {
    background-color: #fff;
    color: #e84e0f;
    border-color: #e84e0f;
    box-shadow: 0 4px 12px rgba(232, 78, 15, 0.2);
}

/* Tablet — chatbot sağ altta */
@media (max-width: 767px) {
    .survey-card-wrapper {
        bottom: max(18px, env(safe-area-inset-bottom, 18px));
        left: max(14px, env(safe-area-inset-left, 14px));
        right: calc(2rem + 5rem + 14px);
        width: auto;
        max-width: none;
    }
}

/* Mobil — chatbot ile çakışmayı önle */
@media (max-width: 576px) {
    .survey-card-wrapper {
        bottom: max(14px, env(safe-area-inset-bottom, 14px));
        left: max(12px, env(safe-area-inset-left, 12px));
        right: calc(1rem + 5rem + 10px);
        max-width: none;
    }

    .survey-card-content {
        padding: 14px 14px 12px;
        gap: 10px;
    }

    .survey-icon-mini {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .survey-text {
        padding-right: 14px;
    }

    .survey-text h4 {
        font-size: 12px;
        letter-spacing: 0.4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .survey-text p {
        font-size: 11px;
        line-height: 1.35;
    }

    .survey-buttons {
        margin-top: 9px;
    }

    .survey-go-btn {
        padding: 8px 12px;
        font-size: 11px;
    }
}
