/* Container to center the trigger */
.agentiq-chat-trigger-container {
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
}

/* The form container */
.agentiq-chat-trigger-form {
    width: 100%;
}

/* Validates the pill shape */
.agentiq-chat-trigger-inner {
    width: 100%;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 999px;
    padding: 8px 12px 8px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    cursor: text;
}

.agentiq-chat-trigger-inner:focus-within {
    transform: translateY(-1px);
    background: #fff;
    border-color: var(--agentiq-primary-color, #0073aa);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.agentiq-chat-trigger-inner:hover {
    background: #fff;
}

/* Icon */
.agentiq-chat-trigger-icon {
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.agentiq-chat-trigger-inner:focus-within .agentiq-chat-trigger-icon {
    color: var(--agentiq-primary-color, #0073aa);
}

/* Actual input field */
.agentiq-chat-trigger-input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 10px 0 !important;
    margin: 0 !important;
    font-size: 16px !important;
    color: #0f172a !important;
    outline: none !important;
    box-shadow: none !important;
}

.agentiq-chat-trigger-input::placeholder {
    color: #64748b;
}

/* Submit/Arrow button */
.agentiq-chat-trigger-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--agentiq-primary-color, #0073aa);
    color: #fff;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    padding: 0;
}

.agentiq-chat-trigger-submit:hover {
    background-color: var(--agentiq-primary-color, #006090);
    transform: rotate(90deg);
}

.agentiq-chat-trigger-submit:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.3);
}

@media screen and (max-width: 640px) {
    .agentiq-chat-trigger-container {
        margin: 20px auto;
        padding: 0 16px;
    }

    .agentiq-chat-trigger-inner {
        padding: 6px 8px 6px 16px;
    }

    .agentiq-chat-trigger-input {
        font-size: 14px !important;
    }
}